Skip to content

🧠 两小时从 0 训出你的 64M 大模型。Train your own 64M LLM from scratch in 2 hours.

[update] random seed

jingyaogongb1865f75c203
diff --git a/eval_llm.py b/eval_llm.py
index 5ed8f62..9359ca8 100755
--- a/eval_llm.py
+++ b/eval_llm.py
@@ -67,7 +67,6 @@ def main():
prompt_iter = prompts if input_mode == 0 else iter(lambda: input('💬: '), '')
for prompt in prompt_iter:
setup_seed(random.randint(0, 31415926))
- setup_seed(42)
if input_mode == 0: print(f'💬: {prompt}')
conversation = conversation[-args.historys:] if args.historys else []
conversation.append({"role": "user", "content": prompt})