llama: set manual_seed (#14409)

This commit is contained in:
nimlgen
2026-01-29 01:40:00 +03:00
committed by GitHub
parent 0870ed28b1
commit aec1ae0de1
2 changed files with 3 additions and 1 deletions

View File

@@ -1321,6 +1321,8 @@ def train_llama3():
opt_base_learning_rate = LR
opt_end_learning_rate = END_LR
Tensor.manual_seed(SEED) # seed for weight initialization
# ** init wandb **
WANDB = getenv("WANDB")
if WANDB:

View File

@@ -22,7 +22,7 @@ export LR="2.5e-4" END_LR="2.5e-5" WARMUP_SAMPLES=256 MAX_STEPS=1200000
export WARMUP_STEPS=$((WARMUP_SAMPLES / GBS))
export SAMPLES=$((MAX_STEPS * GBS))
export SEED=5760
export SEED=${SEED:-5760}
export JITBEAM=${JITBEAM:-3}
export BEAM_UOPS_MAX=6000 BEAM_UPCAST_MAX=256 BEAM_LOCAL_MAX=1024 BEAM_MIN_PROGRESS=5