Repository navigation
feat(benchmarks): Add arguments to preparation script; configurable RULER - #1711
Merged
Merged
Conversation
…r prepration script Signed-off-by: Tomasz Grzegorzek <[email protected]>
prokotg
force-pushed
the
tgrzegorzek/ruler-prepare-args
branch
from
June 24, 2026 09:12
c05086b to
1c6c20c
Compare
Signed-off-by: Tomasz Grzegorzek <[email protected]>
Signed-off-by: Tomasz Grzegorzek <[email protected]>
Signed-off-by: Tomasz Grzegorzek <[email protected]>
Signed-off-by: Tomasz Grzegorzek <[email protected]>
marta-sd
reviewed
Jun 25, 2026
|
|
||
| module = importlib.import_module(prepare_module_path) | ||
| output_fpath = module.prepare() | ||
| output_fpath = module.prepare(**prepare_script_args) |
Contributor
There was a problem hiding this comment.
Please add test checking that it is backward compatible (ie it doesn't break data preparation for modules that don't accept any extra flags)
1 task
Signed-off-by: Tomasz Grzegorzek <[email protected]>
Signed-off-by: Tomasz Grzegorzek <[email protected]>
Signed-off-by: Tomasz Grzegorzek <[email protected]>
Signed-off-by: Tomasz Grzegorzek <[email protected]>
Signed-off-by: Tomasz Grzegorzek <[email protected]>
Signed-off-by: Tomasz Grzegorzek <[email protected]>
Signed-off-by: Tomasz Grzegorzek <[email protected]>
agronskiy
previously approved these changes
Jul 2, 2026
Signed-off-by: Tomasz Grzegorzek <[email protected]>
prokotg
enabled auto-merge (squash)
July 2, 2026 15:40
agronskiy
approved these changes
Jul 2, 2026
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.
Some benchmarks require custom preparation arguments. For example, RULER creates prompts based on the tokenizer to much their lengths to a given context length, which is a separate argument.
Currently, we need to create a separate script for each combination of tokenizer and model_length, example of which is
benchmarks/ruler/prepare_nemotron_3_256k.pywhich although is pretty compact requires additional filesNow we can provide provide via CLI to
ng_prepare_benchmark:Not in the scope of this MR (requires more changes vertically across stack). We could consider args to be passed in
BenchmarkDatasetConfigwith CLI taking precedence
At the same time, the old behaviour of a separate preparation script is operational