Skip to content

Commit

Permalink
Update to web-rwkv v0.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
cryscan committed Aug 28, 2023
1 parent 454ed31 commit 2f16b57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,10 +362,7 @@ fn model_task(
if embedding {
let num_layer = model.info().num_layers;
// let embedding = back.0[num_layer - 3][4 * num_emb..].to_vec();
let embedding = back
.state
.as_slice((.., 5 * (num_layer - 3) + 4, ..))?
.to_vec();
let embedding = back.as_slice((.., 5 * (num_layer - 3) + 4, ..))?.to_vec();
let _ = token_sender.send(Token::Embed(embedding));
}

Expand Down

0 comments on commit 2f16b57

Please sign in to comment.