mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-03-06 05:33:50 +01:00
Fix the logits API endpoint with transformers
This commit is contained in:
parent
22141679e3
commit
64eb77e782
|
|
@ -84,6 +84,7 @@ def _get_next_logits(prompt, state, use_samplers, previous, top_logits=25, retur
|
|||
|
||||
state['max_new_tokens'] = 1
|
||||
state['auto_max_new_tokens'] = False
|
||||
state.setdefault('stream', True)
|
||||
for _ in generate_reply(prompt, state):
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue