forked from huggingface/transformers
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Llava: add default chat templates (huggingface#31691)
* add default chat templates * Update src/transformers/models/llava/processing_llava.py Co-authored-by: amyeroberts <[email protected]> * Update src/transformers/models/llava_next/processing_llava_next.py Co-authored-by: amyeroberts <[email protected]> * more clear docstring and docs * Update docs/source/en/model_doc/llava.md Co-authored-by: NielsRogge <[email protected]> * Update docs/source/en/model_doc/llava_next.md Co-authored-by: NielsRogge <[email protected]> * Update docs/source/en/model_doc/vipllava.md Co-authored-by: NielsRogge <[email protected]> * add tests * remove default templates (see huggingface#31733) * load chat template from another file * Update docs/source/en/model_doc/llava_next.md Co-authored-by: amyeroberts <[email protected]> * revert some changes in docs * forgot vipllava * chat template file is not temporary hack * warn if loading from processor * not that file * similarly modify `save_pretrained` * Update tests/models/llava_next/test_processor_llava_next.py Co-authored-by: amyeroberts <[email protected]> * Update tests/models/vipllava/test_processor_vipllava.py Co-authored-by: amyeroberts <[email protected]> * Update docs/source/en/model_doc/vipllava.md Co-authored-by: amyeroberts <[email protected]> * Update src/transformers/processing_utils.py Co-authored-by: amyeroberts <[email protected]> * Update src/transformers/processing_utils.py Co-authored-by: amyeroberts <[email protected]> * Update docs/source/en/model_doc/vipllava.md Co-authored-by: amyeroberts <[email protected]> * Update docs/source/en/model_doc/llava.md Co-authored-by: amyeroberts <[email protected]> * Update docs/source/en/model_doc/llava.md Co-authored-by: amyeroberts <[email protected]> * Update docs/source/en/model_doc/llava_next.md Co-authored-by: amyeroberts <[email protected]> * Update docs/source/en/model_doc/llava_next.md Co-authored-by: amyeroberts <[email protected]> * Update src/transformers/processing_utils.py Co-authored-by: amyeroberts <[email protected]> * Update docs/source/en/model_doc/llava_next.md Co-authored-by: amyeroberts <[email protected]> * fix --------- Co-authored-by: amyeroberts <[email protected]> Co-authored-by: NielsRogge <[email protected]>
- Loading branch information
1 parent
511ec05
commit 282f7cc
Showing
8 changed files
with
318 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.