[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

@ -1,8 +1,9 @@
use super::with_tracing::{linear, Embedding, Linear};
use candle::{Module, Result, Tensor, D};
use candle_nn::{layer_norm, LayerNorm, VarBuilder};
use serde::Deserialize;
#[derive(Debug, Clone)]
#[derive(Debug, Clone, Deserialize)]
pub struct Config {
pub vocab_size: usize,
pub hidden_size: usize,