Skip to content

Commit

Permalink
disable stop tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
rasbt committed May 20, 2024
1 parent 1df5180 commit b2ea42e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litgpt/deploy/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def predict(self, inputs: torch.Tensor) -> Any:
temperature=self.temperature,
top_k=self.top_k,
top_p=self.top_p,
stop_tokens=[self.tokenizer.decode(torch.tensor([self.tokenizer.eos_id]))]
# stop_tokens=[self.tokenizer.decode(torch.tensor([self.tokenizer.eos_id]))]
)

def encode_response(self, output):
Expand Down

0 comments on commit b2ea42e

Please sign in to comment.