Skip to content

Commit

Permalink
fix: max_tokens typo in Mistral Chat (#740)
Browse files Browse the repository at this point in the history
  • Loading branch information
vish9812 authored May 23, 2024
1 parent 31e61b7 commit 63cf323
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def __init__(self, generation_kwargs: Dict[str, Any]):
self.prompt_handler = DefaultPromptHandler(
tokenizer=tokenizer,
model_max_length=model_max_length,
max_length=self.generation_kwargs.get("max_gen_len") or 512,
max_length=self.generation_kwargs.get("max_tokens") or 512,
)

def prepare_body(self, messages: List[ChatMessage], **inference_kwargs) -> Dict[str, Any]:
Expand Down

0 comments on commit 63cf323

Please sign in to comment.