Repository navigation
Scripts: pr_check refuses Code Llama, Codestral, QwQ and the like - #1137
Merged
Merged
Conversation
CONTRIBUTING.md closes PRs written with Qwen, DeepSeek, Llama, Mistral, Gemma, Phi and their distills, but the AI use pattern let their family names through: "CodeLlama" and "TinyLlama" have no word boundary before "llama", Mistral's Codestral / Devstral / Magistral / Ministral / Pixtral and Qwen's QwQ / CodeQwen were not listed, and "Phi 4" has a space where the pattern allowed only a hyphen. "llama" and "qwen" now match at the end of a word, the Mistral and Qwen family names are listed, and Phi takes a hyphen, a space or nothing before its version. The word boundary stays at the start, so "Phil", "alphabet" and frontier names (Claude, GPT, Gemini, Codex) still pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Independent verification on current Machine: Windows 11, Ryzen 9 7900X; Python 3.
AI use: test runs by Devin (Cognition, SWE-2); no code changes. |
|
Tested exact head Tested
Not tested
AI use
|
gustavsi
added a commit
to gustavsi/xcl
that referenced
this pull request
Nov 24, 2026
Brings in 20 newly merged upstream PRs (ivall#959, ivall#968, ivall#1079, ivall#1084, ivall#1091, ivall#1099, ivall#1127, ivall#1133, ivall#1137, ivall#1150, ivall#1211, ivall#1223, ivall#1224, ivall#1265, ivall#1289, ivall#1290, ivall#1330, ivall#1353, ivall#1354), including in-memory shader cache session fallback (ivall#1211), CPU-invisible resource Map filtering (ivall#1099), DRED partially executed list priority (ivall#1330), allocation info alignment padding (ivall#1354), and DirectStorage status/error/cancel fixes (ivall#1127, ivall#1223, ivall#1224).
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.
CONTRIBUTING.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