-
Notifications
You must be signed in to change notification settings - Fork 359
feat(orchestration): return and persist a record of every submission #3188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
dd28151
feat(orchestration): add the submission record schema and its stores
wprazuch e720b32
fix(orchestration): use dumps() in write_local_index for consistency
wprazuch 942672f
feat(orchestration): give both connections the same shell semantics
wprazuch 13cfe06
fix(orchestration): identify sbatch results per benchmark instead of …
wprazuch fd9661f
feat(orchestration): return and persist a record of every submission
wprazuch fc46dd4
fix(orchestration): validate job ids and benchmark names, and persist…
wprazuch 2883ebf
feat(cli): report the submission record from gym eval submit
wprazuch 265940b
fix(orchestration): make the submission record actually readable by i…
wprazuch fe39800
Merge remote-tracking branch 'github/main' into wprazuch/gym-job-mana…
wprazuch 26962c9
fix(orchestration): give the driver a workdir and a mounted job direc…
wprazuch 53c0725
fix(orchestration): install gym_install's clone outside the job direc…
wprazuch 24007ad
fix(orchestration): keep artifacts by absolute path, not by moving cwd
wprazuch 952ff1b
fix(orchestration): run the driver from the gym_install clone
wprazuch 7f58ff2
fix(config): complete a partial head_server instead of skipping its d…
wprazuch 5b35304
fix(orchestration): quote-safe driver entrypoint body
wprazuch 6a454f7
style: ruff-format the new entrypoint quoting test
wprazuch bbbf908
feat(orchestration): make the driver's policy model type configurable
wprazuch c23f316
fix(orchestration): escape both multi-node service commands for their…
wprazuch f0fbf5a
fix(orchestration): drop --api-server-count from headless worker comm…
wprazuch f1ec6bd
Merge branch 'main' into wprazuch/gym-job-management
wprazuch e9b302a
refactor(orchestration): make the job record executor-agnostic in fac…
wprazuch c84d60c
refactor(orchestration): trim comments and drop two unused pieces
wprazuch 8f4bbb6
fix(orchestration): keep older job records readable across an upgrade
wprazuch 5f3debd
refactor(orchestration): give the record its own methods and a metada…
wprazuch 690b429
refactor(orchestration): lift record persistence into BaseExecutor
wprazuch 1a2ade0
Merge branch 'main' into wprazuch/gym-job-management
wprazuch File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
|
prokotg marked this conversation as resolved.
|
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's discuss
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@prokotg okay, I re-checked and this is important:
Gym needs to know how to talk to the model server. It has a few interchangeable adapters, each a small YAML file:
responses_api_models/openai_model/configs/openai_model.yaml → declares policy_model.responses_api_models.openai_model
responses_api_models/vllm_model/configs/vllm_model.yaml → declares policy_model.responses_api_models.vllm_model
gym eval run --model-type Xmeans "load adapter X".Gym allows exactly one adapter. Literally:
Before my change, gym-native always passed the same one:
Two things went wrong:
(a) Wrong adapter. Every certified run used vllm_model. We were using openai_model. Same model, different adapter — and the adapters differ in things the model actually sees, like whether reasoning tokens are fed back between turns. So our scores weren't comparing like with like.
(b) Collision. benchmarks/lmarena_v3/config.yaml already declares its own vllm_model adapter.
After: it's a setting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. Then there are 2 questions:
policy_model_typeto a root-level field. Thepolicy_modelis there because we want to connect appropriate service to the driver. From the perspective of orchestrationpolicy_model_typewould be a syntactic sugar for addingresponses_api_models/vllm_model/configs/vllm_model.yamlto theconfig_pathsof therun sectioningym eval submit's config.responses_api_modelsand what does it mean? doeslmarena_v3does not support sglang or something different? cc @marta-sd