Skip to content

Simplify function dispatch for linear attention#47450

Merged
Cyrilvallez merged 12 commits into
mainfrom
simplify-dispatch
Jul 22, 2026
Merged

Simplify function dispatch for linear attention#47450
Cyrilvallez merged 12 commits into
mainfrom
simplify-dispatch

Conversation

@Cyrilvallez

@Cyrilvallez Cyrilvallez commented Jul 21, 2026

Copy link
Copy Markdown
Member

CI

What does this PR do?

Supersedes #47294 without the kernels fallback for now, as it's the main pain point, and this will already unblock us a lot as it will lead to deduplication. Once we're ok on the other one, we'll be able to simply swap the decorators.

@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.

@github-actions

Copy link
Copy Markdown
Contributor

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

run-slow: qwen3_5, qwen3_5_moe, qwen3_next

@github-actions

Copy link
Copy Markdown
Contributor

CI recap

Dashboard: View test results in Grafana
Latest run: 29888743982:1
Result: success | Jobs: 15 | Tests: 172,430 | Failures: 0 | Duration: 14h 43m

@Cyrilvallez

Copy link
Copy Markdown
Member Author

Got offline approval from @vasqu! Merging this now to unblock me!

@Cyrilvallez
Cyrilvallez merged commit c77001f into main Jul 22, 2026
104 checks passed
@Cyrilvallez
Cyrilvallez deleted the simplify-dispatch branch July 22, 2026 04:29
SangbumChoi added a commit to SangbumChoi/transformers that referenced this pull request Jul 22, 2026
* upstream/main: (39 commits)
  Remove deprecated training args and `is_fast` property (huggingface#46917)
  Consistent output shape from `get_image_features` (huggingface#46405)
  Fix multi-device mxfp4 dequantization race in `_convert_moe_packed_tensors` (huggingface#47423)
  fix failed test cases for qwen3_omni_moe model (huggingface#47449)
  Fix Hunyuan-VL PIL image resize parity with reference preprocessing (huggingface#47233)
  Move `value` padding into the attention interfaces that need it (huggingface#47451)
  Simplify function dispatch for linear attention (huggingface#47450)
  [cache] Allow sliding window layers to be roll-backed for speculative decoding (huggingface#47447)
  Fix double-shifted training loss in GitForCausalLM (huggingface#47395)
  Fix CohereASR training-loss double-shift (same as Moonshine fix huggingface#46784) (huggingface#46895)
  Warn when `group_by_length` is silently ignored for iterable datasets (huggingface#47379)
  Update bug report list (huggingface#46607)
  Fix shape mismatch in KyutaiSpeechToText `generate()` last window (huggingface#46952)
  Optimize flash attention max seqlen computation in vision attention (huggingface#47170)
  fix: remove unreachable return in special token builder (huggingface#47420)
  Add Harry to slow CI (huggingface#47454)
  BLT: vectorize patch length processing (huggingface#47385)
  Fix `TrackioCallback` fails to log evaluation metrics after training ends (huggingface#46935)
  [Kimi] add integration tests (huggingface#47383)
  Fix typo in `MusicgenForCausalLM.generate()` (huggingface#46974)
  ...
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.

2 participants