transformers
Add assistant prefill for chat templates and TextGenerationPipeline
#33198
Merged

Add assistant prefill for chat templates and TextGenerationPipeline #33198

Rocketknight1 merged 16 commits into main from add_assistant_prefill
Rocketknight1
Rocketknight1 Add assistant prefill to chat templates
615a53b3
Rocketknight1 Add assistant prefill to pipeline
be2da746
Rocketknight1 Add assistant prefill to pipeline
d0a2169b
LysandreJik
HuggingFaceDocBuilderDev
Rocketknight1 Tweak another test that ended in assistant message
3116d68c
Rocketknight1 Update tests that ended in assistant messages
89e46e8b
Rocketknight1 Update tests that ended in assistant messages
a4daf436
Rocketknight1
DIYer22
Rocketknight1
Tostino
Rocketknight1 Replace assistant_prefill with continue_final_message
6f45c195
Rocketknight1 Allow passing continue_final_message to pipeline
e6fbac9e
Rocketknight1
Rocketknight1 Small fixup
7cd9ad40
Rocketknight1 Add continue_final_message as a pipeline kwarg
e465142b
Rocketknight1 Update docstrings
83a18741
Rocketknight1
Rocketknight1
LysandreJik
LysandreJik approved these changes on 2024-08-30
Rocketknight1 Move repos to hf-internal-testing!
b956b945
Rocketknight1 Update src/transformers/tokenization_utils_base.py
2758ad31
Rocketknight1 Add explanatory comment
2ce6a94e
Rocketknight1 make fixup
6658d073
Rocketknight1
Rocketknight1 Update chat templating docs to explain continue_last_message
e58a2d8e
LysandreJik
LysandreJik approved these changes on 2024-09-02
Rocketknight1 Rocketknight1 merged 52a02137 into main 1 year ago
Rocketknight1 Rocketknight1 deleted the add_assistant_prefill branch 1 year ago
Tostino
Rocketknight1
Tostino
Rocketknight1

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone