Skip to content

Commit

Permalink
fix(llama): use </s> token if available for EOT
Browse files Browse the repository at this point in the history
  • Loading branch information
philpax committed Jul 5, 2023
1 parent 4177d5c commit 68cefa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/models/llama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ impl KnownModel for Llama {
}

fn eot_token_id(&self) -> TokenId {
2
self.tokenizer.id("</s>".as_bytes()).unwrap_or(2)
}

fn quantize_tensors() -> Vec<Regex> {
Expand Down

0 comments on commit 68cefa6

Please sign in to comment.