Fix random seeds being saved to settings.yaml

This commit is contained in:
oobabooga 2025-06-09 20:57:25 -07:00
parent df98f4b331
commit efd9c9707b

View file

@ -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 = ''