Upload udgam2-base-v1/logs/20261011T052251_3isqvm3daaw4q2.log with huggingface_hub
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868[2026-10-11T05:17:07Z] pod 3isqvm3daaw4q2 run udgam2-base-v1 | deadline 2026-10-11T09:49:10Z | gpus 4[2026-10-11T05:19:02Z] data ready: A 110 files, B 27 files, 25G[2026-10-11T05:19:06Z] python env ready: torch 2.9.1+cu128 cuda True transformers 5.18.0[2026-10-11T05:19:15Z] torchrun attempt 1 on 4 GPUs W1011 05:19:16.400000 1494 torch/distributed/run.py:803] W1011 05:19:16.400000 1494 torch/distributed/run.py:803] *****************************************W1011 05:19:16.400000 1494 torch/distributed/run.py:803] Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed. W1011 05:19:16.400000 1494 torch/distributed/run.py:803] *****************************************2026-10-11 05:19:24,070 - httpx - [32m[1mINFO[0m - HTTP Request: GET https://huggingface.co/api/models/varunneal/flash-attention-3/revision/main "HTTP/1.1 200 OK"2026-10-11 05:19:24,075 - httpx - [32m[1mINFO[0m - HTTP Request: GET https://huggingface.co/api/models/varunneal/flash-attention-3/revision/main "HTTP/1.1 200 OK"2026-10-11 05:19:24,078 - httpx - [32m[1mINFO[0m - HTTP Request: GET https://huggingface.co/api/models/varunneal/flash-attention-3/revision/main "HTTP/1.1 200 OK"2026-10-11 05:19:24,079 - httpx - [32m[1mINFO[0m - HTTP Request: GET https://huggingface.co/api/models/varunneal/flash-attention-3/revision/main "HTTP/1.1 200 OK"2026-10-11 05:19:24,127 - httpx - [32m[1mINFO[0m - HTTP Request: GET https://huggingface.co/api/models/varunneal/flash-attention-3/tree/de87b9b5af06dd9984df595bef90b2eba44b181a?recursive=true&expand=false "HTTP/1.1 200 OK"2026-10-11 05:19:24,137 - httpx - [32m[1mINFO[0m - HTTP Request: GET https://huggingface.co/api/models/varunneal/flash-attention-3/tree/de87b9b5af06dd9984df595bef90b2eba44b181a?recursive=true&expand=false "HTTP/1.1 200 OK"2026-10-11 05:19:24,138 - httpx - [32m[1mINFO[0m - HTTP Request: GET https://huggingface.co/api/models/varunneal/flash-attention-3/tree/de87b9b5af06dd9984df595bef90b2eba44b181a?recursive=true&expand=false "HTTP/1.1 200 OK"2026-10-11 05:19:24,139 - httpx - [32m[1mINFO[0m - HTTP Request: GET https://huggingface.co/api/models/varunneal/flash-attention-3/tree/de87b9b5af06dd9984df595bef90b2eba44b181a?recursive=true&expand=false "HTTP/1.1 200 OK"2026-10-11 05:19:24,183 - httpx - [32m[1mINFO[0m - HTTP Request: HEAD https://huggingface.co/varunneal/flash-attention-3/resolve/de87b9b5af06dd9984df595bef90b2eba44b181a/build/torch29-cxx11-cu128-x86_64-linux/flash_attention_3/__init__.py "HTTP/1.1 307 Temporary Redirect"2026-10-11 05:19:24,189 - httpx - [32m[1mINFO[0m - HTTP Request: HEAD https://huggingface.co/varunneal/flash-attention-3/resolve/de87b9b5af06dd9984df595bef90b2eba44b181a/build/torch29-cxx11-cu128-x86_64-linux/flash_attention_3/__init__.py "HTTP/1.1 307 Temporary Redirect"2026-10-11 05:19:24,191 - httpx - [32m[1mINFO[0m - HTTP Request: HEAD https://huggingface.co/varunneal/flash-attention-3/resolve/de87b9b5af06dd9984df595bef90b2eba44b181a/build/torch29-cxx11-cu128-x86_64-linux/flash_attention_3/__init__.py "HTTP/1.1 307 Temporary Redirect"2026-10-11 05:19:24,196 - httpx - [32m[1mINFO[0m - HTTP Request: HEAD https://huggingface.co/varunneal/flash-attention-3/resolve/de87b9b5af06dd9984df595bef90b2eba44b181a/build/torch29-cxx11-cu128-x86_64-linux/flash_attention_3/flash_attn_config.py "HTTP/1.1 307 Temporary Redirect"2026-10-11 05:19:24,200 - httpx - [32m[1mINFO[0m - HTTP Request: HEAD https://huggingface.co/varunneal/flash-attention-3/resolve/de87b9b5af06dd9984df595bef90b2eba44b181a/build/torch29-cxx11-cu128-x86_64-linux/flash_attention_3/flash_attn_config.py "HTTP/1.1 307 Temporary Redirect"2026-10-11 05:19:24,201 - httpx - [32m[1mINFO[0m - HTTP Request: HEAD https://huggingface.co/varunneal/flash-attention-3/resolve/de87b9b5af06dd9984df595bef90b2eba44b181a/build/torch29-cxx11-cu128-x86_64-linux/flash_attention_3/flash_attn_config.py "HTTP/1.1 307 Temporary Redirect"2026-10-11 05:19:24,206 - httpx - [32m[1mINFO[0m - HTTP Request: HEAD https://huggingface.co/varunneal/flash-attention-3/resolve/de87b9b5af06dd9984df595bef90b2eba44b181a/build/torch29-cxx11-cu128-x86_64-linux/flash_attention_3/flash_attn_config.py "HTTP/1.1 307 Temporary Redirect"2026-10-11 05:19:24,208 - httpx - [32m[1mINFO[0m - HTTP Request: HEAD https://huggingface.co/varunneal/flash-attention-3/resolve/de87b9b5af06dd9984df595bef90b2eba44b181a/build/torch29-cxx11-cu128-x86_64-linux/flash_attention_3/__init__.py "HTTP/1.1 307 Temporary Redirect"2026-10-11 05:19:24,208 - httpx - [32m[1mINFO[0m - HTTP Request: HEAD https://huggingface.co/varunneal/flash-attention-3/resolve/de87b9b5af06dd9984df595bef90b2eba44b181a/build/torch29-cxx11-cu128-x86_64-linux/flash_attention_3/flash_attn_interface.py "HTTP/1.1 307 Temporary Redirect"2026-10-11 05:19:24,211 - httpx - [32m[1mINFO[0m - HTTP Request: HEAD https://huggingface.co/varunneal/flash-attention-3/resolve/de87b9b5af06dd9984df595bef90b2eba44b181a/build/torch29-cxx11-cu128-x86_64-linux/flash_attention_3/flash_attn_interface.py "HTTP/1.1 307 Temporary Redirect"2026-10-11 05:19:24,211 - httpx - [32m[1mINFO[0m - HTTP Request: HEAD https://huggingface.co/varunneal/flash-attention-3/resolve/de87b9b5af06dd9984df595bef90b2eba44b181a/build/torch29-cxx11-cu128-x86_64-linux/flash_attention_3/flash_attn_interface.py "HTTP/1.1 307 Temporary Redirect"2026-10-11 05:19:24,225 - httpx - [32m[1mINFO[0m - HTTP Request: HEAD https://huggingface.co/varunneal/flash-attention-3/resolve/de87b9b5af06dd9984df595bef90b2eba44b181a/build/torch29-cxx11-cu128-x86_64-linux/flash_attention_3/flash_attn_interface.py "HTTP/1.1 307 Temporary Redirect"2026-10-11 05:19:24,228 - httpx - [32m[1mINFO[0m - HTTP Request: GET https://huggingface.co/api/models/varunneal/flash-attention-3/xet-read-token/de87b9b5af06dd9984df595bef90b2eba44b181a "HTTP/1.1 200 OK"2026-10-11 05:19:24,236 - httpx - [32m[1mINFO[0m - HTTP Request: HEAD https://huggingface.co/api/resolve-cache/models/varunneal/flash-attention-3/de87b9b5af06dd9984df595bef90b2eba44b181a/build%2Ftorch29-cxx11-cu128-x86_64-linux%2Fflash_attention_[1m3%[0m2F__init__.py?%2Fvarunneal%2Fflash-attention-[1m3%[0m2Fresolve%2Fde87b9b5af06dd9984df595bef90b2eba44b181a%2Fbuild%2Ftorch29-cxx11-cu128-x86_64-linux%2Fflash_attention_[1m3%[0m2F__init__.py=&etag=%226c880f44203ba43b62b3465d6de77eb20f1e03e[1m8%[0m22 "HTTP/1.1 200 OK"2026-10-11 05:19:24,237 - httpx - [32m[1mINFO[0m - HTTP Request: HEAD https://huggingface.co/api/resolve-cache/models/varunneal/flash-attention-3/de87b9b5af06dd9984df595bef90b2eba44b181a/build%2Ftorch29-cxx11-cu128-x86_64-linux%2Fflash_attention_[1m3%[0m2F__init__.py?%2Fvarunneal%2Fflash-attention-[1m3%[0m2Fresolve%2Fde87b9b5af06dd9984df595bef90b2eba44b181a%2Fbuild%2Ftorch29-cxx11-cu128-x86_64-linux%2Fflash_attention_[1m3%[0m2F__init__.py=&etag=%226c880f44203ba43b62b3465d6de77eb20f1e03e[1m8%[0m22 "HTTP/1.1 200 OK"2026-10-11 05:19:24,243 - httpx - [32m[1mINFO[0m - HTTP Request: HEAD https://huggingface.co/api/resolve-cache/models/varunneal/flash-attention-3/de87b9b5af06dd9984df595bef90b2eba44b181a/build%2Ftorch29-cxx11-cu128-x86_64-linux%2Fflash_attention_[1m3%[0m2F__init__.py?%2Fvarunneal%2Fflash-attention-[1m3%[0m2Fresolve%2Fde87b9b5af06dd9984df595bef90b2eba44b181a%2Fbuild%2Ftorch29-cxx11-cu128-x86_64-linux%2Fflash_attention_[1m3%[0m2F__init__.py=&etag=%226c880f44203ba43b62b3465d6de77eb20f1e03e[1m8%[0m22 "HTTP/1.1 200 OK"2026-10-11 05:19:24,248 - httpx - [32m[1mINFO[0m - HTTP Request: HEAD https://huggingface.co/api/resolve-cache/models/varunneal/flash-attention-3/de87b9b5af06dd9984df595bef90b2eba44b181a/build%2Ftorch29-cxx11-cu128-x86_64-linux%2Fflash_attention_[1m3%[0m2Fflash_attn_config.py?%2Fvarunneal%2Fflash-attention-[1m3%[0m2Fresolve%2Fde87b9b5af06dd9984df595bef90b2eba44b181a%2Fbuild%2Ftorch29-cxx11-cu128-x86_64-linux%2Fflash_attention_[1m3%[0m2Fflash_attn_config.py=&etag=%2248f62eb48ad4005c223687f3c7e7be[1m0115633829%[0m22 "HTTP/1.1 200 OK"2026-10-11 05:19:24,255 - httpx - [32m[1mINFO[0m - HTTP Request: HEAD https://huggingface.co/api/resolve-cache/models/varunneal/flash-attention-3/de87b9b5af06dd9984df595bef90b2eba44b181a/build%2Ftorch29-cxx11-cu128-x86_64-linux%2Fflash_attention_[1m3%[0m2Fflash_attn_config.py?%2Fvarunneal%2Fflash-attention-[1m3%[0m2Fresolve%2Fde87b9b5af06dd9984df595bef90b2eba44b181a%2Fbuild%2Ftorch29-cxx11-cu128-x86_64-linux%2Fflash_attention_[1m3%[0m2Fflash_attn_config.py=&etag=%2248f62eb48ad4005c223687f3c7e7be[1m0115633829%[0m22 "HTTP/1.1 200 OK"2026-10-11 05:19:24,263 - httpx - [32m[1mINFO[0m - HTTP Request: HEAD https://huggingface.co/api/resolve-cache/models/varunneal/flash-attention-3/de87b9b5af06dd9984df595bef90b2eba44b181a/build%2Ftorch29-cxx11-cu128-x86_64-linux%2Fflash_attention_[1m3%[0m2F__init__.py?%2Fvarunneal%2Fflash-attention-[1m3%[0m2Fresolve%2Fde87b9b5af06dd9984df595bef90b2eba44b181a%2Fbuild%2Ftorch29-cxx11-cu128-x86_64-linux%2Fflash_attention_[1m3%[0m2F__init__.py=&etag=%226c880f44203ba43b62b3465d6de77eb20f1e03e[1m8%[0m22 "HTTP/1.1 200 OK"2026-10-11 05:19:24,263 - httpx - [32m[1mINFO[0m - HTTP Request: HEAD https://huggingface.co/api/resolve-cache/models/varunneal/flash-attention-3/de87b9b5af06dd9984df595bef90b2eba44b181a/build%2Ftorch29-cxx11-cu128-x86_64-linux%2Fflash_attention_[1m3%[0m2Fflash_attn_interface.py?%2Fvarunneal%2Fflash-attention-[1m3%[0m2Fresolve%2Fde87b9b5af06dd9984df595bef90b2eba44b181a%2Fbuild%2Ftorch29-cxx11-cu128-x86_64-linux%2Fflash_attention_[1m3%[0m2Fflash_attn_interface.py=&etag=%22d66ad504a8025d7e7e632f7e84d4543d66a0a68e%22 "HTTP/1.1 200 OK"2026-10-11 05:19:24,268 - httpx - [32m[1mINFO[0m - HTTP Request: HEAD https://huggingface.co/api/resolve-cache/models/varunneal/flash-attention-3/de87b9b5af06dd9984df595bef90b2eba44b181a/build%2Ftorch29-cxx11-cu128-x86_64-linux%2Fflash_attention_[1m3%[0m2Fflash_attn_config.py?%2Fvarunneal%2Fflash-attention-[1m3%[0m2Fresolve%2Fde87b9b5af06dd9984df595bef90b2eba44b181a%2Fbuild%2Ftorch29-cxx11-cu128-x86_64-linux%2Fflash_attention_[1m3%[0m2Fflash_attn_config.py=&etag=%2248f62eb48ad4005c223687f3c7e7be[1m0115633829%[0m22 "HTTP/1.1 200 OK"2026-10-11 05:19:24,276 - httpx - [32m[1mINFO[0m - HTTP Request: HEAD https://huggingface.co/api/resolve-cache/models/varunneal/flash-attention-3/de87b9b5af06dd9984df595bef90b2eba44b181a/build%2Ftorch29-cxx11-cu128-x86_64-linux%2Fflash_attention_[1m3%[0m2Fflash_attn_interface.py?%2Fvarunneal%2Fflash-attention-[1m3%[0m2Fresolve%2Fde87b9b5af06dd9984df595bef90b2eba44b181a%2Fbuild%2Ftorch29-cxx11-cu128-x86_64-linux%2Fflash_attention_[1m3%[0m2Fflash_attn_interface.py=&etag=%22d66ad504a8025d7e7e632f7e84d4543d66a0a68e%22 "HTTP/1.1 200 OK"2026-10-11 05:19:24,279 - httpx - [32m[1mINFO[0m - HTTP Request: HEAD https://huggingface.co/api/resolve-cache/models/varunneal/flash-attention-3/de87b9b5af06dd9984df595bef90b2eba44b181a/build%2Ftorch29-cxx11-cu128-x86_64-linux%2Fflash_attention_[1m3%[0m2Fflash_attn_interface.py?%2Fvarunneal%2Fflash-attention-[1m3%[0m2Fresolve%2Fde87b9b5af06dd9984df595bef90b2eba44b181a%2Fbuild%2Ftorch29-cxx11-cu128-x86_64-linux%2Fflash_attention_[1m3%[0m2Fflash_attn_interface.py=&etag=%22d66ad504a8025d7e7e632f7e84d4543d66a0a68e%22 "HTTP/1.1 200 OK"2026-10-11 05:19:24,284 - httpx - [32m[1mINFO[0m - HTTP Request: HEAD https://huggingface.co/api/resolve-cache/models/varunneal/flash-attention-3/de87b9b5af06dd9984df595bef90b2eba44b181a/build%2Ftorch29-cxx11-cu128-x86_64-linux%2Fflash_attention_[1m3%[0m2Fflash_attn_config.py?%2Fvarunneal%2Fflash-attention-[1m3%[0m2Fresolve%2Fde87b9b5af06dd9984df595bef90b2eba44b181a%2Fbuild%2Ftorch29-cxx11-cu128-x86_64-linux%2Fflash_attention_[1m3%[0m2Fflash_attn_config.py=&etag=%2248f62eb48ad4005c223687f3c7e7be[1m0115633829%[0m22 "HTTP/1.1 200 OK"2026-10-11 05:19:24,291 - httpx - [32m[1mINFO[0m - HTTP Request: HEAD https://huggingface.co/api/resolve-cache/models/varunneal/flash-attention-3/de87b9b5af06dd9984df595bef90b2eba44b181a/build%2Ftorch29-cxx11-cu128-x86_64-linux%2Fflash_attention_[1m3%[0m2Fflash_attn_interface.py?%2Fvarunneal%2Fflash-attention-[1m3%[0m2Fresolve%2Fde87b9b5af06dd9984df595bef90b2eba44b181a%2Fbuild%2Ftorch29-cxx11-cu128-x86_64-linux%2Fflash_attention_[1m3%[0m2Fflash_attn_interface.py=&etag=%22d66ad504a8025d7e7e632f7e84d4543d66a0a68e%22 "HTTP/1.1 200 OK"2026-10-11 05:19:24,292 - httpx - [32m[1mINFO[0m - HTTP Request: GET https://huggingface.co/api/resolve-cache/models/varunneal/flash-attention-3/de87b9b5af06dd9984df595bef90b2eba44b181a/build%2Ftorch29-cxx11-cu128-x86_64-linux%2Fflash_attention_[1m3%[0m2F__init__.py?%2Fvarunneal%2Fflash-attention-[1m3%[0m2Fresolve%2Fde87b9b5af06dd9984df595bef90b2eba44b181a%2Fbuild%2Ftorch29-cxx11-cu128-x86_64-linux%2Fflash_attention_[1m3%[0m2F__init__.py=&etag=%226c880f44203ba43b62b3465d6de77eb20f1e03e[1m8%[0m22 "HTTP/1.1 200 OK"2026-10-11 05:19:24,325 - httpx - [32m[1mINFO[0m - HTTP Request: GET https://huggingface.co/api/resolve-cache/models/varunneal/flash-attention-3/de87b9b5af06dd9984df595bef90b2eba44b181a/build%2Ftorch29-cxx11-cu128-x86_64-linux%2Fflash_attention_[1m3%[0m2Fflash_attn_interface.py?%2Fvarunneal%2Fflash-attention-[1m3%[0m2Fresolve%2Fde87b9b5af06dd9984df595bef90b2eba44b181a%2Fbuild%2Ftorch29-cxx11-cu128-x86_64-linux%2Fflash_attention_[1m3%[0m2Fflash_attn_interface.py=&etag=%22d66ad504a8025d7e7e632f7e84d4543d66a0a68e%22 "HTTP/1.1 200 OK"2026-10-11 05:19:24,349 - httpx - [32m[1mINFO[0m - HTTP Request: GET https://huggingface.co/api/resolve-cache/models/varunneal/flash-attention-3/de87b9b5af06dd9984df595bef90b2eba44b181a/build%2Ftorch29-cxx11-cu128-x86_64-linux%2Fflash_attention_[1m3%[0m2Fflash_attn_config.py?%2Fvarunneal%2Fflash-attention-[1m3%[0m2Fresolve%2Fde87b9b5af06dd9984df595bef90b2eba44b181a%2Fbuild%2Ftorch29-cxx11-cu128-x86_64-linux%2Fflash_attention_[1m3%[0m2Fflash_attn_config.py=&etag=%2248f62eb48ad4005c223687f3c7e7be[1m0115633829%[0m22 "HTTP/1.1 200 OK"
βββββ βββββ βββββ βββββ ββββββββ ββββββ ββββββββ ββββββ ββββββ ββββββββ ββββββ βββββββ ββββββββββ ββββββββ ββββββββββ ββββββββ ββββββββ βββββββββ βββββββββββββββ ββββ ββββ βββββββ ββββ ββββ ββββ ββββββββ βββ ββββ ββββ βββββββ ββββ ββββ ββββ ββββββββ ββββ ββββ ββββ ββββββββ βββ ββββ ββββ ββββββββ ββββ βββ ββββ βββββββββββββββ ββββ βββββββββββββ ββββββοΏ½οΏ½οΏ½β ββββ ββββββββββββββ βββββββ ββββ βββββ ββββββββ ββββ βββββ ββββββ ββββββ ββββ βββββ ββββββββ βββββ Autodetected device type: cuda2026-10-11 05:19:29,660 - nanochat.common - [32m[1mINFO[0m - Distributed world size: 4GPU: NVIDIA H100 80GB HBM3 | Peak FLOPS (BF16): 9.89e+14COMPUTE_DTYPE: torch.bfloat16 (auto-detected: CUDA SM 90 (bf16 supported))wandb: [wandb.login()] Loaded credentials for https://api.wandb.ai from WANDB_API_KEY.wandb: Currently logged in as: jiteshkprasad (udgamlabs) to https://api.wandb.ai. Use `wandb login --relogin` to force reloginwandb: Tracking run with wandb version 0.30.0wandb: Run data is saved locally in /workspace/code/train/nanochat/wandb/run-20261011_051930-udgam2-base-v1-20261011wandb: Run `wandb offline` to turn off syncing.wandb: Syncing run udgam2-base-v1wandb: βοΈ View project at https://wandb.ai/udgamlabs/udgam2-mainwandb: π View run at https://wandb.ai/udgamlabs/udgam2-main/runs/udgam2-base-v1-20261011β Using Flash Attention 3: efficient, new and awesome.Vocab size: 32,768Model config:{ "sequence_len": 2048, "vocab_size": 32768, "n_layer": 20, "n_head": 16, "n_kv_head": 4, "n_embd": 1024, "head_dim": 64, "global_head_dim": 128, "intermediate_size": 4096, "ple_dim": 0, "window_pattern": "SSSL", "sliding_window": 512, "rope_theta_sliding": 10000.0, "rope_theta_full": 1000000.0, "final_logit_softcap": 15.0, "rms_norm_eps": 1e-06, "loop_start": -1, "loop_end": -1, "n_loops": 1, "mtp": false}Parameter counts:wte : 33,554,432value_embeds : 0lm_head : 33,554,432transformer_matrices : 317,280,404scalars : 0total : 384,389,268Estimated FLOPs per token: 2.450522e+09Scaling LRs by 1.4142 for batch size 1,048,576 (reference: 524,288)Scaling weight decay from 0.280000 to 0.124269 for depth 20Using user-provided number of iterations: 8,500TST: bag size 4 for steps [0, 2125), then next-token trainingTotal number of training tokens: 8,912,896,000Tokens : Scaling params ratio: 25.40Total training FLOPs estimate: 2.184125e+19Phase B data switch at step 6,800 of 8,500 (/workspace/data/shards/phaseB)Tokens / micro-batch / rank: 32 x 2048 = 65,536Tokens / micro-batch: 262,144Total batch size 1,048,576 => gradient accumulation steps: 4Step 00000 | Validation bpb: 3.585795Step 00000 | web bpb: 3.342735Step 00000 | task bpb: 3.940206Step 00000 | reason bpb: 3.123639Step 00000 | TST: data rows now 8192 tokens (bag size 4)[rank3]: Traceback (most recent call last):[rank3]: File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main[rank3]: return _run_code(code, main_globals, None,[rank3]: File "/usr/lib/python3.10/runpy.py", line 86, in _run_code[rank3]: exec(code, run_globals)[rank3]: File "/workspace/code/train/nanochat/scripts/base_train.py", line 635, in <module>[rank3]: loss.backward()[rank3]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_tensor.py", line 625, in backward[rank3]: torch.autograd.backward([rank3]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/__init__.py", line 354, in backward[rank3]: _engine_run_backward([rank3]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/graph.py", line 841, in _engine_run_backward[rank3]: return Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass[rank3]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/function.py", line 315, in apply[rank3]: return user_fn(self, *args)[rank3]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2303, in backward[rank3]: return impl_fn()[rank3]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2289, in impl_fn[rank3]: out = CompiledFunction._backward_impl(ctx, all_args)[rank3]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2461, in _backward_impl[rank3]: out = call_func_at_runtime_with_args([rank3]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/utils.py", line 129, in call_func_at_runtime_with_args[rank3]: out = normalize_as_list(f(args))[rank3]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_dynamo/eval_frame.py", line 1044, in _fn[rank3]: return fn(*args, **kwargs)[rank3]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_inductor/output_code.py", line 613, in __call__[rank3]: return self.current_callable(inputs)[rank3]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_inductor/utils.py", line 3017, in run[rank3]: out = model(new_inputs)[rank3]: File "/tmp/torchinductor_root/vx/cvxww3nerhcxc5zzduesfbhxyjpsm3mmk2gg3qjftoddmvnospnh.py", line 3821, in call[rank3]: buf11 = empty_strided_cuda((65536, 32768), (32768, 1), torch.float32)[rank3]: torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 8.00 GiB. GPU 3 has a total capacity of 79.18 GiB of which 5.55 GiB is free. Including non-PyTorch memory, this process has 73.60 GiB memory in use. Of the allocated memory 72.04 GiB is allocated by PyTorch, and 24.02 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)[rank1]: Traceback (most recent call last):[rank1]: File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main[rank1]: return _run_code(code, main_globals, None,[rank1]: File "/usr/lib/python3.10/runpy.py", line 86, in _run_code[rank1]: exec(code, run_globals)[rank1]: File "/workspace/code/train/nanochat/scripts/base_train.py", line 635, in <module>[rank1]: loss.backward()[rank1]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_tensor.py", line 625, in backward[rank1]: torch.autograd.backward([rank1]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/__init__.py", line 354, in backward[rank1]: _engine_run_backward([rank1]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/graph.py", line 841, in _engine_run_backward[rank1]: return Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass[rank1]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/function.py", line 315, in apply[rank1]: return user_fn(self, *args)[rank1]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2303, in backward[rank1]: return impl_fn()[rank1]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2289, in impl_fn[rank1]: out = CompiledFunction._backward_impl(ctx, all_args)[rank1]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2461, in _backward_impl[rank1]: out = call_func_at_runtime_with_args([rank1]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/utils.py", line 129, in call_func_at_runtime_with_args[rank1]: out = normalize_as_list(f(args))[rank1]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_dynamo/eval_frame.py", line 1044, in _fn[rank1]: return fn(*args, **kwargs)[rank1]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_inductor/output_code.py", line 613, in __call__[rank1]: return self.current_callable(inputs)[rank1]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_inductor/utils.py", line 3017, in run[rank1]: out = model(new_inputs)[rank1]: File "/tmp/torchinductor_root/wj/cwjosid6ais7zybbx3nn45yeavor624quen5xvtdf2ovph4zenos.py", line 3821, in call[rank1]: buf11 = empty_strided_cuda((65536, 32768), (32768, 1), torch.float32)[rank1]: torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 8.00 GiB. GPU 1 has a total capacity of 79.18 GiB of which 5.55 GiB is free. Including non-PyTorch memory, this process has 73.60 GiB memory in use. Of the allocated memory 72.04 GiB is allocated by PyTorch, and 24.02 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)[rank2]: Traceback (most recent call last):[rank2]: File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main[rank2]: return _run_code(code, main_globals, None,[rank2]: File "/usr/lib/python3.10/runpy.py", line 86, in _run_code[rank2]: exec(code, run_globals)[rank2]: File "/workspace/code/train/nanochat/scripts/base_train.py", line 635, in <module>[rank2]: loss.backward()[rank2]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_tensor.py", line 625, in backward[rank2]: torch.autograd.backward([rank2]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/__init__.py", line 354, in backward[rank2]: _engine_run_backward([rank2]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/graph.py", line 841, in _engine_run_backward[rank2]: return Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass[rank2]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/function.py", line 315, in apply[rank2]: return user_fn(self, *args)[rank2]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2303, in backward[rank2]: return impl_fn()[rank2]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2289, in impl_fn[rank2]: out = CompiledFunction._backward_impl(ctx, all_args)[rank2]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2461, in _backward_impl[rank2]: out = call_func_at_runtime_with_args([rank2]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/utils.py", line 129, in call_func_at_runtime_with_args[rank2]: out = normalize_as_list(f(args))[rank2]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_dynamo/eval_frame.py", line 1044, in _fn[rank2]: return fn(*args, **kwargs)[rank2]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_inductor/output_code.py", line 613, in __call__[rank2]: return self.current_callable(inputs)[rank2]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_inductor/utils.py", line 3017, in run[rank2]: out = model(new_inputs)[rank2]: File "/tmp/torchinductor_root/2l/c2lvi7zupywaitihdkdl2os272in55vk5xc3wox3vkjk32kp542g.py", line 3821, in call[rank2]: buf11 = empty_strided_cuda((65536, 32768), (32768, 1), torch.float32)[rank2]: torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 8.00 GiB. GPU 2 has a total capacity of 79.18 GiB of which 5.55 GiB is free. Including non-PyTorch memory, this process has 73.60 GiB memory in use. Of the allocated memory 72.04 GiB is allocated by PyTorch, and 24.02 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)Traceback (most recent call last): File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/workspace/code/train/nanochat/scripts/base_train.py", line 635, in <module> loss.backward() File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_tensor.py", line 625, in backward torch.autograd.backward( File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/__init__.py", line 354, in backward _engine_run_backward( File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/graph.py", line 841, in _engine_run_backward return Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/function.py", line 315, in apply return user_fn(self, *args) File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2303, in backward return impl_fn() File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2289, in impl_fn out = CompiledFunction._backward_impl(ctx, all_args) File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2461, in _backward_impl out = call_func_at_runtime_with_args( File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/utils.py", line 129, in call_func_at_runtime_with_args out = normalize_as_list(f(args)) File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_dynamo/eval_frame.py", line 1044, in _fn return fn(*args, **kwargs) File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_inductor/output_code.py", line 613, in __call__ return self.current_callable(inputs) File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_inductor/utils.py", line 3017, in run out = model(new_inputs) File "/tmp/torchinductor_root/rd/crdtsdegcdmqvh5yu6y2f6z4olvljx2sy5osgpqi76bwerqrxem5.py", line 3821, in call buf11 = empty_strided_cuda((65536, 32768), (32768, 1), torch.float32)torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 8.00 GiB. GPU 0 has a total capacity of 79.18 GiB of which 5.55 GiB is free. Including non-PyTorch memory, this process has 73.60 GiB memory in use. Of the allocated memory 72.04 GiB is allocated by PyTorch, and 24.02 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)[rank0]: Traceback (most recent call last):[rank0]: File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main[rank0]: return _run_code(code, main_globals, None,[rank0]: File "/usr/lib/python3.10/runpy.py", line 86, in _run_code[rank0]: exec(code, run_globals)[rank0]: File "/workspace/code/train/nanochat/scripts/base_train.py", line 635, in <module>[rank0]: loss.backward()[rank0]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_tensor.py", line 625, in backward[rank0]: torch.autograd.backward([rank0]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/__init__.py", line 354, in backward[rank0]: _engine_run_backward([rank0]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/graph.py", line 841, in _engine_run_backward[rank0]: return Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass[rank0]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/function.py", line 315, in apply[rank0]: return user_fn(self, *args)[rank0]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2303, in backward[rank0]: return impl_fn()[rank0]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2289, in impl_fn[rank0]: out = CompiledFunction._backward_impl(ctx, all_args)[rank0]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2461, in _backward_impl[rank0]: out = call_func_at_runtime_with_args([rank0]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/utils.py", line 129, in call_func_at_runtime_with_args[rank0]: out = normalize_as_list(f(args))[rank0]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_dynamo/eval_frame.py", line 1044, in _fn[rank0]: return fn(*args, **kwargs)[rank0]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_inductor/output_code.py", line 613, in __call__[rank0]: return self.current_callable(inputs)[rank0]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_inductor/utils.py", line 3017, in run[rank0]: out = model(new_inputs)[rank0]: File "/tmp/torchinductor_root/rd/crdtsdegcdmqvh5yu6y2f6z4olvljx2sy5osgpqi76bwerqrxem5.py", line 3821, in call[rank0]: buf11 = empty_strided_cuda((65536, 32768), (32768, 1), torch.float32)[rank0]: torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 8.00 GiB. GPU 0 has a total capacity of 79.18 GiB of which 5.55 GiB is free. Including non-PyTorch memory, this process has 73.60 GiB memory in use. Of the allocated memory 72.04 GiB is allocated by PyTorch, and 24.02 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)[1;34mwandb[0m: [1;34mwandb[0m: π View run [33mudgam2-base-v1[0m at: [34mhttps://wandb.ai/udgamlabs/udgam2-main/runs/udgam2-base-v1-20261011[0m[1;34mwandb[0m: Find logs at: [1;35mwandb/run-20261011_051930-udgam2-base-v1-20261011/logs[0m[rank0]:[W1011 05:20:53.488993586 ProcessGroupNCCL.cpp:1524] Warning: WARNING: destroy_process_group() was not called before program exit, which can leak resources. For more info, please see https://pytorch.org/docs/stable/distributed.html#shutdown (function operator())W1011 05:20:54.435000 1494 torch/distributed/elastic/multiprocessing/api.py:908] Sending process 1562 closing signal SIGTERMW1011 05:20:54.437000 1494 torch/distributed/elastic/multiprocessing/api.py:908] Sending process 1563 closing signal SIGTERMW1011 05:20:54.439000 1494 torch/distributed/elastic/multiprocessing/api.py:908] Sending process 1564 closing signal SIGTERME1011 05:20:56.664000 1494 torch/distributed/elastic/multiprocessing/api.py:882] failed (exitcode: 1) local_rank: 3 (pid: 1565) of binary: /workspace/code/train/nanochat/.venv/bin/pythonTraceback (most recent call last): File "/workspace/code/train/nanochat/.venv/bin/torchrun", line 10, in <module> sys.exit(main()) File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/distributed/elastic/multiprocessing/errors/__init__.py", line 357, in wrapper return f(*args, **kwargs) File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/distributed/run.py", line 936, in main run(args) File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/distributed/run.py", line 927, in run elastic_launch( File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/distributed/launcher/api.py", line 156, in __call__ return launch_agent(self._config, self._entrypoint, list(args)) File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/distributed/launcher/api.py", line 293, in launch_agent raise ChildFailedError(torch.distributed.elastic.multiprocessing.errors.ChildFailedError: ============================================================scripts.base_train FAILED------------------------------------------------------------Failures: <NO_OTHER_FAILURES>------------------------------------------------------------Root Cause (first observed failure):[0]: time : 2026-10-11_05:20:54 host : 25cef7f02507 rank : 3 (local_rank: 3) exitcode : 1 (pid: 1565) error_file: <N/A> traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html============================================================[2026-10-11T05:20:57Z] training exited rc=1[2026-10-11T05:21:07Z] torchrun attempt 2 on 4 GPUs W1011 05:21:08.307000 8145 torch/distributed/run.py:803] W1011 05:21:08.307000 8145 torch/distributed/run.py:803] *****************************************W1011 05:21:08.307000 8145 torch/distributed/run.py:803] Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed. W1011 05:21:08.307000 8145 torch/distributed/run.py:803] *****************************************2026-10-11 05:21:12,864 - httpx - [32m[1mINFO[0m - HTTP Request: GET https://huggingface.co/api/models/varunneal/flash-attention-3/revision/main "HTTP/1.1 200 OK"2026-10-11 05:21:13,060 - httpx - [32m[1mINFO[0m - HTTP Request: GET https://huggingface.co/api/models/varunneal/flash-attention-3/revision/main "HTTP/1.1 200 OK"2026-10-11 05:21:13,070 - httpx - [32m[1mINFO[0m - HTTP Request: GET https://huggingface.co/api/models/varunneal/flash-attention-3/revision/main "HTTP/1.1 200 OK"2026-10-11 05:21:13,093 - httpx - [32m[1mINFO[0m - HTTP Request: GET https://huggingface.co/api/models/varunneal/flash-attention-3/revision/main "HTTP/1.1 200 OK"
βββββ βββββ βββββ βββββ ββββββββ ββββββ ββββββββ ββββββ ββββββ ββββββββ ββββββ βββββββ ββββββββββ ββββββββ ββββββββββ ββββββββ ββββββββ βββββββββ βββββββββββββββ ββββ ββββ βββββββ ββββ ββββ ββββ ββββββββ βββ ββββ ββββ βββββββ ββββ ββββ ββββ ββββββββ ββββ ββββ ββββ ββββββββ βββ ββββ ββββ ββββββββ ββββ βββ ββββ βββββββββββββββ ββββ βββββββββββββ ββββββββ ββββ ββββββββββββββ βββββββ ββββ βββββ ββββββββ ββββ βββββ ββββββ ββββββ ββββ βββββ ββββββββ βββββ Autodetected device type: cuda2026-10-11 05:21:14,628 - nanochat.common - [32m[1mINFO[0m - Distributed world size: 4GPU: NVIDIA H100 80GB HBM3 | Peak FLOPS (BF16): 9.89e+14COMPUTE_DTYPE: torch.bfloat16 (auto-detected: CUDA SM 90 (bf16 supported))wandb: [wandb.login()] Loaded credentials for https://api.wandb.ai from WANDB_API_KEY.wandb: Currently logged in as: jiteshkprasad (udgamlabs) to https://api.wandb.ai. Use `wandb login --relogin` to force reloginwandb: Tracking run with wandb version 0.30.0wandb: Run data is saved locally in /workspace/code/train/nanochat/wandb/run-20261011_052114-udgam2-base-v1-20261011wandb: Run `wandb offline` to turn off syncing.wandb: Resuming run udgam2-base-v1wandb: βοΈ View project at https://wandb.ai/udgamlabs/udgam2-mainwandb: π View run at https://wandb.ai/udgamlabs/udgam2-main/runs/udgam2-base-v1-20261011β Using Flash Attention 3: efficient, new and awesome.Vocab size: 32,768Model config:{ "sequence_len": 2048, "vocab_size": 32768, "n_layer": 20, "n_head": 16, "n_kv_head": 4, "n_embd": 1024, "head_dim": 64, "global_head_dim": 128, "intermediate_size": 4096, "ple_dim": 0, "window_pattern": "SSSL", "sliding_window": 512, "rope_theta_sliding": 10000.0, "rope_theta_full": 1000000.0, "final_logit_softcap": 15.0, "rms_norm_eps": 1e-06, "loop_start": -1, "loop_end": -1, "n_loops": 1, "mtp": false}Parameter counts:wte : 33,554,432value_embeds : 0lm_head : 33,554,432transformer_matrices : 317,280,404scalars : 0total : 384,389,268Estimated FLOPs per token: 2.450522e+09Scaling LRs by 1.4142 for batch size 1,048,576 (reference: 524,288)Scaling weight decay from 0.280000 to 0.124269 for depth 20Using user-provided number of iterations: 8,500TST: bag size 4 for steps [0, 2125), then next-token trainingTotal number of training tokens: 8,912,896,000Tokens : Scaling params ratio: 25.40Total training FLOPs estimate: 2.184125e+19Phase B data switch at step 6,800 of 8,500 (/workspace/data/shards/phaseB)Tokens / micro-batch / rank: 32 x 2048 = 65,536Tokens / micro-batch: 262,144Total batch size 1,048,576 => gradient accumulation steps: 4Step 00000 | Validation bpb: 3.585795Step 00000 | web bpb: 3.342735Step 00000 | task bpb: 3.940206Step 00000 | reason bpb: 3.123639Step 00000 | TST: data rows now 8192 tokens (bag size 4)[rank2]: Traceback (most recent call last):[rank2]: File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main[rank2]: return _run_code(code, main_globals, None,[rank2]: File "/usr/lib/python3.10/runpy.py", line 86, in _run_code[rank2]: exec(code, run_globals)[rank2]: File "/workspace/code/train/nanochat/scripts/base_train.py", line 635, in <module>[rank2]: loss.backward()[rank2]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_tensor.py", line 625, in backward[rank2]: torch.autograd.backward([rank2]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/__init__.py", line 354, in backward[rank2]: _engine_run_backward([rank2]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/graph.py", line 841, in _engine_run_backward[rank2]: return Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass[rank2]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/function.py", line 315, in apply[rank2]: return user_fn(self, *args)[rank2]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2303, in backward[rank2]: return impl_fn()[rank2]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2289, in impl_fn[rank2]: out = CompiledFunction._backward_impl(ctx, all_args)[rank2]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2461, in _backward_impl[rank2]: out = call_func_at_runtime_with_args([rank2]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/utils.py", line 129, in call_func_at_runtime_with_args[rank2]: out = normalize_as_list(f(args))[rank2]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_dynamo/eval_frame.py", line 1044, in _fn[rank2]: return fn(*args, **kwargs)[rank2]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_inductor/output_code.py", line 613, in __call__[rank2]: return self.current_callable(inputs)[rank2]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_inductor/utils.py", line 3017, in run[rank2]: out = model(new_inputs)[rank2]: File "/tmp/torchinductor_root/2l/c2lvi7zupywaitihdkdl2os272in55vk5xc3wox3vkjk32kp542g.py", line 3821, in call[rank2]: buf11 = empty_strided_cuda((65536, 32768), (32768, 1), torch.float32)[rank2]: torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 8.00 GiB. GPU 2 has a total capacity of 79.18 GiB of which 5.59 GiB is free. Including non-PyTorch memory, this process has 73.58 GiB memory in use. Of the allocated memory 72.04 GiB is allocated by PyTorch, and 2.02 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)Traceback (most recent call last): File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/workspace/code/train/nanochat/scripts/base_train.py", line 635, in <module> loss.backward() File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_tensor.py", line 625, in backward torch.autograd.backward( File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/__init__.py", line 354, in backward _engine_run_backward( File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/graph.py", line 841, in _engine_run_backward return Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/function.py", line 315, in apply return user_fn(self, *args) File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2303, in backward return impl_fn() File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2289, in impl_fn out = CompiledFunction._backward_impl(ctx, all_args) File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2461, in _backward_impl out = call_func_at_runtime_with_args( File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/utils.py", line 129, in call_func_at_runtime_with_args out = normalize_as_list(f(args)) File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_dynamo/eval_frame.py", line 1044, in _fn return fn(*args, **kwargs) File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_inductor/output_code.py", line 613, in __call__ return self.current_callable(inputs) File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_inductor/utils.py", line 3017, in run out = model(new_inputs) File "/tmp/torchinductor_root/rd/crdtsdegcdmqvh5yu6y2f6z4olvljx2sy5osgpqi76bwerqrxem5.py", line 3821, in call buf11 = empty_strided_cuda((65536, 32768), (32768, 1), torch.float32)torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 8.00 GiB. GPU 0 has a total capacity of 79.18 GiB of which 5.59 GiB is free. Including non-PyTorch memory, this process has 73.58 GiB memory in use. Of the allocated memory 72.04 GiB is allocated by PyTorch, and 2.02 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)[rank0]: Traceback (most recent call last):[rank0]: File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main[rank0]: return _run_code(code, main_globals, None,[rank0]: File "/usr/lib/python3.10/runpy.py", line 86, in _run_code[rank0]: exec(code, run_globals)[rank0]: File "/workspace/code/train/nanochat/scripts/base_train.py", line 635, in <module>[rank0]: loss.backward()[rank0]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_tensor.py", line 625, in backward[rank0]: torch.autograd.backward([rank0]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/__init__.py", line 354, in backward[rank0]: _engine_run_backward([rank0]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/graph.py", line 841, in _engine_run_backward[rank0]: return Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass[rank0]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/function.py", line 315, in apply[rank0]: return user_fn(self, *args)[rank0]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2303, in backward[rank0]: return impl_fn()[rank0]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2289, in impl_fn[rank0]: out = CompiledFunction._backward_impl(ctx, all_args)[rank0]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2461, in _backward_impl[rank0]: out = call_func_at_runtime_with_args([rank0]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/utils.py", line 129, in call_func_at_runtime_with_args[rank0]: out = normalize_as_list(f(args))[rank0]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_dynamo/eval_frame.py", line 1044, in _fn[rank0]: return fn(*args, **kwargs)[rank0]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_inductor/output_code.py", line 613, in __call__[rank0]: return self.current_callable(inputs)[rank0]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_inductor/utils.py", line 3017, in run[rank0]: out = model(new_inputs)[rank0]: File "/tmp/torchinductor_root/rd/crdtsdegcdmqvh5yu6y2f6z4olvljx2sy5osgpqi76bwerqrxem5.py", line 3821, in call[rank0]: buf11 = empty_strided_cuda((65536, 32768), (32768, 1), torch.float32)[rank0]: torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 8.00 GiB. GPU 0 has a total capacity of 79.18 GiB of which 5.59 GiB is free. Including non-PyTorch memory, this process has 73.58 GiB memory in use. Of the allocated memory 72.04 GiB is allocated by PyTorch, and 2.02 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)[rank3]: Traceback (most recent call last):[rank3]: File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main[rank3]: return _run_code(code, main_globals, None,[rank3]: File "/usr/lib/python3.10/runpy.py", line 86, in _run_code[rank3]: exec(code, run_globals)[rank3]: File "/workspace/code/train/nanochat/scripts/base_train.py", line 635, in <module>[rank3]: loss.backward()[rank3]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_tensor.py", line 625, in backward[rank3]: torch.autograd.backward([rank3]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/__init__.py", line 354, in backward[rank3]: _engine_run_backward([rank3]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/graph.py", line 841, in _engine_run_backward[rank3]: return Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass[rank3]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/function.py", line 315, in apply[rank3]: return user_fn(self, *args)[rank3]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2303, in backward[rank3]: return impl_fn()[rank3]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2289, in impl_fn[rank3]: out = CompiledFunction._backward_impl(ctx, all_args)[rank3]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2461, in _backward_impl[rank3]: out = call_func_at_runtime_with_args([rank3]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/utils.py", line 129, in call_func_at_runtime_with_args[rank3]: out = normalize_as_list(f(args))[rank3]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_dynamo/eval_frame.py", line 1044, in _fn[rank3]: return fn(*args, **kwargs)[rank3]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_inductor/output_code.py", line 613, in __call__[rank3]: return self.current_callable(inputs)[rank3]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_inductor/utils.py", line 3017, in run[rank3]: out = model(new_inputs)[rank3]: File "/tmp/torchinductor_root/vx/cvxww3nerhcxc5zzduesfbhxyjpsm3mmk2gg3qjftoddmvnospnh.py", line 3821, in call[rank3]: buf11 = empty_strided_cuda((65536, 32768), (32768, 1), torch.float32)[rank3]: torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 8.00 GiB. GPU 3 has a total capacity of 79.18 GiB of which 5.59 GiB is free. Including non-PyTorch memory, this process has 73.58 GiB memory in use. Of the allocated memory 72.04 GiB is allocated by PyTorch, and 2.02 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)[rank1]: Traceback (most recent call last):[rank1]: File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main[rank1]: return _run_code(code, main_globals, None,[rank1]: File "/usr/lib/python3.10/runpy.py", line 86, in _run_code[rank1]: exec(code, run_globals)[rank1]: File "/workspace/code/train/nanochat/scripts/base_train.py", line 635, in <module>[rank1]: loss.backward()[rank1]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_tensor.py", line 625, in backward[rank1]: torch.autograd.backward([rank1]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/__init__.py", line 354, in backward[rank1]: _engine_run_backward([rank1]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/graph.py", line 841, in _engine_run_backward[rank1]: return Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass[rank1]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/function.py", line 315, in apply[rank1]: return user_fn(self, *args)[rank1]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2303, in backward[rank1]: return impl_fn()[rank1]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2289, in impl_fn[rank1]: out = CompiledFunction._backward_impl(ctx, all_args)[rank1]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2461, in _backward_impl[rank1]: out = call_func_at_runtime_with_args([rank1]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/utils.py", line 129, in call_func_at_runtime_with_args[rank1]: out = normalize_as_list(f(args))[rank1]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_dynamo/eval_frame.py", line 1044, in _fn[rank1]: return fn(*args, **kwargs)[rank1]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_inductor/output_code.py", line 613, in __call__[rank1]: return self.current_callable(inputs)[rank1]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_inductor/utils.py", line 3017, in run[rank1]: out = model(new_inputs)[rank1]: File "/tmp/torchinductor_root/wj/cwjosid6ais7zybbx3nn45yeavor624quen5xvtdf2ovph4zenos.py", line 3821, in call[rank1]: buf11 = empty_strided_cuda((65536, 32768), (32768, 1), torch.float32)[rank1]: torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 8.00 GiB. GPU 1 has a total capacity of 79.18 GiB of which 5.59 GiB is free. Including non-PyTorch memory, this process has 73.58 GiB memory in use. Of the allocated memory 72.04 GiB is allocated by PyTorch, and 2.02 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)[1;34mwandb[0m: [1;34mwandb[0m: π View run [33mudgam2-base-v1[0m at: [34mhttps://wandb.ai/udgamlabs/udgam2-main/runs/udgam2-base-v1-20261011[0m[1;34mwandb[0m: Find logs at: [1;35mwandb/run-20261011_052114-udgam2-base-v1-20261011/logs[0m[rank0]:[W1011 05:21:47.879901789 ProcessGroupNCCL.cpp:1524] Warning: WARNING: destroy_process_group() was not called before program exit, which can leak resources. For more info, please see https://pytorch.org/docs/stable/distributed.html#shutdown (function operator())W1011 05:21:48.209000 8145 torch/distributed/elastic/multiprocessing/api.py:908] Sending process 8213 closing signal SIGTERMW1011 05:21:48.211000 8145 torch/distributed/elastic/multiprocessing/api.py:908] Sending process 8214 closing signal SIGTERMW1011 05:21:48.213000 8145 torch/distributed/elastic/multiprocessing/api.py:908] Sending process 8216 closing signal SIGTERME1011 05:21:48.730000 8145 torch/distributed/elastic/multiprocessing/api.py:882] failed (exitcode: 1) local_rank: 2 (pid: 8215) of binary: /workspace/code/train/nanochat/.venv/bin/pythonTraceback (most recent call last): File "/workspace/code/train/nanochat/.venv/bin/torchrun", line 10, in <module> sys.exit(main()) File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/distributed/elastic/multiprocessing/errors/__init__.py", line 357, in wrapper return f(*args, **kwargs) File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/distributed/run.py", line 936, in main run(args) File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/distributed/run.py", line 927, in run elastic_launch( File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/distributed/launcher/api.py", line 156, in __call__ return launch_agent(self._config, self._entrypoint, list(args)) File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/distributed/launcher/api.py", line 293, in launch_agent raise ChildFailedError(torch.distributed.elastic.multiprocessing.errors.ChildFailedError: ============================================================scripts.base_train FAILED------------------------------------------------------------Failures: <NO_OTHER_FAILURES>------------------------------------------------------------Root Cause (first observed failure):[0]: time : 2026-10-11_05:21:48 host : 25cef7f02507 rank : 2 (local_rank: 2) exitcode : 1 (pid: 8215) error_file: <N/A> traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html============================================================[2026-10-11T05:21:49Z] training exited rc=1[2026-10-11T05:21:59Z] torchrun attempt 3 on 4 GPUs W1011 05:22:00.443000 9145 torch/distributed/run.py:803] W1011 05:22:00.443000 9145 torch/distributed/run.py:803] *****************************************W1011 05:22:00.443000 9145 torch/distributed/run.py:803] Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed. W1011 05:22:00.443000 9145 torch/distributed/run.py:803] *****************************************2026-10-11 05:22:05,318 - httpx - [32m[1mINFO[0m - HTTP Request: GET https://huggingface.co/api/models/varunneal/flash-attention-3/revision/main "HTTP/1.1 200 OK"2026-10-11 05:22:05,381 - httpx - [32m[1mINFO[0m - HTTP Request: GET https://huggingface.co/api/models/varunneal/flash-attention-3/revision/main "HTTP/1.1 200 OK"2026-10-11 05:22:05,437 - httpx - [32m[1mINFO[0m - HTTP Request: GET https://huggingface.co/api/models/varunneal/flash-attention-3/revision/main "HTTP/1.1 200 OK"2026-10-11 05:22:05,447 - httpx - [32m[1mINFO[0m - HTTP Request: GET https://huggingface.co/api/models/varunneal/flash-attention-3/revision/main "HTTP/1.1 200 OK"
βββββ βββββ βββββ βββββ ββββββββ ββββββ ββββββββ ββββββ ββββββ ββββββββ ββββββ βββββββ ββββββββββ ββββββββ ββββββββββ ββββββββ ββββββββ βββββββββ βββββββββββββββ ββββ ββββ βββββββ ββββ ββββ ββββ ββββββββ βββ ββββ ββββ βββββββ ββββ ββββ ββββ ββββββββ ββββ ββββ ββββ ββββββββ βββ ββββ ββββ ββββββββ ββββ βββ ββββ βββββββββββββββ ββββ βββββββββββββ ββββββββ ββββ ββββββββββββββ βββββββ ββββ βββββ ββββββββ ββββ βββββ ββββββ ββββββ ββββ βββββ ββββββββ βββββ Autodetected device type: cuda2026-10-11 05:22:07,021 - nanochat.common - [32m[1mINFO[0m - Distributed world size: 4GPU: NVIDIA H100 80GB HBM3 | Peak FLOPS (BF16): 9.89e+14COMPUTE_DTYPE: torch.bfloat16 (auto-detected: CUDA SM 90 (bf16 supported))wandb: [wandb.login()] Loaded credentials for https://api.wandb.ai from WANDB_API_KEY.wandb: Currently logged in as: jiteshkprasad (udgamlabs) to https://api.wandb.ai. Use `wandb login --relogin` to force reloginwandb: Tracking run with wandb version 0.30.0wandb: Run data is saved locally in /workspace/code/train/nanochat/wandb/run-20261011_052207-udgam2-base-v1-20261011wandb: Run `wandb offline` to turn off syncing.wandb: Resuming run udgam2-base-v1wandb: βοΈ View project at https://wandb.ai/udgamlabs/udgam2-mainwandb: π View run at https://wandb.ai/udgamlabs/udgam2-main/runs/udgam2-base-v1-20261011β Using Flash Attention 3: efficient, new and awesome.Vocab size: 32,768Model config:{ "sequence_len": 2048, "vocab_size": 32768, "n_layer": 20, "n_head": 16, "n_kv_head": 4, "n_embd": 1024, "head_dim": 64, "global_head_dim": 128, "intermediate_size": 4096, "ple_dim": 0, "window_pattern": "SSSL", "sliding_window": 512, "rope_theta_sliding": 10000.0, "rope_theta_full": 1000000.0, "final_logit_softcap": 15.0, "rms_norm_eps": 1e-06, "loop_start": -1, "loop_end": -1, "n_loops": 1, "mtp": false}Parameter counts:wte : 33,554,432value_embeds : 0lm_head : 33,554,432transformer_matrices : 317,280,404scalars : 0total : 384,389,268Estimated FLOPs per token: 2.450522e+09Scaling LRs by 1.4142 for batch size 1,048,576 (reference: 524,288)Scaling weight decay from 0.280000 to 0.124269 for depth 20Using user-provided number of iterations: 8,500TST: bag size 4 for steps [0, 2125), then next-token trainingTotal number of training tokens: 8,912,896,000Tokens : Scaling params ratio: 25.40Total training FLOPs estimate: 2.184125e+19Phase B data switch at step 6,800 of 8,500 (/workspace/data/shards/phaseB)Tokens / micro-batch / rank: 32 x 2048 = 65,536Tokens / micro-batch: 262,144Total batch size 1,048,576 => gradient accumulation steps: 4Step 00000 | Validation bpb: 3.585795Step 00000 | web bpb: 3.342735Step 00000 | task bpb: 3.940206Step 00000 | reason bpb: 3.123639Step 00000 | TST: data rows now 8192 tokens (bag size 4)[rank3]: Traceback (most recent call last):[rank3]: File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main[rank3]: return _run_code(code, main_globals, None,[rank3]: File "/usr/lib/python3.10/runpy.py", line 86, in _run_code[rank3]: exec(code, run_globals)[rank3]: File "/workspace/code/train/nanochat/scripts/base_train.py", line 635, in <module>[rank3]: loss.backward()[rank3]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_tensor.py", line 625, in backward[rank3]: torch.autograd.backward([rank3]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/__init__.py", line 354, in backward[rank3]: _engine_run_backward([rank3]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/graph.py", line 841, in _engine_run_backward[rank3]: return Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass[rank3]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/function.py", line 315, in apply[rank3]: return user_fn(self, *args)[rank3]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2303, in backward[rank3]: return impl_fn()[rank3]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2289, in impl_fn[rank3]: out = CompiledFunction._backward_impl(ctx, all_args)[rank3]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2461, in _backward_impl[rank3]: out = call_func_at_runtime_with_args([rank3]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/utils.py", line 129, in call_func_at_runtime_with_args[rank3]: out = normalize_as_list(f(args))[rank3]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_dynamo/eval_frame.py", line 1044, in _fn[rank3]: return fn(*args, **kwargs)[rank3]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_inductor/output_code.py", line 613, in __call__[rank3]: return self.current_callable(inputs)[rank3]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_inductor/utils.py", line 3017, in run[rank3]: out = model(new_inputs)[rank3]: File "/tmp/torchinductor_root/vx/cvxww3nerhcxc5zzduesfbhxyjpsm3mmk2gg3qjftoddmvnospnh.py", line 3821, in call[rank3]: buf11 = empty_strided_cuda((65536, 32768), (32768, 1), torch.float32)[rank3]: torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 8.00 GiB. GPU 3 has a total capacity of 79.18 GiB of which 5.59 GiB is free. Including non-PyTorch memory, this process has 73.58 GiB memory in use. Of the allocated memory 72.04 GiB is allocated by PyTorch, and 2.02 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)[rank2]: Traceback (most recent call last):[rank2]: File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main[rank2]: return _run_code(code, main_globals, None,[rank2]: File "/usr/lib/python3.10/runpy.py", line 86, in _run_code[rank2]: exec(code, run_globals)[rank2]: File "/workspace/code/train/nanochat/scripts/base_train.py", line 635, in <module>[rank2]: loss.backward()[rank2]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_tensor.py", line 625, in backward[rank2]: torch.autograd.backward([rank2]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/__init__.py", line 354, in backward[rank2]: _engine_run_backward([rank2]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/graph.py", line 841, in _engine_run_backward[rank2]: return Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass[rank2]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/function.py", line 315, in apply[rank2]: return user_fn(self, *args)[rank2]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2303, in backward[rank2]: return impl_fn()[rank2]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2289, in impl_fn[rank2]: out = CompiledFunction._backward_impl(ctx, all_args)[rank2]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2461, in _backward_impl[rank2]: out = call_func_at_runtime_with_args([rank2]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/utils.py", line 129, in call_func_at_runtime_with_args[rank2]: out = normalize_as_list(f(args))[rank2]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_dynamo/eval_frame.py", line 1044, in _fn[rank2]: return fn(*args, **kwargs)[rank2]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_inductor/output_code.py", line 613, in __call__[rank2]: return self.current_callable(inputs)[rank2]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_inductor/utils.py", line 3017, in run[rank2]: out = model(new_inputs)[rank2]: File "/tmp/torchinductor_root/2l/c2lvi7zupywaitihdkdl2os272in55vk5xc3wox3vkjk32kp542g.py", line 3821, in call[rank2]: buf11 = empty_strided_cuda((65536, 32768), (32768, 1), torch.float32)[rank2]: torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 8.00 GiB. GPU 2 has a total capacity of 79.18 GiB of which 5.59 GiB is free. Including non-PyTorch memory, this process has 73.58 GiB memory in use. Of the allocated memory 72.04 GiB is allocated by PyTorch, and 2.02 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)[rank1]: Traceback (most recent call last):[rank1]: File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main[rank1]: return _run_code(code, main_globals, None,[rank1]: File "/usr/lib/python3.10/runpy.py", line 86, in _run_code[rank1]: exec(code, run_globals)[rank1]: File "/workspace/code/train/nanochat/scripts/base_train.py", line 635, in <module>[rank1]: loss.backward()[rank1]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_tensor.py", line 625, in backward[rank1]: torch.autograd.backward([rank1]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/__init__.py", line 354, in backward[rank1]: _engine_run_backward([rank1]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/graph.py", line 841, in _engine_run_backward[rank1]: return Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass[rank1]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/function.py", line 315, in apply[rank1]: return user_fn(self, *args)[rank1]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2303, in backward[rank1]: return impl_fn()[rank1]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2289, in impl_fn[rank1]: out = CompiledFunction._backward_impl(ctx, all_args)[rank1]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2461, in _backward_impl[rank1]: out = call_func_at_runtime_with_args([rank1]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/utils.py", line 129, in call_func_at_runtime_with_args[rank1]: out = normalize_as_list(f(args))[rank1]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_dynamo/eval_frame.py", line 1044, in _fn[rank1]: return fn(*args, **kwargs)[rank1]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_inductor/output_code.py", line 613, in __call__[rank1]: return self.current_callable(inputs)[rank1]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_inductor/utils.py", line 3017, in run[rank1]: out = model(new_inputs)[rank1]: File "/tmp/torchinductor_root/wj/cwjosid6ais7zybbx3nn45yeavor624quen5xvtdf2ovph4zenos.py", line 3821, in call[rank1]: buf11 = empty_strided_cuda((65536, 32768), (32768, 1), torch.float32)[rank1]: torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 8.00 GiB. GPU 1 has a total capacity of 79.18 GiB of which 5.59 GiB is free. Including non-PyTorch memory, this process has 73.58 GiB memory in use. Of the allocated memory 72.04 GiB is allocated by PyTorch, and 2.02 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)Traceback (most recent call last): File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/workspace/code/train/nanochat/scripts/base_train.py", line 635, in <module> loss.backward() File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_tensor.py", line 625, in backward torch.autograd.backward( File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/__init__.py", line 354, in backward _engine_run_backward( File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/graph.py", line 841, in _engine_run_backward return Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/function.py", line 315, in apply return user_fn(self, *args) File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2303, in backward return impl_fn() File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2289, in impl_fn out = CompiledFunction._backward_impl(ctx, all_args) File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2461, in _backward_impl out = call_func_at_runtime_with_args( File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/utils.py", line 129, in call_func_at_runtime_with_args out = normalize_as_list(f(args)) File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_dynamo/eval_frame.py", line 1044, in _fn return fn(*args, **kwargs) File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_inductor/output_code.py", line 613, in __call__ return self.current_callable(inputs) File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_inductor/utils.py", line 3017, in run out = model(new_inputs) File "/tmp/torchinductor_root/rd/crdtsdegcdmqvh5yu6y2f6z4olvljx2sy5osgpqi76bwerqrxem5.py", line 3821, in call buf11 = empty_strided_cuda((65536, 32768), (32768, 1), torch.float32)torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 8.00 GiB. GPU 0 has a total capacity of 79.18 GiB of which 5.59 GiB is free. Including non-PyTorch memory, this process has 73.58 GiB memory in use. Of the allocated memory 72.04 GiB is allocated by PyTorch, and 2.02 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)[rank0]: Traceback (most recent call last):[rank0]: File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main[rank0]: return _run_code(code, main_globals, None,[rank0]: File "/usr/lib/python3.10/runpy.py", line 86, in _run_code[rank0]: exec(code, run_globals)[rank0]: File "/workspace/code/train/nanochat/scripts/base_train.py", line 635, in <module>[rank0]: loss.backward()[rank0]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_tensor.py", line 625, in backward[rank0]: torch.autograd.backward([rank0]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/__init__.py", line 354, in backward[rank0]: _engine_run_backward([rank0]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/graph.py", line 841, in _engine_run_backward[rank0]: return Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass[rank0]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/autograd/function.py", line 315, in apply[rank0]: return user_fn(self, *args)[rank0]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2303, in backward[rank0]: return impl_fn()[rank0]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2289, in impl_fn[rank0]: out = CompiledFunction._backward_impl(ctx, all_args)[rank0]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/runtime_wrappers.py", line 2461, in _backward_impl[rank0]: out = call_func_at_runtime_with_args([rank0]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_functorch/_aot_autograd/utils.py", line 129, in call_func_at_runtime_with_args[rank0]: out = normalize_as_list(f(args))[rank0]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_dynamo/eval_frame.py", line 1044, in _fn[rank0]: return fn(*args, **kwargs)[rank0]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_inductor/output_code.py", line 613, in __call__[rank0]: return self.current_callable(inputs)[rank0]: File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/_inductor/utils.py", line 3017, in run[rank0]: out = model(new_inputs)[rank0]: File "/tmp/torchinductor_root/rd/crdtsdegcdmqvh5yu6y2f6z4olvljx2sy5osgpqi76bwerqrxem5.py", line 3821, in call[rank0]: buf11 = empty_strided_cuda((65536, 32768), (32768, 1), torch.float32)[rank0]: torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 8.00 GiB. GPU 0 has a total capacity of 79.18 GiB of which 5.59 GiB is free. Including non-PyTorch memory, this process has 73.58 GiB memory in use. Of the allocated memory 72.04 GiB is allocated by PyTorch, and 2.02 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)W1011 05:22:40.092000 9145 torch/distributed/elastic/multiprocessing/api.py:908] Sending process 9213 closing signal SIGTERMW1011 05:22:40.093000 9145 torch/distributed/elastic/multiprocessing/api.py:908] Sending process 9214 closing signal SIGTERMW1011 05:22:40.096000 9145 torch/distributed/elastic/multiprocessing/api.py:908] Sending process 9215 closing signal SIGTERM[1;34mwandb[0m: [1;34mwandb[0m: π View run [33mudgam2-base-v1[0m at: [34mhttps://wandb.ai/udgamlabs/udgam2-main/runs/udgam2-base-v1-20261011[0m[1;34mwandb[0m: Find logs at: [1;35mwandb/run-20261011_052207-udgam2-base-v1-20261011/logs[0mE1011 05:22:40.764000 9145 torch/distributed/elastic/multiprocessing/api.py:882] failed (exitcode: 1) local_rank: 3 (pid: 9216) of binary: /workspace/code/train/nanochat/.venv/bin/pythonTraceback (most recent call last): File "/workspace/code/train/nanochat/.venv/bin/torchrun", line 10, in <module> sys.exit(main()) File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/distributed/elastic/multiprocessing/errors/__init__.py", line 357, in wrapper return f(*args, **kwargs) File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/distributed/run.py", line 936, in main run(args) File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/distributed/run.py", line 927, in run elastic_launch( File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/distributed/launcher/api.py", line 156, in __call__ return launch_agent(self._config, self._entrypoint, list(args)) File "/workspace/code/train/nanochat/.venv/lib/python3.10/site-packages/torch/distributed/launcher/api.py", line 293, in launch_agent raise ChildFailedError(torch.distributed.elastic.multiprocessing.errors.ChildFailedError: ============================================================scripts.base_train FAILED------------------------------------------------------------Failures: <NO_OTHER_FAILURES>------------------------------------------------------------Root Cause (first observed failure):[0]: time : 2026-10-11_05:22:40 host : 25cef7f02507 rank : 3 (local_rank: 3) exitcode : 1 (pid: 9216) error_file: <N/A> traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html============================================================[2026-10-11T05:22:41Z] training exited rc=1udgam2-base-v1/logs/20261011T052251_3isqvm3daaw4q2.logAdded+868