Repository navigation
Give every model-parametrized test case a consistent id - #8563
Merged
Merged
Conversation
Each model keeps the same pytest id in every test (qwen2.5, llama3.2, qwen3.5-think, deepseek-v3-0528, ...), and chat template variants follow the same form (qwen3.8-v2). Bare repo strings and tuples become pytest.param with an id. AGENTS.md states the rule.
…-ids # Conflicts: # tests/test_chat_template_utils.py
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
…-ids # Conflicts: # tests/test_chat_template_utils.py
This was referenced Nov 24, 2026
albertvillanova
approved these changes
Nov 25, 2026
albertvillanova
left a comment
Member
There was a problem hiding this comment.
Thanks!
tests/test_sft_trainer.pyconflicts with main after #8536: keepid="qwen3-vl"with main'smarks=.- Nit:
AGENTS.mdcould say that chat-template cases are named after the template (qwen3.8-v2), since one model can carry several template ids.
…-ids # Conflicts: # tests/test_chat_template_utils.py # tests/test_sft_trainer.py
Member
Author
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.
Model-parametrized tests now give every case an explicit id, and a model has the same id in every test. Before, some cases had no id (
test_train[trl-internal-testing/tiny-Qwen2ForCausalLM-2.5]) and the same model went by several names (qwen38,qwen38_v2,qwen3.8-v2;llama32,llama3.2;glm4moe,glm4-moe).qwen2.5,qwen2.5-vl,qwen3.5-think,deepseek-v3-0528. Chat template variants follow the same form:qwen3.8-v2,deepseek-v3-v4.AGENTS.mdstates the rule. Test ids change, test count doesn't (4887 collected before and after).pytest tests/test_sft_trainer.py -k "qwen3.5-nothink" --collect-only -qNote
Low Risk
Test-only parametrization and AGENTS.md documentation; no runtime or trainer logic changes.
Overview
Standardizes how model- and template-parametrized tests appear in pytest by giving every case an explicit
pytest.param(..., id="...")and aligning ids across the suite (e.g.qwen2.5,qwen3.5-think,deepseek-v3-0528,qwen3.8-v2for chat-template variants). Previously some cases used long Hub paths or inconsistent ids (qwen38vsqwen3.8-v2,glm4moevsglm4-moe)..ai/AGENTS.mdnow documents the naming rule so new parametrizations stay consistent.Touched files are mostly under
tests/(trainers, chat templates, data utils, experimental trainers): plain string/tuple parametrization entries are converted topytest.paramwith ids; multi-argument cases (e.g.qwen2.5-instantiated, MoE LoRA matrix ids) get descriptive suffixes where needed. No test behavior or production code changes—only collection names and contributor guidance.Reviewed by Cursor Bugbot for commit b89b9f2. Bugbot is set up for automated code reviews on this repo. Configure here.