Browse Source

[update] random seed

jingyaogong 8 months ago
parent
commit
b1865f75c2
1 changed files with 0 additions and 1 deletions
  1. 0 1
      eval_llm.py

+ 0 - 1
eval_llm.py

@@ -67,7 +67,6 @@ def main():
     prompt_iter = prompts if input_mode == 0 else iter(lambda: input('💬: '), '')
     prompt_iter = prompts if input_mode == 0 else iter(lambda: input('💬: '), '')
     for prompt in prompt_iter:
     for prompt in prompt_iter:
         setup_seed(random.randint(0, 31415926))
         setup_seed(random.randint(0, 31415926))
-        setup_seed(42)
         if input_mode == 0: print(f'💬: {prompt}')
         if input_mode == 0: print(f'💬: {prompt}')
         conversation = conversation[-args.historys:] if args.historys else []
         conversation = conversation[-args.historys:] if args.historys else []
         conversation.append({"role": "user", "content": prompt})
         conversation.append({"role": "user", "content": prompt})