[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:
Radamés Ajna
2023-10-25 23:24:02 -07:00
committed by GitHub
parent e7b886d56f
commit e5dc8cb4f4
12 changed files with 790 additions and 10 deletions

View File

@ -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();
}
}