mirror of
https://github.com/deepseek-ai/DeepSeek-Coder
synced 2024-12-05 02:24:46 +00:00
Update app.py
This commit is contained in:
parent
5ca49c93b1
commit
ba9525ba14
@ -62,7 +62,7 @@ def generate(
|
|||||||
do_sample=False,
|
do_sample=False,
|
||||||
num_beams=1,
|
num_beams=1,
|
||||||
repetition_penalty=repetition_penalty,
|
repetition_penalty=repetition_penalty,
|
||||||
eos_token_id=32021
|
eos_token_id=tokenizer.eos_token_id
|
||||||
)
|
)
|
||||||
t = Thread(target=model.generate, kwargs=generate_kwargs)
|
t = Thread(target=model.generate, kwargs=generate_kwargs)
|
||||||
t.start()
|
t.start()
|
||||||
|
Loading…
Reference in New Issue
Block a user