Add 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +18 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/LICENSE +21 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/README.md +519 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-20000/.metadata +3 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-20000/__0_0.distcp +3 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-20000/__1_0.distcp +3 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-20000/__2_0.distcp +3 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-20000/__3_0.distcp +3 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-20000/__4_0.distcp +3 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-20000/__5_0.distcp +3 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-20000/__6_0.distcp +3 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-20000/__7_0.distcp +3 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-30720/.metadata +3 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-30720/__0_0.distcp +3 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-30720/__1_0.distcp +3 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-30720/__2_0.distcp +3 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-30720/__3_0.distcp +3 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-30720/__4_0.distcp +3 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-30720/__5_0.distcp +3 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-30720/__6_0.distcp +3 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-30720/__7_0.distcp +3 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/config.json +34 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/blt_transformer_1000hash.json +98 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/blt_transformer_1_5B.json +99 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/blt_transformer_380M.json +98 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/delta_net_1B.json +29 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/delta_net_340M.json +26 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/gated_deltanet_1B.json +22 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/gated_deltanet_340M.json +22 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/gated_deltanet_h_340M.json +28 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/gla_1B.json +24 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/gla_340M.json +24 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/gla_7B.json +25 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/gsa_340M.json +29 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/mergenet_340M.json +34 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/mergenet_64M.json +34 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/qwen3_next_1B.json +44 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/qwen3_next_350M.json +44 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/transformer_1B.json +22 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/transformer_340M.json +18 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/transformer_7B.json +21 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/flame/__init__.py +1 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/flame/__pycache__/__init__.cpython-310.pyc +0 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/flame/__pycache__/__init__.cpython-311.pyc +0 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/flame/__pycache__/__init__.cpython-313.pyc +0 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/flame/__pycache__/config_manager.cpython-310.pyc +0 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/flame/__pycache__/config_manager.cpython-311.pyc +0 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/flame/__pycache__/data.cpython-310.pyc +0 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/flame/__pycache__/data.cpython-311.pyc +0 -0
- 1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/flame/__pycache__/train.cpython-310.pyc +0 -0
.gitattributes
CHANGED
|
@@ -717,3 +717,21 @@ transformer_pp_340m_c4/transformer_pp_340m_c4_valc4_lion_lr1e_4_b1_0_9_b2_0_99_e
|
|
| 717 |
1b_archs_fwe/transformer_1b_fwe_rmnp_lr3e_3_adamlr1e_3_b1_0_9_b2_0_99_eps_1e_15_20260516_164940/exp_data/checkpoint/step-30720/__5_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 718 |
1b_archs_fwe/transformer_1b_fwe_rmnp_lr3e_3_adamlr1e_3_b1_0_9_b2_0_99_eps_1e_15_20260516_164940/exp_data/checkpoint/step-30720/__6_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 719 |
1b_archs_fwe/transformer_1b_fwe_rmnp_lr3e_3_adamlr1e_3_b1_0_9_b2_0_99_eps_1e_15_20260516_164940/exp_data/checkpoint/step-30720/__7_0.distcp filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 717 |
1b_archs_fwe/transformer_1b_fwe_rmnp_lr3e_3_adamlr1e_3_b1_0_9_b2_0_99_eps_1e_15_20260516_164940/exp_data/checkpoint/step-30720/__5_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 718 |
1b_archs_fwe/transformer_1b_fwe_rmnp_lr3e_3_adamlr1e_3_b1_0_9_b2_0_99_eps_1e_15_20260516_164940/exp_data/checkpoint/step-30720/__6_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 719 |
1b_archs_fwe/transformer_1b_fwe_rmnp_lr3e_3_adamlr1e_3_b1_0_9_b2_0_99_eps_1e_15_20260516_164940/exp_data/checkpoint/step-30720/__7_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 720 |
+
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-20000/.metadata filter=lfs diff=lfs merge=lfs -text
|
| 721 |
+
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-20000/__0_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 722 |
+
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-20000/__1_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 723 |
+
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-20000/__2_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 724 |
+
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-20000/__3_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 725 |
+
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-20000/__4_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 726 |
+
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-20000/__5_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 727 |
+
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-20000/__6_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 728 |
+
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-20000/__7_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 729 |
+
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-30720/.metadata filter=lfs diff=lfs merge=lfs -text
|
| 730 |
+
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-30720/__0_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 731 |
+
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-30720/__1_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 732 |
+
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-30720/__2_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 733 |
+
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-30720/__3_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 734 |
+
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-30720/__4_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 735 |
+
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-30720/__5_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 736 |
+
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-30720/__6_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 737 |
+
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-30720/__7_0.distcp filter=lfs diff=lfs merge=lfs -text
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2023-2025 Songlin Yang, Yu Zhang
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/README.md
ADDED
|
@@ -0,0 +1,519 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<div align="center">
|
| 2 |
+
|
| 3 |
+
# 🔥 Flame: Flash Language Modeling Made Easy
|
| 4 |
+
|
| 5 |
+
[](https://deepwiki.com/fla-org/flame)
|
| 6 |
+
|
| 7 |
+
</div>
|
| 8 |
+
|
| 9 |
+
Welcome to 🔥 `flame`, a minimal and efficient framework built on `torchtitan` for language models with blazing efficiency.
|
| 10 |
+
|
| 11 |
+
**Feature Highlights:**
|
| 12 |
+
|
| 13 |
+
- 🚀 Minimal, easy-to-use, extensible training framework
|
| 14 |
+
- 🤗 Seamless integration with `fla` and `transformers`
|
| 15 |
+
- 🔄 Zero-cost data preprocessing: online tokenization, dataset shuffling, and multiple datasets support
|
| 16 |
+
- 🔮 4D parallelism (coming soon)
|
| 17 |
+
|
| 18 |
+
## Setup
|
| 19 |
+
|
| 20 |
+
To get started, clone the `flame` repository and install the required dependencies:
|
| 21 |
+
|
| 22 |
+
```bash
|
| 23 |
+
git clone https://github.com/fla-org/flame.git
|
| 24 |
+
cd flame
|
| 25 |
+
pip install .
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
Install the latest version of fla
|
| 29 |
+
```
|
| 30 |
+
pip uninstall flash-linear-attention && pip install -U --no-use-pep517 git+https://github.com/fla-org/flash-linear-attention
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
[Important] Install specific version of torchtitan
|
| 34 |
+
```
|
| 35 |
+
pip install git+https://github.com/pytorch/torchtitan.git@0b44d4c
|
| 36 |
+
```
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
## Dataset Preparation
|
| 40 |
+
To download the dataset to your local disk, create a new Python file with the following content and execute it:
|
| 41 |
+
|
| 42 |
+
```py
|
| 43 |
+
from datasets import load_dataset
|
| 44 |
+
|
| 45 |
+
# load fineweb-edu with parallel processing
|
| 46 |
+
dataset = load_dataset("HuggingFaceFW/fineweb-edu", name="default", num_proc=64, cache_dir="/your/cache/path")
|
| 47 |
+
|
| 48 |
+
# or load a subset with roughly 100B tokens, suitable for small- or medium-sized experiments
|
| 49 |
+
dataset = load_dataset("HuggingFaceFW/fineweb-edu", name="sample-100BT", num_proc=64, cache_dir="/your/cache/path")
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
## Training Recipes
|
| 53 |
+
|
| 54 |
+
Here's an example of training a 340M FLA Transformer model with a LLaMA-like architecture from scratch on a 100BT subset of the Fineweb-edu corpus ~~in streaming mode~~. (Do not use streaming mode if you are concerned about resuming training.)
|
| 55 |
+
|
| 56 |
+
> [!WARNING]
|
| 57 |
+
> If the dataset is not downloaded beforehand, the streaming mode will attempt to fetch it from a remote server and download it on-the-fly, which can be highly unstable during training due to network issues.
|
| 58 |
+
> For stable training, ensure the dataset is downloaded locally (see [**Dataset Preparation**](#dataset-preparation)). Otherwise, we assume you are only testing the new corpus.
|
| 59 |
+
|
| 60 |
+
```sh
|
| 61 |
+
bash train.sh \
|
| 62 |
+
--job.config_file flame/models/fla.toml \
|
| 63 |
+
--job.dump_folder exp/transformer-340M-4K-10B/batch1.seqlen65536.context4096.warmup1024.update1.steps20480.lr1e-3.cosine \
|
| 64 |
+
--model.config configs/transformer_340M.json \
|
| 65 |
+
--model.tokenizer_path fla-hub/transformer-1.3B-100B \
|
| 66 |
+
--optimizer.name AdamW \
|
| 67 |
+
--optimizer.eps 1e-15 \
|
| 68 |
+
--optimizer.lr 1e-3 \
|
| 69 |
+
--lr_scheduler.warmup_steps 1024 \
|
| 70 |
+
--lr_scheduler.lr_min 0.1 \
|
| 71 |
+
--lr_scheduler.decay_type cosine \
|
| 72 |
+
--training.batch_size 1 \
|
| 73 |
+
--training.seq_len 65536 \
|
| 74 |
+
--training.context_len 4096 \
|
| 75 |
+
--training.varlen \
|
| 76 |
+
--training.gradient_accumulation_steps 1 \
|
| 77 |
+
--training.steps 20480 \
|
| 78 |
+
--training.max_norm 1.0 \
|
| 79 |
+
--training.skip_nan_inf \
|
| 80 |
+
--training.dataset HuggingFaceFW/fineweb-edu \
|
| 81 |
+
--training.dataset_name sample-100BT \
|
| 82 |
+
--training.dataset_split train \
|
| 83 |
+
--training.num_workers 32 \
|
| 84 |
+
--training.prefetch_factor 2 \
|
| 85 |
+
--training.seed 42 \
|
| 86 |
+
--training.compile \
|
| 87 |
+
--checkpoint.interval 2048 \
|
| 88 |
+
--checkpoint.load_step -1 \
|
| 89 |
+
--checkpoint.keep_latest_k 2 \
|
| 90 |
+
--metrics.log_freq 1
|
| 91 |
+
```
|
| 92 |
+
|
| 93 |
+
You can specify the number of GPUs by setting the environment variable `NGPU`, which defaults to 8.
|
| 94 |
+
**For single-GPU debugging, set `NGPU=1`.**
|
| 95 |
+
|
| 96 |
+
We provide several [config files](https://github.com/fla-org/flame/tree/main/configs) for different models.
|
| 97 |
+
By default, the learning rate is set to 1e-3 with a cosine scheduler. Other schedulers, such as WSD (wsd), are also supported.
|
| 98 |
+
|
| 99 |
+
**Key parameters:**
|
| 100 |
+
- `--lr_scheduler.decay_ratio`: The proportion of the steps allocated to the decay phase. The learning rate will remain stable after the warmup period and only start decaying during the last `decay_ratio` portion of the total training steps, which is known as the Warmup-Stable-Decay (WSD) schedule.
|
| 101 |
+
- `--lr_scheduler.warmup_steps`: The number of steps for the learning rate warmup phase.
|
| 102 |
+
- `--training.steps`: Total number of training steps.
|
| 103 |
+
- `--training.batch_size`: Batch size per device, must be 1 if `--training.varlen` is set.
|
| 104 |
+
- `--training.seq_len`: The length of each sequence in the batch, which is concatenated from multiple samples.
|
| 105 |
+
- `--training.context_len`: The max allowed length of a sample. For non-varlen mode, this is equivalent to `seq_len`.
|
| 106 |
+
- `--training.varlen`: Whether to conduct variable-length sequence training.
|
| 107 |
+
- `--training.gradient_accumulation_steps`: Number of gradient accumulation steps.
|
| 108 |
+
|
| 109 |
+
> [!WARNING]
|
| 110 |
+
> The total number of tokens processed per batch, referred to as `global_batch_size`, is calculated as batch_size × gradient_accumulation_steps × num_gpus.
|
| 111 |
+
> Each step processes `global_batch_size * seq_len` tokens.
|
| 112 |
+
> Monitor the value of `global_batch_size`, `warmup_steps`, and `steps` carefully when modifying any of the hyperparameters!
|
| 113 |
+
|
| 114 |
+
For a detailed explanation of all parameters, run:
|
| 115 |
+
|
| 116 |
+
```sh
|
| 117 |
+
bash train.sh -h
|
| 118 |
+
```
|
| 119 |
+
|
| 120 |
+
<details>
|
| 121 |
+
<summary>Usage</summary>
|
| 122 |
+
|
| 123 |
+
```py
|
| 124 |
+
options:
|
| 125 |
+
-h, --help show this help message and exit
|
| 126 |
+
--job.config_file JOB.CONFIG_FILE
|
| 127 |
+
Job config file
|
| 128 |
+
--job.dump_folder JOB.DUMP_FOLDER
|
| 129 |
+
Folder to dump job outputs
|
| 130 |
+
--job.description JOB.DESCRIPTION
|
| 131 |
+
Description of the job
|
| 132 |
+
--job.use_for_integration_test
|
| 133 |
+
Add this config to the integration test suite
|
| 134 |
+
--job.print_args Print the args to terminal
|
| 135 |
+
--model.config MODEL.CONFIG
|
| 136 |
+
Path to the model config
|
| 137 |
+
--model.norm_type MODEL.NORM_TYPE
|
| 138 |
+
Type of layer normalization to use [layernorm,
|
| 139 |
+
np_layernorm, rmsnorm, fused_rmsnorm]
|
| 140 |
+
--model.tokenizer_path MODEL.TOKENIZER_PATH
|
| 141 |
+
Tokenizer path
|
| 142 |
+
--profiling.enable_profiling
|
| 143 |
+
Whether to enable pytorch profiler
|
| 144 |
+
--profiling.save_traces_folder PROFILING.SAVE_TRACES_FOLDER
|
| 145 |
+
Trace files location
|
| 146 |
+
--profiling.profile_freq PROFILING.PROFILE_FREQ
|
| 147 |
+
How often to collect profiler traces, in iterations
|
| 148 |
+
--profiling.enable_memory_snapshot
|
| 149 |
+
Whether to dump memory snapshot
|
| 150 |
+
--profiling.save_memory_snapshot_folder PROFILING.SAVE_MEMORY_SNAPSHOT_FOLDER
|
| 151 |
+
Memeory snapshot files location
|
| 152 |
+
--optimizer.name OPTIMIZER.NAME
|
| 153 |
+
Optimizer to use
|
| 154 |
+
--optimizer.eps OPTIMIZER.EPS
|
| 155 |
+
Epsilon value for the optimizer.
|
| 156 |
+
--optimizer.fused Whether the fused implementation(CUDA only) is used.
|
| 157 |
+
--optimizer.scheduler {wsd,cosine,linear}
|
| 158 |
+
Scheduler to use. Currently supported: wsd, cosine,
|
| 159 |
+
and linear.
|
| 160 |
+
--optimizer.lr OPTIMIZER.LR
|
| 161 |
+
Learning rate to use
|
| 162 |
+
--optimizer.min_lr_ratio OPTIMIZER.MIN_LR_RATIO
|
| 163 |
+
Min lr ratio for lr scheduler
|
| 164 |
+
--optimizer.early_step_in_backward
|
| 165 |
+
Whether to apply optimizer in the backward. Caution,
|
| 166 |
+
optimizer_in_backward is not compatible with gradients
|
| 167 |
+
clipping, users should not call
|
| 168 |
+
register_post_accumulate_grad_hook after the optimizer
|
| 169 |
+
is built.
|
| 170 |
+
--training.batch_size TRAINING.BATCH_SIZE
|
| 171 |
+
Batch size
|
| 172 |
+
--training.seq_len TRAINING.SEQ_LEN
|
| 173 |
+
Sequence length
|
| 174 |
+
--training.context_len TRAINING.CONTEXT_LEN
|
| 175 |
+
Max length allowed for each sequence
|
| 176 |
+
--training.varlen Whether to take sequences of variable length as input
|
| 177 |
+
--training.warmup_steps TRAINING.WARMUP_STEPS
|
| 178 |
+
Steps for lr scheduler warmup, normally 1/5 of
|
| 179 |
+
--training.steps
|
| 180 |
+
--training.gradient_accumulation_steps TRAINING.GRADIENT_ACCUMULATION_STEPS
|
| 181 |
+
Number of steps to accumulate gradients before
|
| 182 |
+
updating parameters
|
| 183 |
+
--training.steps TRAINING.STEPS
|
| 184 |
+
How many train steps to run
|
| 185 |
+
--training.max_norm TRAINING.MAX_NORM
|
| 186 |
+
Max norm for gradient clipping
|
| 187 |
+
--training.skip_nan_inf
|
| 188 |
+
Skip batch updates when NaN or INF gradients are
|
| 189 |
+
encountered during training
|
| 190 |
+
--training.dataset TRAINING.DATASET
|
| 191 |
+
Dataset to use, with comma separated values
|
| 192 |
+
--training.dataset_name TRAINING.DATASET_NAME
|
| 193 |
+
The name of the dataset config, with comma separated
|
| 194 |
+
values if provided
|
| 195 |
+
--training.dataset_split TRAINING.DATASET_SPLIT
|
| 196 |
+
Dataset split to use, with comma separated values if
|
| 197 |
+
provided
|
| 198 |
+
--training.data_dir TRAINING.DATA_DIR
|
| 199 |
+
Data dirs to use, with comma separated values if
|
| 200 |
+
provided
|
| 201 |
+
--training.data_files TRAINING.DATA_FILES
|
| 202 |
+
Data files to use, with comma separated values if
|
| 203 |
+
provided
|
| 204 |
+
--training.data_probs TRAINING.DATA_PROBS
|
| 205 |
+
Data sampling probabilities, with comma separated
|
| 206 |
+
values if provided
|
| 207 |
+
--training.streaming Whether to load dataset in streaming mode, used for
|
| 208 |
+
huge dataset
|
| 209 |
+
--training.num_workers TRAINING.NUM_WORKERS
|
| 210 |
+
Number of subprocesses to use for data loading. 0
|
| 211 |
+
means that the data will be loaded in the main
|
| 212 |
+
process.
|
| 213 |
+
--training.prefetch_factor TRAINING.PREFETCH_FACTOR
|
| 214 |
+
Number of batches loaded in advance by each worker.2
|
| 215 |
+
means there will be a total of 2 * num_workers batches
|
| 216 |
+
prefetched across all workers.
|
| 217 |
+
--training.data_parallel_replicate_degree TRAINING.DATA_PARALLEL_REPLICATE_DEGREE
|
| 218 |
+
The `data_parallel_replicate_degree` argument
|
| 219 |
+
specifies the degree of data parallelism for weight
|
| 220 |
+
replication. When this value is greater than 1,
|
| 221 |
+
weights will be replicated across
|
| 222 |
+
`data_parallel_replicate_degree` ranks. If
|
| 223 |
+
`data_parallel_shard_degree` is also greater than 1,
|
| 224 |
+
the parallelism method used is HSDP (Hybrid Sharded
|
| 225 |
+
Data Parallelism). Otherwise, the parallelism method
|
| 226 |
+
used is DDP (Distributed Data Parallelism). 1 means
|
| 227 |
+
disabled.
|
| 228 |
+
--training.data_parallel_shard_degree TRAINING.DATA_PARALLEL_SHARD_DEGREE
|
| 229 |
+
The `data_parallel_shard_degree` argument specifies
|
| 230 |
+
the degree of data parallelism for weight sharding.
|
| 231 |
+
When this value is greater than 1, weights will be
|
| 232 |
+
sharded across `data_parallel_shard_degree` ranks. If
|
| 233 |
+
`data_parallel_replicate_degree` is also greater than
|
| 234 |
+
1, the parallelism method used is HSDP (Hybrid Sharded
|
| 235 |
+
Data Parallelism). Otherwise, the parallelism method
|
| 236 |
+
used is FSDP (Fully Sharded Data Parallelism). -1
|
| 237 |
+
means leftover ranks will be used (After
|
| 238 |
+
DP_REPLICATE/SP/PP). Note that only
|
| 239 |
+
`data_parallel_shard_degree` can be negative. 1 means
|
| 240 |
+
disabled.
|
| 241 |
+
--training.enable_cpu_offload
|
| 242 |
+
Whether to apply CPU offloading of parameters,
|
| 243 |
+
gradients, and optimizer states in FSDP
|
| 244 |
+
--training.tensor_parallel_degree TRAINING.TENSOR_PARALLEL_DEGREE
|
| 245 |
+
Tensor Parallelism degree. 1 means disabled.
|
| 246 |
+
--training.disable_loss_parallel
|
| 247 |
+
Whether to apply loss parallel when sequence parallel
|
| 248 |
+
is enabled
|
| 249 |
+
--training.mixed_precision_param {bfloat16,float32}
|
| 250 |
+
torch dtype to use for parameters when applying mixed
|
| 251 |
+
precision via FSDP. This feature only takes effect
|
| 252 |
+
when data_parallel_shard_degree > 1
|
| 253 |
+
--training.mixed_precision_reduce {float32}
|
| 254 |
+
torch dtype to use for reductions when applying mixed
|
| 255 |
+
precision via FSDP. This feature only takes effect
|
| 256 |
+
when data_parallel_shard_degree > 1
|
| 257 |
+
--training.compile Whether to compile the model
|
| 258 |
+
--training.gc_freq TRAINING.GC_FREQ
|
| 259 |
+
Python garbage control scheduling interval, in steps
|
| 260 |
+
--training.seed TRAINING.SEED
|
| 261 |
+
Choose the base RNG seed used for training
|
| 262 |
+
--training.deterministic
|
| 263 |
+
Use deterministic algorithms wherever possible, may be
|
| 264 |
+
slower
|
| 265 |
+
--metrics.log_freq METRICS.LOG_FREQ
|
| 266 |
+
How often to log metrics to TensorBoard, in iterations
|
| 267 |
+
--metrics.enable_tensorboard
|
| 268 |
+
Whether to log metrics to TensorBoard
|
| 269 |
+
--metrics.disable_color_printing
|
| 270 |
+
Whether to disable color printing in logs
|
| 271 |
+
--metrics.save_tb_folder METRICS.SAVE_TB_FOLDER
|
| 272 |
+
Folder to dump TensorBoard states
|
| 273 |
+
--metrics.rank_0_only
|
| 274 |
+
Whether to save TensorBoard metrics only for rank 0 or
|
| 275 |
+
for all ranks. When pipeline_parallel_degree is > 1,
|
| 276 |
+
this option uses the 0th rank of the last stage
|
| 277 |
+
pipeline group, which is the only stage that computes
|
| 278 |
+
loss metrics.
|
| 279 |
+
--metrics.enable_wandb
|
| 280 |
+
Whether to log metrics to Weights & Biases
|
| 281 |
+
--experimental.enable_async_tensor_parallel
|
| 282 |
+
Whether to apply async tensor parallel (currently only
|
| 283 |
+
effective when compile is enabled)
|
| 284 |
+
--experimental.pipeline_parallel_degree EXPERIMENTAL.PIPELINE_PARALLEL_DEGREE
|
| 285 |
+
Pipeline Parallelism degree, or number of ranks. 1
|
| 286 |
+
means disabled. If using looped schedules, this still
|
| 287 |
+
specifies the number of physical ranks, not the number
|
| 288 |
+
of stages. Stages per rank are inferred from split
|
| 289 |
+
points degree, and schedule.
|
| 290 |
+
--experimental.pipeline_parallel_split_points EXPERIMENTAL.PIPELINE_PARALLEL_SPLIT_POINTS [EXPERIMENTAL.PIPELINE_PARALLEL_SPLIT_POINTS ...]
|
| 291 |
+
Specify comma-separated names of modules to use as the
|
| 292 |
+
beginning of a split point. e.g. "layers.0,layers.2"
|
| 293 |
+
will cause the model to be split into 3 stages, the
|
| 294 |
+
first containing all the layers up to layers.0, the
|
| 295 |
+
second containing layers.0 and up to layers.2, the
|
| 296 |
+
third containing layers.2 and all the remaining
|
| 297 |
+
layers. Note: fully-automated splitting may be enabled
|
| 298 |
+
in the future, but currently the split points must be
|
| 299 |
+
specified manually.
|
| 300 |
+
--experimental.pipeline_parallel_schedule EXPERIMENTAL.PIPELINE_PARALLEL_SCHEDULE
|
| 301 |
+
Specify the Pipeline Parallel schedule to use. The
|
| 302 |
+
supported schedules are: https://github.com/pytorch/py
|
| 303 |
+
torch/blob/de4c2a3b4e89d96334dc678d1c3f2ae51a6630a0/to
|
| 304 |
+
rch/distributed/pipelining/schedules.py#L2161. The
|
| 305 |
+
schedule must be compatible with the split points and
|
| 306 |
+
stages_per_rank. Looped schedules (e.g.
|
| 307 |
+
Interleaved1F1B) require specifying
|
| 308 |
+
pipeline_parallel_degree = number of ranks, and
|
| 309 |
+
split_points = number of stages - 1
|
| 310 |
+
--experimental.pipeline_parallel_schedule_csv EXPERIMENTAL.PIPELINE_PARALLEL_SCHEDULE_CSV
|
| 311 |
+
Specify the path to the pipeline parallel schedule csv
|
| 312 |
+
file to use. The pipeline_parallel_schedule argument
|
| 313 |
+
must be either PipelineScheduleSingle,
|
| 314 |
+
PipelineScheduleMulti, or _PipelineScheduleRuntime.
|
| 315 |
+
--experimental.pipeline_parallel_microbatches EXPERIMENTAL.PIPELINE_PARALLEL_MICROBATCHES
|
| 316 |
+
How many microbatches to split the global training
|
| 317 |
+
batch into when using pipeline parallelism. The global
|
| 318 |
+
training batch size must be evenly divisible by the
|
| 319 |
+
number of microbatches. The default value will be the
|
| 320 |
+
number of pipeline stages, if unspecified.
|
| 321 |
+
--experimental.enable_compiled_autograd
|
| 322 |
+
Enable CompiledAutograd to compile the backward.
|
| 323 |
+
--experimental.context_parallel_degree EXPERIMENTAL.CONTEXT_PARALLEL_DEGREE
|
| 324 |
+
Context parallelism degree. 1 means disabled.
|
| 325 |
+
--experimental.context_parallel_rotate_method EXPERIMENTAL.CONTEXT_PARALLEL_ROTATE_METHOD
|
| 326 |
+
The collective to use in context parallel SDPA for kv
|
| 327 |
+
shards exchange. 'allgather' means to all-gather all
|
| 328 |
+
kv shards on ranks after the first sub-SDPA
|
| 329 |
+
computation, 'alltoall' means to all-to-all shuffle
|
| 330 |
+
the kv shards. The default value is 'allgather'.
|
| 331 |
+
--checkpoint.enable_checkpoint
|
| 332 |
+
Whether to enable checkpoint
|
| 333 |
+
--checkpoint.folder CHECKPOINT.FOLDER
|
| 334 |
+
The folder to store the checkpoints. When
|
| 335 |
+
enable_checkpoint is set to true, checkpoints will be
|
| 336 |
+
in {--job.dump_folder}/{--checkpoint.folder}.
|
| 337 |
+
--checkpoint.interval_type CHECKPOINT.INTERVAL_TYPE
|
| 338 |
+
Checkpointing interval unit of measurement ['step',
|
| 339 |
+
'seconds']
|
| 340 |
+
--checkpoint.interval CHECKPOINT.INTERVAL
|
| 341 |
+
Checkpointing interval, in steps or seconds depending
|
| 342 |
+
on --checkpoint.interval_type
|
| 343 |
+
--checkpoint.model_weights_only
|
| 344 |
+
When model_weights_only=True, only model weights will
|
| 345 |
+
be saved at the end of training. With this,
|
| 346 |
+
checkpoints can be loaded using `torch.load(...,
|
| 347 |
+
weights_only=True)` after conversion. When
|
| 348 |
+
model_weights_only=False, the full checkpoint will be
|
| 349 |
+
saved. A full checkpoint includes model, optimizer and
|
| 350 |
+
train_state, which can be used to resume training. The
|
| 351 |
+
default value is false.
|
| 352 |
+
--checkpoint.export_dtype {float16,bfloat16,float32}
|
| 353 |
+
Converts to the specified precision when training
|
| 354 |
+
completes and model_weights_only=true. Currently
|
| 355 |
+
supports float32, float16, and bfloat16. The default
|
| 356 |
+
value is float32.
|
| 357 |
+
--checkpoint.create_seed_checkpoint
|
| 358 |
+
Initializes the full model without applying
|
| 359 |
+
parallelisms, and then saves it as a seed checkpoint.
|
| 360 |
+
Note: requires user to call train.py without
|
| 361 |
+
specifying any parallelisms, e.g. NGPU=1. Could be
|
| 362 |
+
implemented as a separate script, but this way shares
|
| 363 |
+
more code.
|
| 364 |
+
--checkpoint.async_mode CHECKPOINT.ASYNC_MODE
|
| 365 |
+
Which async checkpoint mode to use. Currently there
|
| 366 |
+
are 3 different modes. 1. "disabled": synchronized
|
| 367 |
+
checkpointing will be used. 2. "async":
|
| 368 |
+
torch.distributed.checkpoint.async_save will be used.
|
| 369 |
+
1. "async_with_pinned_mem": this option utilizes a
|
| 370 |
+
dedicated pinned memory space and creates a separate
|
| 371 |
+
process for faster GPU->CPU transfer performance and
|
| 372 |
+
eliminating GIL contention. The cost is increased CPU
|
| 373 |
+
memory usage. If insufficient CPU memory is available,
|
| 374 |
+
performance may degrade due to memory paging. For most
|
| 375 |
+
users, "async" should suffice as the performance
|
| 376 |
+
overhead is typically small (on the order of tens of
|
| 377 |
+
seconds) compared to checkpointing frequency. This
|
| 378 |
+
mode can be employed to pursue near-zero checkpointing
|
| 379 |
+
times (e.g., < 1 second) given appropriate hardware
|
| 380 |
+
support such as ample CPU memory and fast PCIe.
|
| 381 |
+
"disabled" is the default mode.
|
| 382 |
+
--checkpoint.keep_latest_k CHECKPOINT.KEEP_LATEST_K
|
| 383 |
+
Keeps only the latest k checkpoints, and purging older
|
| 384 |
+
ones. If 0, keep all checkpoints. 0 is the default
|
| 385 |
+
value.
|
| 386 |
+
--checkpoint.load_step CHECKPOINT.LOAD_STEP
|
| 387 |
+
Load the checkpoint at the specified step. If -1, load
|
| 388 |
+
the latest checkpoint.
|
| 389 |
+
--float8.enable_float8_linear
|
| 390 |
+
If true, swaps `torch.nn.Linear` with `Float8Linear`.
|
| 391 |
+
This feature requires you to install 'torchao' which
|
| 392 |
+
can be found here: https://github.com/pytorch/ao
|
| 393 |
+
--float8.enable_fsdp_float8_all_gather
|
| 394 |
+
Whether enable float8 all-gather in FSDP
|
| 395 |
+
--float8.precompute_float8_dynamic_scale_for_fsdp
|
| 396 |
+
Whether precompute float8 scales dynamically for FSDP
|
| 397 |
+
--float8.scaling_type_input {dynamic,delayed}
|
| 398 |
+
float8 scaling for input, dynamic (default) or delayed
|
| 399 |
+
--float8.scaling_type_weight FLOAT8.SCALING_TYPE_WEIGHT
|
| 400 |
+
float8 scaling for input, dynamic (default) or delayed
|
| 401 |
+
--float8.scaling_type_grad_output FLOAT8.SCALING_TYPE_GRAD_OUTPUT
|
| 402 |
+
float8 scaling for input, dynamic (default) or delayed
|
| 403 |
+
--comm.init_timeout_seconds COMM.INIT_TIMEOUT_SECONDS
|
| 404 |
+
Timeout for communication operations, during
|
| 405 |
+
initialization and first train step.
|
| 406 |
+
--comm.train_timeout_seconds COMM.TRAIN_TIMEOUT_SECONDS
|
| 407 |
+
Timeout for communication operations after the first
|
| 408 |
+
train step -- usually a tighter bound than during
|
| 409 |
+
initialization.
|
| 410 |
+
--comm.trace_buf_size COMM.TRACE_BUF_SIZE
|
| 411 |
+
Flight recorder ring buffer size, >0 means recording
|
| 412 |
+
by default, 0 means disabled
|
| 413 |
+
--memory_estimation.enabled
|
| 414 |
+
Whether to estimate memory usage for FSDP
|
| 415 |
+
--memory_estimation.disable_fake_mode
|
| 416 |
+
Whether to estimate memory under FakeTensorMode
|
| 417 |
+
```
|
| 418 |
+
</details>
|
| 419 |
+
|
| 420 |
+
### Training with variable-length inputs
|
| 421 |
+
When you set the `--training.varlen` flag, you're enabling a more efficient training method that packs multiple documents together into a single long sequence, eliminating the need for padding.
|
| 422 |
+
This is particularly useful when your dataset contains documents of varying lengths.
|
| 423 |
+
Let's break down how `--training.seq_len` and `--training.context_len` work in this mode.
|
| 424 |
+
|
| 425 |
+
* `--training.seq_len` (Packed Sequence Length): This is the total length of the final sequence fed to the model on one device. Instead of processing one document at a time, the dataloader takes multiple documents (each split to sequences no longer than `context_len`), concatenates them end-to-end, and creates a single long sequence of length `seq_len`.
|
| 426 |
+
* `--training.context_len` (Sample Length): This parameter defines the maximum number of tokens for a single document or sample. If a document from the dataset is longer than `context_len`, it will be truncated. For example, if `--training.context_len` is set to 4,096, a document with 5,000 tokens will be cut down to its first 4,096 tokens, leaving the left tokens as another independent sequence, while a document with 3000 tokens remains unchanged.
|
| 427 |
+
|
| 428 |
+
### Training with `torch.compile`
|
| 429 |
+
|
| 430 |
+
Starting from `torch 2.0`, `torch.compile` has been introduced as a new feature to seamlessly accelerate training processes.
|
| 431 |
+
In `flame`, one can simply enable `torch.compile` by adding `--training.compile` flag to your training script.
|
| 432 |
+
|
| 433 |
+
However, `fla` has integrated numerous fused kernels for acceleration, which may potentially conflict with `torch.compile`.
|
| 434 |
+
We are actively working on resolving these issues to make compilation transparent to users.
|
| 435 |
+
In the meantime, please ensure you are using the latest dependencies.
|
| 436 |
+
|
| 437 |
+
Specifically, **we recommend using `torch>=2.6` and `triton>=3.0`**.
|
| 438 |
+
|
| 439 |
+
### Training with multiple datasets
|
| 440 |
+
|
| 441 |
+
If you wish to train a model with all-round capabilities (e.g., code, math, and multilingual ability), it's necessary to train on multiple datasets.
|
| 442 |
+
`flame` allows training with multiple datasets easily.
|
| 443 |
+
For example, you can specify the following arguments to train on 6 datasets with different proportions:
|
| 444 |
+
|
| 445 |
+
```sh
|
| 446 |
+
--training.dataset HuggingFaceFW/fineweb-edu,opencsg/Fineweb-Edu-Chinese-V2.1,OpenCoder-LLM/opc-fineweb-code-corpus,math-ai/AutoMathText,EleutherAI/proof-pile-2,OpenCoder-LLM/opc-fineweb-math-corpus \
|
| 447 |
+
--training.data_probs 0.6,0.15,0.15,0.014,0.058,0.028 \
|
| 448 |
+
```
|
| 449 |
+
|
| 450 |
+
### ~Finalizing training~
|
| 451 |
+
|
| 452 |
+
> [!NOTE]
|
| 453 |
+
> We have done this conversion automatically in the training script since our latest updates.
|
| 454 |
+
|
| 455 |
+
Once training is complete, you may want to convert the distributed checkpoints (DCPs) into the 🤗 format for broader use.
|
| 456 |
+
To facilitate this, we provide a straightforward conversion script:
|
| 457 |
+
|
| 458 |
+
```sh
|
| 459 |
+
python -m flame.utils.convert_dcp_to_hf --path <path_to_model> --step <step> --config <path_to_config> --tokenizer <path_to_tokenizer>
|
| 460 |
+
```
|
| 461 |
+
After this, your model will be in the 🤗 format, ready to be shared or deployed.
|
| 462 |
+
You can then easily publish your model using the `huggingface_hub` for wider accessibility.
|
| 463 |
+
|
| 464 |
+
### Continual training
|
| 465 |
+
|
| 466 |
+
If you wish to build upon a strong pre-trained model (in 🤗 format) and continue training, we also offer a script to convert the 🤗 format model back into DCP format.
|
| 467 |
+
This allows you to seamlessly resume training with `flame`.
|
| 468 |
+
```sh
|
| 469 |
+
python -m flame.utils.convert_hf_to_dcp --model <path_to_hf> --checkpoint <path_to_dcp/checkpoint/step-0>
|
| 470 |
+
```
|
| 471 |
+
Here, `<path_to_dcp>` is the directory where your distributed checkpoints will be stored.
|
| 472 |
+
The checkpoint is intentionally saved at `<step-0>` within the checkpoint folder to ensure it is loadable by `flame` during the initial training step, similar to how a seed checkpoint is handled.
|
| 473 |
+
|
| 474 |
+
Once the conversion is complete, you can proceed with training using `flame` as usual, continuing from where the pretrained model left off.
|
| 475 |
+
|
| 476 |
+
## Multi-node training
|
| 477 |
+
|
| 478 |
+
If you have access to multi-node GPUs, consider leveraging them for optimal performance.
|
| 479 |
+
This process is straightforward and well-documented in the PyTorch [docs](https://pytorch.org/docs/stable/elastic/run.html).
|
| 480 |
+
|
| 481 |
+
To set up multi-node training:
|
| 482 |
+
* Set the environment variables `MASTER_ADDR=<ip>` and `MASTER_PORT=<port>` before running the training script across all nodes.
|
| 483 |
+
* If you're using a job scheduler like Slurm, it will handle these variables for you.
|
| 484 |
+
|
| 485 |
+
`torchtitan` provides a [Slurm script](https://github.com/pytorch/torchtitan/blob/main/multinode_trainer.slurm) for multi-node training, which you can use as a reference or starting point.
|
| 486 |
+
|
| 487 |
+
## Custom models
|
| 488 |
+
|
| 489 |
+
`flame` supports custom model architectures through seamless integration with the Hugging Face `transformers` library. To add your own model:
|
| 490 |
+
|
| 491 |
+
1. Create a new model directory under `custom_models/` (see `custom_models/sba` for a complete example)
|
| 492 |
+
2. Implement your model classes and configuration:
|
| 493 |
+
- Define a config class inheriting from `PretrainedConfig` (see `custom_models/sba/config_sba.py` for an example)
|
| 494 |
+
- Create model classes inheriting from `PreTrainedModel` (see `custom_models/sba/modeling_sba.py` for an example)
|
| 495 |
+
3. Register your models in `__init__.py`:
|
| 496 |
+
- Import your model classes and config classes
|
| 497 |
+
- Register your models with the `AutoModelForCausalLM`, `AutoModel` and `AutoConfig` classes (see `custom_models/sba/__init__.py` for an example)
|
| 498 |
+
4. Create a config file for your custom model, just need to specify the `model_type` to the one you just named for your custom model (example: `configs/sba_340m.json`).
|
| 499 |
+
5. Training is extremely simple, you can just use the `flame.train.py` script to train your custom model.
|
| 500 |
+
|
| 501 |
+
|
| 502 |
+
|
| 503 |
+
|
| 504 |
+
|
| 505 |
+
|
| 506 |
+
|
| 507 |
+
## Citation
|
| 508 |
+
|
| 509 |
+
If you find `flame` helpful for your work, please consider citing it.
|
| 510 |
+
|
| 511 |
+
```bib
|
| 512 |
+
@software{yang2025flame,
|
| 513 |
+
title = {Flame: Flash Language Modeling Made Easy},
|
| 514 |
+
author = {Zhang, Yu and Yang, Songlin},
|
| 515 |
+
url = {https://github.com/fla-org/flame},
|
| 516 |
+
month = jan,
|
| 517 |
+
year = {2025}
|
| 518 |
+
}
|
| 519 |
+
```
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-20000/.metadata
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0e9b165f4c929be57c234189f39e01f9c248917254ba91131b1e9451b30b1d62
|
| 3 |
+
size 940728
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-20000/__0_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7e7be445f3f7e085f9bdde594e746aac4abb80cd212da9ba06c3f832ab5e2ff2
|
| 3 |
+
size 1584653863
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-20000/__1_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:43020ac3d80c54f4f758ec717ec1414177902a4594d106b2acd068d343d7b59f
|
| 3 |
+
size 1329586530
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-20000/__2_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1f3c339728195ad08a0f0febfe5e3e41e5b9ecc6b0560f53e034cac93ab15365
|
| 3 |
+
size 1326245010
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-20000/__3_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eed68b590ebb423bca290d2de0ce41b9108d4c9d7232325da10c89fa9a88ed50
|
| 3 |
+
size 1336581519
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-20000/__4_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dfc32c82d686b13aa9db37f14cdd623446388e913b955e06c70218df37e5c93f
|
| 3 |
+
size 1336471445
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-20000/__5_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:785be71615bab0634169da5fbae1345f41cb76313bf6bcf0a22ccdcebde42775
|
| 3 |
+
size 1362094848
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-20000/__6_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8defe13b90c3ea5422c661344670efdec70898958e5c1863d730413c2ebbd473
|
| 3 |
+
size 1364055507
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-20000/__7_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0a0e1dc2c352a785c33156d6b0ce4ef8592baa8e520878f5afe40cfbd93a6f3a
|
| 3 |
+
size 1363255205
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-30720/.metadata
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5e893be1765082b24a4f4b23b648b8037a99365a746927697423d00e936e4842
|
| 3 |
+
size 940728
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-30720/__0_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8418a74740c69bdc2bedacaad803cb25419a71bbf3cadfe03e9b60ee8904f729
|
| 3 |
+
size 1585781991
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-30720/__1_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d0c7fbcb103048e1c595e673712224a753e59c418394f4ada23e2b5aad9efe7a
|
| 3 |
+
size 1329970850
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-30720/__2_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ad097bd85bc306a50a3d29f018e4b918000169a81609e2187848e05df761c133
|
| 3 |
+
size 1326965970
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-30720/__3_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6f67dc01357a2e47cc3c9caadec571ce1023e53b46de39c30a7639085212bde2
|
| 3 |
+
size 1337930383
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-30720/__4_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eb5a68766f7eef351431056b2c793003234c09d9190e078aec774af9761c9ec9
|
| 3 |
+
size 1336915413
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-30720/__5_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2672ee94be20e543e58fb4b4774ce14b0e87c350b45093d093bf63c8a6949eae
|
| 3 |
+
size 1362416576
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-30720/__6_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:165f64c3704a6e6f204da805b0a545df67e70bdf7ae84cab0d2682b8132369b3
|
| 3 |
+
size 1363246035
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/checkpoint/step-30720/__7_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:371e59507148a12e4555f2ef15606ff6c3ba1232b6e91ca6a90f5af720142a80
|
| 3 |
+
size 1364818533
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/config.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"TransformerForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"bos_token_id": 1,
|
| 6 |
+
"dtype": "float32",
|
| 7 |
+
"elementwise_affine": true,
|
| 8 |
+
"eos_token_id": 2,
|
| 9 |
+
"fuse_cross_entropy": true,
|
| 10 |
+
"fuse_linear_cross_entropy": false,
|
| 11 |
+
"fuse_norm": true,
|
| 12 |
+
"fuse_swiglu": true,
|
| 13 |
+
"hidden_act": "swish",
|
| 14 |
+
"hidden_ratio": 4,
|
| 15 |
+
"hidden_size": 2048,
|
| 16 |
+
"initializer_range": 0.02,
|
| 17 |
+
"intermediate_size": null,
|
| 18 |
+
"max_position_embeddings": 8192,
|
| 19 |
+
"model_type": "transformer",
|
| 20 |
+
"norm_eps": 1e-06,
|
| 21 |
+
"num_heads": 32,
|
| 22 |
+
"num_hidden_layers": 24,
|
| 23 |
+
"num_kv_heads": null,
|
| 24 |
+
"pad_token_id": 2,
|
| 25 |
+
"qk_norm": false,
|
| 26 |
+
"qkv_bias": false,
|
| 27 |
+
"rope_theta": 10000.0,
|
| 28 |
+
"tie_word_embeddings": false,
|
| 29 |
+
"transformers_version": "4.57.6",
|
| 30 |
+
"use_cache": true,
|
| 31 |
+
"use_l2warp": false,
|
| 32 |
+
"vocab_size": 32000,
|
| 33 |
+
"window_size": null
|
| 34 |
+
}
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/blt_transformer_1000hash.json
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "blt",
|
| 3 |
+
"vocab_size": 260,
|
| 4 |
+
"max_position_embeddings": 4096,
|
| 5 |
+
"initializer_range": 0.02,
|
| 6 |
+
"tie_word_embeddings": false,
|
| 7 |
+
"patch_in_forward": true,
|
| 8 |
+
"patch_size": 4,
|
| 9 |
+
"patching_mode": "entropy",
|
| 10 |
+
"patching_threshold": 1.335442066192627,
|
| 11 |
+
"patching_batch_size": 1,
|
| 12 |
+
"max_patch_length": null,
|
| 13 |
+
"patching_device": "cuda",
|
| 14 |
+
"realtime_patching": true,
|
| 15 |
+
"patching_threshold_add": null,
|
| 16 |
+
"monotonicity": false,
|
| 17 |
+
"cross_attn_k": 2,
|
| 18 |
+
"encoder_hash_byte_group_size": [3, 4, 5, 6, 7, 8],
|
| 19 |
+
"encoder_hash_byte_group_vocab": 1000,
|
| 20 |
+
"encoder_hash_byte_group_nb_functions": 1,
|
| 21 |
+
"patcher_config": {
|
| 22 |
+
"model_type": "blt_patcher",
|
| 23 |
+
"vocab_size": 260,
|
| 24 |
+
"hidden_size": 512,
|
| 25 |
+
"num_hidden_layers": 7,
|
| 26 |
+
"num_attention_heads": 8,
|
| 27 |
+
"num_key_value_heads": 8,
|
| 28 |
+
"max_position_embeddings": 8192,
|
| 29 |
+
"rms_norm_eps": 1e-5,
|
| 30 |
+
"dropout": 0.0,
|
| 31 |
+
"intermediate_size": 1365,
|
| 32 |
+
"hidden_act": "silu",
|
| 33 |
+
"initializer_range": 0.02,
|
| 34 |
+
"rope_parameters": {"rope_type": "default",
|
| 35 |
+
"rope_theta": 500000
|
| 36 |
+
}
|
| 37 |
+
},
|
| 38 |
+
"encoder_config": {
|
| 39 |
+
"model_type": "blt_local_encoder",
|
| 40 |
+
"vocab_size": 260,
|
| 41 |
+
"hidden_size": 512,
|
| 42 |
+
"hidden_size_global": 1024,
|
| 43 |
+
"num_hidden_layers": 1,
|
| 44 |
+
"num_attention_heads": 8,
|
| 45 |
+
"num_key_value_heads": 8,
|
| 46 |
+
"head_dim": 64,
|
| 47 |
+
"intermediate_size": 1365,
|
| 48 |
+
"rms_norm_eps": 1e-5,
|
| 49 |
+
"dropout": 0.0,
|
| 50 |
+
"max_position_embeddings": 24576,
|
| 51 |
+
"cross_attn_all_layers": false,
|
| 52 |
+
"cross_attn_k": 2,
|
| 53 |
+
"hidden_act": "silu",
|
| 54 |
+
"initializer_range": 0.02,
|
| 55 |
+
"rope_parameters": {"rope_type": "default",
|
| 56 |
+
"rope_theta": 500000
|
| 57 |
+
}
|
| 58 |
+
},
|
| 59 |
+
"decoder_config": {
|
| 60 |
+
"model_type": "blt_local_decoder",
|
| 61 |
+
"vocab_size": 260,
|
| 62 |
+
"hidden_size": 512,
|
| 63 |
+
"hidden_size_global": 1024,
|
| 64 |
+
"num_hidden_layers": 9,
|
| 65 |
+
"num_attention_heads": 8,
|
| 66 |
+
"num_key_value_heads": 8,
|
| 67 |
+
"head_dim": 64,
|
| 68 |
+
"intermediate_size": 1365,
|
| 69 |
+
"rms_norm_eps": 1e-5,
|
| 70 |
+
"dropout": 0.0,
|
| 71 |
+
"max_position_embeddings": 24576,
|
| 72 |
+
"cross_attn_all_layers": true,
|
| 73 |
+
"cross_attn_k": 2,
|
| 74 |
+
"hidden_act": "silu",
|
| 75 |
+
"initializer_range": 0.02,
|
| 76 |
+
"rope_parameters": {"rope_type": "default",
|
| 77 |
+
"rope_theta": 500000
|
| 78 |
+
}
|
| 79 |
+
},
|
| 80 |
+
"global_config": {
|
| 81 |
+
"model_type": "blt_global_transformer",
|
| 82 |
+
"hidden_size": 1024,
|
| 83 |
+
"num_hidden_layers": 25,
|
| 84 |
+
"num_attention_heads": 8,
|
| 85 |
+
"num_key_value_heads": 8,
|
| 86 |
+
"head_dim": 128,
|
| 87 |
+
"intermediate_size": 2731,
|
| 88 |
+
"rms_norm_eps": 1e-5,
|
| 89 |
+
"dropout": 0.0,
|
| 90 |
+
"max_position_embeddings": 4096,
|
| 91 |
+
"hidden_act": "silu",
|
| 92 |
+
"initializer_range": 0.02,
|
| 93 |
+
"rope_parameters": {"rope_type": "default",
|
| 94 |
+
"rope_theta": 500000
|
| 95 |
+
},
|
| 96 |
+
"encoder_cross_output_size": null
|
| 97 |
+
}
|
| 98 |
+
}
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/blt_transformer_1_5B.json
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "blt",
|
| 3 |
+
"vocab_size": 260,
|
| 4 |
+
"max_position_embeddings": 4096,
|
| 5 |
+
"initializer_range": 0.02,
|
| 6 |
+
"tie_word_embeddings": false,
|
| 7 |
+
"patch_in_forward": true,
|
| 8 |
+
"patch_size": 4,
|
| 9 |
+
"patching_mode": "entropy",
|
| 10 |
+
"patching_threshold": 1.335442066192627,
|
| 11 |
+
"patching_batch_size": 1,
|
| 12 |
+
"max_patch_length": null,
|
| 13 |
+
"patching_device": "cuda",
|
| 14 |
+
"realtime_patching": true,
|
| 15 |
+
"patching_threshold_add": null,
|
| 16 |
+
"monotonicity": false,
|
| 17 |
+
"cross_attn_k": 2,
|
| 18 |
+
"encoder_hash_byte_group_size": [3, 4, 5, 6, 7, 8],
|
| 19 |
+
"encoder_hash_byte_group_vocab": 500,
|
| 20 |
+
"encoder_hash_byte_group_nb_functions": 1,
|
| 21 |
+
"patcher_config": {
|
| 22 |
+
"model_type": "blt_patcher",
|
| 23 |
+
"vocab_size": 260,
|
| 24 |
+
"hidden_size": 768,
|
| 25 |
+
"num_hidden_layers": 7,
|
| 26 |
+
"num_attention_heads": 12,
|
| 27 |
+
"num_key_value_heads": 12,
|
| 28 |
+
"max_position_embeddings": 8192,
|
| 29 |
+
"rms_norm_eps": 1e-5,
|
| 30 |
+
"dropout": 0.0,
|
| 31 |
+
"intermediate_size": 2048,
|
| 32 |
+
"hidden_act": "silu",
|
| 33 |
+
"initializer_range": 0.02,
|
| 34 |
+
"rope_parameters": {"rope_type": "default",
|
| 35 |
+
"rope_theta": 500000
|
| 36 |
+
}
|
| 37 |
+
},
|
| 38 |
+
"encoder_config": {
|
| 39 |
+
"model_type": "blt_local_encoder",
|
| 40 |
+
"vocab_size": 260,
|
| 41 |
+
"hidden_size": 1024,
|
| 42 |
+
"hidden_size_global": 2048,
|
| 43 |
+
"num_hidden_layers": 1,
|
| 44 |
+
"num_attention_heads": 16,
|
| 45 |
+
"num_key_value_heads": 16,
|
| 46 |
+
"head_dim": 64,
|
| 47 |
+
"intermediate_size": 2816,
|
| 48 |
+
"rms_norm_eps": 1e-5,
|
| 49 |
+
"dropout": 0.0,
|
| 50 |
+
"max_position_embeddings": 24576,
|
| 51 |
+
"cross_attn_all_layers": false,
|
| 52 |
+
"cross_attn_k": 2,
|
| 53 |
+
"hidden_act": "silu",
|
| 54 |
+
"initializer_range": 0.02,
|
| 55 |
+
"rope_parameters": {"rope_type": "default",
|
| 56 |
+
"rope_theta": 500000
|
| 57 |
+
}
|
| 58 |
+
},
|
| 59 |
+
|
| 60 |
+
"decoder_config": {
|
| 61 |
+
"model_type": "blt_local_decoder",
|
| 62 |
+
"vocab_size": 260,
|
| 63 |
+
"hidden_size": 1024,
|
| 64 |
+
"hidden_size_global": 2048,
|
| 65 |
+
"num_hidden_layers": 9,
|
| 66 |
+
"num_attention_heads": 16,
|
| 67 |
+
"num_key_value_heads": 16,
|
| 68 |
+
"head_dim": 64,
|
| 69 |
+
"intermediate_size": 2816,
|
| 70 |
+
"rms_norm_eps": 1e-5,
|
| 71 |
+
"dropout": 0.0,
|
| 72 |
+
"max_position_embeddings": 24576,
|
| 73 |
+
"cross_attn_all_layers": true,
|
| 74 |
+
"cross_attn_k": 2,
|
| 75 |
+
"hidden_act": "silu",
|
| 76 |
+
"initializer_range": 0.02,
|
| 77 |
+
"rope_parameters": {"rope_type": "default",
|
| 78 |
+
"rope_theta": 500000
|
| 79 |
+
}
|
| 80 |
+
},
|
| 81 |
+
"global_config": {
|
| 82 |
+
"model_type": "blt_global_transformer",
|
| 83 |
+
"hidden_size": 2048,
|
| 84 |
+
"num_hidden_layers": 25,
|
| 85 |
+
"num_attention_heads": 16,
|
| 86 |
+
"num_key_value_heads": 16,
|
| 87 |
+
"head_dim": 128,
|
| 88 |
+
"intermediate_size": 5632,
|
| 89 |
+
"rms_norm_eps": 1e-5,
|
| 90 |
+
"dropout": 0.0,
|
| 91 |
+
"max_position_embeddings": 4096,
|
| 92 |
+
"hidden_act": "silu",
|
| 93 |
+
"initializer_range": 0.02,
|
| 94 |
+
"rope_parameters": {"rope_type": "default",
|
| 95 |
+
"rope_theta": 500000
|
| 96 |
+
},
|
| 97 |
+
"encoder_cross_output_size": null
|
| 98 |
+
}
|
| 99 |
+
}
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/blt_transformer_380M.json
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "blt",
|
| 3 |
+
"vocab_size": 260,
|
| 4 |
+
"max_position_embeddings": 4096,
|
| 5 |
+
"initializer_range": 0.02,
|
| 6 |
+
"tie_word_embeddings": false,
|
| 7 |
+
"patch_in_forward": true,
|
| 8 |
+
"patch_size": 4,
|
| 9 |
+
"patching_mode": "entropy",
|
| 10 |
+
"patching_threshold": 1.335442066192627,
|
| 11 |
+
"patching_batch_size": 1,
|
| 12 |
+
"max_patch_length": null,
|
| 13 |
+
"patching_device": "cuda",
|
| 14 |
+
"realtime_patching": true,
|
| 15 |
+
"patching_threshold_add": null,
|
| 16 |
+
"monotonicity": false,
|
| 17 |
+
"cross_attn_k": 2,
|
| 18 |
+
"encoder_hash_byte_group_size": [3, 4, 5, 6, 7, 8],
|
| 19 |
+
"encoder_hash_byte_group_vocab": 500,
|
| 20 |
+
"encoder_hash_byte_group_nb_functions": 1,
|
| 21 |
+
"patcher_config": {
|
| 22 |
+
"model_type": "blt_patcher",
|
| 23 |
+
"vocab_size": 260,
|
| 24 |
+
"hidden_size": 512,
|
| 25 |
+
"num_hidden_layers": 7,
|
| 26 |
+
"num_attention_heads": 8,
|
| 27 |
+
"num_key_value_heads": 8,
|
| 28 |
+
"max_position_embeddings": 8192,
|
| 29 |
+
"rms_norm_eps": 1e-5,
|
| 30 |
+
"dropout": 0.0,
|
| 31 |
+
"intermediate_size": 1365,
|
| 32 |
+
"hidden_act": "silu",
|
| 33 |
+
"initializer_range": 0.02,
|
| 34 |
+
"rope_parameters": {"rope_type": "default",
|
| 35 |
+
"rope_theta": 500000
|
| 36 |
+
}
|
| 37 |
+
},
|
| 38 |
+
"encoder_config": {
|
| 39 |
+
"model_type": "blt_local_encoder",
|
| 40 |
+
"vocab_size": 260,
|
| 41 |
+
"hidden_size": 512,
|
| 42 |
+
"hidden_size_global": 1024,
|
| 43 |
+
"num_hidden_layers": 1,
|
| 44 |
+
"num_attention_heads": 8,
|
| 45 |
+
"num_key_value_heads": 8,
|
| 46 |
+
"head_dim": 64,
|
| 47 |
+
"intermediate_size": 1365,
|
| 48 |
+
"rms_norm_eps": 1e-5,
|
| 49 |
+
"dropout": 0.0,
|
| 50 |
+
"max_position_embeddings": 24576,
|
| 51 |
+
"cross_attn_all_layers": false,
|
| 52 |
+
"cross_attn_k": 2,
|
| 53 |
+
"hidden_act": "silu",
|
| 54 |
+
"initializer_range": 0.02,
|
| 55 |
+
"rope_parameters": {"rope_type": "default",
|
| 56 |
+
"rope_theta": 500000
|
| 57 |
+
}
|
| 58 |
+
},
|
| 59 |
+
"decoder_config": {
|
| 60 |
+
"model_type": "blt_local_decoder",
|
| 61 |
+
"vocab_size": 260,
|
| 62 |
+
"hidden_size": 512,
|
| 63 |
+
"hidden_size_global": 1024,
|
| 64 |
+
"num_hidden_layers": 9,
|
| 65 |
+
"num_attention_heads": 8,
|
| 66 |
+
"num_key_value_heads": 8,
|
| 67 |
+
"head_dim": 64,
|
| 68 |
+
"intermediate_size": 1365,
|
| 69 |
+
"rms_norm_eps": 1e-5,
|
| 70 |
+
"dropout": 0.0,
|
| 71 |
+
"max_position_embeddings": 24576,
|
| 72 |
+
"cross_attn_all_layers": true,
|
| 73 |
+
"cross_attn_k": 2,
|
| 74 |
+
"hidden_act": "silu",
|
| 75 |
+
"initializer_range": 0.02,
|
| 76 |
+
"rope_parameters": {"rope_type": "default",
|
| 77 |
+
"rope_theta": 500000
|
| 78 |
+
}
|
| 79 |
+
},
|
| 80 |
+
"global_config": {
|
| 81 |
+
"model_type": "blt_global_transformer",
|
| 82 |
+
"hidden_size": 1024,
|
| 83 |
+
"num_hidden_layers": 25,
|
| 84 |
+
"num_attention_heads": 8,
|
| 85 |
+
"num_key_value_heads": 8,
|
| 86 |
+
"head_dim": 128,
|
| 87 |
+
"intermediate_size": 2731,
|
| 88 |
+
"rms_norm_eps": 1e-5,
|
| 89 |
+
"dropout": 0.0,
|
| 90 |
+
"max_position_embeddings": 4096,
|
| 91 |
+
"hidden_act": "silu",
|
| 92 |
+
"initializer_range": 0.02,
|
| 93 |
+
"rope_parameters": {"rope_type": "default",
|
| 94 |
+
"rope_theta": 500000
|
| 95 |
+
},
|
| 96 |
+
"encoder_cross_output_size": null
|
| 97 |
+
}
|
| 98 |
+
}
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/delta_net_1B.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"attn": null,
|
| 3 |
+
"attn_mode": "chunk",
|
| 4 |
+
"bos_token_id": 1,
|
| 5 |
+
"conv_size": 4,
|
| 6 |
+
"eos_token_id": 2,
|
| 7 |
+
"expand_k": 1,
|
| 8 |
+
"expand_v": 1,
|
| 9 |
+
"fuse_cross_entropy": true,
|
| 10 |
+
"fuse_norm": true,
|
| 11 |
+
"hidden_act": "swish",
|
| 12 |
+
"hidden_ratio": 4,
|
| 13 |
+
"hidden_size": 2048,
|
| 14 |
+
"initializer_range": 0.02,
|
| 15 |
+
"intermediate_size": null,
|
| 16 |
+
"model_type": "delta_net",
|
| 17 |
+
"norm_eps": 1e-06,
|
| 18 |
+
"num_heads": 16,
|
| 19 |
+
"num_hidden_layers": 24,
|
| 20 |
+
"pad_token_id": 2,
|
| 21 |
+
"qk_activation": "silu",
|
| 22 |
+
"qk_norm": "l2",
|
| 23 |
+
"tie_word_embeddings": false,
|
| 24 |
+
"use_beta": true,
|
| 25 |
+
"use_cache": true,
|
| 26 |
+
"use_gate": false,
|
| 27 |
+
"use_output_norm": true,
|
| 28 |
+
"use_short_conv": true
|
| 29 |
+
}
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/delta_net_340M.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"attn_mode": "chunk",
|
| 3 |
+
"bos_token_id": 1,
|
| 4 |
+
"conv_size": 4,
|
| 5 |
+
"eos_token_id": 2,
|
| 6 |
+
"expand_k": 1,
|
| 7 |
+
"expand_v": 1,
|
| 8 |
+
"fuse_cross_entropy": true,
|
| 9 |
+
"hidden_act": "swish",
|
| 10 |
+
"hidden_ratio": 4,
|
| 11 |
+
"hidden_size": 1024,
|
| 12 |
+
"initializer_range": 0.02,
|
| 13 |
+
"intermediate_size": null,
|
| 14 |
+
"model_type": "delta_net",
|
| 15 |
+
"norm_eps": 1e-06,
|
| 16 |
+
"num_heads": 8,
|
| 17 |
+
"num_hidden_layers": 24,
|
| 18 |
+
"qk_activation": "silu",
|
| 19 |
+
"qk_norm": "l2",
|
| 20 |
+
"tie_word_embeddings": false,
|
| 21 |
+
"use_beta": true,
|
| 22 |
+
"use_cache": true,
|
| 23 |
+
"use_gate": false,
|
| 24 |
+
"use_output_norm": true,
|
| 25 |
+
"use_short_conv": true
|
| 26 |
+
}
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/gated_deltanet_1B.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"attn_mode": "chunk",
|
| 3 |
+
"bos_token_id": 1,
|
| 4 |
+
"conv_size": 4,
|
| 5 |
+
"eos_token_id": 2,
|
| 6 |
+
"expand_v": 2,
|
| 7 |
+
"fuse_cross_entropy": true,
|
| 8 |
+
"head_dim": 256,
|
| 9 |
+
"hidden_act": "swish",
|
| 10 |
+
"hidden_ratio": 4,
|
| 11 |
+
"hidden_size": 2048,
|
| 12 |
+
"initializer_range": 0.02,
|
| 13 |
+
"intermediate_size": null,
|
| 14 |
+
"model_type": "gated_deltanet",
|
| 15 |
+
"norm_eps": 1e-06,
|
| 16 |
+
"num_heads": 6,
|
| 17 |
+
"num_hidden_layers": 21,
|
| 18 |
+
"tie_word_embeddings": false,
|
| 19 |
+
"use_cache": true,
|
| 20 |
+
"use_gate": true,
|
| 21 |
+
"use_short_conv": true
|
| 22 |
+
}
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/gated_deltanet_340M.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"attn_mode": "chunk",
|
| 3 |
+
"bos_token_id": 1,
|
| 4 |
+
"conv_size": 4,
|
| 5 |
+
"eos_token_id": 2,
|
| 6 |
+
"expand_v": 2,
|
| 7 |
+
"fuse_cross_entropy": true,
|
| 8 |
+
"head_dim": 256,
|
| 9 |
+
"hidden_act": "swish",
|
| 10 |
+
"hidden_ratio": 4,
|
| 11 |
+
"hidden_size": 1024,
|
| 12 |
+
"initializer_range": 0.02,
|
| 13 |
+
"intermediate_size": null,
|
| 14 |
+
"model_type": "gated_deltanet",
|
| 15 |
+
"norm_eps": 1e-06,
|
| 16 |
+
"num_heads": 6,
|
| 17 |
+
"num_hidden_layers": 21,
|
| 18 |
+
"tie_word_embeddings": false,
|
| 19 |
+
"use_cache": true,
|
| 20 |
+
"use_gate": true,
|
| 21 |
+
"use_short_conv": true
|
| 22 |
+
}
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/gated_deltanet_h_340M.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "gated_deltanet",
|
| 3 |
+
"attn_mode": "chunk",
|
| 4 |
+
"hidden_size": 1024,
|
| 5 |
+
"num_hidden_layers": 21,
|
| 6 |
+
"head_dim": 256,
|
| 7 |
+
"num_heads": 6,
|
| 8 |
+
"expand_v": 2,
|
| 9 |
+
"hidden_ratio": 4,
|
| 10 |
+
"use_gate": true,
|
| 11 |
+
"use_short_conv": true,
|
| 12 |
+
"conv_size": 4,
|
| 13 |
+
"vocab_size": 32000,
|
| 14 |
+
"hidden_act": "swish",
|
| 15 |
+
"norm_eps": 1e-06,
|
| 16 |
+
"bos_token_id": 1,
|
| 17 |
+
"eos_token_id": 2,
|
| 18 |
+
"fuse_cross_entropy": true,
|
| 19 |
+
"initializer_range": 0.02,
|
| 20 |
+
"attn": {
|
| 21 |
+
"layers": [3, 7, 11, 15, 19],
|
| 22 |
+
"num_heads": 8,
|
| 23 |
+
"num_kv_heads": 1,
|
| 24 |
+
"window_size": 2048,
|
| 25 |
+
"rope_theta": 100000.0,
|
| 26 |
+
"qkv_bias": false
|
| 27 |
+
}
|
| 28 |
+
}
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/gla_1B.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"attn_mode": "chunk",
|
| 3 |
+
"bos_token_id": 1,
|
| 4 |
+
"clamp_min": null,
|
| 5 |
+
"eos_token_id": 2,
|
| 6 |
+
"expand_k": 0.5,
|
| 7 |
+
"expand_v": 1,
|
| 8 |
+
"fuse_cross_entropy": true,
|
| 9 |
+
"fuse_norm": true,
|
| 10 |
+
"hidden_act": "swish",
|
| 11 |
+
"hidden_ratio": 4,
|
| 12 |
+
"hidden_size": 2048,
|
| 13 |
+
"initializer_range": 0.02,
|
| 14 |
+
"intermediate_size": null,
|
| 15 |
+
"model_type": "gla",
|
| 16 |
+
"num_heads": 4,
|
| 17 |
+
"num_hidden_layers": 24,
|
| 18 |
+
"norm_eps": 1e-06,
|
| 19 |
+
"tie_word_embeddings": false,
|
| 20 |
+
"use_cache": true,
|
| 21 |
+
"use_gk": true,
|
| 22 |
+
"use_gv": false,
|
| 23 |
+
"vocab_size": 32000
|
| 24 |
+
}
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/gla_340M.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"attn_mode": "chunk",
|
| 3 |
+
"bos_token_id": 1,
|
| 4 |
+
"clamp_min": null,
|
| 5 |
+
"eos_token_id": 2,
|
| 6 |
+
"expand_k": 0.5,
|
| 7 |
+
"expand_v": 1,
|
| 8 |
+
"fuse_cross_entropy": true,
|
| 9 |
+
"fuse_norm": true,
|
| 10 |
+
"hidden_act": "swish",
|
| 11 |
+
"hidden_ratio": 4,
|
| 12 |
+
"hidden_size": 1024,
|
| 13 |
+
"initializer_range": 0.02,
|
| 14 |
+
"intermediate_size": null,
|
| 15 |
+
"model_type": "gla",
|
| 16 |
+
"num_heads": 4,
|
| 17 |
+
"num_hidden_layers": 24,
|
| 18 |
+
"norm_eps": 1e-06,
|
| 19 |
+
"tie_word_embeddings": false,
|
| 20 |
+
"use_cache": true,
|
| 21 |
+
"use_gk": true,
|
| 22 |
+
"use_gv": false,
|
| 23 |
+
"vocab_size": 32000
|
| 24 |
+
}
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/gla_7B.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"attn": null,
|
| 3 |
+
"attn_mode": "chunk",
|
| 4 |
+
"bos_token_id": 1,
|
| 5 |
+
"eos_token_id": 2,
|
| 6 |
+
"expand_k": 0.5,
|
| 7 |
+
"expand_v": 1,
|
| 8 |
+
"fuse_cross_entropy": true,
|
| 9 |
+
"fuse_norm": true,
|
| 10 |
+
"hidden_act": "swish",
|
| 11 |
+
"hidden_ratio": 4,
|
| 12 |
+
"hidden_size": 4096,
|
| 13 |
+
"initializer_range": 0.02,
|
| 14 |
+
"intermediate_size": 11008,
|
| 15 |
+
"model_type": "gla",
|
| 16 |
+
"norm_eps": 1e-06,
|
| 17 |
+
"num_heads": 16,
|
| 18 |
+
"num_hidden_layers": 32,
|
| 19 |
+
"tie_word_embeddings": false,
|
| 20 |
+
"use_cache": true,
|
| 21 |
+
"use_gk": true,
|
| 22 |
+
"use_gv": false,
|
| 23 |
+
"use_output_gate": true,
|
| 24 |
+
"use_short_conv": false
|
| 25 |
+
}
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/gsa_340M.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 1,
|
| 3 |
+
"conv_size": 4,
|
| 4 |
+
"eos_token_id": 2,
|
| 5 |
+
"expand_k": 1,
|
| 6 |
+
"expand_v": 1,
|
| 7 |
+
"elementwise_affine": false,
|
| 8 |
+
"feature_map": "swish",
|
| 9 |
+
"fuse_cross_entropy": true,
|
| 10 |
+
"fuse_norm": true,
|
| 11 |
+
"gate_logit_normalizer": 4,
|
| 12 |
+
"hidden_act": "swish",
|
| 13 |
+
"hidden_ratio": 4,
|
| 14 |
+
"hidden_size": 1024,
|
| 15 |
+
"initializer_range": 0.02,
|
| 16 |
+
"intermediate_size": null,
|
| 17 |
+
"model_type": "gsa",
|
| 18 |
+
"num_heads": 4,
|
| 19 |
+
"num_hidden_layers": 24,
|
| 20 |
+
"num_slots": 64,
|
| 21 |
+
"norm_eps": 1e-06,
|
| 22 |
+
"share_conv_kernel": true,
|
| 23 |
+
"tie_word_embeddings": false,
|
| 24 |
+
"use_cache": true,
|
| 25 |
+
"use_norm": true,
|
| 26 |
+
"use_output_gate": true,
|
| 27 |
+
"use_rope": false,
|
| 28 |
+
"use_short_conv": false
|
| 29 |
+
}
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/mergenet_340M.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "mergenet",
|
| 3 |
+
"vocab_size": 260,
|
| 4 |
+
"hidden_size": 1024,
|
| 5 |
+
"num_local_layers": 6,
|
| 6 |
+
"local_depth": 4,
|
| 7 |
+
"num_latent_layers": 12,
|
| 8 |
+
"num_heads": 16,
|
| 9 |
+
"num_kv_heads": 16,
|
| 10 |
+
"intermediate_size": 4096,
|
| 11 |
+
"hidden_act": "swish",
|
| 12 |
+
"max_position_embeddings": 8192,
|
| 13 |
+
"lambda_local": 4.0,
|
| 14 |
+
"dtem_window_size": 8,
|
| 15 |
+
"dtem_t": 1,
|
| 16 |
+
"dtem_feat_dim": null,
|
| 17 |
+
"use_softkmax": false,
|
| 18 |
+
"grid_bias_gamma": 1.0,
|
| 19 |
+
"W_infer": null,
|
| 20 |
+
"qkv_bias": true,
|
| 21 |
+
"qk_norm": false,
|
| 22 |
+
"rope_theta": 10000.0,
|
| 23 |
+
"norm_eps": 1e-6,
|
| 24 |
+
"initializer_range": 0.02,
|
| 25 |
+
"use_cache": true,
|
| 26 |
+
"pad_token_id": 0,
|
| 27 |
+
"bos_token_id": 1,
|
| 28 |
+
"eos_token_id": 2,
|
| 29 |
+
"tie_word_embeddings": false,
|
| 30 |
+
"phase": "phase2",
|
| 31 |
+
"drop_rate": 0.0,
|
| 32 |
+
"attn_drop_rate": 0.0,
|
| 33 |
+
"drop_path_rate": 0.1
|
| 34 |
+
}
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/mergenet_64M.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "mergenet",
|
| 3 |
+
"vocab_size": 32000,
|
| 4 |
+
"hidden_size": 512,
|
| 5 |
+
"num_local_layers": 4,
|
| 6 |
+
"local_depth": 4,
|
| 7 |
+
"num_latent_layers": 8,
|
| 8 |
+
"num_heads": 8,
|
| 9 |
+
"num_kv_heads": 8,
|
| 10 |
+
"intermediate_size": 2048,
|
| 11 |
+
"hidden_act": "swish",
|
| 12 |
+
"max_position_embeddings": 4096,
|
| 13 |
+
"lambda_local": 4.0,
|
| 14 |
+
"dtem_window_size": 8,
|
| 15 |
+
"dtem_t": 1,
|
| 16 |
+
"dtem_feat_dim": null,
|
| 17 |
+
"use_softkmax": false,
|
| 18 |
+
"grid_bias_gamma": 1.0,
|
| 19 |
+
"W_infer": null,
|
| 20 |
+
"qkv_bias": true,
|
| 21 |
+
"qk_norm": false,
|
| 22 |
+
"rope_theta": 10000.0,
|
| 23 |
+
"norm_eps": 1e-6,
|
| 24 |
+
"initializer_range": 0.02,
|
| 25 |
+
"use_cache": true,
|
| 26 |
+
"pad_token_id": 0,
|
| 27 |
+
"bos_token_id": 1,
|
| 28 |
+
"eos_token_id": 2,
|
| 29 |
+
"tie_word_embeddings": false,
|
| 30 |
+
"phase": "phase2",
|
| 31 |
+
"drop_rate": 0.0,
|
| 32 |
+
"attn_drop_rate": 0.0,
|
| 33 |
+
"drop_path_rate": 0.1
|
| 34 |
+
}
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/qwen3_next_1B.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "qwen3_next",
|
| 3 |
+
"vocab_size": 151936,
|
| 4 |
+
"hidden_size": 2048,
|
| 5 |
+
"intermediate_size": 5632,
|
| 6 |
+
"num_hidden_layers": 48,
|
| 7 |
+
"num_attention_heads": 16,
|
| 8 |
+
"num_key_value_heads": 2,
|
| 9 |
+
"head_dim": 256,
|
| 10 |
+
"hidden_act": "silu",
|
| 11 |
+
"max_position_embeddings": 32768,
|
| 12 |
+
"initializer_range": 0.02,
|
| 13 |
+
"rms_norm_eps": 1e-6,
|
| 14 |
+
"use_cache": true,
|
| 15 |
+
"tie_word_embeddings": false,
|
| 16 |
+
"attention_bias": false,
|
| 17 |
+
"attention_dropout": 0.0,
|
| 18 |
+
"rope_parameters": {
|
| 19 |
+
"rope_type": "default",
|
| 20 |
+
"factor": 1.0
|
| 21 |
+
},
|
| 22 |
+
"partial_rotary_factor": 0.25,
|
| 23 |
+
"layer_types": [
|
| 24 |
+
"linear_attention",
|
| 25 |
+
"linear_attention",
|
| 26 |
+
"linear_attention",
|
| 27 |
+
"full_attention"
|
| 28 |
+
],
|
| 29 |
+
"linear_conv_kernel_dim": 4,
|
| 30 |
+
"linear_key_head_dim": 128,
|
| 31 |
+
"linear_value_head_dim": 128,
|
| 32 |
+
"linear_num_key_heads": 16,
|
| 33 |
+
"linear_num_value_heads": 32,
|
| 34 |
+
"decoder_sparse_step": 1,
|
| 35 |
+
"moe_intermediate_size": 512,
|
| 36 |
+
"shared_expert_intermediate_size": 512,
|
| 37 |
+
"num_experts_per_tok": 10,
|
| 38 |
+
"num_experts": 512,
|
| 39 |
+
"norm_topk_prob": true,
|
| 40 |
+
"output_router_logits": false,
|
| 41 |
+
"router_aux_loss_coef": 0.001,
|
| 42 |
+
"mlp_only_layers": []
|
| 43 |
+
}
|
| 44 |
+
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/qwen3_next_350M.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "qwen3_next",
|
| 3 |
+
"vocab_size": 32000,
|
| 4 |
+
"hidden_size": 2048,
|
| 5 |
+
"intermediate_size": 5632,
|
| 6 |
+
"num_hidden_layers": 26,
|
| 7 |
+
"num_attention_heads": 16,
|
| 8 |
+
"num_key_value_heads": 2,
|
| 9 |
+
"head_dim": 256,
|
| 10 |
+
"hidden_act": "silu",
|
| 11 |
+
"max_position_embeddings": 32768,
|
| 12 |
+
"initializer_range": 0.02,
|
| 13 |
+
"rms_norm_eps": 1e-6,
|
| 14 |
+
"use_cache": true,
|
| 15 |
+
"tie_word_embeddings": false,
|
| 16 |
+
"attention_bias": false,
|
| 17 |
+
"attention_dropout": 0.0,
|
| 18 |
+
"rope_parameters": {
|
| 19 |
+
"rope_type": "default",
|
| 20 |
+
"factor": 1.0
|
| 21 |
+
},
|
| 22 |
+
"partial_rotary_factor": 0.25,
|
| 23 |
+
"layer_types": [
|
| 24 |
+
"linear_attention",
|
| 25 |
+
"linear_attention",
|
| 26 |
+
"linear_attention",
|
| 27 |
+
"full_attention"
|
| 28 |
+
],
|
| 29 |
+
"linear_conv_kernel_dim": 4,
|
| 30 |
+
"linear_key_head_dim": 128,
|
| 31 |
+
"linear_value_head_dim": 128,
|
| 32 |
+
"linear_num_key_heads": 16,
|
| 33 |
+
"linear_num_value_heads": 32,
|
| 34 |
+
"decoder_sparse_step": 1,
|
| 35 |
+
"moe_intermediate_size": 512,
|
| 36 |
+
"shared_expert_intermediate_size": 512,
|
| 37 |
+
"num_experts_per_tok": 10,
|
| 38 |
+
"num_experts": 512,
|
| 39 |
+
"norm_topk_prob": true,
|
| 40 |
+
"output_router_logits": false,
|
| 41 |
+
"router_aux_loss_coef": 0.001,
|
| 42 |
+
"mlp_only_layers": []
|
| 43 |
+
}
|
| 44 |
+
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/transformer_1B.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 1,
|
| 3 |
+
"elementwise_affine": true,
|
| 4 |
+
"eos_token_id": 2,
|
| 5 |
+
"fuse_cross_entropy": true,
|
| 6 |
+
"fuse_norm": true,
|
| 7 |
+
"fuse_swiglu": true,
|
| 8 |
+
"hidden_act": "swish",
|
| 9 |
+
"hidden_ratio": 4,
|
| 10 |
+
"hidden_size": 2048,
|
| 11 |
+
"initializer_range": 0.02,
|
| 12 |
+
"intermediate_size": null,
|
| 13 |
+
"max_position_embeddings": 8192,
|
| 14 |
+
"model_type": "transformer",
|
| 15 |
+
"norm_eps": 1e-06,
|
| 16 |
+
"num_heads": 32,
|
| 17 |
+
"num_hidden_layers": 24,
|
| 18 |
+
"num_kv_heads": null,
|
| 19 |
+
"pad_token_id": 2,
|
| 20 |
+
"rope_theta": 10000.0,
|
| 21 |
+
"tie_word_embeddings": false
|
| 22 |
+
}
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/transformer_340M.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"attention_bias": false,
|
| 3 |
+
"bos_token_id": 1,
|
| 4 |
+
"eos_token_id": 2,
|
| 5 |
+
"fuse_cross_entropy": true,
|
| 6 |
+
"fuse_norm": true,
|
| 7 |
+
"hidden_act": "swish",
|
| 8 |
+
"hidden_size": 1024,
|
| 9 |
+
"initializer_range": 0.02,
|
| 10 |
+
"max_position_embeddings": 8192,
|
| 11 |
+
"model_type": "transformer",
|
| 12 |
+
"num_heads": 16,
|
| 13 |
+
"num_hidden_layers": 24,
|
| 14 |
+
"norm_eps": 1e-06,
|
| 15 |
+
"tie_word_embeddings": false,
|
| 16 |
+
"use_cache": true,
|
| 17 |
+
"vocab_size": 32000
|
| 18 |
+
}
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/configs/transformer_7B.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"attention_bias": false,
|
| 3 |
+
"bos_token_id": 1,
|
| 4 |
+
"eos_token_id": 2,
|
| 5 |
+
"fuse_cross_entropy": true,
|
| 6 |
+
"fuse_norm": true,
|
| 7 |
+
"hidden_act": "swish",
|
| 8 |
+
"hidden_ratio": 4,
|
| 9 |
+
"hidden_size": 4096,
|
| 10 |
+
"initializer_range": 0.02,
|
| 11 |
+
"intermediate_size": 14336,
|
| 12 |
+
"model_type": "transformer",
|
| 13 |
+
"norm_eps": 1e-06,
|
| 14 |
+
"num_heads": 32,
|
| 15 |
+
"num_hidden_layers": 32,
|
| 16 |
+
"num_kv_heads": 8,
|
| 17 |
+
"rope_theta": 10000.0,
|
| 18 |
+
"tie_word_embeddings": false,
|
| 19 |
+
"use_cache": true,
|
| 20 |
+
"window_size": null
|
| 21 |
+
}
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/flame/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
__version__ = "0.1.0"
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/flame/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (207 Bytes). View file
|
|
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/flame/__pycache__/__init__.cpython-311.pyc
ADDED
|
Binary file (244 Bytes). View file
|
|
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/flame/__pycache__/__init__.cpython-313.pyc
ADDED
|
Binary file (238 Bytes). View file
|
|
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/flame/__pycache__/config_manager.cpython-310.pyc
ADDED
|
Binary file (29.6 kB). View file
|
|
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/flame/__pycache__/config_manager.cpython-311.pyc
ADDED
|
Binary file (41.5 kB). View file
|
|
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/flame/__pycache__/data.cpython-310.pyc
ADDED
|
Binary file (21.7 kB). View file
|
|
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/flame/__pycache__/data.cpython-311.pyc
ADDED
|
Binary file (41.6 kB). View file
|
|
|
1b_archs_fwe/transformer_1b_fwe_muon_lr3e_3_b1_0_9_b2_0_95_eps_1e_15_20260526_051916/exp_data/flame/__pycache__/train.cpython-310.pyc
ADDED
|
Binary file (19.6 kB). View file
|
|
|