transformers
Fix static-cache generate() with host-side inputs and under TP
#49317
Merged

Fix static-cache generate() with host-side inputs and under TP #49317

dacorvo
dacorvo fix(generation): move tensors nested in a dict input to the device
c955cf6d
dacorvo refactor(generation): return early from the static cache init shape w…
aebd7eaa
dacorvo fix(generation): size the early static cache by the heads each rank h…
b026fa7d
HuggingFaceDocBuilderDev
vasqu
vasqu commented on 2026-10-05
dacorvo Merge branch 'main' into fix-generate-dict-masks-and-tp-cache-heads
5f4fdb60
dacorvo refactor(generation): address review on nested inputs and TP KV heads
9bb04824
dacorvo Merge branch 'main' into fix-generate-dict-masks-and-tp-cache-heads
1f4df270
dacorvo dacorvo requested a review from vasqu vasqu 47 days ago
vasqu
vasqu commented on 2026-10-06
dacorvo refactor: move the device helper into GenerationMixin and the key pro…
5fa702f1
dacorvo Merge branch 'main' into fix-generate-dict-masks-and-tp-cache-heads
5f847c3f
dacorvo dacorvo requested a review from vasqu vasqu 47 days ago
dacorvo Merge branch 'main' into fix-generate-dict-masks-and-tp-cache-heads
478c9ed1
dacorvo Merge branch 'main' into fix-generate-dict-masks-and-tp-cache-heads
2318b933
dacorvo Merge branch 'main' into fix-generate-dict-masks-and-tp-cache-heads
04177092
kaixuanliu
dacorvo Merge branch 'main' into fix-generate-dict-masks-and-tp-cache-heads
ce90dec9
vasqu vasqu requested a review from ArthurZucker ArthurZucker 45 days ago
dacorvo
dacorvo dacorvo requested a review from 3outeille 3outeille 41 days ago
Cyrilvallez
Cyrilvallez commented on 2026-10-13
dacorvo Merge branch 'main' into fix-generate-dict-masks-and-tp-cache-heads
5c7aea9e
dacorvo review: move the device helper to pytorch_utils
a51dd473
dacorvo dacorvo requested a review from Cyrilvallez Cyrilvallez 40 days ago
dacorvo Merge branch 'main' into fix-generate-dict-masks-and-tp-cache-heads
e8741351
dacorvo
dacorvo Merge branch 'main' into fix-generate-dict-masks-and-tp-cache-heads
f0ee84bc
github-actions
vasqu
vasqu approved these changes on 2026-10-14
dacorvo dacorvo merged 245167e0 into main 39 days ago
dacorvo dacorvo deleted the fix-generate-dict-masks-and-tp-cache-heads branch 39 days ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone