Upload train_hyper.py
Browse files101 unmodified lines102103104105106107108109110111101 unmodified lines# ── P1: GrowLengthif args.growlength:stages = [(max(8, args.seq_len // 4), 0.30),(max(16, args.seq_len // 2), 0.30),(args.seq_len, 0.40),]grow = GrowLengthScheduler(stages, args.max_steps)initial_seq = stages[0][0]101 unmodified lines102103104105106107108109110111112113114115101 unmodified lines# ── P1: GrowLengthif args.growlength:# FIX: The old schedule spent 30% of training at seq=16 (seq_len//4) —# far too short for the model to learn any language structure.# New schedule: 10% at half-length (warmup), 90% at full length.# This preserves the GrowLength throughput benefit during warmup# while giving the model real sentences for the bulk of training.stages = [(max(16, args.seq_len // 2), 0.10),(args.seq_len, 0.90),]grow = GrowLengthScheduler(stages, args.max_steps)initial_seq = stages[0][0]
train_hyper.py+7-3