Repository navigation
refactor(observability): move saved model-call readers out of the API model - #4736
Merged
Merged
Conversation
Contributor
giuliolovisotto
force-pushed
the
glovisotto/model-call-reader-refactor
branch
from
October 19, 2026 11:28
e5ca453 to
52e11ea
Compare
Separate saved-exchange interpretation and rollout attachment from model-server transport and capture. Move the existing implementations unchanged and update consumers and test patch targets. ModelCallRecord and reader helpers now live in nemo_gym.observability.model_calls; external imports must use that path. Verifier ownership is a separate follow-up. Signed-off-by: Giulio Lovisotto <[email protected]>
Signed-off-by: Giulio Lovisotto <[email protected]>
giuliolovisotto
force-pushed
the
glovisotto/model-call-reader-refactor
branch
from
October 19, 2026 13:24
9293949 to
c85fbbc
Compare
bxyu-nvidia
approved these changes
Oct 19, 2026
Contributor
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/39312338319 |
5 tasks done
This branch was previously deployed
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.
Saved-exchange readers and rollout attachment currently live beside the model-server transport implementation. Move that code into
nemo_gym.observability.model_calls, leaving capture middleware, streaming reconstruction and persistence inbase_responses_api_model.py.This is the refactor-only prerequisite for #4630. All 18 moved definitions and all definitions remaining in the base-model module have identical ASTs to the original implementations. Consumers and test patch targets use the new import locations; 25 reader tests now live in
test_model_calls.py, with their assertions unchanged. Verifier IDs, ownership and lifecycle tracking belong to #4630.Compatibility: old imports remain available through the repository’s lazy deprecation helper and warn with the replacement path. New code should import
ModelCallRecordand the reader/aggregation helpers fromnemo_gym.observability.model_calls; the docs example uses that path. No artifact-format, runtime-behavior or benchmark-result change. A separate issue is unnecessary: this extracts the structural portion of #4630 for independent review.Validation of the final review follow-up: 643 focused tests, all-file pre-commit, Fern validation and
git diff --checkpassed. All 20 relocated symbols retain identity through legacy imports, both module import orders work, and the docs example executes. Before this follow-up, 1,638 core/conformance tests and 223 adapter tests passed on main285224a04plus the refactor. Live model rollouts: N/A for this relocation and compatibility shim; the verifier follow-up retains its live HealthBench validation.