feat(scicode): add SciCode dataset + 0-shot generation task#42
Open
jack-scitix-ai wants to merge 1 commit into
Open
feat(scicode): add SciCode dataset + 0-shot generation task#42jack-scitix-ai wants to merge 1 commit into
jack-scitix-ai wants to merge 1 commit into
Conversation
jack-scitix-ai
force-pushed
the
feat/scicode
branch
from
July 23, 2026 08:54
1475b67 to
75c2071
Compare
jack-scitix-ai
force-pushed
the
feat/scicode
branch
from
July 23, 2026 10:26
75c2071 to
032c61b
Compare
ethan-scitix
requested changes
Jul 23, 2026
ethan-scitix
left a comment
Collaborator
There was a problem hiding this comment.
Request changes. Logic is faithful to upstream + the internal GLM-OpenEvals impl (verified: both jsonl checksums, h5 byte-identity via sha256, prompt templates, extract_python_script, and previous_llm_code handling all match). Three things to fix:
🔴 Blocking
- Missing gold-step files.
special_step_code()(sieval/community/scicode/prompts.py:102) readsdata/{13.6,62.1,76.3}.txt, but.gitignore:156(data/) excludes them — they're not committed and not on disk. Reproduced: all three raiseFileNotFoundError, so problems 13/62/76 crash ininfer()and pollute main-problem accuracy.reference_impl.notesclaims these are vendored, but they aren't. Suggest inlining them as a.pymodule (likecommunity/livecodebench/prompts/*.py) to avoid both the gitignore and wheel-packaging ([tool.pdm.build]declares noincludesfor data files).
🟠 Repro fidelity (blocks matching official numbers)
- Timeout.
timeout=300.0(sieval/tasks/scicode_0shot_gen.py:116) vs the official hardcoded1800in upstreamtest_generated_code.py. 6× shorter → spurious timeouts on slow numerical steps. Bump to1800or document why. - Temperature. Official generation is greedy (
temperature=0). Correctly not hardcoded here, but please note in the docstring/reference_impl.notesthat reproducing official numbers requirestemperature=0in the model config. (with_background=Falsedefault is already correct — matches the official headline mode.)
Nits
- Remove the unused
get_function_from_code/extract_function_nameexports (sieval/community/scicode/__init__.py) — dead code; they read as "aligning with upstream" but nothing calls them (upstream only uses them on the resume-from-disk path, which this task doesn't take). - Flesh out
reference_impl.noteswith the real deviations: h5 targets inlined + remote eval service (vs in-subprocess), special-step verbatim embed, and pipeline-fails-counted-as-unsolved accounting. - Document the sandbox dependency
sympy(injected by_cmp_upstream.py; not in any sieval dep group — must exist in the code-eval service image). _cmp_source()(sieval/community/scicode/harness.py:26) re-reads the file per tested step — wrap infunctools.lru_cache.
Blocking = the gold files + timeout; the rest can be quick follow-ups.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type
Summary
SciCodeDataset: 80 problems / 338 dependent sub-steps; upstream jsonl revision-pinned at69a8cfc, numeric targetsraw_ground.h5mirrored on HF as a plain HTTPS artifact.scicode_0shot_gen(SciCodeZeroShotGenTask): sequential per-sub-step generation in the generated-solutions (self-dependency) setting — step i conditions on the model's own code for steps 1..i-1 (upstream's default; gold-conditioning is not implemented, and the test split ships no per-step gold) — with an optional scientist-background axis, scored by the code-evaluator over HTTP.69a8cfc).sieval/community/scicode/(prompt templates, code parsing, HDF5 target readers, in-processscicode.compare.cmpshim), each carrying the upstream Apache-2.0 header — adapted from SciCode @69a8cfc.scicodeoptional-dependency group (h5py/numpy/scipy): the sieval side reads numeric targets (incl.scipy.sparsematrices) from the h5.source="scicode") must be deployed for eval runs; the sieval code + unit tests here are self-contained.Test Plan
Automated
ruff check && ruff format --check)ty checkormypy --strict)pdm run pytest)Manual
Full
scripts/check_preflight.pyPASS (task/dataset registration, links, dep-coverage, meta-index sync, version). Kimi-K2.6 score check (official hyperparams, generated-solutions, 65-problem test split):Checklist
Required (all PRs)
type(scope): description)AI-Generated Code - <model> (<provider>)in module docstringcore/If: New or Modified Benchmark
sieval dataset download <name>succeeds)__init__.pyIf: community/ Changes
If: New Dependency