mirror of
https://github.com/huggingface/candle.git
synced 2025-06-21 12:20:46 +00:00
[Wasm] BLIP Example (#1183)
* blip wasm start * fix dependency issue, move token stream here * vanilla js worker * roll back vscode * spell
This commit is contained in:
@ -255,4 +255,7 @@ impl BlipForConditionalGeneration {
|
||||
pub fn text_decoder(&mut self) -> &mut blip_text::TextLMHeadModel {
|
||||
&mut self.text_decoder
|
||||
}
|
||||
pub fn reset_kv_cache(&mut self) {
|
||||
self.text_decoder.reset_kv_cache();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user