From 59f00288f249bf5d357a37c31e345c94b89bbc66 Mon Sep 17 00:00:00 2001 From: cryscan Date: Sun, 25 Feb 2024 15:30:38 +0800 Subject: [PATCH] Update `web-rwkv` to v0.6.21 --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- src/main.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 76f377a8..66c8315a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2376,9 +2376,9 @@ checksum = "4f186bd2dcf04330886ce82d6f33dd75a7bfcf69ecf5763b89fcde53b6ac9838" [[package]] name = "web-rwkv" -version = "0.6.20" +version = "0.6.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e85eb33924f1b576d0d2f16386499fc45d946465fd92c32bb3ce0924a3a39387" +checksum = "6b60d41fa74e91e1cb80b4bbd056fd2ad78c97eae30de067bf8c4c59045873d4" dependencies = [ "ahash", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index 602c079e..d1e3ab22 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ rust-version = "1.75" name = "converter" [dependencies] -web-rwkv = "0.6.20" +web-rwkv = "0.6.21" # web-rwkv = { git = "https://github.com/cryscan/web-rwkv", tag = "v0.6.5" } web-rwkv-converter = "0.1.1" tower = { version = "0.4.13", features = ["full"] } diff --git a/src/main.rs b/src/main.rs index a622d663..91bbd298 100644 --- a/src/main.rs +++ b/src/main.rs @@ -413,7 +413,7 @@ async fn model_route(receiver: Receiver) -> Result<()> { let file = File::open(&request.model_path)?; let data = unsafe { Mmap::map(&file)? }; let model = SafeTensors::deserialize(&data)?; - let info = Loader::info(&model).await?; + let info = Loader::info(&model)?; log::info!("{:#?}", info); let context = create_context(request.adapter, &info).await?;