mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-01-08 01:30:02 +01:00
Fix random seeds being saved to settings.yaml
This commit is contained in:
parent
df98f4b331
commit
efd9c9707b
|
|
@ -479,6 +479,7 @@ def generate_reply_custom(question, original_question, state, stopping_strings=N
|
|||
For models that do not use the transformers library for sampling
|
||||
"""
|
||||
|
||||
state = copy.deepcopy(state)
|
||||
state['seed'] = set_manual_seed(state['seed'])
|
||||
t0 = time.time()
|
||||
reply = ''
|
||||
|
|
|
|||
Loading…
Reference in a new issue