mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2025-09-09 22:05:30 +00:00
fix temperature=0, flashinfer sample error
This commit is contained in:
parent
aac0c91d02
commit
ec03bcbd7f
1 changed files with 2 additions and 0 deletions
|
@ -367,6 +367,8 @@ class BalanceServeInterface(BackendInterfaceBase):
|
|||
#@TODO add server
|
||||
stop_criteria = [self.tokenizer.encode(self.tokenizer.eos_token, add_special_tokens=False),self.tokenizer.encode("<|im_end|>")]
|
||||
query_add.stop_criteria = stop_criteria
|
||||
if temperature == 0:
|
||||
temperature = 0.0001
|
||||
query_add.sample_options.temperature = temperature
|
||||
if top_p == 0:
|
||||
top_p = 0.0001
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue