transformers
b469ebc5
- Prepend `bos token` to Blip generations (#29642)
Go
Login via GitHub
Home
Pricing
FAQ
Install
Login
via GitHub
Commit
View On
GitHub
Hide Minimap (CTRL+M)
Commit
1 year ago
Prepend `bos token` to Blip generations (#29642) * prepend "bos" to blip generation * minor changes * Update src/transformers/models/blip_2/modeling_blip_2.py Co-authored-by: Joao Gante <joaofranciscocardosogante@gmail.com> * Update src/transformers/models/instructblip/modeling_instructblip.py Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com> * add generation tester mixin --------- Co-authored-by: Joao Gante <joaofranciscocardosogante@gmail.com> Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>
References
#32831 - [Docs] Update resources
#29969 - [SigLIP] Add fast tokenizer
#38622 - [AutoModelForMaskGeneration] Remove duplicate code
#33111 - [Backbone] Remove out_features everywhere
#33174 - [Zero-shot image classification pipeline] Remove tokenizer_kwargs
#29642 - Prepend `bos token` to Blip generations
Author
zucchini-nlp
Parents
ee38fc31
Files
4
src/transformers/models
blip_2
modeling_blip_2.py
instructblip
modeling_instructblip.py
tests/models
blip_2
test_modeling_blip_2.py
instructblip
test_modeling_instructblip.py
Loading