Repository navigation
Remove production checkpoint revision gates - #676
Merged
Merged
Conversation
Restore normal Hugging Face revision semantics for Transformers builds and route Qwen4Exp GGUF fail-closed checks by detected architecture and tensor contract instead of repository, revision, or shard identity. Keep immutable checkpoint details in tests and evidence documentation only. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Justin Chu <[email protected]>
Performance Comparison
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR removes the hard-coded “production checkpoint” revision and artifact identity gates, restoring standard Hugging Face behavior: revision=None uses the Hub default, and explicit revisions are forwarded unchanged. It also keeps Qwen4Exp GGUF handling fail-closed based on detected architecture plus metadata/tensor-layout validation, while retaining immutable pins only as evidence.
Changes:
- Removed pinned revision enforcement for the Transformers builder and added regression tests for explicit/None revision forwarding.
- Removed Qwen4Exp GGUF repo/revision/filename/size/hash gates, keeping header-based contract validation and explicit payload rejection.
- Updated documentation and error strings from “pinned” to “supported/evidenced” wording.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| testdata/cases/causal-lm/qwen3.8-flash-next-fp8.yaml | Updates skip_reason wording from pinned → evidenced. |
| src/mobius/models/qwen4_exp.py | Adjusts validation/error text to describe supported layout rather than pinned checkpoint. |
| src/mobius/models/qwen4_exp_test.py | Updates regex expectation for revised error wording. |
| src/mobius/integrations/transformers/_builder.py | Removes pinned revision gate and updates one fp8_kv_cache error message. |
| src/mobius/integrations/transformers/_builder_test.py | Adds tests ensuring explicit revision forwarding and that None stays “Hub default”. |
| src/mobius/integrations/gguf/_qwen4_exp.py | Removes pinned Hub identity gates; retains tensor-contract validation + payload rejection. |
| src/mobius/integrations/gguf/_qwen4_exp_test.py | Reworks tests to validate contract behavior without pinned Hub identity enforcement. |
| src/mobius/integrations/gguf/_builder.py | Removes strict “never fallback-download” preflight policy for the formerly pinned Qwen4Exp repo; now rejects qwen4exp via reject_qwen4exp_payload(). |
| docs/design/qwen4-exp-text-core.md | Updates narrative from pinned → evidenced and describes revised revision/payload policy. |
Suppressed comments (1)
src/mobius/integrations/gguf/_builder.py:584
- _preflight_hf_gguf_file() now falls back to
_GGUFPreflightFallbackRevisionon bounded header transport errors/truncation, which leads_resolve_gguf_path_implto download the full GGUF later. Forgeneral.architecture=qwen4exp, the import path is designed to fail-closed, so this fallback can trigger a large Hub download before we ultimately raiseQwen4ExpGGUFImportError, contradicting the “no payload was downloaded” messaging/docs and increasing CI/user cost on transient range failures.
except _HUB_PREFLIGHT_TRANSPORT_ERRORS as error:
logger.warning(
"Bounded GGUF header range read failed for %s (%s); downloading the "
"same immutable revision and validating its local header before dispatch.",
source,
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
105
to
106
| Payload conversion deliberately fails before Hub download. The combined PLE | ||
| table is an enormous IQ4_NL embedding for which the graph has no compatible |
Comment on lines
52
to
57
| @@ -103,72 +57,15 @@ def _payload_blocker(*, keep_quantized: bool) -> Qwen4ExpGGUFImportError: | |||
| ) | |||
| from mobius.integrations.gguf._tensor_mapping import map_gguf_to_hf_names | ||
| from mobius.models.qwen4_exp import _build_layer_multipliers, _find_nth_prime_after | ||
|
|
||
| _EVIDENCE_REPO = "unsloth/Qwen3.8-Flash-Next-GGUF" |
| from mobius.models.qwen4_exp import _build_layer_multipliers, _find_nth_prime_after | ||
|
|
||
| _EVIDENCE_REPO = "unsloth/Qwen3.8-Flash-Next-GGUF" | ||
| _EVIDENCE_REVISION = "d3bc75ee6ccef3efc1e228ec00a6cc2cdb1e2249" |
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.
Summary
Validation
python -m pytest src/mobius/integrations/transformers/_builder_test.py src/mobius/integrations/gguf/_qwen4_exp_test.py src/mobius/models/qwen4_exp_test.py -q --tb=shortpython -m pytest tests/cli_test.py src/mobius/integrations/_weight_loading_test.py src/mobius/integrations/compressed_tensors/_loader_test.py src/mobius/integrations/transformers/_builder_test.py src/mobius/integrations/gguf/_qwen4_exp_test.py -q --tb=shortpython -m pytest tests/build_graph_test.py tests/cli_test.py src/ -q -k "not phi4mm and not apply_weights_unknown" --tb=shortlintrunner f --output oneline --all-files