transformers.js
Cached generation improvements (+ past_key_values via pipeline function)
#1638
Merged

Cached generation improvements (+ past_key_values via pipeline function) #1638

xenova merged 15 commits into main from multimodal-pkv-improvements
xenova
xenova add `multi-turn with past_key_values matches without` test
a7b566d2
xenova Add dynamic cache sequence length retrieval test
7a6e867f
xenova sequence length = 0 if empty
1b9a414e
xenova Create DynamicCache update method
83a06e90
xenova Remove private PreTrainedModel functions & use new methods
e63e3075
HuggingFaceDocBuilderDev
xenova xenova requested a review from nico-martin nico-martin 39 days ago
xenova
xenova Align with python transformers: load_audio instead of read_audio
04aff517
nico-martin
nico-martin commented on 2026-04-10
xenova Add past_key_values to possible generation config parameters
cbfd1db4
xenova Add test case for past_key_values type
9960f76b
xenova Type improvements
b965057e
xenova Far better error messages!
f3731ee9
xenova Improve typescript tests
f95f3720
xenova Apply same typescript improvements to other pipelines
afe4d61f
xenova new typescript tests
e3460168
xenova
xenova Update preprocess.js
58405777
xenova improve error message
00a8fb52
nico-martin
nico-martin approved these changes on 2026-04-13
xenova xenova merged 8d615c5a into main 36 days ago
xenova xenova deleted the multimodal-pkv-improvements branch 36 days ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone