mirror of
https://github.com/huggingface/candle.git
synced 2025-06-21 04:10:46 +00:00
Add some KV cache to blip. (#1150)
* Add some KV cache to blip. * Mention BLIP in the readme.
This commit is contained in:
@ -296,7 +296,7 @@ impl BlipForConditionalGeneration {
|
||||
&self.vision_model
|
||||
}
|
||||
|
||||
pub fn text_decoder(&self) -> &blip_text::TextLMHeadModel {
|
||||
&self.text_decoder
|
||||
pub fn text_decoder(&mut self) -> &mut blip_text::TextLMHeadModel {
|
||||
&mut self.text_decoder
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user