Scripts: pr_check refuses Code Llama, Codestral, QwQ and the like #1137
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1137
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1137/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@emirduran707 on GitHub · 2026-11-24 12:22 UTC · original
emirduran707:pr-check-model-names→main· +23 −1 · 2 files · 1 commits · merged 2026-11-24 15:50 UTCCONTRIBUTING.md refuses PRs written with small and open-weight models, and
pr_check.pyenforces this by matching model names in the AI use section. The pattern\b(qwen|deepseek|llama|mistral|mixtral|gemma|phi-?\d)misses common names in these families:CodeLlama,TinyLlamaandCodeQwen: no word boundary beforellamaorqwen.QwQ.Codestral,Devstral,Magistral,MinistralandPixtral.Phi 4, written with a space.The PR that names one of these models passes the check.
What is in it
scripts/pr_check.py:BANNED_MODELSalso matches a prefix beforeqwenandllama, plusqwq, the*stralnames andphifollowed by a space and a digit.scripts/test_pr_check.py:BannedModelTests.This PR does not touch where the text is read from. #835 changes that, and the two PRs touch different lines.
Tested
python -m unittest discover -s scripts -p "test_*.py": OK, with the 11 subtests ofBannedModelTestsincluded.pr_check.py, 9 of these subtests fail: all nine family names pass the check.Llama 3,phi-4,Phi 4,QwQ-32B.Australia,graphite,philosophy,sophisticated 3D,alpha 2,GPT-5 and Gemini 3.Not tested
PR checksworkflow on GitHub itself; it runs this file from main once the PR is merged.AI use
🤖 Generated with Claude Code
@DavidM1911 on GitHub · 2026-11-24 12:52 UTC · original
Independent verification on current
main384f7f7(branch already contains it — clean).Machine: Windows 11, Ryzen 9 7900X; Python 3.
python scripts/test_pr_check.py: 11 tests OK — the banned-model regex now also covers Code Llama, Codestral, QwQ and similar, with tests for each.AI use: test runs by Devin (Cognition, SWE-2); no code changes.
@futurepro62 on GitHub · 2026-11-24 14:15 UTC · original
Tested exact head
38283a8, script tests only, since this PR has no test report yet.Tested
python -m pytest scripts/test_pr_check.pyat the head: 11 passed, 23 subtests passed.930e8b4): 9 subtests oftest_family_names_of_small_and_open_weight_models_are_refusedfail (e.g.CodeLlama 34B,Codestral 22B,QwQ-32B,Phi 4). So the new test catches the problem the PR fixes.Not tested
AI use