Skip to content

[Kernels] Sync to latest version and add new kernels (SwiGLU, CE)#46039

Draft
vasqu wants to merge 6 commits into
huggingface:mainfrom
vasqu:causallm-kernels
Draft

[Kernels] Sync to latest version and add new kernels (SwiGLU, CE)#46039
vasqu wants to merge 6 commits into
huggingface:mainfrom
vasqu:causallm-kernels

Conversation

@vasqu
Copy link
Copy Markdown
Contributor

@vasqu vasqu commented May 18, 2026

WIP

image

@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Copy Markdown
Collaborator

@ArthurZucker ArthurZucker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks nice!

Copy link
Copy Markdown
Collaborator

@ArthurZucker ArthurZucker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW make sure to put benches on perfs wins /. doc

@vasqu
Copy link
Copy Markdown
Contributor Author

vasqu commented May 19, 2026

Yep, will do 🫡 thinking about memory benchmarks mostly since this is the key behind the new loss kernel from liger

vasqu added 3 commits May 29, 2026 21:29
i red herred that maybe the registry was not properly working for fn repos, but thats all fine. still need small upstream changes tho
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 1, 2026

[For maintainers] Suggested jobs to run (before merge)

run-slow: llama, llama4

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 1, 2026

View the CircleCI Test Summary for this PR:

https://huggingface.co/spaces/transformers-community/circle-ci-viz?pr=46039&sha=cb0ef7

@vasqu vasqu changed the title [Kernels] Sync and add SwigluMLP + CausalLMLoss [Kernels] Sync to latest version and add new kernels (SwiGLU, CE) Jun 1, 2026
Billy1900 added a commit to Billy1900/sglang-omni that referenced this pull request Jun 3, 2026
…sglang 0.5.12

sglang==0.5.12 requires torch==2.11.0, torchaudio==2.11.0, and torchvision
(no hard pin from sglang, installs 0.26.0). Update all three in pyproject.toml
to match.

Also add kernels<0.15 to uv override-dependencies: kernels>=0.15 introduced a
breaking change (LayerRepository now requires version or revision) that is not
yet handled by transformers 5.6.0, causing sglang's hf_transformers_patches to
fail at import time. Tracked upstream at huggingface/transformers#46039.

Discovered while running unit tests against the upgraded stack.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants