• NielsRogge's avatar
    Add BLIP-2 (#21441) · d7f1e7c0
    NielsRogge authored
    
    
    * First draft
    
    * More improvements
    
    * More improvements
    
    * Improve conversion script
    
    * Convert all weights
    
    * Make forward pass work
    
    * Make logits match
    
    * More improvements
    
    * More improvements
    
    * More improvements
    
    * Use get_input_embeddings
    
    * Improve some more
    
    * Improve model tests
    
    * Improve model tests
    
    * More improvements
    
    * Fix processor
    
    * Update files
    
    * Update prepare_inputs_for_generation
    
    * More improvements
    
    * Fix copies
    
    * More fixes
    
    * Make fixup
    
    * More improvements
    
    * Add support for seq2seq language model
    
    * More improvements
    
    * Fix test
    
    * More improvements
    
    * Improve conversion script
    
    * Remove some todo's
    
    * Fix README's
    
    * Improve conversion script
    
    * Fix generation
    
    * Fix style and remove Blip2Model
    
    * Fix model outputs
    
    * More improvements
    
    * Set eos_token_id in config
    
    * Fix quality
    
    * Small improvements
    
    * Add processor tests
    
    * More improvements
    
    * Apply suggestions
    
    * Apply suggestions
    
    * Add integration test
    
    * Update image URL
    
    * Add integration test
    
    * Fix model_type
    
    * Update style
    
    * Improve docs
    
    * Add doc tests
    
    * Fix copies
    
    * Remove tests which are passing
    
    * Improve some more
    
    * Add tests for seq2seq language models
    
    * Minor fix
    
    * Convert more checkpoints
    
    * finalize CI
    
    * Fix blip and blip2 processors
    
    * add `accelerate` support for `blip2`
    
    * clean up
    
    * make style
    
    * Update conversion script
    
    * Update conversion script some more
    
    * Update organization
    
    * revert toc file
    
    * add blip-2 to toc file
    
    * Some more improvements
    
    * Fix docstring
    
    * Improve docs
    
    ---------
    Co-authored-by: default avatarydshieh <ydshieh@users.noreply.github.com>
    Co-authored-by: default avataryounesbelkada <younesbelkada@gmail.com>
    d7f1e7c0
index.mdx 75.6 KB