Archive simple-llm-code60-unique-10b-20261020-r01 step 132000
Browse filesFiles changed (22)
- continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/README.mdAdded+11
- continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/config.jsonAdded+8
- continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/data-manifest.jsonAdded+630
- continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/generate.pyAdded+62
- continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/model.safetensorsAdded+3
- continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/model_100m/PILOT.mdAdded+62
- continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/model_100m/README.mdAdded+100
- continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/model_100m/__init__.pyAdded+1
- continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/model_100m/model.pyAdded+160
- continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/model_10m/README.mdAdded+80
- continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/model_10m/__init__.pyAdded+1
- continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/model_10m/generate.pyAdded+50
- continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/model_10m/model.pyAdded+117
- continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/provenance.jsonAdded+152
- continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/requirements.txtAdded+3
- continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/tokenizer/config.jsonAdded+18
- continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/tokenizer/evaluation.jsonAdded+59
- continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/tokenizer/freeze-manifest.jsonAdded+12
- continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/tokenizer/publication-verification.jsonAdded+17
- continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/tokenizer/publication.jsonAdded+9
- continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/tokenizer/recipe.jsonAdded+37
- continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/tokenizer/tokenizer.jsonAdded
1234567891011---library_name: pytorchmodel_name: 124M - 19.486B---# 124M - 19.486B
Intermediate Simple LLM base-model checkpoint, step 132,000. 19,486,037,525 lifetime targets; 8,607,474,906 targets in this additional 10B continuation. The parent root model is preserved.
8K context, eight H100s, compilation, cached RoPE, cropped padding and microbatch two; global batch32; constant LR3e-5 with preserved Adam moments. Code60% (files and overlapping Git patches, one pass), EU5%, other sources35% (up to two phase passes). Sampled held-out evaluation; the global corpus audit was bypassed by user request. data-manifest.json records the sampling and remaining limitations. Not instruction-tuned; output may be incorrect and repetitive.
FP32 inference weights are round-trip verified. Full optimizer/RNG/cursors remain on Modal. Install requirements.txt and run `python generate.py --prompt "def add(a, b):" --tokens 64` from this folder.12345678{ "n_layer": 14, "n_head": 12, "n_embd": 768, "vocab_size": 32768, "block_size": 8192, "architecture_version": 2}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630{ "format": "scholarly-raw-v1", "training_ready": false, "max_passes": 2, "tokenizer_sha256": "add5b2c7542e4efded329735825ecdcb94df1432617c3d3e4b7508aa459432f9", "database": { "path": "raw.sqlite", "sha256": "28591b08f0dea39e28394610be43eb7e1516219a2190bc8acf54a505cb280edc" }, "external_databases": [ { "path": "/__modal/volumes/vo-60Ve4K5tm23Gwv4vmskqZD/scholarly-code/readiness-20261020-v2/multilingual/raw.sqlite", "size_bytes": 16240263168, "sources": { "code": "code" } }, { "path": "/__modal/volumes/vo-60Ve4K5tm23Gwv4vmskqZD/scholarly-code/readiness-20261020-v2/patches/raw.sqlite", "size_bytes": 102326272, "sources": { "code": "code" } }, { "path": "/__modal/volumes/vo-60Ve4K5tm23Gwv4vmskqZD/scholarly-code/readiness-20261020-v2/original-refresh/raw.sqlite", "size_bytes": 13058871296, "sources": { "fineweb_edu": "fineweb_edu", "finemath_4plus": "finemath_4plus", "pes2o": "pes2o", "pubmed": "pubmed", "arxiv": "arxiv", "pressbooks": "pressbooks", "libretexts": "libretexts", "doab": "doab", "gutenberg": "gutenberg", "pre_1929_books": "pre_1929_books", "library_of_congress": "library_of_congress" } }, { "path": "/__modal/volumes/vo-60Ve4K5tm23Gwv4vmskqZD/scholarly-code/eu-continuation-20261018/snapshots/ecb-ema-one-pass-v1/raw.sqlite", "size_bytes": 736940032, "sources": { "eu": "eu" } } ], "sources": { "fineweb_edu": { "weight_percent": 5.000000005, "weight_percent_exact": "1000000001/200000000", "max_passes": 2, "splits": { "train": { "loss_tokens": 478295380 }, "validation": { "loss_tokens": 16714 } } }, "code": { "weight_percent": 60.0, "weight_percent_exact": "60", "max_passes": 1, "splits": { "train": { "loss_tokens": 9734098921 }, "validation": { "loss_tokens": 10342 } } }, "finemath_4plus": { "weight_percent": 9.9999999925, "weight_percent_exact": "3999999997/400000000", "max_passes": 2, "splits": { "train": { "loss_tokens": 904672236 }, "validation": { "loss_tokens": 15482 } } }, "pes2o": { "weight_percent": 5.000000005, "weight_percent_exact": "1000000001/200000000", "max_passes": 2, "splits": { "train": { "loss_tokens": 675656241 }, "validation": { "loss_tokens": 32719 } } }, "pubmed": { "weight_percent": 1.4999999875, "weight_percent_exact": "119999999/80000000", "max_passes": 2, "splits": { "train": { "loss_tokens": 210006832 }, "validation": { "loss_tokens": 27021 } } }, "arxiv": { "weight_percent": 0.9999999975, "weight_percent_exact": "399999999/400000000", "max_passes": 2, "splits": { "train": { "loss_tokens": 139692417 }, "validation": { "loss_tokens": 32768 } } }, "pressbooks": { "weight_percent": 1.624015925, "weight_percent_exact": "64960637/40000000", "max_passes": 2, "splits": { "train": { "loss_tokens": 128649647 }, "validation": { "loss_tokens": 11455 } } }, "libretexts": { "weight_percent": 0.195824125, "weight_percent_exact": "1566593/8000000", "max_passes": 2, "splits": { "train": { "loss_tokens": 85540364 }, "validation": { "loss_tokens": 2336 } } }, "doab": { "weight_percent": 2.2484547225, "weight_percent_exact": "899381889/400000000", "max_passes": 2, "splits": { "train": { "loss_tokens": 291928444 }, "validation": { "loss_tokens": 14159 } } }, "gutenberg": { "weight_percent": 2.8105684075, "weight_percent_exact": "1124227363/400000000", "max_passes": 2, "splits": { "train": { "loss_tokens": 394923806 }, "validation": { "loss_tokens": 32768 } } }, "pre_1929_books": { "weight_percent": 3.9347957775, "weight_percent_exact": "1573918311/400000000", "max_passes": 2, "splits": { "train": { "loss_tokens": 535096499 }, "validation": { "loss_tokens": 32768 } } }, "library_of_congress": { "weight_percent": 1.686341055, "weight_percent_exact": "337268211/200000000", "max_passes": 2, "splits": { "train": { "loss_tokens": 270703944 }, "validation": { "loss_tokens": 32768 } } }, "eu": { "weight_percent": 5.0, "weight_percent_exact": "5", "max_passes": 2, "splits": { "train": { "loss_tokens": 878610362 }, "validation": { "loss_tokens": 29325 } } } }, "excluded_validation_hashes": [ "00002325a2ba02d9e09f97c1639eea35f6294f64b000e685175f31843feae4cf", "00008faf5ff0cba23e07613ae3ea09f3b7514b92cf98799465a75597b98d2ffe", "0000a895cfa2f8ee33d36fa29e158dce3afa984bcc146e7998739bc69551e1a9", "0000beb4625cc7ca48b6acf93059b86efad6150473ef9a8c5f6497d6fd0844ee", "0000f7ce4b43fc64d8d257f24bc97776c9b8a9dbf3f1c478c1a6494764ca41cf", "0001314d486f6d5875c2b5469a27df494b3b468cc00b41e2422e08ae8fc3d957", "0002a1125b110e79350691b57983af92fca2d2f25c9a585df953c9fdd2925cd5", "0002cdffd4e6b410d26032fd043dc639cbb63597a7205aed2d89a2b7be034c10", "0002ce81963c72669f9565e9776627e22cff113530f7135a7a6e21fc077e7e69", "00030b3211e80e6c4247b73b4bb29fde903e1cd8e3831c00af7ff22abc0b7c8b", "00031ba363f6a9c3281bde129c26ce4b8e5eee07a21601883d2ddee7cfce551a", "00033b95befad90d022e01ae6466da46d46fb42d64fa4e4626782eb7243adb41", "00035b29cec5508a0dd7d106538052096ec7b7b22f3f3fec9d514ab4fdaaf2b4", "00042c04ecb168555dfdbccb5bf71d1b761c7bafae9e370fd60d122cfbb9b271", "0004593050a099bfb25b6bc65c21b27e207999fa44e41282ea333724223ef689", "00052b9e088c20c0575d84d78abb1db2e22bf65c7e7d98f1a6b7ff8eea1c37fd", "0005af8903e71789641905703453a4ec3b23873aac27dc0684675bd45127d605", "001153e896ecede98857412c51ddf63ffed76dea20315f5e016be35a12ad1376", "001a5f76a80349a2d37c9f66857899f0654ba2aa99f5985c861287abd1831ef0", "005ba53aa215916b82f741ac3fd26c34d7af271ccb7a7a8ae82dbcac1709d20e", "006343dbe40eb4d8c664172686c18fcc32ddd147724ec269c585419af39c272f", "00ac684ed3b47fe74572c826b4fe37944257277aeb818a4c6ce58f66a3ec9fd2", "00bb746b5c862d3aa321418a89914be3fcd4223a858ddcb65cd0640d8b48eba9", "01003bbf207c7bd4e5fe2795441b5ed294bcda777c388581c6c976bf93a5eaec", "016f706ff9c4cefbcb0f9580d9160462e399343dd9e8648d341dd81f6c197474", "01708bdc62c9f081c190ce2934d77b4b3ff4b635d26da6e2337238f77b26c150", "023a40f64c3efe8369957381910706e7b4a1799bc64cb2914f8d86627917242a", "0349e5f9a162ac3f4b2ae5c831f1e7d3b94520186ef5fc94b5ce59d7eb39d70e", "0487adca499a28c9288d4a6fb0f6a93b1fb8a49bb2f734179cffb9b545ba6037", "05f44ddb1557f2f155465c18a2b3c95c321ac5553efa70c8185a1d14319e4fef", "0628c2c0eca75f8da941a1091a2a0695aa02125af03e768ac67d26ecb1c2653b", "06427aaa81babc715080a8472aa86c6aec96baa1fd460c46f0275cfe6897b537", "0686d77012351f000c7c19492f5c43fbfa5b2685c071f4f7d7e566da8f1c9cdb", "06b4c018d6230961c3408f28d77001a2979fd7c4281d13a66a8f96f7a02833db", "071dad430f7a401faae85b05cb81cc36bac82abe77867e49bb4e6d1835192c3c", "0764cf96a5e8ce04cfe8914c3f04dafe0385826b28b5cb37deeec77b0b1e8627", "07d052b00ff26d897a5b32872c5232b408304ed9882ebb005178194fa18997f1", "082f7088ee874a20d80ab6a481867429d588cf167f34715cc09b31405d90cbaf", "08adca55fb285b349d9288b907de06976b087422d71c0fcec8f248c80b1f7ed7", "0921fc5215ceae56cd73312e6f0e8f0c47dd2f2d5f3c26b6f8e3aa1200ce2e5d", "09beae385a26bd831f48832a78735cb09190339161c829f2098498d9bd77fa35", "0abc18ef6e9f8df569a18f9b643275e179e2afa65d0794da25f82f7ef0206bc9", "0bdfa3d582a1c124d2ab18dea82684793c01bbdade8547dc9d5c6afb186cc152", "0cd066f76266ebca0808d608f6d45f60a6e39c67f8a66e2a69dbb32933620bb3", "0d5aea278da66a3124275e877d1adcdf5349afd20e6ce8e2804cd1e4740d6cfb", "0e4de8a64cc314d008da884a2885488a97d2ecd22bc7de2bd9fb2e192f7180a2", "14471e28f01ca22b15b711008259048de407705d3278fca709af1dc6e9bd0d31", "15e8c941054655322b379ef886b36fdfe03e09be1f692ca8100db855eba72794", "184c6eb9a9dbd0fd21e5ca3b9fdd4caaa57cbf29fc013c3f6a307fe4b574c9ff", "18bef6ba8f3f30d4f324a0ffbe41586891f856fb3e93dcca446bd8a4eadae50f", "1d344918253993b4b883d0d64da74976c092b3dcb4f4e3fd5a820f60d66453df", "1db961fe2e5a84d8cd9981a4392ea5622469c406499c9583945754902b8eeee5", "1dfdfe63a5a9e46c9f797ef4a7e96b7a50edd90805cbb5345a995022f381a6ef", "1ff339c6d4786427e79d44bd1ba48bc5d46843341bbdda26435ef41f1511411c", "2031afc501c8b540177d2f01f4bd1970d533dfd27ebfff07a2ebeae85254c055", "24225aa9f0a358fa0132347307452186efd90f44e9c260d0598d042401477755", "268ed5073987abfc9fa4ce24ff3d319696054c7b30fc1e6eef1b6f3284560d0d", "2a707298525d9587ee19be08c80c0f452b80836e3d19ce3d19341ff6b1e2d6e3", "2a8426513d4a31a986abc675e6e82db6191fc151be88b59023f1427c82256711", "2d3eae8faa048b91afbc4ec7e41be431dc42a9a800d4134267db705be7d3e4bf", "2e3445111020ea7f529f45e4df7a1c1a13952d1c568013eb41e5fc805ed096ad", "3426520cef462840ec1e82dbb50160fe005d8d892a5a13dc41a40b3531b315b3", "34458627ebdfee764e979c67f8de0cce26889665a7a6395a4094d0a967522421", "369ce1c1d763889b274dbae6a010960dfa91a6ff9f5e1335ddf87b658aa68783", "3afaba2675b6a1a55d3576e917154f75f84cde0cd4c2c0467241b1d4dc49d6ea", "3bebb2f00d9944d3804392fb5f1c1a7a62cb9720aa8c47289476a10a33428c2f", "3cde353b7d827bfd4d317d6a720563e4178285b5b49e6b3eea924486d8957e05", "3d0da22bd59bd087028860291a49d0477d0056aa2719203d916eae62edd0e8e6", "3d68360741bcd81412b4ac7f503c13488a9110602166507873c666b696df8a1c", "40460375fe43899bc7944fe5c7a4f23e8a79c8ea77bffdc3cc5a43f4e0234b18", "406242c78576cbff037f91ce8f127ce3eac73bc51c7a314dae2f0f1ed7ad3420", "421992c7e4876856e7103ac0296700143ebcac8bf7194b91018c1aaa109d5fcb", "44123af619ce33fc5824a8cdd1304e79ab22bbc646589a131c93acbed6c8055c", "442e71d02bfdb46abda10b9327e3e61d4e33ce5bae1ff71b2aa8d1b0259007ab", "4653a71cc71ee678776d288f97a2624709d8bd15b018a2d60985e45df445adf3", "4790417bfe995042ff61f8905f2fcb37653739039ee33b517b5ca8ab3dd396dd", "4972c2ac3c82ef05a3a4821a3156db426b55afb9b5aeae23a54118fe3d424273", "4a8a4b927fb31c8a64b54c2110b96a96c1d8590f8b9dad47e822aad998efafdc", "4c1a1fb6d3f00ec2db14eb974d521b964c8e5224b4e90408db1ee0013f81a916", "4c27e086c7055f99b9bc2405798b1ec4d86e01ac8d901d480d96eab1759bbde9", "4da14810fa233040217593b131d2d0d77fc318e66e235b84e08c62c75baeff06", "5099c4c98a0e0e95f347835ab5929fbb691291042b6f564eed51d12fa9b42d9f", "52a95f45246fd64f62d40c056822946aa7d83b3211dbd9a634b5493c0f738383", "53d829cb69b3817adca967a209115d16c5cf5213ae845fc66ab113f3ca1a3ae2", "55564940fe58c5aa08599e9b4c5ed960908243e5d0a12b1a6b214f49bac0ef96", "57988e3189a702b1a51480239535cb04585a7d0bfea90bff805871b3608ef01d", "581de2811318531e5596e64438e22c067d402d8cbb7f9dc46013dbd620284424", "5c1f66aef586ddfe2cfc3982d9aca5ee595b930a63347dd00aac8e7606dd8697", "5e9f791a3fa4f10f5725f2922f1165ec963fef290303a0375ea3eb28f644fd00", "5eb9fb49b87dad281c5d3994da3753958845cede26b765bded4d2ea649084d45", "630d20482050837e89687048cfd58f84282a7680a1b5871a1b2a9ed100792434", "64fe8d745e1a0915c6a180925fab40e3a3cdde9242fe61bb3f7970895af04669", "6725b5b8f093d3b0c71210802d49131ac23223c39f420ff516bda4da42bdb6ca", "6878350999596c2f89886c8ac6d3ef2d9137fd7534544e45898ae009d27fa2bf", "6b4312aa80dbc7738dc9082f98cfac9ca51c8f805502d6d62f502768b16e9d1a", "6bda12ccc31c0e0416dbcc8d5aff5641a6cef29c9c4fab6c6228eb34673c587a", "6be8d9aa6285eb52647b71a5f0fd1f80f5f39ee8f51198ff8f68a853803170b8", "6ee7aef85ca9cb29997f1fdbe718329f57c2a01d0742bf61a81c3b747160a0fa", "6f3f23f4a406e5c837e62e87be7f092b84baa23ee1d2712c2e5af9e4735c66c9", "7361cea07452192a74e5287425cb287d455528a9053a1c77d590ff9725bf5927", "74f614ea19e34f3f33973e165ef29c7e29aeadf67d392c5f046a9b1bd1279443", "77e709b206db55da10ad46931adee2aff7264dd4f110822d278e4c585b635fbd", "7931c3fd834d0c99ad9e26a06d9ab1d3a11c1b91bfbad5c4b580b128d23f00a1", "7f416acadfb33f5986c50b4b0ee1e7ac47d950a4330d45abc3858d48827d099c", "7fb6fa6aa2873efd1b19559bbdf5e85be3fed9aa1492fd021c20fd31fc4d78cc", "827e7895cdd9ad1832e9961b062f8485578dc9717829046cf88ef49e8dbf7dfd", "85868dcc38c85203b928a33deade3d162ae6bc35bce5a635469479e07f61c06a", "8693a021d28e5c7ac8f4967f75110e5bf6fae378b78605cae16aa5ad2883e029", "87f7dc7918aee3c836ad87c07c7a835bd4f13d45043ea0175d927064060588e8", "8968a4b39fcd064121c5e555e13b7f0feab3537dca69bdb4e7349fc78e408301", "8a638bb2a3b67315d787a8aba8e34b3b354b13361f3c63156f5ca4c6f8a1b6fe", "8b471fd8207dd8e4a5e9585f1b639adae72005344f5421aca17f48e2e0321f13", "8c2bee08e96e9593f111ce65c06222c8e30ec8a272f26d3b113375aa55913eb0", "8c92b133c1bb76fa3d996f4a7fbd40300a28f96a9a9dc46e1cc577e1e2a72647", "8d175f8d85c5134516e252850d5df8eb631728edadb5d1de7cbaba7067a40aa9", "8e5cdb217e7e3c76d95b286664cb2a5e19e7d5498f30379b18cfd0b9e9da5faf", "9756d6b49012108051ac7cfe1a4eace7caedc1e689c496b6bed7139cfe4858e2", "980a163941fea203ae87342b2c206a601318b445171a33b2ebb598bbb22661d5", "9a20959b86e33d533b69d09393ed41c6269d07e436af405151458e062cf60d1b", "9c3cb25a7c56fb39559ed37e561adaa00f52c813336d32c6a249bbcbec2781ca", "9d3019ee533b22cfa9e2a44193f05e45bf2e21bf782e36bffb0e7cadc4931a3a", "a1b66474c7b2cccdbbc1d19db0ea664eefe8bc6abb2ccfb5dba271fc487465b0", "a41c47593681a701e53713c1a74ea60e429f180a61bea7eb870c09389ce3c851", "a572bc1ef44695fcbff90b5ad7d741f742e21b364192a6650f563d12fe0c7860", "a5f866addc314ab7ef87d00f65a9ee08836ecabd563b2b82bad666b717cb14d0", "a7c6e8effe99d2087aa1a78d8bd0516f1e0c49df0098393e8f61b1214aed6003", "a9331836a7d912ee16c5cecbacf525f8a34646df025bd0b9075359a45cd05c45", "aa7b86199c52fd5adeb7883bf8f43f72a06fbdec4a35dea2613a346d6183c854", "aa82eaecd68b0dca836759cd6ed818f318b1823797dff1bb9c6087ba41dff8c1", "abca6e735ba8996de7d19f807666c5aec9b398c9e50be675d92232753ebffce2", "ad6d3633abe904a1f7d2fbbd72ce8662d801c171fb693dfe9c7d7934aa3b7be6", "ad99042370dd61d899486f1107c8f2d515fabc9d0199c45e110ab4e628db7863", "adb45feded830788c9470b511b67526288176918c9ed6605e22e78ed078310d4", "adc88f9e6fadb350af2266b0621fd64fec7ab02b09b8a6b9e438ed9a84af8833", "aecb8e50542524a965c9024fdca8ccd34f98f65ab998d097b764eaa9ce47e5d6", "aed984dc0d1f9f24ca1701d12081d18c961da376933e866d660f33f8760aebc7", "b438be24b123c616a4d1fb5f8a5c37e6328df24d3c40a98d6fb49156d82c2f15", "b4b1697a3d5efcfee6b348fadae2575e14c0a1d3a95e004c52b6b3dfda691f9f", "b8633dd164b5960354a2fd1249823e46477669d49d8e0c6c52b51d4e0699649c", "ba3582ced3d6359a674d4fa6d00a4559084462810aaccfb039eb65d5f65e1e9d", "ba9bc36e26d5e52074c1703c053903a64791e0bc3a82e2528a127ea022e16edd", "bae0d456a03d343d12ac92db4dcadffc534d0ee0c874b46523ccecfd51a50187", "bc0b29e2a159a00bff8a6b0b6381acc62f8ffe69a8bd1009ed268c824463a883", "bc53c9e1c4de602fd467edf212c5445c18326595198b90f370b8fd33f2c1df8e", "bc6721a395e0958882d93008520a8c15b02f6ef51a8827a38970df652af7a64d", "bec5e57847f3b9bdc94a5de228598ed30a780af50ead14026581cc4416932df8", "bf7fc0da4c1fb440f3adc95394b36591e72829655ecadb07c054517a4b03ea5b", "c10619c3df7cbd3d968d26e01270894d5cc158b8335e8b1ca2bdb411f786326c", "c18297428eb72cab8d1254f440e9b4dd5455ff193a52321b8e7132e795e291db", "c196d59fa46a2c07f550c86a78c7ea2ca7c9230e312c4594b1299258d5360e40", "c4dd2206fb8112e6b51b81b9f4d9a9c1ead8db1fe7fba3c70c8809bf1b84adf2", "c5d49f07c6bfa0907d7e54742ab02f66d8c4a47e317816b815203a12de55534c", "ccb8bf0c8a2c40d89c80bc47579bcbdf978e13bc841fa13ad535982e86282ffd", "cd2383285b849fed34d997a9c0f991e6f851916b98aab20b5de2bbf389e2ca2f", "cd6448f501ecd646d510085705395fc52888869dc1ad1f70409264efab3e2423", "ce58b18e4aff38d43b07dc93b2aff20466226ad35a3b8899b6e2cd1878cbc074", "cfddde1995637e81012c3cf3d9b1b1f5de5489a7bedfc52e6eb4fd49cc492f58", "cffa37e1e90326493d01b67ce697bbe2c5ea05793882cc20e8ec3e5b5bbe6687", "d2b9060b82f158f8bc2432ec9307849f0df3c04a3f88142f017678cbeeab32f0", "d6c18b5e1273b9b82ba1c3cac7504da4c52297b4d1cda33ec5d3d939b632d769", "d6cf1cb7da6e97d64514e182e748aa6dcc5db5ff7255694115a56240a957b4da", "d7ee4c5be500d649b0b45bd18b0f5ae24e336bc37af17229c7f86bc9c3e55879", "d89736dd0ea5c1feba0f32ee99abd0dec3568dbbf581693adda5ed158a3db73a", "da321c7c37f07123aaa1d0ae133146c47c1ce8e0360bb741c51faaf2ab4bce6b", "da41c5103a24825d74e348e4e2eab97a8288a8b8c3f88f441659085ccce453ad", "daceba2f3a95869557a001a8ee18cd488cf24adfe68e6d46f66237efa0044348", "dd56f05736630eed4e2972a549f34723439eee2038cef885db048c0a25ad131e", "ddf09391323448e65f6b59fa20d1b84618f8b914cf3a67894737555c3fe27cb7", "e0bdf78bb54b8b5709d7a88ffaab1ddf41d2424b1d57b221fcee9168662b2eef", "e0fa073c577232c502f067821f6670e29e9a44b3858e5a55904c6bae3957620f", "e14fcc6d37631470b2fa3616b1f499a6f916cf37d05269b7791ffb6affb6f3b5", "e1964301a63b5933a0d0709dd39731973cc4c4257da31961d2efde64e5553182", "e3c13170379db3c54b43e7b7948814fe9a0e5698d58b50d42f826e4f63a65956", "e454b2113eabef4e12309745e96fd5eafdae243c635979851211469bb127a552", "e5e4b4cf1de6f471e4fc0c5375b2fea89dcf65fc46e33d17ce05ba7abc9ec3c7", "e79e978e27ea11ed6ca23c94661b65565a9a7ed0ffc4ac9380b0e02f400ec1b5", "e9527fd7ce4f3b85293336f7d3384b79a1ac7c67a8bc4c644cc495bcc79b4e12", "ed15d977b1332b898342b99ddbee3ec3a9fd5c0816151b45af61cdd20afde038", "edbcba2031e185565497123add1887873f8d7aae2fcc51ef1d2c3499fc00c86c", "eecf6286f48ac33441583ff4715cdaa5c19bb3d275f6fa2cff34b08cff63ae80", "f07ba8a44420b085ea613cd6b10abf4b6025b569a609b9085891c234a0dfa97c", "f2164f162f5c6e9b6b07dd073668eb235305812ea9f8fafe2f97d374ec1849f0", "f25accca76622b6179c50217763f91ad5a1fc7428b54ea1b9e7fff79f9b317fd", "f33e8a80be96ac60ddd9146be2b7174ce031f01be7c455b4dd0cf9240078e46e", "f5aa8462086f79ebd022272db97ca763736532e520418e1952ff5479a79d9cb8", "f64e041bf4c27fb4292b0e4734d98790d0a28e5444b72b48a35b0ce0cdcb85d7", "f7e197f29aaf614016abf7310cec1150c9f286aaa2aa91e0d22f8c5d810d9401", "f9ad0897c4e16569e1ae0693df5be8b6600d2e6a89bbdc7d00a32e1f4479a213", "fb1e0ac44c4be4a495778b9d1d71aea5d7868ea59f90274eed8bb6961e2e5ad6", "fe4de88298818638a181cfa68b5e32c9f18557360a7801ff2a7ac269b3100bcd", "fefbe7ac95ffe506ef7ac8ad97bcdd03baf4ee110bcf193a494a2b11acf2c691", "ff9a6eddeca2042e1ab99f7c4999e9fdc1808c8d286c25bf37d709c80376d878" ], "excluded_validation_parents": [ "arxiv:0707.2312", "arxiv:0708.2697", "arxiv:0711.0637", "arxiv:0711.3992", "arxiv:0801.4603", "arxiv:0802.0485", "arxiv:0802.1852", "arxiv:0802.2385", "arxiv:0802.2389", "arxiv:0802.3030", "arxiv:0802.3245", "arxiv:0802.3268", "arxiv:0802.4246", "arxiv:0803.0040", "arxiv:0803.0074", "arxiv:0803.1749", "code_python:amatsuba1222/twitterapp", "code_python:andremanuelbarbosa/intelligent-web-search", "code_python:dcneiner/hyped", "code_python:devexpress/testcafe-reporter-spec", "code_python:hana-lee/pc-bang", "code_python:jpdevries/availability-grid", "code_python:justone/docker-pageres", "code_python:lululau/mfd-alfred-workflow", "code_python:magdalenachmielewska/todo_list", "code_python:maksym-gryb/sdl_wrapper", "code_python:matthias247/http2dotnet", "code_python:patrikbujna/company", "code_python:pincats/java_pft", "code_python:profburke/ios-icons", "code_python:steeleye/steeleye-sdk-java", "code_python:zeekay/lambdabot", "doab:004623c8-cb6c-4a99-aee8-c83552616d6e", "doab:004db1df-dc76-42af-952f-1f5e82b7822b", "doab:006d7857-e96f-4630-aa40-deadb120d9aa", "doab:008e5806-622f-4253-b2ea-b5ff3bc68b10", "doab:00a8b881-8129-4c43-8020-71a681d78001", "doab:00c47570-7cf7-4066-a67e-65ad91bad4a1", "doab:00f4c086-ed87-4c1d-9b9e-9dca43805cd5", "doab:01059797-680a-4855-a5f7-9df0e7906200", "doab:010dbc47-49d1-47ae-a9ab-eda9967b9e04", "doab:011d2ef3-3d9d-426a-9e47-3a40f99c4d30", "doab:0129305a-0840-4c70-8585-22f37bfd86f3", "doab:014eb075-1b41-4903-b49b-6b55f6955e80", "doab:01ba1854-5f0b-48a2-92dd-0968d15af1e4", "ecb:1033", "ecb:12536", "ecb:1852", "ecb:21657", "ecb:3179", "ecb:33162", "ecb:5526", "ecb:6506", "ecb:6820", "ecb:9323", "ema:ema:68560:en", "ema:medicine-enurev-breezhaler", "ema:medicine-lyxumia", "ema:medicine-mysimba", "ema:medicine-riltrava-aerosphere", "ema:medicine-symtuza", "finemath_4plus:http://slideplayer.com/slide/2489124/", "finemath_4plus:http://www.docstoc.com/docs/127907834/Grade-6-CMP2-Games-Online", "finemath_4plus:https://ambitiousbaba.com/sbi-clerk-pre-quantitative-aptitude-quiz-07/", "finemath_4plus:https://analyzemath.com/trigonometry/sine.htm", "finemath_4plus:https://math.stackexchange.com/questions/767888/math-for-future-value-of-growing-annuity", "finemath_4plus:https://my-assignmentexpert.com/2022/02/28/%E7%89%A9%E7%90%86%E4%BB%A3%E8%80%83-stern-gerlach-experiment-%E9%87%8F%E5%AD%90%E5%8A%9B%E5%AD%A6%E4%BB%A3%E5%86%99-2/", "finemath_4plus:https://proofwiki.org/wiki/Real_Sequence_with_Nonzero_Limit_is_Eventually_Nonzero", "finemath_4plus:https://socratic.org/questions/is-0-4-undefined", "finemath_4plus:https://testbook.com/question-answer/if-surface-tension-s-moment-of-inertia-i-and--5e230be5f60d5d3b87e1be08", "finemath_4plus:https://www.brighthubeducation.com/lesson-plans-grades-1-2/75553-worksheet-to-use-teaching-math-to-first-grade-students/", "finemath_4plus:https://www.experts-exchange.com/questions/28977758/Statistics.html", "finemath_4plus:https://www.gradesaver.com/textbooks/math/algebra/algebra-1-common-core-15th-edition/chapter-8-polynomials-and-factoring-chapter-review-page-537/51", "finemath_4plus:https://www.gradesaver.com/textbooks/math/algebra/elementary-and-intermediate-algebra-concepts-and-applications-6th-edition/chapter-5-polynomials-and-factoring-5-5-factoring-sums-or-differences-of-cubes-5-5-exercise-set-page-338/46", "finemath_4plus:https://www.jiskha.com/questions/838764/solve-by-using-subsitution-4x-y-2-3y-2x-1", "finemath_4plus:https://www.reddit.com/r/math/comments/82yzln/if_i_had_a_sequence_of_16_actors_some_recurring/dve2bb8/?context=10000", "finemath_4plus:https://www.shahmoradi.org/ICP2017F/homework/2-solutions-variables-values-types", "fineweb_edu:<urn:uuid:0d8a309d-25c5-405d-a08a-c11239f0d717>", "fineweb_edu:<urn:uuid:2480913d-15e6-40fb-bd2f-6aef45cf4cc6>", "fineweb_edu:<urn:uuid:293a002d-f152-4885-9293-13b158f7cec0>", "fineweb_edu:<urn:uuid:2d78b7df-6d64-41d2-b067-f79998c60eeb>", "fineweb_edu:<urn:uuid:2db016d0-d509-4003-8288-668024b1c2bf>", "fineweb_edu:<urn:uuid:3cd46b83-2936-49a0-9b1f-a7fc2baa9e50>", "fineweb_edu:<urn:uuid:4932f7a4-ad95-4a3c-aceb-f7b7ec9a24f6>", "fineweb_edu:<urn:uuid:59d1379a-70ad-4360-a62a-5e2f17f7c1b4>", "fineweb_edu:<urn:uuid:6d0fc7ed-1e2e-42ce-97d8-cae14228fa3a>", "fineweb_edu:<urn:uuid:9a67df01-912f-47fb-840c-a18cd3caa1a0>", "fineweb_edu:<urn:uuid:a244d012-82a0-4c3c-8ce5-37d705085e34>", "fineweb_edu:<urn:uuid:a2bf4085-1745-4ba3-afd8-5a46d9ad2a75>", "fineweb_edu:<urn:uuid:b1ad8cf1-1721-4d74-824a-229b6b70a91b>", "fineweb_edu:<urn:uuid:e139d24e-7144-4cf8-866c-6066d64a435f>", "fineweb_edu:<urn:uuid:f10a38f2-0a57-4cdb-9af8-38889e1e30a2>", "fineweb_edu:<urn:uuid:ff296fbf-229d-4b32-9143-e1023cdf4f1c>", "gutenberg:10008", "gutenberg:10013", "gutenberg:10017", "gutenberg:10023", "gutenberg:10029", "gutenberg:10031", "gutenberg:10032", "gutenberg:10033", "gutenberg:10041", "gutenberg:10043", "gutenberg:10045", "gutenberg:10051", "gutenberg:10052", "gutenberg:10068", "gutenberg:10075", "gutenberg:1008", "library_of_congress:02010814", "library_of_congress:03014763", "library_of_congress:05020970", "library_of_congress:05033230", "library_of_congress:05036499", "library_of_congress:05038889", "library_of_congress:06038878", "library_of_congress:07016775", "library_of_congress:10028629", "library_of_congress:19015531", "library_of_congress:21005558", "library_of_congress:42027286", "library_of_congress:47046565", "library_of_congress:ltf96010657", "library_of_congress:tmp96008747", "library_of_congress:unk82062846", "libretexts:https://commons.libretexts.org/book/math-34975", "libretexts:https://commons.libretexts.org/book/med-16470", "libretexts:https://commons.libretexts.org/book/socialsci-114733", "pes2o:10805381", "pes2o:12854268", "pes2o:136239995", "pes2o:14579248", "pes2o:16868273", "pes2o:219588781", "pes2o:226303834", "pes2o:229402556", "pes2o:259071919", "pes2o:268717548", "pes2o:3027917", "pes2o:54536664", "pes2o:55999361", "pes2o:59942107", "pes2o:67033653", "pes2o:80408283", "pre_1929_books:askaroskassiscop00deleiala", "pre_1929_books:closedbalcony00haleiala", "pre_1929_books:danielevertonvol00putniala", "pre_1929_books:expansionofrussi00ramb", "pre_1929_books:firstreportofman00alle", "pre_1929_books:glaciernationalp00holtiala", "pre_1929_books:historyofmilitar00readrich", "pre_1929_books:ladymarywortleym00benj", "pre_1929_books:managementmenrec00bloo", "pre_1929_books:monographsoneduc01butl", "pre_1929_books:panaillinoissome00reid", "pre_1929_books:reportofstatehos00nort", "pre_1929_books:sanitarytroopsin00unitrich", "pre_1929_books:socialconspiracy00iogoiala", "pre_1929_books:spanishidiomswit00beck", "pre_1929_books:treatiseonlawofw00boweiala", "pressbooks:https://books.lib.uoguelph.ca/copyrightcc", "pressbooks:https://ecampusontario.pressbooks.pub/debbyomodugba", "pressbooks:https://ecampusontario.pressbooks.pub/haidenstrentjourney", "pressbooks:https://ecampusontario.pressbooks.pub/jialongwang56789", "pressbooks:https://ecampusontario.pressbooks.pub/ld0eportfolioexamplebella", "pressbooks:https://ecampusontario.pressbooks.pub/lisasdemodiary", "pressbooks:https://iastate.pressbooks.pub/copyrightforteachers", "pressbooks:https://iu.pressbooks.pub/resourceconveniencestore", "pressbooks:https://kpu.pressbooks.pub/housekeeping", "pressbooks:https://mlpp.pressbooks.pub/studyskillsactivities", "pressbooks:https://opentextbc.ca/abealfreader3", "pressbooks:https://opentextbc.ca/testing", "pressbooks:https://press.rebus.community/oerrubricpilotgrantresults", "pressbooks:https://pressbooks.bccampus.ca/singlephasetransformers", "pressbooks:https://pressbooks.claremont.edu/thelibraryinstitutionalrepository", "pressbooks:https://pressbooks.pub/husamalshareef", "pubmed:PMC176548", "pubmed:PMC212319", "pubmed:PMC212689", "pubmed:PMC212698", "pubmed:PMC212705", "pubmed:PMC300886", "pubmed:PMC314468", "pubmed:PMC314470", "pubmed:PMC314478", "pubmed:PMC314483", "pubmed:PMC340950", "pubmed:PMC368161", "pubmed:PMC368172", "pubmed:PMC368174", "pubmed:PMC406387", "pubmed:PMC406391" ], "heldout": { "path": "heldout.jsonl.gz", "sha256": "9cfaf9a9084a4767c2196a81e7f075b12bfcb9bcdff45bd1fb046f0545b59d41", "tokenizer_sha256": "add5b2c7542e4efded329735825ecdcb94df1432617c3d3e4b7508aa459432f9", "windows": 192 }, "readiness_gate_passed": true, "readiness_mode": "prepared-data-direct-user-authorized", "phase_target_tokens": 10000000000, "audit_policy": { "global_audit": false, "benchmark_screen": false, "tokenizer_diagnostics": false, "validation": "sampled parents and exact document hashes excluded" }, "pending": [ "Full corpus audit bypassed by user request", "External completed databases checked by path/size, not full-file checksums", "Capacity uses completed preparation counters before sampled-parent exclusions", "Patch versions may overlap; code records have one pass, other sources up to two" ]}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162"""Generate from the root model or a saved checkpoint in the inference archive."""
import argparseimport jsonimport sysfrom pathlib import Path
def main(): parser = argparse.ArgumentParser(description=__doc__) parser.add_argument( "--weights", default="model.safetensors", help="weights path relative to this bundle" ) parser.add_argument("--prompt", default="The solar system consists of") parser.add_argument("--tokens", type=int, default=128) parser.add_argument("--seed", type=int, default=42) parser.add_argument("--temperature", type=float, default=0.8, help="0 selects greedy decoding") parser.add_argument("--top-k", type=int, default=50, help="0 samples the full vocabulary") parser.add_argument("--device", default="cpu", choices=["cpu", "cuda", "mps"]) args = parser.parse_args() if args.tokens < 0 or args.temperature < 0 or args.top_k < 0: parser.error("Generation settings must be nonnegative") # Hub snapshots use symlinked files: resolving __file__ would select the # shared blobs directory instead of the snapshot containing config/tokenizer. root = Path(__file__).absolute().parent sys.path.insert(0, str(root)) import torch from model_100m.model import GPT, ModelConfig from safetensors.torch import load_file from tokenizers import Tokenizer
torch.set_num_threads(2) torch.manual_seed(args.seed) model = ( GPT(ModelConfig(**json.loads((root / "config.json").read_text()))).to(args.device).eval() ) model.load_state_dict(load_file(str(root / args.weights)), strict=True) tokenizer = Tokenizer.from_file(str(root / "tokenizer/tokenizer.json")) ids = [1, *tokenizer.encode(args.prompt, add_special_tokens=False).ids] with torch.inference_mode(): for _ in range(args.tokens): logits = model(torch.tensor([ids[-model.config.block_size :]], device=args.device))[ 0, -1 ].float() logits[[0, 1, 3]] = -torch.inf # PAD/BOS/UNK cannot be generated content. if args.temperature == 0: token = int(logits.argmax()) elif args.top_k: values, indices = torch.topk( logits / args.temperature, min(args.top_k, logits.numel()) ) token = int(indices[torch.multinomial(values.softmax(-1), 1)]) else: token = int(torch.multinomial((logits / args.temperature).softmax(-1), 1)) ids.append(token) if token == 2: break print(tokenizer.decode(ids, skip_special_tokens=True))
if __name__ == "__main__": main()123version https://git-lfs.github.com/spec/v1oid sha256:48a77f1845d5207e74816f81fbe8886b80656efb54adededc9a1b7280b0b8a11size 5982385841234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162# Scholarly/code subword pilot
`modal_scholarly_pilot.py` connects the merged modern 100M-family model to thefrozen 32K tokenizer and `TokenMixture`. It preserves the merged 14×768 shape(124,389,632 unique parameters), with context increased to 1,024. This is abounded execution/learning pilot, not the planned 20B-token run.
From `training/`, first prepare a fresh snapshot with `modal_prepare_scholarly.py`.Then:
```shmodal run --detach modal_scholarly_pilot.py \ --run-id scholarly-124m-pilot-20261016-01 \ --snapshot scholarly-124m-20261016/snapshots/pilot-001```
One L40S worker, four CPUs, 16 GiB host RAM, no retries, and a 30-minute hardworker timeout. Training stops at 600 optimizer updates, 5M loss-bearing tokens,20 minutes including intermediate checkpoint overhead, or source exhaustion.The existing loader enforces at most two passes per source. No full pretrainingor automatic continuation is launched. The pilot deliberately permits snapshotswith pending corpus audits; this override must not be used for substantial runs.
Optimization: FP32 parameters, BF16 autocast, AdamW (betas 0.9/0.95, weight decay0.1), gradient norm clipping at 1, linear 30-update warmup to 3e-4 then constantlearning rate. Batch size 2 with four accumulated microbatches; gradients arenormalized by actual nonpadding targets across the complete optimizer batch.This short pilot does not select a production learning-rate schedule.
The CPU qualification runs modern-model, tied-embedding and corpus-loader tests.The GPU worker verifies tiny-set fitting, then reloads the actual step-10checkpoint and checks identical next-batch IDs, labels and logits. Checkpointsinclude optimizer/RNG/data state, source hashes, model settings, token counts andmanifest/tokenizer identities. Checkpoints and logs use fresh paths on`lm-exploration-training/<run-id>/`; the final report is also copied to `results/`.This pilot checkpoint format is separate from the character-only `lm-generate`format. Cross-job resume and generation CLI integration remain future work.
Validation uses one fixed document-local window per source, reporting each sourceand the token-mixture-weighted mean. This small provisional validation sample isfor detecting learning/failures, not capability claims or production checkpointselection. Samples use three fixed prompts, seed 42, full-softmax temperature 1,and up to 64 new tokens. PAD/BOS/UNK are excluded from sampled outputs.
The full corpus still needs split reconciliation, global near deduplication,provenance/eligibility and contamination audits, and capacity evidence. Measurethroughput before selecting the substantial-run hardware and budget. The currentmodel retains explicit attention; a supported SDPA kernel is a possible separatelyverified optimization.
In the managed cloud environment, Modal's client needs the system CA trust:install `modal[api-proxy-support]==1.6.2` and `truststore`, call`truststore.inject_into_ssl()` before running the Modal CLI module. Keep inheritedproxy settings and TLS verification enabled.
## First measured run
[The 2026-10-16 report](../results/scholarly-124m-pilot-20261016-01.md) records600 updates / 4,078,340 tokens, weighted pilot validation loss 10.5811 → 6.0272,23 passing qualification tests, and a successful checkpoint/data reload.The final checkpoint is `lm-exploration-training/scholarly-124m-pilot-20261016-01/step-000600.pt`.Samples remain incoherent; full corpus audits and substantial training are pending.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100# Updated 100M-family architecture
A subsequent [bounded subword pilot](PILOT.md) trained this architecture for4.08M tokens on Modal. See its [measured report](../results/scholarly-124m-pilot-20261016-01.md);the architecture-merge verification described below remains separate.
`model.py` uses **RMSNorm, RoPE, SwiGLU and tied input/output embeddings** bydefault. There is one `100m` model choice, keeping 14 layers, width 768, 12 ordinaryattention heads (head dimension 64) and context 256. The original vanilla 10Mmodel and its individual ablation PRs are unchanged.
| Component | Current default || --- | --- || Normalization | Pre-RMSNorm and final RMSNorm, epsilon 1e-5 || Positions | RoPE on Q/K in every layer, theta 10,000 || Feedforward | SwiGLU, hidden width 2,048 || Projection biases | Present || Attention kernel | PyTorch causal scaled-dot-product attention (SDPA) || Initialization | Normal std 0.02 || Input/output weights | One shared Parameter |
## Mechanisms and references
- **RMSNorm:** `gamma * x / sqrt(mean(x**2) + epsilon)` omits mean centering and normalization offsets. Epsilon matches historical LayerNorm; low-precision statistics accumulate in FP32. [Zhang & Sennrich (2019)](https://arxiv.org/abs/1910.07467) motivate simpler normalization. Actual speed depends on kernels.- **RoPE:** rotates adjacent query/key feature pairs; values stay unchanged. The positional dependence of Q/K dot products is relative. [RoFormer, Su et al. (2021)](https://arxiv.org/abs/2104.09864) gives the construction. Context remains capped by `block_size`: no GQA, KV cache or long-context scaling.- **SwiGLU:** `down(SiLU(gate(x)) * up(x))` provides input-dependent feature modulation. Hidden width `ceil(8 * width / 3)` exactly matches the old MLP's matrix-parameter budget at width 768. Projections keep biases. [Shazeer (2020)](https://arxiv.org/abs/2002.05202) reports matched-budget T5 gains; that motivates a causal-GPT experiment, not a claimed improvement here.- **Tied embeddings:** `self.lm_head.weight = self.token_embedding.weight`. The shared table `E[vocabulary, width]` supplies input rows and output logits `hidden @ E.T`. Gradients from both uses accumulate into the same Parameter, which appears once in the optimizer's parameter list. [Press & Wolf (2017)](https://arxiv.org/abs/1608.05859) study the parameter/quality tradeoff. Sharing saves parameters but constrains the representations.
[LLaMA §2.2](https://arxiv.org/abs/2302.13971) adopts RMSNorm, RoPE and SwiGLU.This update combines the requested choices; it cannot establish each component'squality contribution. The individual 10M ablations serve that purpose. No qualitygain has been measured for this combined model.
## Frozen tokenizer and parameter count
Use merged `structured-code-v1`: **32,768 entries**, unchanged tokenizer hash`add5b2c7542e4efded329735825ecdcb94df1432617c3d3e4b7508aa459432f9`.At context 256 and the unchanged 14×768 shape, the model has **124,389,632 uniqueparameters**. Tying saves **25,165,824** (`32,768 × 768`) versus separate matriceson the same modern backbone. There is no maintained untied modern variant,separate package or recipe key for tying.
The historical vanilla 100M had 149,760,000 parameters at this vocabulary.Besides tying, the modern blocks remove 196,608 position parameters and 22,272normalization offsets, and add 14,336 FFN bias parameters. FFN matrix parametersmatch. The `100m` label is historical: a 32K vocabulary changes the total relativeto the character model. No saving is reinvested in extra layers.
## Usage and compatibility
```pythonfrom model_100m.model import GPT, ModelConfig
model = GPT(ModelConfig(vocab_size=32768))assert model.lm_head.weight is model.token_embedding.weight```
Recipes continue to select `model="100m"`; no tying flag is needed. New checkpointsrecord `architecture_version=2`. A small version-1 compatibility path reuses theoriginal vanilla implementation to load historical 100M checkpoints, preservingtheir original untied weights and exact logits. Missing version metadata meanslegacy; the loader does not silently tie or modernize old weights. Resume acrossarchitecture versions is rejected. This is not a second modern model variant.
The general recipe trainer and generation CLI remain character-only. The separate[subword pilot](PILOT.md) integrates the frozen BPE tokenizer and mixture loader.The [GPU comparison](../results/scholarly-124m-gpu-comparison-20261017.md) measuresSDPA and fused AdamW on the full model, including two- and three-H100 DDP.The historical pilot used explicit attention; its original source is archivedwith its run. SDPA preserves the model shape and checkpoint keys, with outputand gradient agreement checked against the explicit implementation.
## Verification
From `training/`:
```shuv sync --locked --extra corpus --extra researchuv run --extra corpus --extra research python -m unittest discover -s tests -v```
Checks cover independent block output/gradient references, causality, finitegradients, counts, config bounds and old checkpoint loading/resume. Tying checkscover shared identity, summed gradients against a test-only reference, optimizerdeduplication, dtype conversion, checkpoint roundtrip and tokenizer ID bounds.1"""The architecture-only 100M model, installed by uv as model_100m."""123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160"""100M-family decoder: RMSNorm, RoPE, SwiGLU and tied embeddings by default.
Keep 14 layers, width 768, 12 MHA heads, context 256, projection biases andvanilla weight initialization. architecture_version=1 reproduces the historicalLayerNorm/learned-position/GELU model only for legacy checkpoint compatibility."""
from dataclasses import dataclass
import torchfrom model_10m import model as vanillafrom torch import nnfrom torch.nn import functional as F
__all__ = ["GPT", "Attention", "Block", "ModelConfig", "RMSNorm", "SwiGLU", "causal_attention"]MODEL_DEPENDENCIES = {"model_10m_definition": vanilla.__file__}
@dataclass(frozen=True)class ModelConfig(vanilla.ModelConfig): n_layer: int = 14 n_head: int = 12 n_embd: int = 768 architecture_version: int = 2
def __post_init__(self): if type(self.architecture_version) is not int or self.architecture_version not in (1, 2): raise ValueError("architecture_version must be 1 (legacy) or 2 (RMSNorm/RoPE/SwiGLU)") super().__post_init__() if self.architecture_version == 2 and (self.n_embd // self.n_head) % 2: raise ValueError("RoPE requires an even head dimension")
def causal_attention(query, key, value): """Standard causal SDPA; CUDA selects FlashAttention where supported.
Same scale, mask and zero dropout as the explicit 10M reference. The legacy architecture retains its original implementation in model_10m. """ return F.scaled_dot_product_attention(query, key, value, is_causal=True, dropout_p=0.0)
class RMSNorm(nn.Module): def __init__(self, width, eps=1e-5): super().__init__() self.weight = nn.Parameter(torch.ones(width)) self.eps = eps # Match the historical LayerNorm epsilon.
def forward(self, x): values = x.float() if x.dtype in (torch.float16, torch.bfloat16) else x normalized = values * torch.rsqrt(values.square().mean(-1, keepdim=True) + self.eps) return normalized.to(x.dtype) * self.weight.to(x.dtype)
def rotary(x, offset=0): """Rotate adjacent query/key feature pairs using position and theta 10,000.""" dtype = torch.float64 if x.dtype == torch.float64 else torch.float32 frequencies = 10000.0 ** ( -torch.arange(0, x.size(-1), 2, device=x.device, dtype=dtype) / x.size(-1) ) positions = torch.arange(offset, offset + x.size(-2), device=x.device, dtype=dtype) angles = torch.outer(positions, frequencies) cos, sin = angles.cos().to(x.dtype), angles.sin().to(x.dtype) even, odd = x[..., ::2], x[..., 1::2] return torch.stack((even * cos - odd * sin, even * sin + odd * cos), -1).flatten(-2)
class Attention(vanilla.Attention): def cache_rotary(self, length): width = self.qkv.in_features // self.n_head frequencies = 10000.0 ** ( -torch.arange(0, width, 2, device=self.qkv.weight.device).float() / width ) angles = torch.outer(torch.arange(length, device=frequencies.device).float(), frequencies) self.register_buffer("rope_cos", angles.cos(), persistent=False) self.register_buffer("rope_sin", angles.sin(), persistent=False)
def rotate(self, x): if not hasattr(self, "rope_cos"): return rotary(x) cos = self.rope_cos[: x.size(-2)].to(x.dtype) sin = self.rope_sin[: x.size(-2)].to(x.dtype) even, odd = x[..., ::2], x[..., 1::2] return torch.stack((even * cos - odd * sin, even * sin + odd * cos), -1).flatten(-2)
def forward(self, x): batch, length, width = x.shape query, key, value = self.qkv(x).chunk(3, -1) query, key, value = [ tensor.view(batch, length, self.n_head, width // self.n_head).transpose(1, 2) for tensor in (query, key, value) ] attended = causal_attention(self.rotate(query), self.rotate(key), value) return self.projection(attended.transpose(1, 2).contiguous().view(batch, length, width))
class SwiGLU(nn.Module): def __init__(self, width): super().__init__() self.hidden_width = (8 * width + 2) // 3 self.gate = nn.Linear(width, self.hidden_width) self.up = nn.Linear(width, self.hidden_width) self.down = nn.Linear(self.hidden_width, width)
def forward(self, x): return self.down(F.silu(self.gate(x)) * self.up(x))
class Block(vanilla.Block): def __init__(self, config): super().__init__(config) self.attention_norm = RMSNorm(config.n_embd) self.attention = Attention(config) self.mlp_norm = RMSNorm(config.n_embd) self.mlp = SwiGLU(config.n_embd)
class GPT(vanilla.GPT): def __init__(self, config): if config.architecture_version == 1: super().__init__(config) return nn.Module.__init__(self) self.config = config self.token_embedding = nn.Embedding(config.vocab_size, config.n_embd) self.blocks = nn.Sequential(*(Block(config) for _ in range(config.n_layer))) self.final_norm = RMSNorm(config.n_embd) self.lm_head = nn.Linear(config.n_embd, config.vocab_size, bias=False) self.apply(self.initialize) self.lm_head.weight = self.token_embedding.weight
def forward(self, tokens, labels=None, loss_chunk_size=0): if self.config.architecture_version == 1: return super().forward(tokens) if not 0 < tokens.size(1) <= self.config.block_size: raise ValueError("sequence length must be within the model's block_size") hidden = self.final_norm(self.blocks(self.token_embedding(tokens))) if labels is None: return self.lm_head(hidden) if not loss_chunk_size: return F.cross_entropy( self.lm_head(hidden).flatten(0, 1), labels.flatten(), ignore_index=-100, reduction="sum", ) # Recompute each projection during backward, bounding vocabulary-logit memory. from torch.utils.checkpoint import checkpoint
def chunk_loss(features, targets): return F.cross_entropy( self.lm_head(features), targets, ignore_index=-100, reduction="sum" )
return sum( checkpoint(chunk_loss, features, targets, use_reentrant=False) for features, targets in zip( hidden.flatten(0, 1).split(loss_chunk_size), labels.flatten().split(loss_chunk_size) ) )1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980# Vanilla Shakespeare GPT, approximately 10M parameters
The complete, readable architecture is in [model.py](model.py): six pre-LayerNormcausal decoder blocks, width 384, six attention heads, learned positions, GELUMLPs, and a separate output projection. With 65 characters and context 256 it has**10,795,776 parameters**. The [100M architecture](../100m/README.md) now defaultsto RMSNorm, RoPE and SwiGLU; its explicit version-1 mode preserves this vanillablock design at larger dimensions. This published 10M definition is unchanged.
The model starts from random weights and learns next-character prediction fromTiny Shakespeare. This is a learning benchmark, not an instruction-followingassistant. A contiguous 90/10 train/validation split prevents windows crossingthe boundary; vocabulary is drawn from the whole corpus. There is no sealed test.
## Bounded Modal training
Run from `training/`, using a Python environment with Modal's API proxy support.The Modal image explicitly pins PyTorch 2.6.0, safetensors 0.8.0 and tqdm 4.70.1,independently of the newer version selected by the local training project's lock.The executed versions and source hashes are saved in every run's config.
The published runs used the former `modal_shakespeare.py` (commit `ec5ebd1`). Thesame settings are now the [`shakespeare-10m` recipe](../recipes/shakespeare-10m.json),launched with the generic [recipe launcher](../recipes/README.md) (use a new run ID):
```bashuv run --with 'modal[api-proxy-support]==1.6.1' modal run modal_train.py \ --recipe recipes/shakespeare-10m.json --run-id shakespeare-10m-smoke-02 --smoke```
The original runs used app `lm-exploration-shakespeare-10m` and volume`lm-exploration-training`. The smoke worker has a 120-second hard timeout; thetraining worker a 1,500-second hard timeout and a cooperative 1,200-second traininglimit. Both use one L4, no retries, and persist artifacts on exit. A separateignored `runs/shakespeare-budget.json` (now `runs/modal-budget.json`) reserved the full worker time at aconservative $5/hour, with a $3 allocation ceiling. This is reservation accounting,not an actual bill or an account-wide spending limit. No latent-workspace ledgeror research volume is used.
Training targets 4,000 updates with batch 32, context 256, FP32 AdamW,learning rate 0.0003, betas (0.9, 0.95), weight decay 0.1, clipping norm 1 and seed1337. Every 200 updates, evaluate 20 fixed-seed validation batches and save acheckpoint. Select the saved checkpoint with the lowest validation loss.Cooperative stopping logs/evaluates/saves the final completed update. Each runwrites a report, metrics, source/runtime/dataset provenance and a sample.
## Export and publication
The published model was exported with `publish_shakespeare.py`, removed afterpublication (see commit `ec5ebd1`). It exported the validation-selected checkpointto safetensors without optimizer or RNG state, checked the parameter count,selected update and architecture hash, and uploaded only inference files.The public bundle includes `model.py`, `generate.py`, safetensors weights, exactconfiguration/tokenizer, provenance, requirements and the measured training report.From the downloaded bundle run `python generate.py --prompt 'ROMEO:' --tokens 300`.The model uses custom PyTorch code, not Transformers AutoModel loading.
## Completed training and public model
[Public Hugging Face model](https://huggingface.co/jfrick/shakespeare-vanilla-gpt-10m). The bounded L4 run completed 4,000 updatesin 503.3 worker seconds, with 32,768,000 training-characterexposures. Validation selected **update 1,800**, after 14,745,600 exposures:**1.54483 nats/character**, character perplexity **4.687**.The final update scored 2.10690 on validation; later training overfit this smallcorpus, so the public weights come from the earlier checkpoint.
[Full training report](../results/shakespeare-10m-train-01.json),[loss history](../results/shakespeare-10m-metrics.jsonl),[smoke report](../results/shakespeare-10m-smoke-01.json),and [publication receipt](../results/shakespeare-10m-publication.json).One seed, validation used for checkpoint selection, no untouched test result.
Local verification covered the 10M parameter count, causal attention and gradientsagainst SDPA, safe stopping/checkpoint saving, reproducible CPU resume, and exactexported logits/seeded generation against the selected training checkpoint.Ruff lint/format, lock consistency and Git diff checks passed.
Pinned public release: `48b3eb9b56fd03056943bb905b8cd7637009588c`. AnonymousHub download verified the weights and definition checksums, strict model loadingand exact seeded generation from the downloaded standalone package.1"""Vanilla character GPT, approximately 10M parameters."""1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950"""Standalone sampling from a downloaded Hugging Face Shakespeare model folder."""
import argparseimport jsonfrom pathlib import Path
import torchfrom model import GPT, ModelConfigfrom safetensors.torch import load_file
def load_model(folder, device="cpu"): folder = Path(folder) config = json.loads((folder / "config.json").read_text()) tokenizer = json.loads((folder / "tokenizer.json").read_text()) model = GPT(ModelConfig(**config)).to(device).eval() model.load_state_dict(load_file(str(folder / "model.safetensors")), strict=True) return model, tokenizer["characters"]
@torch.no_grad()def generate(model, characters, prompt, tokens=300, seed=1339): indices = {character: index for index, character in enumerate(characters)} if set(prompt) - indices.keys(): raise ValueError("prompt contains characters absent from the training vocabulary") context = [indices[c] for c in prompt] or [0] random = torch.Generator().manual_seed(seed) device = next(model.parameters()).device output = [] for _ in range(tokens): logits = model(torch.tensor([context[-model.config.block_size :]], device=device)) probabilities = logits[0, -1].softmax(-1).cpu() token = torch.multinomial(probabilities, 1, generator=random).item() context.append(token) output.append(characters[token]) return prompt + "".join(output)
if __name__ == "__main__": parser = argparse.ArgumentParser(description=__doc__) parser.add_argument("--folder", default=".") parser.add_argument("--prompt", default="ROMEO:\n") parser.add_argument("--tokens", type=int, default=300) parser.add_argument("--seed", type=int, default=1339) parser.add_argument("--device", default="cpu", choices=("cpu", "cuda", "mps")) args = parser.parse_args() if args.tokens < 0: parser.error("tokens must be nonnegative") model, characters = load_model(args.folder, args.device) print(generate(model, characters, args.prompt, args.tokens, args.seed))123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117"""Architecture only: a roughly 10M-parameter, decoder-only character GPT.
6 layers, width 384, 6 heads, learned positions, pre-LayerNorm and GELU MLPs.The exact count depends on context length and vocabulary; trainer/loop.py records it.Training, data loading, checkpoints and CLI code deliberately live elsewhere."""
import mathfrom dataclasses import asdict, dataclass
import torchfrom torch import nn
# Model: B = batch, T = sequence length, C = embedding width, H = heads.@dataclass(frozen=True)class ModelConfig: vocab_size: int block_size: int = 256 n_layer: int = 6 n_head: int = 6 n_embd: int = 384
def __post_init__(self): if any(value <= 0 for value in asdict(self).values()): raise ValueError("all model dimensions must be positive") if self.n_embd % self.n_head: raise ValueError("n_embd must be divisible by n_head")
def causal_attention(query, key, value): # Q, K, V: [B, H, T, C/H]. A row may see itself and earlier columns only. # For each query position, compare its feature vector with every key vector. # Q and K are [B, H, T, D], so transpose K's last two axes to [B, H, D, T]. # This makes the matrix product [B, H, T, D] @ [B, H, D, T] yield # [B, H, T, T]: one score for each query/key position pair. K itself is # unchanged; transpose only changes the view of its axes for this product. scores = query @ key.transpose(-2, -1) / math.sqrt(query.size(-1)) # Example causal mask for T = 4 (rows are queries; columns are keys): # [[1, 0, 0, 0], # [1, 1, 0, 0], # [1, 1, 1, 0], # [1, 1, 1, 1]] mask = torch.ones(query.size(-2), key.size(-2), device=query.device, dtype=torch.bool).tril() weights = scores.masked_fill(~mask, float("-inf")).softmax(dim=-1) return weights @ value
class Attention(nn.Module): def __init__(self, config): super().__init__() self.n_head = config.n_head self.qkv = nn.Linear(config.n_embd, 3 * config.n_embd) self.projection = nn.Linear(config.n_embd, config.n_embd)
def forward(self, x): batch, length, width = x.shape query, key, value = self.qkv(x).chunk( 3, dim=-1 ) # Split the combined projection into its three equal parts: query, key, and value. # Split the embedding width evenly across heads; each head processes width / n_head features. query, key, value = [ tensor.view(batch, length, self.n_head, width // self.n_head).transpose(1, 2) for tensor in (query, key, value) ] attended = causal_attention(query, key, value) attended = attended.transpose(1, 2).contiguous().view(batch, length, width) return self.projection(attended)
class Block(nn.Module): def __init__(self, config): super().__init__() self.attention_norm = nn.LayerNorm( config.n_embd ) # n_embd is the embedding width (number of features per token). self.attention = Attention(config) self.mlp_norm = nn.LayerNorm(config.n_embd) self.mlp = nn.Sequential( nn.Linear(config.n_embd, 4 * config.n_embd), nn.GELU(), nn.Linear(4 * config.n_embd, config.n_embd), )
def forward(self, x): x = x + self.attention(self.attention_norm(x)) return x + self.mlp(self.mlp_norm(x))
class GPT(nn.Module): def __init__(self, config): super().__init__() self.config = config self.token_embedding = nn.Embedding(config.vocab_size, config.n_embd) self.position_embedding = nn.Embedding(config.block_size, config.n_embd) self.blocks = nn.Sequential(*(Block(config) for _ in range(config.n_layer))) self.final_norm = nn.LayerNorm(config.n_embd) self.lm_head = nn.Linear(config.n_embd, config.vocab_size, bias=False) self.apply(self.initialize)
@staticmethod def initialize(module): if isinstance(module, (nn.Linear, nn.Embedding)): nn.init.normal_(module.weight, std=0.02) if isinstance(module, nn.Linear) and module.bias is not None: nn.init.zeros_(module.bias)
def forward(self, tokens): if not 0 < tokens.size(1) <= self.config.block_size: raise ValueError("sequence length must be within the model's block_size") positions = torch.arange(tokens.size(1), device=tokens.device) x = self.token_embedding(tokens) + self.position_embedding(positions) logits = self.lm_head( self.final_norm(self.blocks(x)) ) # [B, T, vocabulary]; normalize the final hidden states before projecting them to token scores.
return logits123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152{ "format": "scholarly-ddp-v1", "config": { "world_size": 8, "global_windows": 32, "microbatch": 2, "crop_padding": true, "loss_chunk_size": 0, "compile_model": true, "cache_rope": true, "context": 8192, "target_tokens": 10000000000, "warmup_tokens": 1, "peak_lr": 3e-05, "min_lr_ratio": 1.0, "weight_decay": 0.1, "seed": 42, "checkpoint_every": 2000, "evaluate_every": 2000, "pilot": false, "experimental_data": true, "prefetch_batches": 4, "n_layer": 14, "n_head": 12, "n_embd": 768 }, "data_identity": { "manifest_sha256": "f0c1e3a62aec45b5db72cc43cde513a6c278c0d1e075489e94a87cbc71b62133", "context": 8192, "split": "train", "tokenizer_sha256": "add5b2c7542e4efded329735825ecdcb94df1432617c3d3e4b7508aa459432f9" }, "source_sha256": { "trainer": "974d53a4d709b66b2df76287bc73e4867ae678aed298145a6f13869888014de1", "heldout_loader": "afa53c739b8c6b81540e4b9b6d85f90d5353802537ab564d97f1c29df196cda4", "config": "6b241e3dbfcc92c73ac6de4e4abe0cbb5810621f00fb83e1ed5a7c2ccf4c25b0", "model": "2c978432e84cad6b2f661c63e7e62bccfc393a2aeb9f0519f7ca3db6775ed326", "loader": "7821e13e765a9f2c0e0a94744bc7f2df8eea647f26d7aa0069f62556618a0ef2", "raw_loader": "dce00be2392c12488d23654cc981a726097d931b79878f1312aaf02e8ec968ee", "prepared_loader": "c485580bd27298502a9ab4e9950f50e5680001bfe0e40cbb515906928ff76755", "prefetch": "1786b1423f5881b23223ff0db47284a522020237d77e3d7fa28d542deea5c218", "live_loader": "64457d0e60f1f1b664d3b174183c6e6f3d0c618973fe56712f9e72cd2a118a75", "tokenizer": "00e32adc13dab74f5a029c63304b4591bd48f7cd6b086b22d4624d244667b4da" }, "torch_version": "2.6.0+cu124", "gpu": "NVIDIA H200", "parameters": 124389632, "resume_from": "/runs/simple-llm-code60-unique-10b-20261020-r01-s02/step-000069973.pt", "lineage": { "parent_checkpoint": "/runs/simple-llm-code60-fresh-5b-20261019-r02-s02/step-000066065.pt", "parent_sha256": "88b039618647c7f0ff7988165c9ae0b0075540927049b2f8e3b625272dfa8dda", "parent_tokens": 10878562619, "immediate_parent_phase_tokens": 4999971081, "immediate_parent_step": 66065, "parent_source_sha256": { "trainer": "0e117622b1305b52d82e4d46544512f692a213c864ee85f67a881c98432f9949", "config": "035cb07e7194ed6559f66c1d12425833904cd571dd76f4090384b1e1f7511c4f", "model": "2c978432e84cad6b2f661c63e7e62bccfc393a2aeb9f0519f7ca3db6775ed326", "loader": "7821e13e765a9f2c0e0a94744bc7f2df8eea647f26d7aa0069f62556618a0ef2", "raw_loader": "fe7952d3adbd33666875117bd6a9ac10ee0f06dea2eb5ecc4b1f201584ef2a3f", "prefetch": "1786b1423f5881b23223ff0db47284a522020237d77e3d7fa28d542deea5c218", "live_loader": "64457d0e60f1f1b664d3b174183c6e6f3d0c618973fe56712f9e72cd2a118a75", "tokenizer": "00e32adc13dab74f5a029c63304b4591bd48f7cd6b086b22d4624d244667b4da" }, "prior_lineage": { "parent_checkpoint": "/runs/simple-llm-124m-eu-onepass-20261018-s02/step-000003838.pt", "parent_sha256": "a9b4ff39352fae4aa163433df7130dbede1437657bee7c44fc26a6eb020af565", "parent_tokens": 5878591538, "immediate_parent_phase_tokens": 878610362, "immediate_parent_step": 3838, "parent_source_sha256": { "trainer": "0e117622b1305b52d82e4d46544512f692a213c864ee85f67a881c98432f9949", "config": "035cb07e7194ed6559f66c1d12425833904cd571dd76f4090384b1e1f7511c4f", "model": "2c978432e84cad6b2f661c63e7e62bccfc393a2aeb9f0519f7ca3db6775ed326", "loader": "7821e13e765a9f2c0e0a94744bc7f2df8eea647f26d7aa0069f62556618a0ef2", "raw_loader": "fe7952d3adbd33666875117bd6a9ac10ee0f06dea2eb5ecc4b1f201584ef2a3f", "prefetch": "1786b1423f5881b23223ff0db47284a522020237d77e3d7fa28d542deea5c218", "live_loader": "64457d0e60f1f1b664d3b174183c6e6f3d0c618973fe56712f9e72cd2a118a75", "tokenizer": "00e32adc13dab74f5a029c63304b4591bd48f7cd6b086b22d4624d244667b4da" }, "prior_lineage": { "parent_checkpoint": "/runs/simple-llm-124m-8k-5b-20261018-s03/step-000064227.pt", "parent_sha256": "ce26b11aed843008fb89893a5e90219b1a5c96e44ef32d42eb9188e427df1876", "parent_tokens": 4999981176, "parent_step": 64227, "parent_source_sha256": { "trainer": "51e57355cb0a58a826c61b8d293647f15f9bea94a8fe312ed3751e17b5ec0f8f", "config": "96e64243a30c5c4379d8493ce085f92338d0522daddfbd1916358aaafa21408b", "model": "96bd95eb51ff5b2aa3d4cd9fc07073a6d21dc9003b36bbe9461fa5780a76882d", "loader": "7821e13e765a9f2c0e0a94744bc7f2df8eea647f26d7aa0069f62556618a0ef2", "raw_loader": "b5cc8623d84b3916c610faf15d248824423085f2d4070b095df33ac8e80c749c", "prefetch": "1786b1423f5881b23223ff0db47284a522020237d77e3d7fa28d542deea5c218", "live_loader": "64457d0e60f1f1b664d3b174183c6e6f3d0c618973fe56712f9e72cd2a118a75", "tokenizer": "00e32adc13dab74f5a029c63304b4591bd48f7cd6b086b22d4624d244667b4da" }, "optimizer": "preserved Adam moments and optimizer update counts", "schedule": "new phase, constant parent terminal LR; new data cursor", "phase_tokens_start": 0 }, "phase_request": { "fresh_only": true, "coding_share": 60, "target_tokens": 5000000000, "book_allocation": "fresh-book-pool-v1" }, "optimizer": "Adam moments/update counts preserved", "schedule": { "peak_lr": 3e-05, "min_lr_ratio": 1.0, "warmup_tokens": 1, "counter": "phase loss tokens" } }, "phase_request": { "target_tokens": 10000000000, "code_share": 60, "eu_share": 5, "code_max_passes": 1, "fresh_code_required": true, "snapshot": "readiness-20261020-v2/snapshots/code60-onepass-10b" }, "optimizer": "Adam moments/update counts preserved", "schedule": { "peak_lr": 3e-05, "min_lr_ratio": 1.0, "warmup_tokens": 1, "counter": "phase loss tokens" } }, "step": 132000, "tokens": 8607474906, "run_id": "simple-llm-code60-unique-10b-20261020-r01", "checkpoint": "/runs/simple-llm-code60-unique-10b-20261020-r01-s03/step-000132000.pt", "weights_sha256": "48a77f1845d5207e74816f81fbe8886b80656efb54adededc9a1b7280b0b8a11", "weight_roundtrip_exact": true, "cpu_logits_roundtrip_exact": true, "loss_token_exposures": { "fineweb_edu": 430372479, "code": 5164462716, "finemath_4plus": 860743907, "pes2o": 430375421, "pubmed": 129116082, "arxiv": 86076233, "pressbooks": 139787624, "libretexts": 16855682, "doab": 193536302, "gutenberg": 241925671, "pre_1929_books": 338685832, "library_of_congress": 145157081, "eu": 430379876 }}123torch==2.6.0safetensors>=0.4tokenizers==0.22.2123456789101112131415161718{ "format": "huggingface-tokenizers-json", "vocab_size": 32768, "special_tokens": { "<|pad|>": 0, "<|bos|>": 1, "<|eos|>": 2, "<|unk|>": 3 }, "normalization": null, "pretokenization_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?\\p{L}+|\\p{N}{1,3}| ?[^\\s\\p{L}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+", "add_prefix_space": false, "automatic_bos_eos": false, "padding": null, "truncation": null, "decode_skip_special_tokens_default_for_roundtrips": false, "all_valid_UTF8_supported": true}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859{ "name": "focused-64mib-32768", "vocab": 32768, "execution": "modal-cpu", "tokenizer_sha256": "add5b2c7542e4efded329735825ecdcb94df1432617c3d3e4b7508aa459432f9", "evaluation_sha256": "a9a82723c1e78b46ec52b33b81551a61a5498e46ac73a6f09e4c0da9e27775a0", "metrics": { "python": { "bytes": 2513044, "tokens": 615688, "examples": 512, "roundtrip_failures": 0, "unk_tokens": 0, "bytes_per_token": 4.08168422967477, "mean_tokens_per_example": 1202.515625, "p95_tokens_per_example": 2184 }, "json": { "bytes": 2782302, "tokens": 722785, "examples": 512, "roundtrip_failures": 0, "unk_tokens": 0, "bytes_per_token": 3.849418568453966, "mean_tokens_per_example": 1411.689453125, "p95_tokens_per_example": 2514 }, "git_diff": { "bytes": 187152, "tokens": 52862, "examples": 512, "roundtrip_failures": 0, "unk_tokens": 0, "bytes_per_token": 3.5403881805455715, "mean_tokens_per_example": 103.24609375, "p95_tokens_per_example": 249 }, "tool_call": { "bytes": 965682, "tokens": 251703, "examples": 512, "roundtrip_failures": 0, "unk_tokens": 0, "bytes_per_token": 3.8365931276146887, "mean_tokens_per_example": 491.607421875, "p95_tokens_per_example": 2304 } }, "fragmentation": { "{\"name\":\"read_file\",\"arguments\":{\"path\":\"src/main.py\"}}": 14, "diff --git a/main.py b/main.py\n@@ -1,2 +1,2 @@\n-old\n+new\n": 25, "get_user_configuration": 3, "\"additionalProperties\":false": 4, "\"tool_call_id\":\"call_0123456789\"": 12 }, "correctness_passed": true, "family": "focused", "size_mib": 64}123456789101112{ "id": "structured-code-bpe-v1", "status": "frozen", "vocab_size": 32768, "files": { "recipe.json": "a4328e99a51bee64daaee66efe25e80ce01a263d568a69a130b94f687edef407", "config.json": "2a4fa59b0a93ebd0995f3ea308c01484647e9ede935e128b4dba163b384224aa", "tokenizer.json": "add5b2c7542e4efded329735825ecdcb94df1432617c3d3e4b7508aa459432f9", "evaluation.json": "922b0fc33a0c38f06eaedbf3497a50723f4c66ac4dd8f96267038ad64764d80f" }, "contract": "Immutable. Record tokenizer SHA256 in shards and checkpoints. Prior tokenizer data must be retokenized in a new version."}1234567891011121314151617{ "location": "jfrick/scholarly-code-tokenizer", "revision": "0ebdb4fe4c8d21ccc06cfe6f5b464eac74773a80", "status": "passed", "default_and_variants_checked": 20, "probes_per_variant": 6, "checks": [ "artifact_hashes", "special_ids", "vocabulary_size", "token_id_equivalence", "exact_roundtrips", "no_automatic_boundaries" ], "transformers_version": "4.57.6", "tokenizers_version": "0.22.2"}123456789{ "repo_id": "jfrick/scholarly-code-tokenizer", "revision": "0ebdb4fe4c8d21ccc06cfe6f5b464eac74773a80", "url": "https://huggingface.co/jfrick/scholarly-code-tokenizer", "variant": "structured-code-v1-32768", "tokenizer_sha256": "add5b2c7542e4efded329735825ecdcb94df1432617c3d3e4b7508aa459432f9", "vocab_size": 32768, "selection": "User explicitly selected code-focused 32K as repository and Hub default."}12345678910111213141516171819202122232425262728293031323334353637{ "seed": 20261016, "target_bytes": 67108864, "weights_percent": { "python": 40, "json": 20, "git_diff": 20, "tool_call": 20 }, "actual_bytes": { "python": 26847131, "json": 13424847, "git_diff": 13421882, "tool_call": 13422435 }, "training_examples": { "python": 5059, "json": 2290, "git_diff": 33758, "tool_call": 6555 }, "fitting_parents": 14911, "evaluation_parents_per_category": 512, "train_sha256": "cdc34355495f1c21bba4742ac11e9bcc0a0d0df836ab49eed9a1e01f97ab9a09", "evaluation_sha256": "a9a82723c1e78b46ec52b33b81551a61a5498e46ac73a6f09e4c0da9e27775a0", "source_train_sha256": "5e1c04e310375d9922e008142e7d9813f56e541918b729dd7764eaec3ffbadea", "source_validation_sha256": "611010954c9c48ccad9b9a28f7377d56ab180373b5e7eb76fe87ab723b2b8040", "implementation_sha256": "cd1f6e5351aad5acce1a1021af649c4dd8a099c2b0d506e7cc67cd5aee230163", "limitations": [ "Python excerpts from the existing pinned codeparrot corpus, not necessarily complete parseable files", "JSON, tool calls and patches are generated controlled fixtures, not independent production traces", "Fitting/evaluation parents are disjoint; generator templates are shared", "Each category quota includes its final whole example, so 64 MiB is approximate", "Unified diffs cover insertions, deletions and identifier replacements, but not binary patches or renames", "One fitting seed; no model-level tool-call or code-generation correctness measured" ]}continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/README.mdAdded+11
continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/config.jsonAdded+8
continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/data-manifest.jsonAdded+630
continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/generate.pyAdded+62
continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/model.safetensorsAdded+3
continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/model_100m/PILOT.mdAdded+62
continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/model_100m/README.mdAdded+100
continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/model_100m/__init__.pyAdded+1
continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/model_100m/model.pyAdded+160
continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/model_10m/README.mdAdded+80
continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/model_10m/__init__.pyAdded+1
continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/model_10m/generate.pyAdded+50
continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/model_10m/model.pyAdded+117
continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/provenance.jsonAdded+152
continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/requirements.txtAdded+3
continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/tokenizer/config.jsonAdded+18
continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/tokenizer/evaluation.jsonAdded+59
continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/tokenizer/freeze-manifest.jsonAdded+12
continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/tokenizer/publication-verification.jsonAdded+17
continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/tokenizer/publication.jsonAdded+9
continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/tokenizer/recipe.jsonAdded+37
continuations/simple-llm-code60-unique-10b-20261020-r01/checkpoints/step-000132000/tokenizer/tokenizer.jsonAdded