Repository navigation
[Models] HybridAgent-8B-Agentic (3/3): evaluation harness and latent-trace viewer - #579
Open
jpflacerda wants to merge 1 commit into
Open
jpflacerda wants to merge 1 commit into
jpflacerda wants to merge 1 commit into
Conversation
jpflacerda
force-pushed
the
jpl/hybridagent-eval
branch
from
December 2, 2026 23:42
39a3808 to
aa9f43d
Compare
jpflacerda
force-pushed
the
jpl/hybridagent-eval
branch
from
December 3, 2026 18:34
aa9f43d to
729cf21
Compare
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.
Closes #578. Follow-up to #574 (export) and #575 (latent-reasoning runtime).
Type of Change
Motivation and Context
Adds the end-to-end trajectory evaluation utility and latent-trace viewer split out from #575 (
models/hybridagent/eval/), and alignsmodels/hybridagent/README.md's## Evaluationsection with the rest ofmodels/*/README.md(Core AIWikiText-2perplexity only, plus the evaluation tool commands).uv run python models/hybridagent/eval/prepare_data.py # the 5 reference example questions uv run python models/hybridagent/eval/play.py --model exports/hybridagent-8b-4bit \ --bench examples --id q4 --steps --html uv run python models/hybridagent/eval/run_eval.py --model exports/hybridagent-8b-4bit \ --benchmarks examples --samples 1What's included
prepare_data.py: fetches the 5 example questions fromtogethercomputer/HybridAgentat commit1b41ceb(or reads a localquestions.jsonl) intoeval/data/examples.jsonl.run_eval.py: runsllm-runneracross<name>.jsonlquestion sets with--tools python, writes per-sample JSON traces (including seed and bundle hash), records arun_config.jsonthat refuses mismatched resumes, and counts failed or unparseable runs as wrong.grade.py: answer extraction and\boxed{...}normalization vendored fromtogethercomputer/HybridAgent(full MIT copyright and permission notice included).play.py/latent_trace.py: runs one prompt with--dump-latentsand renders each latent span as nearest-embedding token readouts in the terminal or as a self-contained HTML report.models/hybridagent/README.mdandmodels/README.md: documents theplay.pyandrun_eval.pyutilities, and trimsmodels/hybridagent/README.md's## Evaluationtable to the standard Core AIWikiText-2perplexity format (none (float16)and4-bit quantized).Testing
Tested locally
Added/updated tests
Added/updated docs
uv run --with pytest pytest models/hybridagent/eval/tests: 6 passed (fake_runner.pyexercisesrun_eval.pyend to end including resume validation, failed runs, grading, andlatent_trace.pynearest-token readout).uv run --frozen --only-group lint ruff check models/hybridagent/evalandruff format --check: clean.