mirror of
https://github.com/huggingface/candle.git
synced 2025-06-16 10:38:54 +00:00
Add a repeat penality to the llama2-c command line example. (#713)
* Add a repeat penality to the llama2-c command line example. * Another fix attempt.
This commit is contained in:
@ -25,7 +25,7 @@ impl Model {
|
||||
candle_transformers::utils::apply_repeat_penalty(
|
||||
&logits,
|
||||
self.repeat_penalty,
|
||||
&tokens[start_at..],
|
||||
&self.tokens[start_at..],
|
||||
)?
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user