Repository navigation
[pull] main from huggingface:main - #10
Merged
Merged
Conversation
…48676) [GLM5 Next] Preserve original text checkpoint names Register the GLM5 Next conversion mapping for the standalone text model type. This keeps saved checkpoints compatible with the released tensor layout. Add regression coverage for mHC, KDA, and routed expert keys. Signed-off-by: Shijin Zhang <[email protected]>
kernels-community/activation now ships an XPU backend, so map the six layers it provides to XPU as well. They were previously registered for CUDA only, which left XPU on the eager fallback. FastGELU, NewGELU and QuickGELU have no native PyTorch operator and expand into several element-wise launches in eager mode, so the fused kernel is several times faster. SiLU, GeLU and GeluTanh are on par with eager and are mapped for parity with CUDA. Co-authored-by: regisss <[email protected]>
…shapes (#48578) * Mirror the registered pytree flatten when building automatic dynamic shapes `get_auto_dynamic_shapes` treated every object with a `__dict__` as flattening to a flat list of tensors, which is true only for the `Cache` subclasses the exporter registers itself. A `ModelOutput` is registered by transformers with the standard dict-like flatten, so `torch.export` expects one child per field -- and a field holding a tuple keeps that tuple in the tree spec. Passing a `ModelOutput` as a generate kwarg therefore failed with `Node arity mismatch; expected 2, but got 3`. Ask the pytree registry for the flatten instead of assuming one: caches still yield a flat list, outputs keep their nesting. Co-Authored-By: Claude Opus 5 <[email protected]> * skip --------- Co-authored-by: Claude Opus 5 <[email protected]>
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )