python3 - <<'PY' import re,urllib.request,statistics as st def go(rid,url): r=urllib.request.urlopen(url,timeout=120).read().decode('utf-8','replace') L=r.splitlines() fo=len(L) for i,x in enumerate(L): if x.startswith('step:'): fo=i break S=L[:fo] so6=[] for i,x in enumerate(S): if 'def step_optimizers' in x: B=S[i:][:30] jj=-1 for j,y in enumerate(B): if 'step%2==0' in y or 'step % 2 == 0' in y: jj=j break if jj>=0: so6=B[jj:][:7] break par=[] pat=''.join([chr(37),' 2']) for x in S: if pat in x: par.append(x.strip()[:90]) sraw='' for x in S: if 'train_bs_schedule' in x and '=' in x: sraw=x.split('=',1)[1].strip().strip('()') break sch=[] for t in sraw.split(','): try: sch.append(int(eval(t))) except: sch.append(-1) def num(name): for x in S: if name in x and '=' in x: t=x.split('=',1)[1].strip().split(chr(35))[0].strip() try: return int(eval(t)) except: pass return -1 ns=num('num_scheduled_iterations') ex=num('train_bs_extension') ni=num('num_iterations') tr=[] nv=0 pv=False for x in L: m=re.match(r'^step:([0-9][0-9]*)/[0-9][0-9]* train_time:([0-9][0-9]*)ms',x) if m: tr.append((int(m.group(1)),int(m.group(2)),pv)) pv=False else: m=re.match(r'^step:([0-9][0-9]*)/[0-9][0-9]* val_loss:',x) if m: nv=nv.__add__(1) pv=True elif x.strip(): pv=False N=tr[-1][0] cum={} fl={} cl={} for a,b,c in tr: cum[a]=b fl[a]=c for x in L: m=re.match(r'^step:([0-9][0-9]*)/[0-9][0-9]* train_time:([0-9][0-9]*)ms',x) if m: cl[int(m.group(1))]=x.strip() dr=[] for k in sorted(cum)[1:]: if k-1 in cum: s=k-1 ph=0 if sch and ns>0 and s100] ovv=[k for k,d,f,ph in dr if d>100 and f] c125=sum(1 for k,d,f,ph in dr if pmed[ph] is not None and d>1.25*pmed[ph]) ph1=[(k,d) for k,d,f,ph in dr if ph==0] odd=[d for k,d in ph1 if (k-1)&1==1] even=[d for k,d in ph1 if (k-1)&1==0] slow=[(k,k<=10,fl[k],ph) for k,d,f,ph in dr if d==mx] bnd=[] for p in ps: ks=[k for k,d,f,ph in dr if ph==p] bnd.append((p,min(ks),max(ks))) print('===',rid,'N',N,'nt',len(tr),'nv',nv,'ni',ni,'ns',ns,'ex',ex,'sch',sch) print('phcnt',pcnt,'pmed',pmed) print('ratio',(pmed[len(sch)-1]/pmed[0]) if (sch and pmed.get(0)) else None) print('max',mx,'ml',ml,'top',[(k,d) for k,d,f,ph in top]) print('bnd',bnd) print('o100',len(ov),'olab',ov[:80],'o100v',len(ovv),'vlab',ovv[:40]) print('c125',c125) print('ph1odd',st.median(odd) if odd else None,len(odd),'ph1even',st.median(even) if even else None,len(even)) print('slow',slow) print('par',par[:4]) print('p6',[y.strip()[:80] for y in so6]) for k in sorted(set(ml)|{k for k,d,f,ph in top}): print('raw',k,'|',cl.get(k-1,'?')[:60],'|',cl.get(k,'?')[:60]) for k in ovv[:5]: print('rv',k,'|',cl.get(k-1,'?')[:60],'|',cl.get(k,'?')[:60]) for p,ka,kb in bnd: print('rb',p,ka,'|',cl.get(ka-1,'?')[:60],'|',cl.get(ka,'?')[:60]) go(50,'https://raw.githubusercontent.com/KellerJordan/modded-nanogpt/master/records/track_1_short/2025-12-18_CautiousWDAdam/1981d492-bc65-4ba9-a0fa-2b30fc5c3eba.txt') go(51,'https://raw.githubusercontent.com/KellerJordan/modded-nanogpt/master/records/track_1_short/2025-12-19_RetieLMHead/0828d309-ecfe-4442-9ee9-68fed3a4b599.txt') go(52,'https://raw.githubusercontent.com/KellerJordan/modded-nanogpt/master/records/track_1_short/2025-12-21_SmoothedScalars/12-21-Smoothed-Scalars/0bc6e909-8ee8-4ae3-ac62-0070e151a808.txt') go(53,'https://raw.githubusercontent.com/KellerJordan/modded-nanogpt/master/records/track_1_short/2025-12-22_MultiTokenPrediction/17aaf854-f338-4d0d-9767-a5db30fd7980.txt') go(54,'https://raw.githubusercontent.com/KellerJordan/modded-nanogpt/master/records/track_1_short/2025-12-26_LogitRescale/03e41c2d-2951-4546-a599-24cd723247fc.txt') go(55,'https://raw.githubusercontent.com/KellerJordan/modded-nanogpt/master/records/track_1_short/2025-12-29_VeSkipGates/2851d7dc-d6a5-4e74-8623-57031425db16.txt') PY