rubentium commited on
Commit
9feea84
·
verified ·
1 Parent(s): bab996b

EPFL ALiBi and training provenance 701-750 of 1184

Browse files
Files changed (50) hide show
  1. epfl_final/train_logs/bench_moba.log +183 -0
  2. epfl_final/train_logs/bench_resamp.log +187 -0
  3. epfl_final/train_logs/build_30k_then_train.sh +38 -0
  4. epfl_final/train_logs/build_layer_mixed_seeded.py +58 -0
  5. epfl_final/train_logs/dense8k3b_60b.gpu-supervisor.log +0 -0
  6. epfl_final/train_logs/dense8k3b_60b.gpu.csv +0 -0
  7. epfl_final/train_logs/dense8k3b_60b.run.log +0 -0
  8. epfl_final/train_logs/dense8k3b_60b.supervisor.log +0 -0
  9. epfl_final/train_logs/dense8k3b_60b.watch.log +35 -0
  10. epfl_final/train_logs/eval30k_fixed.log +39 -0
  11. epfl_final/train_logs/eval30k_moba.log +39 -0
  12. epfl_final/train_logs/launch_1p2b_30k_mixed_after_moba.sh +57 -0
  13. epfl_final/train_logs/launch_1p2b_mixed_8k_seed43.sh +13 -0
  14. epfl_final/train_logs/launch_3b_dense_4gpu.sh +13 -0
  15. epfl_final/train_logs/log_3b_dense_gpu_usage.sh +17 -0
  16. epfl_final/train_logs/mixed30k365m_s42.builder-supervisor.log +0 -0
  17. epfl_final/train_logs/mixed30k365m_s42.cache.log +29 -0
  18. epfl_final/train_logs/mixed30k365m_s42.run.log +0 -0
  19. epfl_final/train_logs/mixed30k365m_s42.supervisor.log +0 -0
  20. epfl_final/train_logs/mixed30k365m_s42.watch.log +5 -0
  21. epfl_final/train_logs/mixed8k1p2b_s43.run.log +0 -0
  22. epfl_final/train_logs/mixed8k1p2b_s43.supervisor.log +0 -0
  23. epfl_final/train_logs/mixed8k1p2b_s43.watch.log +8 -0
  24. epfl_final/train_logs/mixed8k365m_s42.run.log +0 -0
  25. epfl_final/train_logs/mixed8k365m_s42.supervisor.log +0 -0
  26. epfl_final/train_logs/mixed8k365m_s42.watch.log +5 -0
  27. epfl_final/train_logs/mixed8k365m_s43.run.log +0 -0
  28. epfl_final/train_logs/mixed8k365m_s43.supervisor.log +0 -0
  29. epfl_final/train_logs/mixed8k365m_s43.watch.log +5 -0
  30. epfl_final/train_logs/moba30k_watchdog_launch.log +0 -0
  31. epfl_final/train_logs/moba30k_watchdog_supervisor.log +0 -0
  32. epfl_final/train_logs/mobafix_arxiv.log +28 -0
  33. epfl_final/train_logs/mobafix_gutenberg.log +28 -0
  34. epfl_final/train_logs/mobafix_pubmed.log +28 -0
  35. epfl_final/train_logs/native_fixed.log +7 -0
  36. epfl_final/train_logs/native_moba.log +14 -0
  37. epfl_final/train_logs/native_resamp.log +7 -0
  38. epfl_final/train_logs/resampled4b_watchdog_launch.log +0 -0
  39. epfl_final/train_logs/resume_4b_h100_3-0-0.log +591 -0
  40. epfl_final/train_logs/resume_moba30k_h100_2-0-5.log +0 -0
  41. epfl_final/train_logs/resume_moba30k_h100_2-0-6.log +0 -0
  42. epfl_final/train_logs/resume_moba_matched_h100_0-3.log +0 -0
  43. epfl_final/train_logs/wait_1p2b_30k_mixed_after_moba.log +5 -0
  44. epfl_final/train_logs/wait_1p2b_30k_mixed_after_moba.supervisor.log +0 -0
  45. epfl_final/train_logs/watchdog_generic_fork.sh +79 -0
  46. epfl_final/train_logs/watchdog_mixed_training.sh +88 -0
  47. epfl_final/train_logs/wd_moba30k.watch.log +5 -0
  48. epfl_final/train_logs/wd_moba_matched.watch.log +2 -0
  49. epfl_final/train_logs/wd_resampled4b.lock +1 -0
  50. epfl_final/train_logs/wd_resampled4b.watch.log +1 -0
epfl_final/train_logs/bench_moba.log ADDED
@@ -0,0 +1,183 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ New run: Checkpoints will be saved to /tmp/bench_m/run_20260713_051713
2
+ Running config:
3
+ {
4
+ "model_path": "/mloscratch/homes/navasard/qwen3_06b_base",
5
+ "model_dtype": "bfloat16",
6
+ "init_from_scratch": true,
7
+ "train_path": "/mloscratch/homes/navasard/data/fineweb_large/tokenized",
8
+ "val_path": null,
9
+ "max_seq_length": 8192,
10
+ "num_workers": 8,
11
+ "output_dir": "/tmp/bench_m/run_20260713_051713",
12
+ "resume_from_checkpoint": null,
13
+ "force_new_run": true,
14
+ "num_epochs": 1,
15
+ "max_steps": 50,
16
+ "per_device_batch_size": 2,
17
+ "gradient_accumulation_steps": 1,
18
+ "learning_rate": 0.0005,
19
+ "weight_decay": 0.01,
20
+ "warmup_steps": 5,
21
+ "lr_scheduler": "cosine",
22
+ "max_grad_norm": 1.0,
23
+ "save_steps": 100000,
24
+ "eval_steps": 100000,
25
+ "eval_batches": 50,
26
+ "logging_steps": 5,
27
+ "seed": 42,
28
+ "verbose": true,
29
+ "checkpoint_activations": false,
30
+ "strategy": "ddp",
31
+ "mixed_precision": "bf16",
32
+ "wandb_enabled": false,
33
+ "wandb_project": "stochastic_sparsity",
34
+ "wandb_name": "365m resampled 8k nrb31",
35
+ "wandb_tags": [
36
+ "qwen3",
37
+ "365m",
38
+ "8k",
39
+ "scaleladder",
40
+ "resampled"
41
+ ],
42
+ "hidden_size": 768,
43
+ "intermediate_size": 3072,
44
+ "num_attention_heads": 6,
45
+ "num_key_value_heads": 2,
46
+ "num_hidden_layers": 28,
47
+ "head_dim": null,
48
+ "attention_type": "moba",
49
+ "sparse_block_size": 128,
50
+ "sparse_num_random_blocks": 1,
51
+ "sparse_mask_pool_size": 1000,
52
+ "sparse_val_dense_compare": false,
53
+ "sparse_layer_indices": null,
54
+ "sparse_mask_cache_dir": null,
55
+ "sparse_mask_seed": 0,
56
+ "dense_mode": false,
57
+ "dense_step_intervals": null,
58
+ "moba_block_size": 128,
59
+ "moba_top_k": 32,
60
+ "asentmax_alpha": 1.5,
61
+ "asentmax_learn_temp": true,
62
+ "asentmax_init_temp": 1.0
63
+ }
64
+ Loading tokenizer from /mloscratch/homes/navasard/qwen3_06b_base...
65
+ Initializing model from scratch (random weights)...
66
+ Checkpoint activations: False
67
+
68
+
69
+ ================================================================================
70
+ MODEL ARCHITECTURE
71
+ ================================================================================
72
+ Model config:
73
+ vocab_size: 151936
74
+ hidden_size: 768
75
+ num_hidden_layers: 28
76
+ num_attention_heads: 6
77
+ num_key_value_heads: 2
78
+ head_dim: 128
79
+ intermediate_size: 3072
80
+ max_position_embeddings: 32768
81
+ rope_theta: 1000000
82
+ attention_type: moba
83
+
84
+ Parameter count:
85
+ Total parameters: 358,958,848
86
+ Trainable parameters: 358,958,848
87
+ Non-trainable parameters: 0
88
+ Model size (BF16): 0.72 GB
89
+
90
+ --------------------------------------------------------------------------------
91
+ LAYER-BY-LAYER SUMMARY
92
+ --------------------------------------------------------------------------------
93
+ /mloscratch/homes/navasard/conda/lib/python3.13/site-packages/torch/nn/attention/flex_attention.py:1704: UserWarning: flex_attention called without torch.compile() - this will use an unfused implementation that materializes the full scores matrix instead of generating a fused kernel.
94
+
95
+ SOLUTION: Use torch.compile(flex_attention)(...)
96
+
97
+ If you want to debug your score_mod/mask_mod, you can set:
98
+ torch.nn.attention.flex_attention._FLEX_ATTENTION_DISABLE_COMPILE_DEBUG = True
99
+
100
+ This will allow you to use print statements or breakpoints. Note: This doesn't work with the backwards pass and may produce incorrect results.
101
+ _warn_once(
102
+ ===========================================================================================================================================================
103
+ Layer (type:depth-idx) Input Shape Output Shape Param # Trainable
104
+ ===========================================================================================================================================================
105
+ Qwen3ForCausalLM [2, 8192] -- -- True
106
+ ├─Qwen3Model: 1-1 -- [2, 8192, 768] -- True
107
+ │ └─Embedding: 2-1 [2, 8192] [2, 8192, 768] 116,686,848 True
108
+ │ └─ModuleList: 2-2 -- -- -- True
109
+ │ │ └─Qwen3DecoderLayer: 3-1 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
110
+ │ │ └─Qwen3DecoderLayer: 3-2 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
111
+ │ │ └─Qwen3DecoderLayer: 3-3 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
112
+ │ │ └─Qwen3DecoderLayer: 3-4 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
113
+ │ │ └─Qwen3DecoderLayer: 3-5 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
114
+ │ │ └─Qwen3DecoderLayer: 3-6 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
115
+ │ │ └─Qwen3DecoderLayer: 3-7 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
116
+ │ │ └─Qwen3DecoderLayer: 3-8 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
117
+ │ │ └─Qwen3DecoderLayer: 3-9 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
118
+ │ │ └─Qwen3DecoderLayer: 3-10 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
119
+ │ │ └─Qwen3DecoderLayer: 3-11 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
120
+ │ │ └─Qwen3DecoderLayer: 3-12 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
121
+ │ │ └─Qwen3DecoderLayer: 3-13 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
122
+ │ │ └─Qwen3DecoderLayer: 3-14 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
123
+ │ │ └─Qwen3DecoderLayer: 3-15 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
124
+ │ │ └─Qwen3DecoderLayer: 3-16 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
125
+ │ │ └─Qwen3DecoderLayer: 3-17 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
126
+ │ │ └─Qwen3DecoderLayer: 3-18 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
127
+ │ │ └─Qwen3DecoderLayer: 3-19 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
128
+ │ │ └─Qwen3DecoderLayer: 3-20 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
129
+ │ │ └─Qwen3DecoderLayer: 3-21 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
130
+ │ │ └─Qwen3DecoderLayer: 3-22 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
131
+ │ │ └─Qwen3DecoderLayer: 3-23 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
132
+ │ │ └─Qwen3DecoderLayer: 3-24 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
133
+ │ │ └─Qwen3DecoderLayer: 3-25 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
134
+ │ │ └─Qwen3DecoderLayer: 3-26 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
135
+ │ │ └─Qwen3DecoderLayer: 3-27 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
136
+ │ │ └─Qwen3DecoderLayer: 3-28 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
137
+ │ └─Qwen3RMSNorm: 2-3 [2, 8192, 768] [2, 8192, 768] 768 True
138
+ ├─Linear: 1-2 [2, 8192, 768] [2, 8192, 151936] 116,686,848 True
139
+ ===========================================================================================================================================================
140
+ Total params: 475,645,696
141
+ Trainable params: 475,645,696
142
+ Non-trainable params: 0
143
+ Total mult-adds (Units.MEGABYTES): 951.29
144
+ ===========================================================================================================================================================
145
+ Input size (MB): 0.13
146
+ Forward/backward pass size (MB): 31197.23
147
+ Params size (MB): 951.29
148
+ Estimated Total Size (MB): 32148.66
149
+ ===========================================================================================================================================================
150
+ NOTE: torchinfo double-counts tied embed_tokens/lm_head weight (116,686,848 params). True unique parameter count: 358,958,848 (359.0M)
151
+ ================================================================================
152
+
153
+ Loading dataset from /mloscratch/homes/navasard/data/fineweb_large/tokenized...
154
+ Using pre-tokenized dataset (no runtime tokenization)
155
+ Loading pre-tokenized HF dataset from /mloscratch/homes/navasard/data/fineweb_large/tokenized...
156
+ Loaded 12748481 pre-tokenized examples (stored_len=2048, pack_factor=4, packed_examples=3187120)
157
+ Dataset split: 3027764 train, 159356 validation
158
+ Training examples (packed, train split): 3027764
159
+ Validation examples (packed, val split): 159356
160
+ Per-device batch size: 2
161
+ World size (GPUs): 1
162
+ Gradient accumulation steps: 1
163
+ Effective batch size (seqs/step): 2
164
+ Sequence length: 8192
165
+ Tokens per optimizer step: 16,384
166
+ Micro-batches per epoch (per rank): 1513882
167
+ Optimizer steps per epoch: 1513882
168
+ Total optimizer steps: 50 (capped by max_steps; 0.00 epochs)
169
+ Starting training...
170
+ Switching attention mode for step 1: sparse_stochastic (configured sparse attention)
171
+ Step 5/50 | Loss: 11.5636 | LR: 5.00e-04 | 23723.5ms/step | 0.1 samples/s
172
+ Step 10/50 | Loss: 9.9292 | LR: 4.85e-04 | 369.1ms/step | 5.4 samples/s
173
+ Step 15/50 | Loss: 8.3805 | LR: 4.42e-04 | 368.1ms/step | 5.4 samples/s
174
+ Step 20/50 | Loss: 7.9042 | LR: 3.75e-04 | 368.3ms/step | 5.4 samples/s
175
+ Step 25/50 | Loss: 7.8506 | LR: 2.93e-04 | 369.3ms/step | 5.4 samples/s
176
+ Step 30/50 | Loss: 7.7661 | LR: 2.07e-04 | 370.3ms/step | 5.4 samples/s
177
+ Step 35/50 | Loss: 7.8439 | LR: 1.25e-04 | 370.2ms/step | 5.4 samples/s
178
+ Step 40/50 | Loss: 7.8447 | LR: 5.85e-05 | 370.8ms/step | 5.4 samples/s
179
+ Step 45/50 | Loss: 7.7862 | LR: 1.51e-05 | 370.5ms/step | 5.4 samples/s
180
+ Step 50/50 | Loss: 7.8643 | LR: 0.00e+00 | 370.3ms/step | 5.4 samples/s
181
+ Saved checkpoint to /tmp/bench_m/run_20260713_051713/checkpoint-50
182
+ Training complete!
183
+ [rank0]:[W713 05:19:46.550723983 ProcessGroupNCCL.cpp:1575] Warning: WARNING: destroy_process_group() was not called before program exit, which can leak resources. For more info, please see https://pytorch.org/docs/stable/distributed.html#shutdown (function operator())
epfl_final/train_logs/bench_resamp.log ADDED
@@ -0,0 +1,187 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ New run: Checkpoints will be saved to /tmp/bench_r/run_20260713_052924
2
+ Running config:
3
+ {
4
+ "model_path": "/mloscratch/homes/navasard/qwen3_06b_base",
5
+ "model_dtype": "bfloat16",
6
+ "init_from_scratch": true,
7
+ "train_path": "/mloscratch/homes/navasard/data/fineweb_large/tokenized",
8
+ "val_path": null,
9
+ "max_seq_length": 8192,
10
+ "num_workers": 8,
11
+ "output_dir": "/tmp/bench_r/run_20260713_052924",
12
+ "resume_from_checkpoint": null,
13
+ "force_new_run": true,
14
+ "num_epochs": 1,
15
+ "max_steps": 50,
16
+ "per_device_batch_size": 2,
17
+ "gradient_accumulation_steps": 1,
18
+ "learning_rate": 0.0005,
19
+ "weight_decay": 0.01,
20
+ "warmup_steps": 5,
21
+ "lr_scheduler": "cosine",
22
+ "max_grad_norm": 1.0,
23
+ "save_steps": 100000,
24
+ "eval_steps": 100000,
25
+ "eval_batches": 50,
26
+ "logging_steps": 5,
27
+ "seed": 42,
28
+ "verbose": true,
29
+ "checkpoint_activations": false,
30
+ "strategy": "ddp",
31
+ "mixed_precision": "bf16",
32
+ "wandb_enabled": false,
33
+ "wandb_project": "stochastic_sparsity",
34
+ "wandb_name": "365m resampled 8k nrb31",
35
+ "wandb_tags": [
36
+ "qwen3",
37
+ "365m",
38
+ "8k",
39
+ "scaleladder",
40
+ "resampled"
41
+ ],
42
+ "hidden_size": 768,
43
+ "intermediate_size": 3072,
44
+ "num_attention_heads": 6,
45
+ "num_key_value_heads": 2,
46
+ "num_hidden_layers": 28,
47
+ "head_dim": null,
48
+ "attention_type": "sparse_stochastic",
49
+ "sparse_block_size": 128,
50
+ "sparse_num_random_blocks": 31,
51
+ "sparse_mask_pool_size": 8,
52
+ "sparse_val_dense_compare": false,
53
+ "sparse_layer_indices": null,
54
+ "sparse_mask_cache_dir": "/tmp/bench_maskcache",
55
+ "sparse_mask_seed": 0,
56
+ "dense_mode": false,
57
+ "dense_step_intervals": null,
58
+ "moba_block_size": 128,
59
+ "moba_top_k": 32,
60
+ "asentmax_alpha": 1.5,
61
+ "asentmax_learn_temp": true,
62
+ "asentmax_init_temp": 1.0
63
+ }
64
+ Loading tokenizer from /mloscratch/homes/navasard/qwen3_06b_base...
65
+ Initializing model from scratch (random weights)...
66
+ Checkpoint activations: False
67
+
68
+
69
+ ================================================================================
70
+ MODEL ARCHITECTURE
71
+ ================================================================================
72
+ Model config:
73
+ vocab_size: 151936
74
+ hidden_size: 768
75
+ num_hidden_layers: 28
76
+ num_attention_heads: 6
77
+ num_key_value_heads: 2
78
+ head_dim: 128
79
+ intermediate_size: 3072
80
+ max_position_embeddings: 32768
81
+ rope_theta: 1000000
82
+ attention_type: sparse_stochastic
83
+ sparse_block_size: 128
84
+ sparse_num_random_blocks: 31
85
+ sparse_mask_pool_size: 8
86
+ sparse_max_seq_length: 8192
87
+
88
+ Parameter count:
89
+ Total parameters: 358,958,848
90
+ Trainable parameters: 358,958,848
91
+ Non-trainable parameters: 0
92
+ Model size (BF16): 0.72 GB
93
+
94
+ --------------------------------------------------------------------------------
95
+ LAYER-BY-LAYER SUMMARY
96
+ --------------------------------------------------------------------------------
97
+ /mloscratch/homes/navasard/conda/lib/python3.13/site-packages/torch/nn/attention/flex_attention.py:1704: UserWarning: flex_attention called without torch.compile() - this will use an unfused implementation that materializes the full scores matrix instead of generating a fused kernel.
98
+
99
+ SOLUTION: Use torch.compile(flex_attention)(...)
100
+
101
+ If you want to debug your score_mod/mask_mod, you can set:
102
+ torch.nn.attention.flex_attention._FLEX_ATTENTION_DISABLE_COMPILE_DEBUG = True
103
+
104
+ This will allow you to use print statements or breakpoints. Note: This doesn't work with the backwards pass and may produce incorrect results.
105
+ _warn_once(
106
+ ================================================================================================================================================================
107
+ Layer (type:depth-idx) Input Shape Output Shape Param # Trainable
108
+ ================================================================================================================================================================
109
+ Qwen3ForCausalLM [2, 8192] -- -- True
110
+ ├─Qwen3Model: 1-1 -- [2, 8192, 768] -- True
111
+ │ └─Embedding: 2-1 [2, 8192] [2, 8192, 768] 116,686,848 True
112
+ │ └─ModuleList: 2-2 -- -- -- True
113
+ │ │ └─Qwen3DecoderLayer: 3-1 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
114
+ │ │ └─Qwen3DecoderLayer: 3-2 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
115
+ │ │ └─Qwen3DecoderLayer: 3-3 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
116
+ │ │ └─Qwen3DecoderLayer: 3-4 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
117
+ │ │ └─Qwen3DecoderLayer: 3-5 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
118
+ │ │ └─Qwen3DecoderLayer: 3-6 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
119
+ │ │ └─Qwen3DecoderLayer: 3-7 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
120
+ │ │ └─Qwen3DecoderLayer: 3-8 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
121
+ │ │ └─Qwen3DecoderLayer: 3-9 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
122
+ │ │ └─Qwen3DecoderLayer: 3-10 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
123
+ │ │ └─Qwen3DecoderLayer: 3-11 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
124
+ │ │ └─Qwen3DecoderLayer: 3-12 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
125
+ │ │ └─Qwen3DecoderLayer: 3-13 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
126
+ │ │ └─Qwen3DecoderLayer: 3-14 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
127
+ │ │ └─Qwen3DecoderLayer: 3-15 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
128
+ │ │ └─Qwen3DecoderLayer: 3-16 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
129
+ │ │ └─Qwen3DecoderLayer: 3-17 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
130
+ │ │ └─Qwen3DecoderLayer: 3-18 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
131
+ │ │ └─Qwen3DecoderLayer: 3-19 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
132
+ │ │ └─Qwen3DecoderLayer: 3-20 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
133
+ │ │ └─Qwen3DecoderLayer: 3-21 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
134
+ │ │ └─Qwen3DecoderLayer: 3-22 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
135
+ │ │ └─Qwen3DecoderLayer: 3-23 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
136
+ │ │ └─Qwen3DecoderLayer: 3-24 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
137
+ │ │ └─Qwen3DecoderLayer: 3-25 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
138
+ │ │ └─Qwen3DecoderLayer: 3-26 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
139
+ │ │ └─Qwen3DecoderLayer: 3-27 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
140
+ │ │ └─Qwen3DecoderLayer: 3-28 [2, 8192, 768] [2, 8192, 768] 8,652,544 True
141
+ │ └─Qwen3RMSNorm: 2-3 [2, 8192, 768] [2, 8192, 768] 768 True
142
+ ├─Linear: 1-2 [2, 8192, 768] [2, 8192, 151936] 116,686,848 True
143
+ ================================================================================================================================================================
144
+ Total params: 475,645,696
145
+ Trainable params: 475,645,696
146
+ Non-trainable params: 0
147
+ Total mult-adds (Units.MEGABYTES): 951.29
148
+ ================================================================================================================================================================
149
+ Input size (MB): 0.13
150
+ Forward/backward pass size (MB): 31197.23
151
+ Params size (MB): 951.29
152
+ Estimated Total Size (MB): 32148.66
153
+ ================================================================================================================================================================
154
+ NOTE: torchinfo double-counts tied embed_tokens/lm_head weight (116,686,848 params). True unique parameter count: 358,958,848 (359.0M)
155
+ ================================================================================
156
+
157
+ Loading dataset from /mloscratch/homes/navasard/data/fineweb_large/tokenized...
158
+ Using pre-tokenized dataset (no runtime tokenization)
159
+ Loading pre-tokenized HF dataset from /mloscratch/homes/navasard/data/fineweb_large/tokenized...
160
+ Loaded 12748481 pre-tokenized examples (stored_len=2048, pack_factor=4, packed_examples=3187120)
161
+ Dataset split: 3027764 train, 159356 validation
162
+ Training examples (packed, train split): 3027764
163
+ Validation examples (packed, val split): 159356
164
+ Per-device batch size: 2
165
+ World size (GPUs): 1
166
+ Gradient accumulation steps: 1
167
+ Effective batch size (seqs/step): 2
168
+ Sequence length: 8192
169
+ Tokens per optimizer step: 16,384
170
+ Micro-batches per epoch (per rank): 1513882
171
+ Optimizer steps per epoch: 1513882
172
+ Total optimizer steps: 50 (capped by max_steps; 0.00 epochs)
173
+ Starting training...
174
+ Switching attention mode for step 1: sparse_stochastic (configured sparse attention)
175
+ Step 5/50 | Loss: 11.5599 | LR: 5.00e-04 | 11537.8ms/step | 0.2 samples/s
176
+ Step 10/50 | Loss: 9.9272 | LR: 4.85e-04 | 315.0ms/step | 6.4 samples/s
177
+ Step 15/50 | Loss: 8.3778 | LR: 4.42e-04 | 314.6ms/step | 6.4 samples/s
178
+ Step 20/50 | Loss: 7.9042 | LR: 3.75e-04 | 314.1ms/step | 6.4 samples/s
179
+ Step 25/50 | Loss: 7.8506 | LR: 2.93e-04 | 314.3ms/step | 6.4 samples/s
180
+ Step 30/50 | Loss: 7.7669 | LR: 2.07e-04 | 314.8ms/step | 6.4 samples/s
181
+ Step 35/50 | Loss: 7.8439 | LR: 1.25e-04 | 314.8ms/step | 6.4 samples/s
182
+ Step 40/50 | Loss: 7.8443 | LR: 5.85e-05 | 314.9ms/step | 6.4 samples/s
183
+ Step 45/50 | Loss: 7.7864 | LR: 1.51e-05 | 315.2ms/step | 6.3 samples/s
184
+ Step 50/50 | Loss: 7.8643 | LR: 0.00e+00 | 315.2ms/step | 6.3 samples/s
185
+ Saved checkpoint to /tmp/bench_r/run_20260713_052924/checkpoint-50
186
+ Training complete!
187
+ [rank0]:[W713 05:31:16.338746416 ProcessGroupNCCL.cpp:1575] Warning: WARNING: destroy_process_group() was not called before program exit, which can leak resources. For more info, please see https://pytorch.org/docs/stable/distributed.html#shutdown (function operator())
epfl_final/train_logs/build_30k_then_train.sh ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ set -u
3
+
4
+ BASE=/mloscratch/homes/navasard/sparse
5
+ REPO="$BASE/SparseAtt-baselines"
6
+ CONFIG=configs/365m_mixed_30k_2gpu_seed42.json
7
+ CACHE="$BASE/mask_cache_30k_365m_mixed_seed42"
8
+ PY=/mloscratch/homes/navasard/conda/bin/python3.13
9
+ BUILDER="$BASE/train_logs/build_layer_mixed_seeded.py"
10
+ LOG="$BASE/train_logs/mixed30k365m_s42.cache.log"
11
+ WATCHDOG="$BASE/train_logs/watchdog_mixed_training.sh"
12
+
13
+ cd "$REPO" || exit 2
14
+ mkdir -p "$CACHE"
15
+
16
+ CUDA_VISIBLE_DEVICES=2 PYTHONPATH="$REPO" HF_HOME=/mloscratch/homes/navasard/hf_cache \
17
+ "$PY" "$BUILDER" --config "$CONFIG" --cache-dir "$CACHE" \
18
+ --layers 0,2,4,6,8,10,12,14,16,18,20,22,24,26 >> "$LOG" 2>&1 &
19
+ pid_even=$!
20
+
21
+ CUDA_VISIBLE_DEVICES=3 PYTHONPATH="$REPO" HF_HOME=/mloscratch/homes/navasard/hf_cache \
22
+ "$PY" "$BUILDER" --config "$CONFIG" --cache-dir "$CACHE" \
23
+ --layers 1,3,5,7,9,11,13,15,17,19,21,23,25,27 >> "$LOG" 2>&1 &
24
+ pid_odd=$!
25
+
26
+ status=0
27
+ wait "$pid_even" || status=1
28
+ wait "$pid_odd" || status=1
29
+
30
+ files=$(find "$CACHE" -maxdepth 1 -type f -name 'masks_layer_*.pt' | wc -l)
31
+ echo "$(date -u +%Y-%m-%dT%H:%M:%SZ) cache status=$status files=$files" >> "$LOG"
32
+ if [ "$status" -ne 0 ] || [ "$files" -ne 28 ]; then
33
+ exit 1
34
+ fi
35
+
36
+ nohup "$WATCHDOG" mixed30k365m_s42 "$CONFIG" \
37
+ "$BASE/checkpoints/l30k365m_mixed_seed42" 11700 2,3 2 \
38
+ > "$BASE/train_logs/mixed30k365m_s42.supervisor.log" 2>&1 < /dev/null &
epfl_final/train_logs/build_layer_mixed_seeded.py ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import argparse
2
+ import json
3
+ import os
4
+ import time
5
+
6
+
7
+ def main():
8
+ parser = argparse.ArgumentParser()
9
+ parser.add_argument("--config", required=True)
10
+ parser.add_argument("--cache-dir", required=True)
11
+ parser.add_argument("--layers", required=True)
12
+ args = parser.parse_args()
13
+
14
+ with open(args.config) as config_file:
15
+ raw = json.load(config_file)
16
+
17
+ model = raw["model"]
18
+ data = raw["data"]
19
+ attention = raw["attention"]
20
+
21
+ from sparseatt.config import Qwen3Config
22
+ from sparseatt.sparse_attention import Qwen3SparseStochasticAttention
23
+
24
+ config = Qwen3Config(
25
+ hidden_size=model["hidden_size"],
26
+ intermediate_size=model["intermediate_size"],
27
+ num_attention_heads=model["num_attention_heads"],
28
+ num_key_value_heads=model["num_key_value_heads"],
29
+ num_hidden_layers=model["num_hidden_layers"],
30
+ attention_type="sparse_stochastic",
31
+ sparse_block_size=attention["sparse_block_size"],
32
+ sparse_max_seq_length=data["max_seq_length"],
33
+ sparse_num_random_blocks=attention["sparse_num_random_blocks"],
34
+ sparse_mask_pool_size=attention["sparse_mask_pool_size"],
35
+ sparse_mixed_nrb_set=attention["sparse_mixed_nrb_set"],
36
+ sparse_mask_seed=attention.get("sparse_mask_seed", 0),
37
+ )
38
+
39
+ os.makedirs(args.cache_dir, exist_ok=True)
40
+ for layer_index in map(int, args.layers.split(",")):
41
+ output = os.path.join(args.cache_dir, f"masks_layer_{layer_index}.pt")
42
+ if os.path.isfile(output):
43
+ print(f"layer {layer_index}: exists", flush=True)
44
+ continue
45
+ started = time.time()
46
+ Qwen3SparseStochasticAttention(
47
+ config,
48
+ layer_idx=layer_index,
49
+ mask_cache_dir=args.cache_dir,
50
+ )
51
+ print(
52
+ f"layer {layer_index}: built in {time.time() - started:.0f}s",
53
+ flush=True,
54
+ )
55
+
56
+
57
+ if __name__ == "__main__":
58
+ main()
epfl_final/train_logs/dense8k3b_60b.gpu-supervisor.log ADDED
File without changes
epfl_final/train_logs/dense8k3b_60b.gpu.csv ADDED
The diff for this file is too large to render. See raw diff
 
epfl_final/train_logs/dense8k3b_60b.run.log ADDED
The diff for this file is too large to render. See raw diff
 
epfl_final/train_logs/dense8k3b_60b.supervisor.log ADDED
File without changes
epfl_final/train_logs/dense8k3b_60b.watch.log ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 2026-07-20T07:42:01Z watchdog start pid=151
2
+ 2026-07-20T07:42:01Z launch GPUs=0,1,2,3 nproc=4 latest_step=
3
+ 2026-07-20T17:25:14Z watchdog start pid=19659
4
+ 2026-07-20T17:25:14Z launch GPUs=0,1,2,3 nproc=4 latest_step=5000
5
+ 2026-07-20T20:12:53Z watchdog start pid=146
6
+ 2026-07-20T20:12:53Z launch GPUs=0,1,2,3 nproc=4 latest_step=6000
7
+ 2026-07-21T07:53:01Z watchdog start pid=129
8
+ 2026-07-21T07:53:43Z watchdog start pid=187
9
+ 2026-07-21T07:53:43Z launch GPUs=0,1,2,3,4,5 nproc=6 latest_step=12000
10
+ 2026-07-21T20:14:57Z watchdog start pid=143
11
+ 2026-07-21T20:14:57Z launch GPUs=0,1,2,3,4,5 nproc=6 latest_step=21500
12
+ 2026-07-22T08:14:30Z watchdog start pid=145
13
+ 2026-07-22T08:14:30Z launch GPUs=0,1,2,3,4,5 nproc=6 latest_step=30750
14
+ 2026-07-22T18:04:53Z watchdog start pid=182
15
+ 2026-07-22T18:05:20Z watchdog start pid=216
16
+ 2026-07-22T18:05:20Z launch GPUs=0,1,2,3 nproc=4 latest_step=31500
17
+ 2026-07-22T23:31:22Z watchdog start pid=160
18
+ 2026-07-22T23:31:22Z launch GPUs=0,1,2,3,4,5 nproc=6 latest_step=34250
19
+ 2026-07-23T07:08:12Z watchdog start pid=154
20
+ 2026-07-23T07:08:12Z launch GPUs=0,1,2,3,4,5 nproc=6 latest_step=40000
21
+ 2026-07-23T18:47:42Z watchdog start pid=153
22
+ 2026-07-23T18:47:42Z launch GPUs=0,1,2,3,4,5 nproc=6 latest_step=48750
23
+ 2026-07-24T06:02:30Z watchdog start pid=154
24
+ 2026-07-24T06:02:30Z launch GPUs=0,1,2,3,4,5 nproc=6 latest_step=57500
25
+ 2026-07-25T17:36:18Z watchdog start pid=154
26
+ 2026-07-25T17:36:19Z launch GPUs=0,1 nproc=2 latest_step=62250
27
+ 2026-07-25T19:02:01Z watchdog start pid=5777
28
+ 2026-07-25T19:02:01Z launch GPUs=0,1,2,3 nproc=4 latest_step=62250
29
+ 2026-07-26T09:05:22Z watchdog start pid=144 latest_step=62250
30
+ 2026-07-26T09:06:16Z watchdog start pid=211 latest_step=62250
31
+ 2026-07-26T09:06:16Z launch checkpoint=/mloscratch/homes/navasard/sparse/checkpoints/l8k3b_dense_60b/run_20260720_074219/checkpoint-62250 GPUs=0,1,2,3,4,5 nproc=6
32
+ 2026-07-26T17:33:02Z watchdog start pid=144 latest_step=63250
33
+ 2026-07-26T17:33:02Z launch checkpoint=/mloscratch/homes/navasard/sparse/checkpoints/l8k3b_dense_60b/run_20260720_074219/checkpoint-63250 GPUs=0,1,2,3,4,5 nproc=6
34
+ 2026-07-28T03:20:00Z watchdog start pid=298 latest_step=78000
35
+ 2026-07-28T03:20:01Z launch checkpoint=/mloscratch/homes/navasard/sparse/checkpoints/l8k3b_dense_60b/run_20260720_074219/checkpoint-78000 GPUs=0,1,2,3,4,5 nproc=6
epfl_final/train_logs/eval30k_fixed.log ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ windows gutenberg (16, 30720)
2
+ windows arxiv (16, 30720)
3
+ windows pubmed (16, 30720)
4
+ Checkpoint activations: False
5
+ built topk=240 attn=moba layer0.top_k=240 (compiling flex...)
6
+ /mloscratch/homes/navasard/conda/lib/python3.13/site-packages/torch/_inductor/compile_fx.py:322: UserWarning: TensorFloat32 tensor cores for float32 matrix multiplication available but not enabled. Consider setting `torch.set_float32_matmul_precision('high')` for better performance.
7
+ warnings.warn(
8
+ topk 240 gutenberg L30720 ppl 47.221 nll 3.8548 win 16 58s
9
+ topk 240 arxiv L30720 ppl 176.422 nll 5.1729 win 16 10s
10
+ topk 240 pubmed L30720 ppl 44.365 nll 3.7924 win 16 10s
11
+ Checkpoint activations: False
12
+ built topk=120 attn=moba layer0.top_k=120 (compiling flex...)
13
+ topk 120 gutenberg L30720 ppl 44.040 nll 3.7851 win 16 57s
14
+ topk 120 arxiv L30720 ppl 155.744 nll 5.0482 win 16 9s
15
+ topk 120 pubmed L30720 ppl 39.222 nll 3.6692 win 16 9s
16
+ Checkpoint activations: False
17
+ built topk=60 attn=moba layer0.top_k=60 (compiling flex...)
18
+ topk 60 gutenberg L30720 ppl 34.065 nll 3.5283 win 16 25s
19
+ topk 60 arxiv L30720 ppl 108.078 nll 4.6829 win 16 7s
20
+ topk 60 pubmed L30720 ppl 25.856 nll 3.2526 win 16 7s
21
+ Checkpoint activations: False
22
+ built topk=30 attn=moba layer0.top_k=30 (compiling flex...)
23
+ topk 30 gutenberg L30720 ppl 26.893 nll 3.2918 win 16 54s
24
+ topk 30 arxiv L30720 ppl 78.182 nll 4.3590 win 16 7s
25
+ topk 30 pubmed L30720 ppl 17.987 nll 2.8897 win 16 7s
26
+ Checkpoint activations: False
27
+ built topk=15 attn=moba layer0.top_k=15 (compiling flex...)
28
+ topk 15 gutenberg L30720 ppl 24.577 nll 3.2018 win 16 56s
29
+ topk 15 arxiv L30720 ppl 69.587 nll 4.2426 win 16 6s
30
+ topk 15 pubmed L30720 ppl 16.606 nll 2.8097 win 16 6s
31
+ Checkpoint activations: False
32
+ built topk=8 attn=moba layer0.top_k=8 (compiling flex...)
33
+ topk 8 gutenberg L30720 ppl 25.154 nll 3.2250 win 16 54s
34
+ topk 8 arxiv L30720 ppl 73.669 nll 4.2996 win 16 6s
35
+ topk 8 pubmed L30720 ppl 18.223 nll 2.9027 win 16 6s
36
+ wrote /mloscratch/homes/navasard/sparse/SparseAtt/eval/results/L365M_8K/ppl_fixed365_L30720_gutenberg.tsv
37
+ wrote /mloscratch/homes/navasard/sparse/SparseAtt/eval/results/L365M_8K/ppl_fixed365_L30720_arxiv.tsv
38
+ wrote /mloscratch/homes/navasard/sparse/SparseAtt/eval/results/L365M_8K/ppl_fixed365_L30720_pubmed.tsv
39
+ DONE fixed365
epfl_final/train_logs/eval30k_moba.log ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ windows gutenberg (16, 30720)
2
+ windows arxiv (16, 30720)
3
+ windows pubmed (16, 30720)
4
+ Checkpoint activations: False
5
+ built topk=240 attn=moba layer0.top_k=240 (compiling flex...)
6
+ /mloscratch/homes/navasard/conda/lib/python3.13/site-packages/torch/_inductor/compile_fx.py:322: UserWarning: TensorFloat32 tensor cores for float32 matrix multiplication available but not enabled. Consider setting `torch.set_float32_matmul_precision('high')` for better performance.
7
+ warnings.warn(
8
+ topk 240 gutenberg L30720 ppl 41.571 nll 3.7274 win 16 59s
9
+ topk 240 arxiv L30720 ppl 142.291 nll 4.9579 win 16 10s
10
+ topk 240 pubmed L30720 ppl 34.256 nll 3.5339 win 16 10s
11
+ Checkpoint activations: False
12
+ built topk=120 attn=moba layer0.top_k=120 (compiling flex...)
13
+ topk 120 gutenberg L30720 ppl 37.896 nll 3.6349 win 16 58s
14
+ topk 120 arxiv L30720 ppl 123.961 nll 4.8200 win 16 9s
15
+ topk 120 pubmed L30720 ppl 29.609 nll 3.3881 win 16 9s
16
+ Checkpoint activations: False
17
+ built topk=60 attn=moba layer0.top_k=60 (compiling flex...)
18
+ topk 60 gutenberg L30720 ppl 29.481 nll 3.3838 win 16 25s
19
+ topk 60 arxiv L30720 ppl 90.316 nll 4.5033 win 16 7s
20
+ topk 60 pubmed L30720 ppl 20.388 nll 3.0149 win 16 7s
21
+ Checkpoint activations: False
22
+ built topk=30 attn=moba layer0.top_k=30 (compiling flex...)
23
+ topk 30 gutenberg L30720 ppl 25.224 nll 3.2278 win 16 53s
24
+ topk 30 arxiv L30720 ppl 73.057 nll 4.2912 win 16 7s
25
+ topk 30 pubmed L30720 ppl 16.815 nll 2.8223 win 16 7s
26
+ Checkpoint activations: False
27
+ built topk=15 attn=moba layer0.top_k=15 (compiling flex...)
28
+ topk 15 gutenberg L30720 ppl 24.842 nll 3.2125 win 16 55s
29
+ topk 15 arxiv L30720 ppl 72.465 nll 4.2831 win 16 6s
30
+ topk 15 pubmed L30720 ppl 17.629 nll 2.8696 win 16 6s
31
+ Checkpoint activations: False
32
+ built topk=8 attn=moba layer0.top_k=8 (compiling flex...)
33
+ topk 8 gutenberg L30720 ppl 26.242 nll 3.2674 win 16 55s
34
+ topk 8 arxiv L30720 ppl 82.900 nll 4.4176 win 16 6s
35
+ topk 8 pubmed L30720 ppl 20.312 nll 3.0112 win 16 6s
36
+ wrote /mloscratch/homes/navasard/sparse/SparseAtt/eval/results/L365M_8K/ppl_moba365_L30720_gutenberg.tsv
37
+ wrote /mloscratch/homes/navasard/sparse/SparseAtt/eval/results/L365M_8K/ppl_moba365_L30720_arxiv.tsv
38
+ wrote /mloscratch/homes/navasard/sparse/SparseAtt/eval/results/L365M_8K/ppl_moba365_L30720_pubmed.tsv
39
+ DONE moba365
epfl_final/train_logs/launch_1p2b_30k_mixed_after_moba.sh ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ set -u
3
+
4
+ BASE=/mloscratch/homes/navasard/sparse
5
+ MOBA_OUT="$BASE/checkpoints/l30k1_2b_moba"
6
+ MOBA_LOG="$BASE/train_logs/resume_moba30k_h100_2-0-6.log"
7
+ MIXED_OUT="$BASE/checkpoints/l30k1_2b_mixed"
8
+ MIXED_CONFIG=configs/1p2b_mixed_30k_4gpu_seed42.json
9
+ WATCHDOG="$BASE/train_logs/watchdog_mixed_training.sh"
10
+ LOG="$BASE/train_logs/wait_1p2b_30k_mixed_after_moba.log"
11
+ LOCK="$BASE/train_logs/wait_1p2b_30k_mixed_after_moba.lock"
12
+
13
+ log() {
14
+ echo "$(date -u +%Y-%m-%dT%H:%M:%SZ) $*" >> "$LOG"
15
+ }
16
+
17
+ latest_moba_step() {
18
+ ls -1d "$MOBA_OUT"/run_*/checkpoint-* 2>/dev/null |
19
+ sed -E 's#.*/checkpoint-##' |
20
+ grep -E '^[0-9]+$' |
21
+ sort -n |
22
+ tail -1
23
+ }
24
+
25
+ moba_complete() {
26
+ local step
27
+ step=$(latest_moba_step)
28
+ if [ -n "${step:-}" ] && [ "$step" -ge 37465 ] 2>/dev/null; then
29
+ return 0
30
+ fi
31
+ grep -qs "Training complete!" "$MOBA_LOG" 2>/dev/null
32
+ }
33
+
34
+ if [ -f "$LOCK" ]; then
35
+ old_pid=$(cat "$LOCK" 2>/dev/null || true)
36
+ if [ -n "${old_pid:-}" ] && kill -0 "$old_pid" 2>/dev/null; then
37
+ exit 0
38
+ fi
39
+ fi
40
+
41
+ echo $$ > "$LOCK"
42
+ log "waiter start pid=$$ latest_moba_step=$(latest_moba_step)"
43
+
44
+ while ! moba_complete; do
45
+ sleep 30
46
+ done
47
+
48
+ while pgrep -f 'train.py --config configs/train_config_30k_moba_b128.json' >/dev/null 2>&1; do
49
+ sleep 10
50
+ done
51
+
52
+ log "MoBA complete; launching native-30k 1.2B Mixed"
53
+ nohup "$WATCHDOG" mixed30k1p2b_s42 "$MIXED_CONFIG" "$MIXED_OUT" \
54
+ 37465 0,1,2,3 4 \
55
+ > "$BASE/train_logs/mixed30k1p2b_s42.supervisor.log" 2>&1 < /dev/null &
56
+ log "Mixed watchdog pid=$!"
57
+ rm -f "$LOCK"
epfl_final/train_logs/launch_1p2b_mixed_8k_seed43.sh ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ set -u
3
+
4
+ BASE=/mloscratch/homes/navasard/sparse
5
+ WATCHDOG="$BASE/train_logs/watchdog_mixed_training.sh"
6
+
7
+ nohup "$WATCHDOG" mixed8k1p2b_s43 \
8
+ configs/1p2b_mixed_8k_seed43_4gpu.json \
9
+ "$BASE/checkpoints/l8k1_2b_mixed_seed43" \
10
+ 50462 0,1,2,3 4 \
11
+ > "$BASE/train_logs/mixed8k1p2b_s43.supervisor.log" 2>&1 < /dev/null &
12
+
13
+ echo "mixed8k1p2b_s43 watchdog pid=$!"
epfl_final/train_logs/launch_3b_dense_4gpu.sh ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ set -u
3
+
4
+ BASE=/mloscratch/homes/navasard/sparse
5
+ WATCHDOG="$BASE/train_logs/watchdog_mixed_training.sh"
6
+
7
+ nohup "$WATCHDOG" dense8k3b_60b \
8
+ configs/ladder8k/dense_3b_60b.json \
9
+ "$BASE/checkpoints/l8k3b_dense_60b" \
10
+ 122070 0,1,2,3 4 \
11
+ > "$BASE/train_logs/dense8k3b_60b.supervisor.log" 2>&1 < /dev/null &
12
+
13
+ echo "dense8k3b_60b watchdog pid=$!"
epfl_final/train_logs/log_3b_dense_gpu_usage.sh ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ set -u
3
+
4
+ LOG=/mloscratch/homes/navasard/sparse/train_logs/dense8k3b_60b.gpu.csv
5
+
6
+ if [ ! -s "$LOG" ]; then
7
+ echo "timestamp,index,name,memory_used_mib,memory_total_mib,utilization_gpu_pct,power_draw_w" > "$LOG"
8
+ fi
9
+
10
+ while pgrep -f 'train.py --config configs/ladder8k/dense_3b_60b.json' >/dev/null 2>&1; do
11
+ timestamp=$(date -u +%Y-%m-%dT%H:%M:%SZ)
12
+ nvidia-smi \
13
+ --query-gpu=index,name,memory.used,memory.total,utilization.gpu,power.draw \
14
+ --format=csv,noheader,nounits |
15
+ sed "s/^/$timestamp,/" >> "$LOG"
16
+ sleep 60
17
+ done
epfl_final/train_logs/mixed30k365m_s42.builder-supervisor.log ADDED
File without changes
epfl_final/train_logs/mixed30k365m_s42.cache.log ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ layer 1: built in 1179s
2
+ layer 0: built in 1203s
3
+ layer 3: built in 1187s
4
+ layer 2: built in 1195s
5
+ layer 5: built in 1174s
6
+ layer 4: built in 1175s
7
+ layer 7: built in 1193s
8
+ layer 6: built in 1193s
9
+ layer 9: built in 1152s
10
+ layer 8: built in 1212s
11
+ layer 11: built in 1206s
12
+ layer 10: built in 1201s
13
+ layer 13: built in 1179s
14
+ layer 12: built in 1174s
15
+ layer 15: built in 1198s
16
+ layer 14: built in 1168s
17
+ layer 17: built in 1161s
18
+ layer 16: built in 1184s
19
+ layer 19: built in 1130s
20
+ layer 18: built in 1163s
21
+ layer 21: built in 1174s
22
+ layer 20: built in 1184s
23
+ layer 23: built in 1171s
24
+ layer 22: built in 1174s
25
+ layer 25: built in 1167s
26
+ layer 24: built in 1195s
27
+ layer 27: built in 1176s
28
+ layer 26: built in 1187s
29
+ 2026-07-20T04:18:32Z cache status=0 files=28
epfl_final/train_logs/mixed30k365m_s42.run.log ADDED
The diff for this file is too large to render. See raw diff
 
epfl_final/train_logs/mixed30k365m_s42.supervisor.log ADDED
File without changes
epfl_final/train_logs/mixed30k365m_s42.watch.log ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ 2026-07-19T23:35:00Z watchdog start pid=330
2
+ 2026-07-19T23:35:00Z launch GPUs=2,3 nproc=2 latest_step=
3
+ 2026-07-20T04:18:32Z watchdog start pid=16098
4
+ 2026-07-20T04:18:32Z launch GPUs=2,3 nproc=2 latest_step=
5
+ 2026-07-21T21:03:35Z complete latest_step=11700
epfl_final/train_logs/mixed8k1p2b_s43.run.log ADDED
The diff for this file is too large to render. See raw diff
 
epfl_final/train_logs/mixed8k1p2b_s43.supervisor.log ADDED
File without changes
epfl_final/train_logs/mixed8k1p2b_s43.watch.log ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ 2026-07-20T18:55:59Z watchdog start pid=171
2
+ 2026-07-20T18:55:59Z launch GPUs=0,1,2,3 nproc=4 latest_step=
3
+ 2026-07-22T18:11:22Z watchdog start pid=181
4
+ 2026-07-22T18:11:22Z launch GPUs=0,1,2,3 nproc=4 latest_step=20000
5
+ 2026-07-22T21:37:57Z watchdog start pid=42334
6
+ 2026-07-22T21:37:57Z launch GPUs=0,1,2,3 nproc=4 latest_step=20000
7
+ 2026-07-23T06:33:52Z watchdog start pid=155
8
+ 2026-07-23T06:33:52Z launch GPUs=0,1,2,3 nproc=4 latest_step=24000
epfl_final/train_logs/mixed8k365m_s42.run.log ADDED
The diff for this file is too large to render. See raw diff
 
epfl_final/train_logs/mixed8k365m_s42.supervisor.log ADDED
File without changes
epfl_final/train_logs/mixed8k365m_s42.watch.log ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ 2026-07-19T23:35:00Z watchdog start pid=328
2
+ 2026-07-19T23:35:00Z launch GPUs=0 nproc=1 latest_step=
3
+ 2026-07-19T23:41:40Z watchdog start pid=1439
4
+ 2026-07-19T23:41:40Z launch GPUs=0 nproc=1 latest_step=
5
+ 2026-07-21T19:33:03Z complete latest_step=44000
epfl_final/train_logs/mixed8k365m_s43.run.log ADDED
The diff for this file is too large to render. See raw diff
 
epfl_final/train_logs/mixed8k365m_s43.supervisor.log ADDED
File without changes
epfl_final/train_logs/mixed8k365m_s43.watch.log ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ 2026-07-19T23:35:00Z watchdog start pid=329
2
+ 2026-07-19T23:35:00Z launch GPUs=1 nproc=1 latest_step=
3
+ 2026-07-19T23:41:40Z watchdog start pid=1440
4
+ 2026-07-19T23:41:40Z launch GPUs=1 nproc=1 latest_step=
5
+ 2026-07-21T19:49:04Z complete latest_step=44000
epfl_final/train_logs/moba30k_watchdog_launch.log ADDED
File without changes
epfl_final/train_logs/moba30k_watchdog_supervisor.log ADDED
File without changes
epfl_final/train_logs/mobafix_arxiv.log ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [sparse-eval] loading tokenizer from /mloscratch/homes/navasard/qwen3_06b_base
2
+ [sparse-eval] building packed windows (eval_len=30720, max_windows=16)
3
+ [sparse-eval] 16 windows x 30720 tokens
4
+ [sparse-eval] /mloscratch/homes/navasard/sparse/checkpoints/l8k365m_moba/run_20260709_041217/checkpoint-44000 @ deploy_sparsity=31 pattern=random mask_mode=fixed
5
+ Checkpoint activations: False
6
+ [sparse-eval] ppl=132.1137 nll=4.8837 density=0.1370 tokens=491504
7
+ {
8
+ "generated_at": "2026-07-13T05:45:15.873088+00:00",
9
+ "eval_len": 30720,
10
+ "block_size": 128,
11
+ "results": [
12
+ {
13
+ "checkpoint": "/mloscratch/homes/navasard/sparse/checkpoints/l8k365m_moba/run_20260709_041217/checkpoint-44000",
14
+ "deploy_sparsity": "31",
15
+ "deploy_pattern": "random",
16
+ "mask_mode": "fixed",
17
+ "force_sparse_layers": "all",
18
+ "eval_len": 30720,
19
+ "dataset": "/mloscratch/homes/navasard/data/arxiv30k_ood_windows",
20
+ "avg_nll": 4.883662664749422,
21
+ "perplexity": 132.11366687744194,
22
+ "tokens": 491504,
23
+ "windows": 16,
24
+ "realized_block_density": 0.1369763880655997
25
+ }
26
+ ]
27
+ }
28
+ [sparse-eval] TSV written to /mloscratch/homes/navasard/sparse/SparseAtt/eval/results/L365M_8K/moba_fixedmask30k_arxiv.tsv
epfl_final/train_logs/mobafix_gutenberg.log ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [sparse-eval] loading tokenizer from /mloscratch/homes/navasard/qwen3_06b_base
2
+ [sparse-eval] building packed windows (eval_len=30720, max_windows=16)
3
+ [sparse-eval] 16 windows x 30720 tokens
4
+ [sparse-eval] /mloscratch/homes/navasard/sparse/checkpoints/l8k365m_moba/run_20260709_041217/checkpoint-44000 @ deploy_sparsity=31 pattern=random mask_mode=fixed
5
+ Checkpoint activations: False
6
+ [sparse-eval] ppl=32.5508 nll=3.4828 density=0.1370 tokens=491504
7
+ {
8
+ "generated_at": "2026-07-13T05:45:15.827144+00:00",
9
+ "eval_len": 30720,
10
+ "block_size": 128,
11
+ "results": [
12
+ {
13
+ "checkpoint": "/mloscratch/homes/navasard/sparse/checkpoints/l8k365m_moba/run_20260709_041217/checkpoint-44000",
14
+ "deploy_sparsity": "31",
15
+ "deploy_pattern": "random",
16
+ "mask_mode": "fixed",
17
+ "force_sparse_layers": "all",
18
+ "eval_len": 30720,
19
+ "dataset": "/mloscratch/homes/navasard/data/gutenberg_ood_windows",
20
+ "avg_nll": 3.4828026100754013,
21
+ "perplexity": 32.55082161861716,
22
+ "tokens": 491504,
23
+ "windows": 16,
24
+ "realized_block_density": 0.1369763880655997
25
+ }
26
+ ]
27
+ }
28
+ [sparse-eval] TSV written to /mloscratch/homes/navasard/sparse/SparseAtt/eval/results/L365M_8K/moba_fixedmask30k_gutenberg.tsv
epfl_final/train_logs/mobafix_pubmed.log ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [sparse-eval] loading tokenizer from /mloscratch/homes/navasard/qwen3_06b_base
2
+ [sparse-eval] building packed windows (eval_len=30720, max_windows=16)
3
+ [sparse-eval] 16 windows x 30720 tokens
4
+ [sparse-eval] /mloscratch/homes/navasard/sparse/checkpoints/l8k365m_moba/run_20260709_041217/checkpoint-44000 @ deploy_sparsity=31 pattern=random mask_mode=fixed
5
+ Checkpoint activations: False
6
+ [sparse-eval] ppl=27.3365 nll=3.3082 density=0.1370 tokens=491504
7
+ {
8
+ "generated_at": "2026-07-13T05:45:14.517909+00:00",
9
+ "eval_len": 30720,
10
+ "block_size": 128,
11
+ "results": [
12
+ {
13
+ "checkpoint": "/mloscratch/homes/navasard/sparse/checkpoints/l8k365m_moba/run_20260709_041217/checkpoint-44000",
14
+ "deploy_sparsity": "31",
15
+ "deploy_pattern": "random",
16
+ "mask_mode": "fixed",
17
+ "force_sparse_layers": "all",
18
+ "eval_len": 30720,
19
+ "dataset": "/mloscratch/homes/navasard/data/pubmed_ood_windows",
20
+ "avg_nll": 3.3082236646344687,
21
+ "perplexity": 27.336523484532226,
22
+ "tokens": 491504,
23
+ "windows": 16,
24
+ "realized_block_density": 0.1369763880655997
25
+ }
26
+ ]
27
+ }
28
+ [sparse-eval] TSV written to /mloscratch/homes/navasard/sparse/SparseAtt/eval/results/L365M_8K/moba_fixedmask30k_pubmed.tsv
epfl_final/train_logs/native_fixed.log ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ }
2
+ [sparse-eval] TSV written to /mloscratch/homes/navasard/sparse/SparseAtt/eval/results/L365M_8K/native30k_fixed_gutenberg.tsv
3
+ }
4
+ [sparse-eval] TSV written to /mloscratch/homes/navasard/sparse/SparseAtt/eval/results/L365M_8K/native30k_fixed_arxiv.tsv
5
+ }
6
+ [sparse-eval] TSV written to /mloscratch/homes/navasard/sparse/SparseAtt/eval/results/L365M_8K/native30k_fixed_pubmed.tsv
7
+ DONE_NATIVE fixed
epfl_final/train_logs/native_moba.log ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ windows gutenberg (16, 30720)
2
+ windows arxiv (16, 30720)
3
+ windows pubmed (16, 30720)
4
+ Checkpoint activations: False
5
+ built topk=32 attn=moba layer0.top_k=32 (compiling flex...)
6
+ /mloscratch/homes/navasard/conda/lib/python3.13/site-packages/torch/_inductor/compile_fx.py:322: UserWarning: TensorFloat32 tensor cores for float32 matrix multiplication available but not enabled. Consider setting `torch.set_float32_matmul_precision('high')` for better performance.
7
+ warnings.warn(
8
+ topk 32 gutenberg L30720 ppl 25.410 nll 3.2352 win 16 58s
9
+ topk 32 arxiv L30720 ppl 73.912 nll 4.3029 win 16 7s
10
+ topk 32 pubmed L30720 ppl 16.908 nll 2.8278 win 16 7s
11
+ wrote /mloscratch/homes/navasard/sparse/SparseAtt/eval/results/L365M_8K/ppl_moba_native30k_L30720_gutenberg.tsv
12
+ wrote /mloscratch/homes/navasard/sparse/SparseAtt/eval/results/L365M_8K/ppl_moba_native30k_L30720_arxiv.tsv
13
+ wrote /mloscratch/homes/navasard/sparse/SparseAtt/eval/results/L365M_8K/ppl_moba_native30k_L30720_pubmed.tsv
14
+ DONE moba_native30k
epfl_final/train_logs/native_resamp.log ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ }
2
+ [sparse-eval] TSV written to /mloscratch/homes/navasard/sparse/SparseAtt/eval/results/L365M_8K/native30k_resamp_gutenberg.tsv
3
+ }
4
+ [sparse-eval] TSV written to /mloscratch/homes/navasard/sparse/SparseAtt/eval/results/L365M_8K/native30k_resamp_arxiv.tsv
5
+ }
6
+ [sparse-eval] TSV written to /mloscratch/homes/navasard/sparse/SparseAtt/eval/results/L365M_8K/native30k_resamp_pubmed.tsv
7
+ DONE_NATIVE resamp
epfl_final/train_logs/resampled4b_watchdog_launch.log ADDED
File without changes
epfl_final/train_logs/resume_4b_h100_3-0-0.log ADDED
@@ -0,0 +1,591 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ W0717 23:36:36.781000 162 site-packages/torch/distributed/run.py:851]
2
+ W0717 23:36:36.781000 162 site-packages/torch/distributed/run.py:851] *****************************************
3
+ W0717 23:36:36.781000 162 site-packages/torch/distributed/run.py:851] Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed.
4
+ W0717 23:36:36.781000 162 site-packages/torch/distributed/run.py:851] *****************************************
5
+ Auto-resuming from latest checkpoint: /mloscratch/homes/navasard/sparse/checkpoints/l8k4b_resampled/run_20260715_232017/checkpoint-11000
6
+ Resuming: Using existing output directory /mloscratch/homes/navasard/sparse/checkpoints/l8k4b_resampled/run_20260715_232017
7
+ Running config:
8
+ {
9
+ "model_path": "/mloscratch/homes/navasard/qwen3_06b_base",
10
+ "model_dtype": "bfloat16",
11
+ "init_from_scratch": true,
12
+ "train_path": "/mloscratch/homes/navasard/data/fineweb_large/tokenized",
13
+ "val_path": null,
14
+ "max_seq_length": 8192,
15
+ "num_workers": 8,
16
+ "output_dir": "/mloscratch/homes/navasard/sparse/checkpoints/l8k4b_resampled/run_20260715_232017",
17
+ "resume_from_checkpoint": "/mloscratch/homes/navasard/sparse/checkpoints/l8k4b_resampled/run_20260715_232017/checkpoint-11000",
18
+ "force_new_run": false,
19
+ "num_epochs": 1,
20
+ "max_steps": null,
21
+ "per_device_batch_size": 1,
22
+ "gradient_accumulation_steps": 15,
23
+ "learning_rate": 0.0005,
24
+ "weight_decay": 0.01,
25
+ "warmup_steps": 750,
26
+ "lr_scheduler": "cosine",
27
+ "max_grad_norm": 1.0,
28
+ "save_steps": 1000,
29
+ "eval_steps": 250,
30
+ "eval_batches": 50,
31
+ "logging_steps": 10,
32
+ "seed": 42,
33
+ "verbose": true,
34
+ "checkpoint_activations": true,
35
+ "strategy": "ddp",
36
+ "mixed_precision": "bf16",
37
+ "wandb_enabled": true,
38
+ "wandb_project": "stochastic_sparsity",
39
+ "wandb_name": "4b resampled 8k",
40
+ "wandb_tags": [
41
+ "qwen3",
42
+ "4b",
43
+ "8k",
44
+ "resampled",
45
+ "scaleladder"
46
+ ],
47
+ "hidden_size": 2560,
48
+ "intermediate_size": 9728,
49
+ "num_attention_heads": 32,
50
+ "num_key_value_heads": 8,
51
+ "num_hidden_layers": 36,
52
+ "head_dim": null,
53
+ "attention_type": "sparse_stochastic",
54
+ "sparse_block_size": 128,
55
+ "sparse_num_random_blocks": 31,
56
+ "sparse_mask_pool_size": 10000,
57
+ "sparse_val_dense_compare": false,
58
+ "sparse_layer_indices": null,
59
+ "sparse_mask_cache_dir": "/mloscratch/homes/navasard/sparse/mask_cache_8k_36L",
60
+ "sparse_mask_seed": 0,
61
+ "sparse_mixed_nrb_set": null,
62
+ "dense_mode": false,
63
+ "dense_step_intervals": null,
64
+ "moba_block_size": 128,
65
+ "moba_top_k": 32,
66
+ "asentmax_alpha": 1.5,
67
+ "asentmax_learn_temp": true,
68
+ "asentmax_init_temp": 1.0
69
+ }
70
+ Loading tokenizer from /mloscratch/homes/navasard/qwen3_06b_base...
71
+ Resuming from checkpoint: /mloscratch/homes/navasard/sparse/checkpoints/l8k4b_resampled/run_20260715_232017/checkpoint-11000
72
+ Checkpoint activations: TrueCheckpoint activations: True
73
+
74
+ Checkpoint activations: True
75
+ Checkpoint activations: True
76
+
77
+
78
+ ================================================================================
79
+ MODEL ARCHITECTURE
80
+ ================================================================================
81
+ Model config:
82
+ vocab_size: 151936
83
+ hidden_size: 2560
84
+ num_hidden_layers: 36
85
+ num_attention_heads: 32
86
+ num_key_value_heads: 8
87
+ head_dim: 128
88
+ intermediate_size: 9728
89
+ max_position_embeddings: 32768
90
+ rope_theta: 1000000
91
+ attention_type: sparse_stochastic
92
+ sparse_block_size: 128
93
+ sparse_num_random_blocks: 31
94
+ sparse_mask_pool_size: 10000
95
+ sparse_max_seq_length: 8192
96
+
97
+ Parameter count:
98
+ Total parameters: 4,022,468,096
99
+ Trainable parameters: 4,022,468,096
100
+ Non-trainable parameters: 0
101
+ Model size (BF16): 8.04 GB
102
+
103
+ --------------------------------------------------------------------------------
104
+ LAYER-BY-LAYER SUMMARY
105
+ --------------------------------------------------------------------------------
106
+ /mloscratch/homes/navasard/conda/lib/python3.13/site-packages/torch/nn/attention/flex_attention.py:1704: UserWarning: flex_attention called without torch.compile() - this will use an unfused implementation that materializes the full scores matrix instead of generating a fused kernel.
107
+
108
+ SOLUTION: Use torch.compile(flex_attention)(...)
109
+
110
+ If you want to debug your score_mod/mask_mod, you can set:
111
+ torch.nn.attention.flex_attention._FLEX_ATTENTION_DISABLE_COMPILE_DEBUG = True
112
+
113
+ This will allow you to use print statements or breakpoints. Note: This doesn't work with the backwards pass and may produce incorrect results.
114
+ _warn_once(
115
+ ================================================================================================================================================================
116
+ Layer (type:depth-idx) Input Shape Output Shape Param # Trainable
117
+ ================================================================================================================================================================
118
+ Qwen3ForCausalLM [1, 8192] -- -- True
119
+ ├─Qwen3Model: 1-1 -- [1, 8192, 2560] -- True
120
+ │ └─Embedding: 2-1 [1, 8192] [1, 8192, 2560] 388,956,160 True
121
+ │ └─ModuleList: 2-2 -- -- -- True
122
+ │ │ └─Qwen3DecoderLayer: 3-1 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
123
+ │ │ └─Qwen3DecoderLayer: 3-2 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
124
+ │ │ └─Qwen3DecoderLayer: 3-3 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
125
+ │ │ └─Qwen3DecoderLayer: 3-4 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
126
+ │ │ └─Qwen3DecoderLayer: 3-5 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
127
+ │ │ └─Qwen3DecoderLayer: 3-6 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
128
+ │ │ └─Qwen3DecoderLayer: 3-7 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
129
+ │ │ └─Qwen3DecoderLayer: 3-8 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
130
+ │ │ └─Qwen3DecoderLayer: 3-9 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
131
+ │ │ └─Qwen3DecoderLayer: 3-10 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
132
+ │ │ └─Qwen3DecoderLayer: 3-11 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
133
+ │ │ └─Qwen3DecoderLayer: 3-12 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
134
+ │ │ └─Qwen3DecoderLayer: 3-13 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
135
+ │ │ └─Qwen3DecoderLayer: 3-14 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
136
+ │ │ └─Qwen3DecoderLayer: 3-15 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
137
+ │ │ └─Qwen3DecoderLayer: 3-16 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
138
+ │ │ └─Qwen3DecoderLayer: 3-17 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
139
+ │ │ └─Qwen3DecoderLayer: 3-18 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
140
+ │ │ └─Qwen3DecoderLayer: 3-19 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
141
+ │ │ └─Qwen3DecoderLayer: 3-20 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
142
+ │ │ └─Qwen3DecoderLayer: 3-21 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
143
+ │ │ └─Qwen3DecoderLayer: 3-22 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
144
+ │ │ └─Qwen3DecoderLayer: 3-23 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
145
+ │ │ └─Qwen3DecoderLayer: 3-24 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
146
+ │ │ └─Qwen3DecoderLayer: 3-25 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
147
+ │ │ └─Qwen3DecoderLayer: 3-26 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
148
+ │ │ └─Qwen3DecoderLayer: 3-27 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
149
+ │ │ └─Qwen3DecoderLayer: 3-28 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
150
+ │ │ └─Qwen3DecoderLayer: 3-29 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
151
+ │ │ └─Qwen3DecoderLayer: 3-30 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
152
+ │ │ └─Qwen3DecoderLayer: 3-31 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
153
+ │ │ └─Qwen3DecoderLayer: 3-32 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
154
+ │ │ └─Qwen3DecoderLayer: 3-33 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
155
+ │ │ └─Qwen3DecoderLayer: 3-34 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
156
+ │ │ └─Qwen3DecoderLayer: 3-35 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
157
+ │ │ └─Qwen3DecoderLayer: 3-36 [1, 8192, 2560] [1, 8192, 2560] 100,930,816 True
158
+ │ └─Qwen3RMSNorm: 2-3 [1, 8192, 2560] [1, 8192, 2560] 2,560 True
159
+ ├─Linear: 1-2 [1, 8192, 2560] [1, 8192, 151936] 388,956,160 True
160
+ ================================================================================================================================================================
161
+ Total params: 4,411,424,256
162
+ Trainable params: 4,411,424,256
163
+ Non-trainable params: 0
164
+ Total mult-adds (Units.GIGABYTES): 4.41
165
+ ================================================================================================================================================================
166
+ Input size (MB): 0.07
167
+ Forward/backward pass size (MB): 53464.79
168
+ Params size (MB): 8822.85
169
+ Estimated Total Size (MB): 62287.71
170
+ ================================================================================================================================================================
171
+ NOTE: torchinfo double-counts tied embed_tokens/lm_head weight (388,956,160 params). True unique parameter count: 4,022,468,096 (4022.5M)
172
+ ================================================================================
173
+
174
+ Loading dataset from /mloscratch/homes/navasard/data/fineweb_large/tokenized...
175
+ Loading pre-tokenized HF dataset from /mloscratch/homes/navasard/data/fineweb_large/tokenized...
176
+ Loading pre-tokenized HF dataset from /mloscratch/homes/navasard/data/fineweb_large/tokenized...
177
+ Loading pre-tokenized HF dataset from /mloscratch/homes/navasard/data/fineweb_large/tokenized...
178
+ Loaded 12748481 pre-tokenized examples (stored_len=2048, pack_factor=4, packed_examples=3187120)
179
+ Loaded 12748481 pre-tokenized examples (stored_len=2048, pack_factor=4, packed_examples=3187120)
180
+ Loaded 12748481 pre-tokenized examples (stored_len=2048, pack_factor=4, packed_examples=3187120)
181
+ Using pre-tokenized dataset (no runtime tokenization)
182
+ Loading pre-tokenized HF dataset from /mloscratch/homes/navasard/data/fineweb_large/tokenized...
183
+ Loaded 12748481 pre-tokenized examples (stored_len=2048, pack_factor=4, packed_examples=3187120)
184
+ Dataset split: 3027764 train, 159356 validation
185
+ Training examples (packed, train split): 3027764
186
+ Validation examples (packed, val split): 159356
187
+ Per-device batch size: 1
188
+ World size (GPUs): 4
189
+ Gradient accumulation steps: 15
190
+ Effective batch size (seqs/step): 60
191
+ Sequence length: 8192
192
+ Tokens per optimizer step: 491,520
193
+ Micro-batches per epoch (per rank): 756941
194
+ Optimizer steps per epoch: 50462
195
+ Total optimizer steps: 50462
196
+ Loading checkpoint from /mloscratch/homes/navasard/sparse/checkpoints/l8k4b_resampled/run_20260715_232017/checkpoint-11000...
197
+ Overriding checkpoint LR with config LR: 0.0005
198
+ Resumed from checkpoint at step 11000 (epoch 0, micro_step 165000)
199
+ Resuming training from step 11000
200
+ Resuming wandb run w2xx8aku
201
+ wandb: [wandb.login()] Loaded credentials for https://api.wandb.ai from WANDB_API_KEY.
202
+ wandb: Currently logged in as: ruben-navasardyan4869 (ruben-navasardyan4869-epfl) to https://api.wandb.ai. Use `wandb login --relogin` to force relogin
203
+ wandb: Tracking run with wandb version 0.26.1
204
+ wandb: Run data is saved locally in /mloscratch/homes/navasard/sparse/SparseAtt-baselines/wandb/run-20260717_234254-w2xx8aku
205
+ wandb: Run `wandb offline` to turn off syncing.
206
+ wandb: Resuming run 4b resampled 8k
207
+ wandb: ⭐️ View project at https://wandb.ai/ruben-navasardyan4869-epfl/stochastic_sparsity
208
+ wandb: 🚀 View run at https://wandb.ai/ruben-navasardyan4869-epfl/stochastic_sparsity/runs/w2xx8aku
209
+ Starting training...
210
+ Validation at step 11000: Loss = 2.6263, Perplexity = 13.82
211
+ wandb: WARNING Tried to log to step 11000 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
212
+ Switching attention mode for step 11001: sparse_stochastic (configured sparse attention)
213
+ Step 11010/50462 | Loss: 2.5954 | LR: 4.49e-04 | 49735.6ms/step | 1.2 samples/s
214
+ wandb: WARNING Tried to log to step 11010 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
215
+ Step 11020/50462 | Loss: 2.5819 | LR: 4.49e-04 | 14254.3ms/step | 4.2 samples/s
216
+ wandb: WARNING Tried to log to step 11020 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
217
+ Step 11030/50462 | Loss: 2.6228 | LR: 4.49e-04 | 14200.1ms/step | 4.2 samples/s
218
+ wandb: WARNING Tried to log to step 11030 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
219
+ Step 11040/50462 | Loss: 2.6200 | LR: 4.49e-04 | 14292.7ms/step | 4.2 samples/s
220
+ wandb: WARNING Tried to log to step 11040 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
221
+ Step 11050/50462 | Loss: 2.5650 | LR: 4.49e-04 | 14347.1ms/step | 4.2 samples/s
222
+ wandb: WARNING Tried to log to step 11050 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
223
+ Step 11060/50462 | Loss: 2.5858 | LR: 4.49e-04 | 14300.3ms/step | 4.2 samples/s
224
+ wandb: WARNING Tried to log to step 11060 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
225
+ Step 11070/50462 | Loss: 2.6413 | LR: 4.49e-04 | 14251.3ms/step | 4.2 samples/s
226
+ wandb: WARNING Tried to log to step 11070 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
227
+ Step 11080/50462 | Loss: 2.6296 | LR: 4.49e-04 | 14250.2ms/step | 4.2 samples/s
228
+ wandb: WARNING Tried to log to step 11080 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
229
+ Step 11090/50462 | Loss: 2.6252 | LR: 4.48e-04 | 14206.4ms/step | 4.2 samples/s
230
+ wandb: WARNING Tried to log to step 11090 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
231
+ Step 11100/50462 | Loss: 2.6364 | LR: 4.48e-04 | 14353.1ms/step | 4.2 samples/s
232
+ wandb: WARNING Tried to log to step 11100 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
233
+ Step 11110/50462 | Loss: 2.6242 | LR: 4.48e-04 | 14310.0ms/step | 4.2 samples/s
234
+ wandb: WARNING Tried to log to step 11110 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
235
+ Step 11120/50462 | Loss: 2.6168 | LR: 4.48e-04 | 14330.6ms/step | 4.2 samples/s
236
+ wandb: WARNING Tried to log to step 11120 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
237
+ Step 11130/50462 | Loss: 2.6110 | LR: 4.48e-04 | 14231.4ms/step | 4.2 samples/s
238
+ wandb: WARNING Tried to log to step 11130 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
239
+ Step 11140/50462 | Loss: 2.5972 | LR: 4.48e-04 | 14244.5ms/step | 4.2 samples/s
240
+ wandb: WARNING Tried to log to step 11140 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
241
+ Step 11150/50462 | Loss: 2.6062 | LR: 4.48e-04 | 14215.0ms/step | 4.2 samples/s
242
+ wandb: WARNING Tried to log to step 11150 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
243
+ Step 11160/50462 | Loss: 2.5759 | LR: 4.48e-04 | 14332.6ms/step | 4.2 samples/s
244
+ wandb: WARNING Tried to log to step 11160 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
245
+ Step 11170/50462 | Loss: 2.6306 | LR: 4.48e-04 | 14374.6ms/step | 4.2 samples/s
246
+ wandb: WARNING Tried to log to step 11170 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
247
+ Step 11180/50462 | Loss: 2.6173 | LR: 4.48e-04 | 14357.1ms/step | 4.2 samples/s
248
+ wandb: WARNING Tried to log to step 11180 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
249
+ Step 11190/50462 | Loss: 2.6270 | LR: 4.48e-04 | 14308.5ms/step | 4.2 samples/s
250
+ wandb: WARNING Tried to log to step 11190 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
251
+ Step 11200/50462 | Loss: 2.6146 | LR: 4.47e-04 | 14350.0ms/step | 4.2 samples/s
252
+ wandb: WARNING Tried to log to step 11200 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
253
+ Step 11210/50462 | Loss: 2.6149 | LR: 4.47e-04 | 14303.0ms/step | 4.2 samples/s
254
+ wandb: WARNING Tried to log to step 11210 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
255
+ Step 11220/50462 | Loss: 2.6336 | LR: 4.47e-04 | 14372.6ms/step | 4.2 samples/s
256
+ wandb: WARNING Tried to log to step 11220 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
257
+ Step 11230/50462 | Loss: 2.5965 | LR: 4.47e-04 | 14237.3ms/step | 4.2 samples/s
258
+ wandb: WARNING Tried to log to step 11230 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
259
+ Step 11240/50462 | Loss: 2.5996 | LR: 4.47e-04 | 14337.2ms/step | 4.2 samples/s
260
+ wandb: WARNING Tried to log to step 11240 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
261
+ Step 11250/50462 | Loss: 2.6064 | LR: 4.47e-04 | 14367.5ms/step | 4.2 samples/s
262
+ wandb: WARNING Tried to log to step 11250 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
263
+ Validation at step 11250: Loss = 2.6185, Perplexity = 13.71
264
+ Step 11260/50462 | Loss: 2.5925 | LR: 4.47e-04 | 17298.9ms/step | 3.5 samples/s
265
+ wandb: WARNING Tried to log to step 11260 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
266
+ Step 11270/50462 | Loss: 2.5896 | LR: 4.47e-04 | 14336.8ms/step | 4.2 samples/s
267
+ wandb: WARNING Tried to log to step 11270 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
268
+ Step 11280/50462 | Loss: 2.6218 | LR: 4.47e-04 | 14433.7ms/step | 4.2 samples/s
269
+ wandb: WARNING Tried to log to step 11280 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
270
+ Step 11290/50462 | Loss: 2.6088 | LR: 4.47e-04 | 14268.5ms/step | 4.2 samples/s
271
+ wandb: WARNING Tried to log to step 11290 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
272
+ Step 11300/50462 | Loss: 2.6138 | LR: 4.46e-04 | 14340.6ms/step | 4.2 samples/s
273
+ wandb: WARNING Tried to log to step 11300 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
274
+ Step 11310/50462 | Loss: 2.6041 | LR: 4.46e-04 | 14355.7ms/step | 4.2 samples/s
275
+ wandb: WARNING Tried to log to step 11310 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
276
+ Step 11320/50462 | Loss: 2.5947 | LR: 4.46e-04 | 14295.5ms/step | 4.2 samples/s
277
+ wandb: WARNING Tried to log to step 11320 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
278
+ Step 11330/50462 | Loss: 2.6053 | LR: 4.46e-04 | 14387.1ms/step | 4.2 samples/s
279
+ wandb: WARNING Tried to log to step 11330 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
280
+ Step 11340/50462 | Loss: 2.6326 | LR: 4.46e-04 | 14339.9ms/step | 4.2 samples/s
281
+ wandb: WARNING Tried to log to step 11340 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
282
+ Step 11350/50462 | Loss: 2.5940 | LR: 4.46e-04 | 14281.1ms/step | 4.2 samples/s
283
+ wandb: WARNING Tried to log to step 11350 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
284
+ Step 11360/50462 | Loss: 2.6508 | LR: 4.46e-04 | 14246.1ms/step | 4.2 samples/s
285
+ wandb: WARNING Tried to log to step 11360 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
286
+ Step 11370/50462 | Loss: 2.6168 | LR: 4.46e-04 | 14027.9ms/step | 4.3 samples/s
287
+ wandb: WARNING Tried to log to step 11370 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
288
+ Step 11380/50462 | Loss: 2.6236 | LR: 4.46e-04 | 14135.1ms/step | 4.2 samples/s
289
+ wandb: WARNING Tried to log to step 11380 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
290
+ Step 11390/50462 | Loss: 2.5941 | LR: 4.46e-04 | 14151.9ms/step | 4.2 samples/s
291
+ wandb: WARNING Tried to log to step 11390 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
292
+ Step 11400/50462 | Loss: 2.6092 | LR: 4.45e-04 | 14199.4ms/step | 4.2 samples/s
293
+ wandb: WARNING Tried to log to step 11400 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
294
+ Step 11410/50462 | Loss: 2.5794 | LR: 4.45e-04 | 14376.3ms/step | 4.2 samples/s
295
+ wandb: WARNING Tried to log to step 11410 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
296
+ Step 11420/50462 | Loss: 2.6125 | LR: 4.45e-04 | 14093.2ms/step | 4.3 samples/s
297
+ wandb: WARNING Tried to log to step 11420 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
298
+ Step 11430/50462 | Loss: 2.6393 | LR: 4.45e-04 | 13994.3ms/step | 4.3 samples/s
299
+ wandb: WARNING Tried to log to step 11430 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
300
+ Step 11440/50462 | Loss: 2.6282 | LR: 4.45e-04 | 14082.8ms/step | 4.3 samples/s
301
+ wandb: WARNING Tried to log to step 11440 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
302
+ Step 11450/50462 | Loss: 2.5904 | LR: 4.45e-04 | 14022.1ms/step | 4.3 samples/s
303
+ wandb: WARNING Tried to log to step 11450 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
304
+ Step 11460/50462 | Loss: 2.6100 | LR: 4.45e-04 | 14042.2ms/step | 4.3 samples/s
305
+ wandb: WARNING Tried to log to step 11460 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
306
+ Step 11470/50462 | Loss: 2.6161 | LR: 4.45e-04 | 14285.3ms/step | 4.2 samples/s
307
+ wandb: WARNING Tried to log to step 11470 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
308
+ Step 11480/50462 | Loss: 2.5954 | LR: 4.45e-04 | 14216.2ms/step | 4.2 samples/s
309
+ wandb: WARNING Tried to log to step 11480 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
310
+ Step 11490/50462 | Loss: 2.6367 | LR: 4.45e-04 | 14230.6ms/step | 4.2 samples/s
311
+ wandb: WARNING Tried to log to step 11490 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
312
+ Step 11500/50462 | Loss: 2.5893 | LR: 4.44e-04 | 14069.9ms/step | 4.3 samples/s
313
+ wandb: WARNING Tried to log to step 11500 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
314
+ Validation at step 11500: Loss = 2.6169, Perplexity = 13.69
315
+ Step 11510/50462 | Loss: 2.5693 | LR: 4.44e-04 | 17599.7ms/step | 3.4 samples/s
316
+ wandb: WARNING Tried to log to step 11510 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
317
+ Step 11520/50462 | Loss: 2.5712 | LR: 4.44e-04 | 14230.1ms/step | 4.2 samples/s
318
+ wandb: WARNING Tried to log to step 11520 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
319
+ Step 11530/50462 | Loss: 2.6118 | LR: 4.44e-04 | 14130.3ms/step | 4.2 samples/s
320
+ wandb: WARNING Tried to log to step 11530 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
321
+ Step 11540/50462 | Loss: 2.6292 | LR: 4.44e-04 | 14280.1ms/step | 4.2 samples/s
322
+ wandb: WARNING Tried to log to step 11540 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
323
+ Step 11550/50462 | Loss: 2.6081 | LR: 4.44e-04 | 14306.4ms/step | 4.2 samples/s
324
+ wandb: WARNING Tried to log to step 11550 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
325
+ Step 11560/50462 | Loss: 2.6182 | LR: 4.44e-04 | 14238.0ms/step | 4.2 samples/s
326
+ wandb: WARNING Tried to log to step 11560 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
327
+ Step 11570/50462 | Loss: 2.6115 | LR: 4.44e-04 | 14244.7ms/step | 4.2 samples/s
328
+ wandb: WARNING Tried to log to step 11570 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
329
+ Step 11580/50462 | Loss: 2.6060 | LR: 4.44e-04 | 14269.8ms/step | 4.2 samples/s
330
+ wandb: WARNING Tried to log to step 11580 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
331
+ Step 11590/50462 | Loss: 2.5900 | LR: 4.44e-04 | 14210.0ms/step | 4.2 samples/s
332
+ wandb: WARNING Tried to log to step 11590 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
333
+ Step 11600/50462 | Loss: 2.6133 | LR: 4.43e-04 | 14280.2ms/step | 4.2 samples/s
334
+ wandb: WARNING Tried to log to step 11600 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
335
+ Step 11610/50462 | Loss: 2.6216 | LR: 4.43e-04 | 14358.9ms/step | 4.2 samples/s
336
+ wandb: WARNING Tried to log to step 11610 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
337
+ Step 11620/50462 | Loss: 2.5978 | LR: 4.43e-04 | 14892.6ms/step | 4.0 samples/s
338
+ wandb: WARNING Tried to log to step 11620 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
339
+ Step 11630/50462 | Loss: 2.5902 | LR: 4.43e-04 | 14014.3ms/step | 4.3 samples/s
340
+ wandb: WARNING Tried to log to step 11630 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
341
+ Step 11640/50462 | Loss: 2.6036 | LR: 4.43e-04 | 16400.1ms/step | 3.7 samples/s
342
+ wandb: WARNING Tried to log to step 11640 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
343
+ Step 11650/50462 | Loss: 2.6032 | LR: 4.43e-04 | 14211.7ms/step | 4.2 samples/s
344
+ wandb: WARNING Tried to log to step 11650 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
345
+ Step 11660/50462 | Loss: 2.5804 | LR: 4.43e-04 | 14211.6ms/step | 4.2 samples/s
346
+ wandb: WARNING Tried to log to step 11660 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
347
+ Step 11670/50462 | Loss: 2.5974 | LR: 4.43e-04 | 14213.7ms/step | 4.2 samples/s
348
+ wandb: WARNING Tried to log to step 11670 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
349
+ Step 11680/50462 | Loss: 2.5904 | LR: 4.43e-04 | 14380.5ms/step | 4.2 samples/s
350
+ wandb: WARNING Tried to log to step 11680 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
351
+ Step 11690/50462 | Loss: 2.5974 | LR: 4.43e-04 | 14103.0ms/step | 4.3 samples/s
352
+ wandb: WARNING Tried to log to step 11690 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
353
+ Step 11700/50462 | Loss: 2.5817 | LR: 4.42e-04 | 14414.2ms/step | 4.2 samples/s
354
+ wandb: WARNING Tried to log to step 11700 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
355
+ Step 11710/50462 | Loss: 2.5938 | LR: 4.42e-04 | 14318.4ms/step | 4.2 samples/s
356
+ wandb: WARNING Tried to log to step 11710 that is less than the current step 11711. Steps must be monotonically increasing, so this data will be ignored. See https://wandb.me/define-metric to log data out of order.
357
+ Step 11720/50462 | Loss: 2.5779 | LR: 4.42e-04 | 14277.0ms/step | 4.2 samples/s
358
+ Step 11730/50462 | Loss: 2.6133 | LR: 4.42e-04 | 14266.9ms/step | 4.2 samples/s
359
+ Step 11740/50462 | Loss: 2.6008 | LR: 4.42e-04 | 14275.7ms/step | 4.2 samples/s
360
+ Step 11750/50462 | Loss: 2.5863 | LR: 4.42e-04 | 14269.5ms/step | 4.2 samples/s
361
+ Validation at step 11750: Loss = 2.6126, Perplexity = 13.63
362
+ Step 11760/50462 | Loss: 2.5870 | LR: 4.42e-04 | 17395.7ms/step | 3.4 samples/s
363
+ Step 11770/50462 | Loss: 2.5906 | LR: 4.42e-04 | 14293.4ms/step | 4.2 samples/s
364
+ Step 11780/50462 | Loss: 2.6323 | LR: 4.42e-04 | 14189.0ms/step | 4.2 samples/s
365
+ Step 11790/50462 | Loss: 2.6043 | LR: 4.42e-04 | 14035.0ms/step | 4.3 samples/s
366
+ Step 11800/50462 | Loss: 2.5894 | LR: 4.41e-04 | 14101.5ms/step | 4.3 samples/s
367
+ Step 11810/50462 | Loss: 2.6194 | LR: 4.41e-04 | 14166.1ms/step | 4.2 samples/s
368
+ Step 11820/50462 | Loss: 2.6241 | LR: 4.41e-04 | 14177.1ms/step | 4.2 samples/s
369
+ Step 11830/50462 | Loss: 2.5896 | LR: 4.41e-04 | 14154.3ms/step | 4.2 samples/s
370
+ Step 11840/50462 | Loss: 2.5729 | LR: 4.41e-04 | 14135.7ms/step | 4.2 samples/s
371
+ Step 11850/50462 | Loss: 2.5995 | LR: 4.41e-04 | 14350.7ms/step | 4.2 samples/s
372
+ Step 11860/50462 | Loss: 2.6041 | LR: 4.41e-04 | 14299.5ms/step | 4.2 samples/s
373
+ Step 11870/50462 | Loss: 2.6049 | LR: 4.41e-04 | 14180.7ms/step | 4.2 samples/s
374
+ Step 11880/50462 | Loss: 2.5891 | LR: 4.41e-04 | 14375.9ms/step | 4.2 samples/s
375
+ Step 11890/50462 | Loss: 2.5981 | LR: 4.41e-04 | 14321.9ms/step | 4.2 samples/s
376
+ Step 11900/50462 | Loss: 2.5953 | LR: 4.40e-04 | 14276.3ms/step | 4.2 samples/s
377
+ Step 11910/50462 | Loss: 2.5908 | LR: 4.40e-04 | 14368.1ms/step | 4.2 samples/s
378
+ Step 11920/50462 | Loss: 2.5633 | LR: 4.40e-04 | 14338.2ms/step | 4.2 samples/s
379
+ Step 11930/50462 | Loss: 2.5696 | LR: 4.40e-04 | 14285.2ms/step | 4.2 samples/s
380
+ Step 11940/50462 | Loss: 2.5739 | LR: 4.40e-04 | 14364.8ms/step | 4.2 samples/s
381
+ Step 11950/50462 | Loss: 2.6007 | LR: 4.40e-04 | 14310.8ms/step | 4.2 samples/s
382
+ Step 11960/50462 | Loss: 2.5726 | LR: 4.40e-04 | 14233.1ms/step | 4.2 samples/s
383
+ Step 11970/50462 | Loss: 2.6061 | LR: 4.40e-04 | 14338.6ms/step | 4.2 samples/s
384
+ Step 11980/50462 | Loss: 2.6188 | LR: 4.40e-04 | 14301.2ms/step | 4.2 samples/s
385
+ Step 11990/50462 | Loss: 2.5990 | LR: 4.40e-04 | 14320.8ms/step | 4.2 samples/s
386
+ Step 12000/50462 | Loss: 2.6520 | LR: 4.39e-04 | 14248.6ms/step | 4.2 samples/s
387
+ Validation at step 12000: Loss = 2.6067, Perplexity = 13.55
388
+ Saved checkpoint to /mloscratch/homes/navasard/sparse/checkpoints/l8k4b_resampled/run_20260715_232017/checkpoint-12000
389
+ Step 12010/50462 | Loss: 2.6089 | LR: 4.39e-04 | 20247.7ms/step | 3.0 samples/s
390
+ Step 12020/50462 | Loss: 2.5815 | LR: 4.39e-04 | 14257.8ms/step | 4.2 samples/s
391
+ Step 12030/50462 | Loss: 2.5929 | LR: 4.39e-04 | 14251.6ms/step | 4.2 samples/s
392
+ Step 12040/50462 | Loss: 2.5986 | LR: 4.39e-04 | 14340.9ms/step | 4.2 samples/s
393
+ Step 12050/50462 | Loss: 2.5946 | LR: 4.39e-04 | 14351.1ms/step | 4.2 samples/s
394
+ Step 12060/50462 | Loss: 2.5676 | LR: 4.39e-04 | 14227.7ms/step | 4.2 samples/s
395
+ Step 12070/50462 | Loss: 2.6060 | LR: 4.39e-04 | 14314.8ms/step | 4.2 samples/s
396
+ Step 12080/50462 | Loss: 2.6400 | LR: 4.39e-04 | 14163.1ms/step | 4.2 samples/s
397
+ Step 12090/50462 | Loss: 2.5591 | LR: 4.39e-04 | 14166.2ms/step | 4.2 samples/s
398
+ Step 12100/50462 | Loss: 2.5721 | LR: 4.38e-04 | 14345.9ms/step | 4.2 samples/s
399
+ Step 12110/50462 | Loss: 2.6135 | LR: 4.38e-04 | 14245.5ms/step | 4.2 samples/s
400
+ Step 12120/50462 | Loss: 2.5827 | LR: 4.38e-04 | 14226.2ms/step | 4.2 samples/s
401
+ Step 12130/50462 | Loss: 2.5970 | LR: 4.38e-04 | 14239.7ms/step | 4.2 samples/s
402
+ Step 12140/50462 | Loss: 2.5805 | LR: 4.38e-04 | 14373.1ms/step | 4.2 samples/s
403
+ Step 12150/50462 | Loss: 2.5914 | LR: 4.38e-04 | 14354.5ms/step | 4.2 samples/s
404
+ Step 12160/50462 | Loss: 2.6137 | LR: 4.38e-04 | 14147.1ms/step | 4.2 samples/s
405
+ Step 12170/50462 | Loss: 2.5860 | LR: 4.38e-04 | 14348.5ms/step | 4.2 samples/s
406
+ Step 12180/50462 | Loss: 2.5858 | LR: 4.38e-04 | 14404.9ms/step | 4.2 samples/s
407
+ Step 12190/50462 | Loss: 2.5820 | LR: 4.37e-04 | 14248.6ms/step | 4.2 samples/s
408
+ Step 12200/50462 | Loss: 2.5967 | LR: 4.37e-04 | 14220.6ms/step | 4.2 samples/s
409
+ Step 12210/50462 | Loss: 2.5801 | LR: 4.37e-04 | 14205.8ms/step | 4.2 samples/s
410
+ Step 12220/50462 | Loss: 2.6018 | LR: 4.37e-04 | 14177.0ms/step | 4.2 samples/s
411
+ Step 12230/50462 | Loss: 2.6005 | LR: 4.37e-04 | 14202.3ms/step | 4.2 samples/s
412
+ Step 12240/50462 | Loss: 2.6186 | LR: 4.37e-04 | 14322.1ms/step | 4.2 samples/s
413
+ Step 12250/50462 | Loss: 2.5861 | LR: 4.37e-04 | 14271.8ms/step | 4.2 samples/s
414
+ Validation at step 12250: Loss = 2.6029, Perplexity = 13.50
415
+ Step 12260/50462 | Loss: 2.5980 | LR: 4.37e-04 | 17410.3ms/step | 3.4 samples/s
416
+ Step 12270/50462 | Loss: 2.5938 | LR: 4.37e-04 | 14266.5ms/step | 4.2 samples/s
417
+ Step 12280/50462 | Loss: 2.5920 | LR: 4.37e-04 | 14315.1ms/step | 4.2 samples/s
418
+ Step 12290/50462 | Loss: 2.5909 | LR: 4.36e-04 | 14056.3ms/step | 4.3 samples/s
419
+ Step 12300/50462 | Loss: 2.5949 | LR: 4.36e-04 | 14381.4ms/step | 4.2 samples/s
420
+ Step 12310/50462 | Loss: 2.6029 | LR: 4.36e-04 | 14315.5ms/step | 4.2 samples/s
421
+ Step 12320/50462 | Loss: 2.5889 | LR: 4.36e-04 | 14227.6ms/step | 4.2 samples/s
422
+ Step 12330/50462 | Loss: 2.5696 | LR: 4.36e-04 | 14284.4ms/step | 4.2 samples/s
423
+ Step 12340/50462 | Loss: 2.5925 | LR: 4.36e-04 | 14285.8ms/step | 4.2 samples/s
424
+ Step 12350/50462 | Loss: 2.5621 | LR: 4.36e-04 | 14338.5ms/step | 4.2 samples/s
425
+ Step 12360/50462 | Loss: 2.5983 | LR: 4.36e-04 | 14315.3ms/step | 4.2 samples/s
426
+ Step 12370/50462 | Loss: 2.5870 | LR: 4.36e-04 | 14278.2ms/step | 4.2 samples/s
427
+ Step 12380/50462 | Loss: 2.5919 | LR: 4.35e-04 | 14394.0ms/step | 4.2 samples/s
428
+ Step 12390/50462 | Loss: 2.6121 | LR: 4.35e-04 | 14269.6ms/step | 4.2 samples/s
429
+ Step 12400/50462 | Loss: 2.5843 | LR: 4.35e-04 | 14270.8ms/step | 4.2 samples/s
430
+ Step 12410/50462 | Loss: 2.5770 | LR: 4.35e-04 | 14370.1ms/step | 4.2 samples/s
431
+ Step 12420/50462 | Loss: 2.6123 | LR: 4.35e-04 | 14231.6ms/step | 4.2 samples/s
432
+ Step 12430/50462 | Loss: 2.5725 | LR: 4.35e-04 | 14204.4ms/step | 4.2 samples/s
433
+ Step 12440/50462 | Loss: 2.5615 | LR: 4.35e-04 | 14066.2ms/step | 4.3 samples/s
434
+ Step 12450/50462 | Loss: 2.5933 | LR: 4.35e-04 | 14169.3ms/step | 4.2 samples/s
435
+ Step 12460/50462 | Loss: 2.5783 | LR: 4.35e-04 | 14124.6ms/step | 4.2 samples/s
436
+ Step 12470/50462 | Loss: 2.5761 | LR: 4.35e-04 | 14167.7ms/step | 4.2 samples/s
437
+ Step 12480/50462 | Loss: 2.5854 | LR: 4.34e-04 | 14072.6ms/step | 4.3 samples/s
438
+ Step 12490/50462 | Loss: 2.6493 | LR: 4.34e-04 | 14003.8ms/step | 4.3 samples/s
439
+ Step 12500/50462 | Loss: 2.5995 | LR: 4.34e-04 | 14153.9ms/step | 4.2 samples/s
440
+ Validation at step 12500: Loss = 2.5970, Perplexity = 13.42
441
+ Step 12510/50462 | Loss: 2.5956 | LR: 4.34e-04 | 17224.9ms/step | 3.5 samples/s
442
+ Step 12520/50462 | Loss: 2.5764 | LR: 4.34e-04 | 14025.1ms/step | 4.3 samples/s
443
+ Step 12530/50462 | Loss: 2.5870 | LR: 4.34e-04 | 14117.7ms/step | 4.2 samples/s
444
+ Step 12540/50462 | Loss: 2.5740 | LR: 4.34e-04 | 14103.9ms/step | 4.3 samples/s
445
+ Step 12550/50462 | Loss: 2.5515 | LR: 4.34e-04 | 14097.2ms/step | 4.3 samples/s
446
+ Step 12560/50462 | Loss: 2.5628 | LR: 4.34e-04 | 13938.9ms/step | 4.3 samples/s
447
+ Step 12570/50462 | Loss: 2.5677 | LR: 4.33e-04 | 14144.9ms/step | 4.2 samples/s
448
+ Step 12580/50462 | Loss: 2.6235 | LR: 4.33e-04 | 13899.3ms/step | 4.3 samples/s
449
+ Step 12590/50462 | Loss: 2.6015 | LR: 4.33e-04 | 13939.6ms/step | 4.3 samples/s
450
+ Step 12600/50462 | Loss: 2.5614 | LR: 4.33e-04 | 14108.2ms/step | 4.3 samples/s
451
+ Step 12610/50462 | Loss: 2.5814 | LR: 4.33e-04 | 14321.5ms/step | 4.2 samples/s
452
+ Step 12620/50462 | Loss: 2.5841 | LR: 4.33e-04 | 14099.6ms/step | 4.3 samples/s
453
+ Step 12630/50462 | Loss: 2.5772 | LR: 4.33e-04 | 13951.8ms/step | 4.3 samples/s
454
+ Step 12640/50462 | Loss: 2.5967 | LR: 4.33e-04 | 14017.9ms/step | 4.3 samples/s
455
+ Step 12650/50462 | Loss: 2.5508 | LR: 4.33e-04 | 14170.5ms/step | 4.2 samples/s
456
+ Step 12660/50462 | Loss: 2.5745 | LR: 4.32e-04 | 14047.8ms/step | 4.3 samples/s
457
+ Step 12670/50462 | Loss: 2.5854 | LR: 4.32e-04 | 14050.3ms/step | 4.3 samples/s
458
+ Step 12680/50462 | Loss: 2.5807 | LR: 4.32e-04 | 14056.7ms/step | 4.3 samples/s
459
+ Step 12690/50462 | Loss: 2.5458 | LR: 4.32e-04 | 14041.8ms/step | 4.3 samples/s
460
+ Step 12700/50462 | Loss: 2.5568 | LR: 4.32e-04 | 14037.9ms/step | 4.3 samples/s
461
+ Step 12710/50462 | Loss: 2.5923 | LR: 4.32e-04 | 13975.7ms/step | 4.3 samples/s
462
+ Step 12720/50462 | Loss: 2.5682 | LR: 4.32e-04 | 13956.0ms/step | 4.3 samples/s
463
+ Step 12730/50462 | Loss: 2.5702 | LR: 4.32e-04 | 13990.8ms/step | 4.3 samples/s
464
+ Step 12740/50462 | Loss: 2.5531 | LR: 4.32e-04 | 13929.8ms/step | 4.3 samples/s
465
+ Step 12750/50462 | Loss: 2.6041 | LR: 4.31e-04 | 13959.4ms/step | 4.3 samples/s
466
+ Validation at step 12750: Loss = 2.5929, Perplexity = 13.37
467
+ Step 12760/50462 | Loss: 2.5955 | LR: 4.31e-04 | 17196.7ms/step | 3.5 samples/s
468
+ Step 12770/50462 | Loss: 2.5653 | LR: 4.31e-04 | 14066.1ms/step | 4.3 samples/s
469
+ Step 12780/50462 | Loss: 2.6091 | LR: 4.31e-04 | 14061.7ms/step | 4.3 samples/s
470
+ Step 12790/50462 | Loss: 2.5577 | LR: 4.31e-04 | 13938.1ms/step | 4.3 samples/s
471
+ Step 12800/50462 | Loss: 2.5876 | LR: 4.31e-04 | 14095.7ms/step | 4.3 samples/s
472
+ Step 12810/50462 | Loss: 2.5831 | LR: 4.31e-04 | 14173.5ms/step | 4.2 samples/s
473
+ Step 12820/50462 | Loss: 2.6138 | LR: 4.31e-04 | 14091.9ms/step | 4.3 samples/s
474
+ Step 12830/50462 | Loss: 2.5509 | LR: 4.31e-04 | 14115.7ms/step | 4.3 samples/s
475
+ Step 12840/50462 | Loss: 2.5742 | LR: 4.31e-04 | 14069.7ms/step | 4.3 samples/s
476
+ Step 12850/50462 | Loss: 2.5667 | LR: 4.30e-04 | 14160.0ms/step | 4.2 samples/s
477
+ Step 12860/50462 | Loss: 2.5649 | LR: 4.30e-04 | 14046.3ms/step | 4.3 samples/s
478
+ Step 12870/50462 | Loss: 2.5470 | LR: 4.30e-04 | 14039.9ms/step | 4.3 samples/s
479
+ Step 12880/50462 | Loss: 2.5606 | LR: 4.30e-04 | 14065.5ms/step | 4.3 samples/s
480
+ Step 12890/50462 | Loss: 2.5957 | LR: 4.30e-04 | 13956.1ms/step | 4.3 samples/s
481
+ Step 12900/50462 | Loss: 2.5894 | LR: 4.30e-04 | 13964.5ms/step | 4.3 samples/s
482
+ Step 12910/50462 | Loss: 2.5958 | LR: 4.30e-04 | 14046.8ms/step | 4.3 samples/s
483
+ Step 12920/50462 | Loss: 2.6042 | LR: 4.30e-04 | 14028.5ms/step | 4.3 samples/s
484
+ Step 12930/50462 | Loss: 2.5619 | LR: 4.30e-04 | 14022.1ms/step | 4.3 samples/s
485
+ Step 12940/50462 | Loss: 2.5747 | LR: 4.29e-04 | 13952.0ms/step | 4.3 samples/s
486
+ Step 12950/50462 | Loss: 2.5708 | LR: 4.29e-04 | 14105.4ms/step | 4.3 samples/s
487
+ Step 12960/50462 | Loss: 2.5634 | LR: 4.29e-04 | 13972.2ms/step | 4.3 samples/s
488
+ Step 12970/50462 | Loss: 2.5613 | LR: 4.29e-04 | 13970.1ms/step | 4.3 samples/s
489
+ Step 12980/50462 | Loss: 2.5507 | LR: 4.29e-04 | 13972.6ms/step | 4.3 samples/s
490
+ Step 12990/50462 | Loss: 2.5502 | LR: 4.29e-04 | 14001.6ms/step | 4.3 samples/s
491
+ Step 13000/50462 | Loss: 2.5795 | LR: 4.29e-04 | 13937.4ms/step | 4.3 samples/s
492
+ Validation at step 13000: Loss = 2.5911, Perplexity = 13.34
493
+ Saved checkpoint to /mloscratch/homes/navasard/sparse/checkpoints/l8k4b_resampled/run_20260715_232017/checkpoint-13000
494
+ Step 13010/50462 | Loss: 2.5199 | LR: 4.29e-04 | 20033.0ms/step | 3.0 samples/s
495
+ Step 13020/50462 | Loss: 2.6041 | LR: 4.29e-04 | 13928.0ms/step | 4.3 samples/s
496
+ Step 13030/50462 | Loss: 2.5694 | LR: 4.28e-04 | 14014.3ms/step | 4.3 samples/s
497
+ Step 13040/50462 | Loss: 2.5797 | LR: 4.28e-04 | 13923.4ms/step | 4.3 samples/s
498
+ Step 13050/50462 | Loss: 2.5530 | LR: 4.28e-04 | 13985.7ms/step | 4.3 samples/s
499
+ Step 13060/50462 | Loss: 2.6086 | LR: 4.28e-04 | 13933.9ms/step | 4.3 samples/s
500
+ Step 13070/50462 | Loss: 2.5911 | LR: 4.28e-04 | 14016.1ms/step | 4.3 samples/s
501
+ Step 13080/50462 | Loss: 2.5745 | LR: 4.28e-04 | 14108.5ms/step | 4.3 samples/s
502
+ Step 13090/50462 | Loss: 2.5692 | LR: 4.28e-04 | 13913.8ms/step | 4.3 samples/s
503
+ Step 13100/50462 | Loss: 2.5116 | LR: 4.28e-04 | 13971.7ms/step | 4.3 samples/s
504
+ Step 13110/50462 | Loss: 2.5768 | LR: 4.28e-04 | 13983.7ms/step | 4.3 samples/s
505
+ Step 13120/50462 | Loss: 2.6022 | LR: 4.27e-04 | 13994.8ms/step | 4.3 samples/s
506
+ Step 13130/50462 | Loss: 2.5785 | LR: 4.27e-04 | 13947.4ms/step | 4.3 samples/s
507
+ Step 13140/50462 | Loss: 2.5832 | LR: 4.27e-04 | 14066.6ms/step | 4.3 samples/s
508
+ Step 13150/50462 | Loss: 2.6107 | LR: 4.27e-04 | 14127.5ms/step | 4.2 samples/s
509
+ Step 13160/50462 | Loss: 2.5719 | LR: 4.27e-04 | 14083.5ms/step | 4.3 samples/s
510
+ Step 13170/50462 | Loss: 2.6064 | LR: 4.27e-04 | 13991.5ms/step | 4.3 samples/s
511
+ Step 13180/50462 | Loss: 2.5646 | LR: 4.27e-04 | 13941.1ms/step | 4.3 samples/s
512
+ Step 13190/50462 | Loss: 2.5801 | LR: 4.27e-04 | 13888.1ms/step | 4.3 samples/s
513
+ Step 13200/50462 | Loss: 2.5550 | LR: 4.27e-04 | 14076.2ms/step | 4.3 samples/s
514
+ Step 13210/50462 | Loss: 2.5759 | LR: 4.26e-04 | 13965.5ms/step | 4.3 samples/s
515
+ Step 13220/50462 | Loss: 2.5861 | LR: 4.26e-04 | 13986.2ms/step | 4.3 samples/s
516
+ Step 13230/50462 | Loss: 2.5531 | LR: 4.26e-04 | 14063.4ms/step | 4.3 samples/s
517
+ Step 13240/50462 | Loss: 2.5918 | LR: 4.26e-04 | 14162.7ms/step | 4.2 samples/s
518
+ Step 13250/50462 | Loss: 2.5624 | LR: 4.26e-04 | 14084.3ms/step | 4.3 samples/s
519
+ Validation at step 13250: Loss = 2.5871, Perplexity = 13.29
520
+ Step 13260/50462 | Loss: 2.5755 | LR: 4.26e-04 | 17267.5ms/step | 3.5 samples/s
521
+ Step 13270/50462 | Loss: 2.6160 | LR: 4.26e-04 | 14068.4ms/step | 4.3 samples/s
522
+ Step 13280/50462 | Loss: 2.5750 | LR: 4.26e-04 | 14074.5ms/step | 4.3 samples/s
523
+ Step 13290/50462 | Loss: 2.5732 | LR: 4.26e-04 | 14035.6ms/step | 4.3 samples/s
524
+ Step 13300/50462 | Loss: 2.6098 | LR: 4.25e-04 | 14077.6ms/step | 4.3 samples/s
525
+ Step 13310/50462 | Loss: 2.5955 | LR: 4.25e-04 | 14018.9ms/step | 4.3 samples/s
526
+ Step 13320/50462 | Loss: 2.5718 | LR: 4.25e-04 | 13928.2ms/step | 4.3 samples/s
527
+ Step 13330/50462 | Loss: 2.5319 | LR: 4.25e-04 | 13971.3ms/step | 4.3 samples/s
528
+ Step 13340/50462 | Loss: 2.5819 | LR: 4.25e-04 | 14135.9ms/step | 4.2 samples/s
529
+ Step 13350/50462 | Loss: 2.5790 | LR: 4.25e-04 | 14090.0ms/step | 4.3 samples/s
530
+ Step 13360/50462 | Loss: 2.5234 | LR: 4.25e-04 | 14141.1ms/step | 4.2 samples/s
531
+ Step 13370/50462 | Loss: 2.5831 | LR: 4.25e-04 | 14059.4ms/step | 4.3 samples/s
532
+ Step 13380/50462 | Loss: 2.5655 | LR: 4.25e-04 | 14040.5ms/step | 4.3 samples/s
533
+ Step 13390/50462 | Loss: 2.5655 | LR: 4.24e-04 | 14200.6ms/step | 4.2 samples/s
534
+ Step 13400/50462 | Loss: 2.5607 | LR: 4.24e-04 | 14143.4ms/step | 4.2 samples/s
535
+ Step 13410/50462 | Loss: 2.5844 | LR: 4.24e-04 | 13989.7ms/step | 4.3 samples/s
536
+ Step 13420/50462 | Loss: 2.5770 | LR: 4.24e-04 | 14109.9ms/step | 4.3 samples/s
537
+ Step 13430/50462 | Loss: 2.5838 | LR: 4.24e-04 | 13967.5ms/step | 4.3 samples/s
538
+ Step 13440/50462 | Loss: 2.5621 | LR: 4.24e-04 | 14050.6ms/step | 4.3 samples/s
539
+ Step 13450/50462 | Loss: 2.5668 | LR: 4.24e-04 | 13960.1ms/step | 4.3 samples/s
540
+ Step 13460/50462 | Loss: 2.5588 | LR: 4.24e-04 | 13962.0ms/step | 4.3 samples/s
541
+ Step 13470/50462 | Loss: 2.5556 | LR: 4.23e-04 | 13952.5ms/step | 4.3 samples/s
542
+ Step 13480/50462 | Loss: 2.5612 | LR: 4.23e-04 | 14033.8ms/step | 4.3 samples/s
543
+ Step 13490/50462 | Loss: 2.5435 | LR: 4.23e-04 | 14200.3ms/step | 4.2 samples/s
544
+ Step 13500/50462 | Loss: 2.5732 | LR: 4.23e-04 | 13919.7ms/step | 4.3 samples/s
545
+ Validation at step 13500: Loss = 2.5830, Perplexity = 13.24
546
+ Step 13510/50462 | Loss: 2.5691 | LR: 4.23e-04 | 17420.8ms/step | 3.4 samples/s
547
+ Step 13520/50462 | Loss: 2.5399 | LR: 4.23e-04 | 14372.9ms/step | 4.2 samples/s
548
+ Step 13530/50462 | Loss: 2.5754 | LR: 4.23e-04 | 14206.6ms/step | 4.2 samples/s
549
+ Step 13540/50462 | Loss: 2.6025 | LR: 4.23e-04 | 14312.2ms/step | 4.2 samples/s
550
+ Step 13550/50462 | Loss: 2.5548 | LR: 4.23e-04 | 14309.2ms/step | 4.2 samples/s
551
+ Step 13560/50462 | Loss: 2.5764 | LR: 4.22e-04 | 14257.4ms/step | 4.2 samples/s
552
+ Step 13570/50462 | Loss: 2.5783 | LR: 4.22e-04 | 14367.4ms/step | 4.2 samples/s
553
+ Step 13580/50462 | Loss: 2.5845 | LR: 4.22e-04 | 14306.6ms/step | 4.2 samples/s
554
+ Step 13590/50462 | Loss: 2.5601 | LR: 4.22e-04 | 14372.0ms/step | 4.2 samples/s
555
+ Step 13600/50462 | Loss: 2.5534 | LR: 4.22e-04 | 14273.0ms/step | 4.2 samples/s
556
+ Step 13610/50462 | Loss: 2.5714 | LR: 4.22e-04 | 14221.4ms/step | 4.2 samples/s
557
+ Step 13620/50462 | Loss: 2.5432 | LR: 4.22e-04 | 14311.3ms/step | 4.2 samples/s
558
+ Step 13630/50462 | Loss: 2.5734 | LR: 4.22e-04 | 14185.8ms/step | 4.2 samples/s
559
+ Step 13640/50462 | Loss: 2.6152 | LR: 4.22e-04 | 14269.0ms/step | 4.2 samples/s
560
+ Step 13650/50462 | Loss: 2.5486 | LR: 4.21e-04 | 14278.9ms/step | 4.2 samples/s
561
+ Step 13660/50462 | Loss: 2.5540 | LR: 4.21e-04 | 14221.4ms/step | 4.2 samples/s
562
+ Step 13670/50462 | Loss: 2.5798 | LR: 4.21e-04 | 14353.2ms/step | 4.2 samples/s
563
+ Step 13680/50462 | Loss: 2.5896 | LR: 4.21e-04 | 14339.7ms/step | 4.2 samples/s
564
+ Step 13690/50462 | Loss: 2.5659 | LR: 4.21e-04 | 14338.1ms/step | 4.2 samples/s
565
+ Step 13700/50462 | Loss: 2.6174 | LR: 4.21e-04 | 14304.7ms/step | 4.2 samples/s
566
+ Step 13710/50462 | Loss: 2.5524 | LR: 4.21e-04 | 14331.6ms/step | 4.2 samples/s
567
+ Step 13720/50462 | Loss: 2.5554 | LR: 4.21e-04 | 14414.8ms/step | 4.2 samples/s
568
+ Step 13730/50462 | Loss: 2.5403 | LR: 4.21e-04 | 14249.5ms/step | 4.2 samples/s
569
+ Step 13740/50462 | Loss: 2.5709 | LR: 4.20e-04 | 14344.5ms/step | 4.2 samples/s
570
+ Step 13750/50462 | Loss: 2.5583 | LR: 4.20e-04 | 14310.8ms/step | 4.2 samples/s
571
+ Validation at step 13750: Loss = 2.5774, Perplexity = 13.16
572
+ Step 13760/50462 | Loss: 2.5573 | LR: 4.20e-04 | 17501.0ms/step | 3.4 samples/s
573
+ Step 13770/50462 | Loss: 2.5858 | LR: 4.20e-04 | 14267.8ms/step | 4.2 samples/s
574
+ Step 13780/50462 | Loss: 2.5847 | LR: 4.20e-04 | 14237.3ms/step | 4.2 samples/s
575
+ Step 13790/50462 | Loss: 2.5463 | LR: 4.20e-04 | 14372.2ms/step | 4.2 samples/s
576
+ Step 13800/50462 | Loss: 2.5644 | LR: 4.20e-04 | 14346.7ms/step | 4.2 samples/s
577
+ Step 13810/50462 | Loss: 2.5539 | LR: 4.20e-04 | 14273.2ms/step | 4.2 samples/s
578
+ Step 13820/50462 | Loss: 2.5298 | LR: 4.19e-04 | 14352.4ms/step | 4.2 samples/s
579
+ Step 13830/50462 | Loss: 2.5386 | LR: 4.19e-04 | 14333.0ms/step | 4.2 samples/s
580
+ Step 13840/50462 | Loss: 2.5582 | LR: 4.19e-04 | 14216.5ms/step | 4.2 samples/s
581
+ Step 13850/50462 | Loss: 2.5536 | LR: 4.19e-04 | 14234.9ms/step | 4.2 samples/s
582
+ Step 13860/50462 | Loss: 2.5623 | LR: 4.19e-04 | 14233.2ms/step | 4.2 samples/s
583
+ Step 13870/50462 | Loss: 2.5580 | LR: 4.19e-04 | 14359.6ms/step | 4.2 samples/s
584
+ Step 13880/50462 | Loss: 2.5751 | LR: 4.19e-04 | 14412.0ms/step | 4.2 samples/s
585
+ Step 13890/50462 | Loss: 2.5549 | LR: 4.19e-04 | 14314.3ms/step | 4.2 samples/s
586
+ Step 13900/50462 | Loss: 2.5681 | LR: 4.19e-04 | 14389.9ms/step | 4.2 samples/s
587
+ Step 13910/50462 | Loss: 2.5807 | LR: 4.18e-04 | 14233.7ms/step | 4.2 samples/s
588
+ Step 13920/50462 | Loss: 2.5907 | LR: 4.18e-04 | 14226.5ms/step | 4.2 samples/s
589
+ Step 13930/50462 | Loss: 2.5716 | LR: 4.18e-04 | 14151.3ms/step | 4.2 samples/s
590
+ Step 13940/50462 | Loss: 2.5529 | LR: 4.18e-04 | 14308.7ms/step | 4.2 samples/s
591
+ Step 13950/50462 | Loss: 2.5273 | LR: 4.18e-04 | 14337.3ms/step | 4.2 samples/s
epfl_final/train_logs/resume_moba30k_h100_2-0-5.log ADDED
The diff for this file is too large to render. See raw diff
 
epfl_final/train_logs/resume_moba30k_h100_2-0-6.log ADDED
The diff for this file is too large to render. See raw diff
 
epfl_final/train_logs/resume_moba_matched_h100_0-3.log ADDED
The diff for this file is too large to render. See raw diff
 
epfl_final/train_logs/wait_1p2b_30k_mixed_after_moba.log ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ 2026-07-20T07:15:35Z waiter start pid=101422 latest_moba_step=28200
2
+ 2026-07-20T07:17:47Z waiter start pid=101557 latest_moba_step=28200
3
+ 2026-07-21T01:59:37Z waiter start pid=145 latest_moba_step=35400
4
+ 2026-07-21T05:57:01Z MoBA complete; launching native-30k 1.2B Mixed
5
+ 2026-07-21T05:57:01Z Mixed watchdog pid=15034
epfl_final/train_logs/wait_1p2b_30k_mixed_after_moba.supervisor.log ADDED
File without changes
epfl_final/train_logs/watchdog_generic_fork.sh ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # Persistent in-pod training watchdog.
3
+ # Relaunches torchrun (auto-resumes from latest checkpoint) ONLY when the run is
4
+ # truly dead: GPU compute apps == 0 AND no matching train procs, sustained.
5
+ # Exits (stops watching) once the run has completed.
6
+ # Args: JOB CONFIG OUTPUT_DIR PROC_PAT TOTAL [NPROC]
7
+ set -u
8
+ JOB="$1"; CFG="$2"; OUTDIR="$3"; PROC_PAT="$4"; TOTAL="$5"; NPROC="${6:-4}"
9
+ BASE=/mloscratch/homes/navasard/sparse
10
+ SPA="$BASE/SparseAtt-baselines"
11
+ TR=/mloscratch/homes/navasard/conda/bin/torchrun
12
+ export HF_HOME=/mloscratch/homes/navasard/hf_cache
13
+ WLOG="$BASE/train_logs/wd_${JOB}.watch.log"
14
+ RUNLOG="$BASE/train_logs/wd_${JOB}.run.log"
15
+ LOCK="$BASE/train_logs/wd_${JOB}.lock"
16
+ DOWN_THRESHOLD=10 # x30s = 5 min sustained-dead before relaunch
17
+
18
+ log(){ echo "$(date -u +%Y-%m-%dT%H:%M:%SZ) $*" >> "$WLOG"; }
19
+
20
+ # ---- singleton guard ----
21
+ if [ -f "$LOCK" ]; then
22
+ oldpid=$(cat "$LOCK" 2>/dev/null || true)
23
+ if [ -n "${oldpid:-}" ] && kill -0 "$oldpid" 2>/dev/null; then
24
+ log "duplicate start: watchdog already running pid=$oldpid; exiting"; exit 0
25
+ fi
26
+ fi
27
+ echo $$ > "$LOCK"
28
+ log "=== watchdog start pid=$$ job=$JOB cfg=$CFG total=$TOTAL nproc=$NPROC ==="
29
+
30
+ latest_ckpt_step(){
31
+ ls -1d "$OUTDIR"/run_*/checkpoint-* 2>/dev/null \
32
+ | sed -E 's#.*/checkpoint-##' | grep -E '^[0-9]+$' | sort -n | tail -1
33
+ }
34
+
35
+ is_complete(){
36
+ # 1) explicit completion marker in any of this job's run logs
37
+ if grep -qs "Training complete!" "$BASE"/train_logs/*"${JOB}"*.log 2>/dev/null; then return 0; fi
38
+ # 2) a checkpoint at/after the final step exists
39
+ local s; s=$(latest_ckpt_step)
40
+ if [ -n "${s:-}" ] && [ "$s" -ge "$TOTAL" ] 2>/dev/null; then return 0; fi
41
+ return 1
42
+ }
43
+
44
+ n_procs(){ pgrep -f "$PROC_PAT" 2>/dev/null | grep -c '[0-9]'; }
45
+ n_gpu_apps(){ nvidia-smi --query-compute-apps=pid --format=csv,noheader 2>/dev/null | grep -c '[0-9]'; }
46
+
47
+ relaunch(){
48
+ cd "$SPA" || { log "ERR cd $SPA failed"; return 1; }
49
+ log "RELAUNCH torchrun nproc=$NPROC cfg=$CFG (latest ckpt step=$(latest_ckpt_step))"
50
+ setsid nohup "$TR" --standalone --nproc_per_node="$NPROC" train.py --config "$CFG" \
51
+ >> "$RUNLOG" 2>&1 < /dev/null &
52
+ sleep 240
53
+ if [ "$(n_procs)" -ge 1 ] && { [ "$(n_gpu_apps)" -ge 1 ] \
54
+ || grep -qE "Step [0-9]+/|Resuming from checkpoint|Starting training|New run:" "$RUNLOG" 2>/dev/null; }; then
55
+ log "RELAUNCH OK (procs=$(n_procs) gpu_apps=$(n_gpu_apps))"; return 0
56
+ fi
57
+ log "RELAUNCH FAILED (procs=$(n_procs) gpu_apps=$(n_gpu_apps)); runlog tail:"
58
+ tail -n 8 "$RUNLOG" >> "$WLOG" 2>/dev/null
59
+ return 1
60
+ }
61
+
62
+ zero=0
63
+ while true; do
64
+ if is_complete; then log "COMPLETE detected (ckpt step=$(latest_ckpt_step)); watchdog exiting"; rm -f "$LOCK"; exit 0; fi
65
+ procs=$(n_procs); apps=$(n_gpu_apps)
66
+ if [ "$procs" -eq 0 ] && [ "$apps" -eq 0 ]; then zero=$((zero+1)); else zero=0; fi
67
+ if [ "$zero" -ge "$DOWN_THRESHOLD" ]; then
68
+ log "SUSTAINED DEAD (${DOWN_THRESHOLD}x30s: procs=0 gpu_apps=0)"
69
+ if is_complete; then log "actually complete; exit"; rm -f "$LOCK"; exit 0; fi
70
+ ok=0
71
+ for a in 1 2 3; do
72
+ if relaunch; then ok=1; break; fi
73
+ log "relaunch attempt $a failed; retry in 60s"; sleep 60
74
+ done
75
+ [ "$ok" -eq 1 ] && log "recovered" || log "!!! RELAUNCH EXHAUSTED - manual action needed !!!"
76
+ zero=0
77
+ fi
78
+ sleep 30
79
+ done
epfl_final/train_logs/watchdog_mixed_training.sh ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ set -u
3
+
4
+ JOB="$1"
5
+ CFG="$2"
6
+ OUTDIR="$3"
7
+ TOTAL="$4"
8
+ GPUSET="$5"
9
+ NPROC="$6"
10
+
11
+ BASE=/mloscratch/homes/navasard/sparse
12
+ REPO="$BASE/SparseAtt-baselines"
13
+ TORCHRUN=/mloscratch/homes/navasard/conda/bin/torchrun
14
+ WLOG="$BASE/train_logs/${JOB}.watch.log"
15
+ RUNLOG="$BASE/train_logs/${JOB}.run.log"
16
+ LOCK="$BASE/train_logs/${JOB}.lock"
17
+ PROC_PAT="train.py --config $CFG"
18
+
19
+ export HF_HOME=/mloscratch/homes/navasard/hf_cache
20
+
21
+ log() {
22
+ echo "$(date -u +%Y-%m-%dT%H:%M:%SZ) $*" >> "$WLOG"
23
+ }
24
+
25
+ latest_step() {
26
+ ls -1d "$OUTDIR"/run_*/checkpoint-* 2>/dev/null |
27
+ sed -E 's#.*/checkpoint-##' |
28
+ grep -E '^[0-9]+$' |
29
+ sort -n |
30
+ tail -1
31
+ }
32
+
33
+ is_complete() {
34
+ if grep -qs "Training complete!" "$RUNLOG" 2>/dev/null; then
35
+ return 0
36
+ fi
37
+ local step
38
+ step=$(latest_step)
39
+ [ -n "${step:-}" ] && [ "$step" -ge "$TOTAL" ] 2>/dev/null
40
+ }
41
+
42
+ process_count() {
43
+ pgrep -f "$PROC_PAT" 2>/dev/null | grep -c '[0-9]'
44
+ }
45
+
46
+ launch() {
47
+ cd "$REPO" || return 1
48
+ log "launch GPUs=$GPUSET nproc=$NPROC latest_step=$(latest_step)"
49
+ setsid nohup env CUDA_VISIBLE_DEVICES="$GPUSET" \
50
+ "$TORCHRUN" --standalone --nproc_per_node="$NPROC" \
51
+ train.py --config "$CFG" >> "$RUNLOG" 2>&1 < /dev/null &
52
+ }
53
+
54
+ if [ -f "$LOCK" ]; then
55
+ old_pid=$(cat "$LOCK" 2>/dev/null || true)
56
+ if [ -n "${old_pid:-}" ] && kill -0 "$old_pid" 2>/dev/null; then
57
+ exit 0
58
+ fi
59
+ fi
60
+
61
+ echo $$ > "$LOCK"
62
+ log "watchdog start pid=$$"
63
+
64
+ if [ "$(process_count)" -eq 0 ] && ! is_complete; then
65
+ launch
66
+ fi
67
+
68
+ dead_checks=0
69
+ while true; do
70
+ if is_complete; then
71
+ log "complete latest_step=$(latest_step)"
72
+ rm -f "$LOCK"
73
+ exit 0
74
+ fi
75
+
76
+ if [ "$(process_count)" -eq 0 ]; then
77
+ dead_checks=$((dead_checks + 1))
78
+ else
79
+ dead_checks=0
80
+ fi
81
+
82
+ if [ "$dead_checks" -ge 10 ]; then
83
+ log "process absent for 5 minutes; relaunching"
84
+ launch
85
+ dead_checks=0
86
+ fi
87
+ sleep 30
88
+ done
epfl_final/train_logs/wd_moba30k.watch.log ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ 2026-07-17T23:42:59Z === watchdog start pid=125853 job=moba30k cfg=configs/train_config_30k_moba_b128.json total=37465 nproc=4 ===
2
+ 2026-07-18T01:55:15Z === watchdog start pid=129870 job=moba30k cfg=configs/train_config_30k_moba_b128.json total=37465 nproc=4 ===
3
+ 2026-07-18T03:17:12Z === watchdog start pid=716 job=moba30k cfg=configs/train_config_30k_moba_b128.json total=37465 nproc=4 ===
4
+ 2026-07-21T01:59:37Z === watchdog start pid=144 job=moba30k cfg=configs/train_config_30k_moba_b128.json total=37465 nproc=4 ===
5
+ 2026-07-21T05:56:47Z COMPLETE detected (ckpt step=37465); watchdog exiting
epfl_final/train_logs/wd_moba_matched.watch.log ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ 2026-07-13T19:57:29Z === watchdog start pid=97404 job=moba_matched cfg=configs/ladder8k/moba_1p2b_matched.json total=50462 nproc=3 ===
2
+ 2026-07-15T22:15:55Z COMPLETE detected (ckpt step=50462); watchdog exiting
epfl_final/train_logs/wd_resampled4b.lock ADDED
@@ -0,0 +1 @@
 
 
1
+ 163
epfl_final/train_logs/wd_resampled4b.watch.log ADDED
@@ -0,0 +1 @@
 
 
1
+ 2026-07-17T23:36:29Z === watchdog start pid=163 job=resampled4b cfg=configs/ladder8k/resampled_4b.json total=50462 nproc=4 ===