Add few-shot prompting for base models and fix setting env vars #6
Open
hrdkbhatnagar wants to merge 7 commits intomainfrom
Open
Add few-shot prompting for base models and fix setting env vars #6hrdkbhatnagar wants to merge 7 commits intomainfrom
hrdkbhatnagar wants to merge 7 commits intomainfrom
Conversation
- Few-shot support for AIME2025, GPQA Main, GSM8K (not BFCL/HumanEval) - Add temperature, top_p, top_k, epochs args to all benchmarks - Fix baseline pipeline path issues
Collaborator
Author
|
Posting here for future, after more discussion: Let's postpone merging this PR with main until paper deadline. We need to change a few more things that could have conflicts with the main logic:
|
Collaborator
|
In general, I think for now we can let this live in a distinct branch. I don't think that we need to merge this right now. But if we want to merge this at some point, I think it requires some rework. To add to the above, there are the following points:
|
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.
Changes
Few-shot Support for Base Models:
src/eval/utils/fewshot_loader.py):src/eval/fewshot_examples/):aime2025.json- 3 examples from AIME 2024gpqamain.json- 3 graduate-level science examples--fewshot flag: auto (base models only), always, or never--num-fewshotto control number of examplesSampling Parameters:
Added to all benchmarks (GSM8K, AIME2025, GPQA Main, HumanEval, BFCL):
--temperature(default: 0.6)--top-p(default: 0.95)-top-k(default: 20)--epochsfor multiple runs per benchmark for standard devitations(Defaults follow Qwen's recommendation to avoid greedy decoding for base models.)
Qwen Base Model Template
src/eval/templates/qwen_base.jinja- simple template without chat tokens (<|im_start|>, etc.)Eval Configuration Tracking
All benchmarks now save
eval_config.jsonalongsidemetrics.jsoncontaining:Env variable setting fixes
set_env_vars.shto top ofrun_baseline.shRESULT_DIRabsolute forapptainer --bindPOST_TRAIN_BENCH_*vars frombaseline_cluster.sub(caused UNDEFINED in jobs)Testing