Repository navigation
[upstream #1137] Scripts: pr_check refuses Code Llama, Codestral, QwQ and the like - #25
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>
ufoptg
pushed a commit
that referenced
this pull request
Nov 24, 2026
…nment GetResourceAllocationInfo (#25) and GetResourceAllocationInfo2 (#108) laid several resources out one after another, each at its own alignment, but returned the end of the last one as the size. The PC's docs for GetResourceAllocationInfo with several descriptions: "the C++ algorithm for calculating a structure size and alignment are used" - a 4 MiB-aligned resource between two 64 KiB-aligned ones takes 12 MiB, first or last 8 MiB, the alignment 4 MiB. XCL answered 8 MiB + 64 KiB and 4 MiB + 128 KiB: a title sizing one heap for the group from it got a heap that does not end on the alignment its resources need. The arithmetic of both is now one function, `allocation_of`, which pads the total to the largest alignment when there is more than one resource. One resource's info is still the driver's or XG's as it is (#108 asks #25 for each one alone); the per-resource offsets #108 writes are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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. xcl-dev#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
Mirror of xcl-dev#1137 (auto-synced, do not edit).