mirror of
https://github.com/huggingface/candle.git
synced 2025-06-20 04:00:28 +00:00
Wasm llama2 tweaks (#309)
* Clean-up the llama2.c wasm example. * Use a proper tokenizer.
This commit is contained in:
@ -53,7 +53,7 @@ pub struct App {
|
||||
}
|
||||
|
||||
async fn model_data_load() -> Result<ModelData, JsValue> {
|
||||
let tokenizer = fetch_url("tokenizer.bin").await?;
|
||||
let tokenizer = fetch_url("tokenizer.json").await?;
|
||||
let model = fetch_url("model.bin").await?;
|
||||
console_log!("{}", model.len());
|
||||
Ok(ModelData { tokenizer, model })
|
||||
|
Reference in New Issue
Block a user