Skip to content

Commit

Permalink
cahce
Browse files Browse the repository at this point in the history
  • Loading branch information
cassanof committed Aug 28, 2023
1 parent 3fec014 commit be7fb52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions programming_runs/generators/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ def generate_chat(self, messages: List[Message], max_tokens: int = 1024, tempera
prompt,
max_new_tokens=min(
max_tokens, self.model.config.max_position_embeddings),
use_cache=True,
do_sample=True,
temperature=temperature,
top_p=0.95,
Expand Down

0 comments on commit be7fb52

Please sign in to comment.