Add base checkpoint (step 2162)
Browse files- README.md +19 -0
- meta_002162.json +77 -0
- model_002162.pt +3 -0
- tokenizer/token_bytes.pt +3 -0
- tokenizer/tokenizer.pkl +3 -0
README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+
# lfm2-quantum-128m (base checkpoint, step 2162)
|
| 6 |
+
|
| 7 |
+
LFM2-style hybrid quantum GPT, budget tier, trained with
|
| 8 |
+
[Quantum-GPT](https://github.com) `runs/run_lfm2_quantum_mini.sh`.
|
| 9 |
+
|
| 10 |
+
- 16 layers (10 gated short-conv + 6 GQA attention, conv-first)
|
| 11 |
+
- n_embd=1024, 16 query heads / 8 KV heads (GQA), seq_len 1024
|
| 12 |
+
- vocab_size 32768
|
| 13 |
+
- Quantum feed-forward network in every block (4 qubits, depth 2)
|
| 14 |
+
- RoPE theta 1e6, value embeddings disabled
|
| 15 |
+
|
| 16 |
+
This is a **base** (pretrained, not instruction-tuned) checkpoint at step 2162
|
| 17 |
+
(final step of pretraining). `meta_002162.json` has the full model/training config.
|
| 18 |
+
`tokenizer/` contains the matching BPE tokenizer (`tokenizer.pkl`) and token-byte
|
| 19 |
+
table (`token_bytes.pt`) needed to reproduce BPB evaluation.
|
meta_002162.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"step": 2162,
|
| 3 |
+
"val_bpb": 0.9221935981158367,
|
| 4 |
+
"model_config": {
|
| 5 |
+
"sequence_len": 1024,
|
| 6 |
+
"vocab_size": 32768,
|
| 7 |
+
"n_layer": 16,
|
| 8 |
+
"n_head": 16,
|
| 9 |
+
"n_kv_head": 8,
|
| 10 |
+
"n_embd": 1024,
|
| 11 |
+
"mlp_type": "quantum",
|
| 12 |
+
"quantum_num_qubits": 4,
|
| 13 |
+
"quantum_depth": 2,
|
| 14 |
+
"window_pattern": "L",
|
| 15 |
+
"mixer_pattern": "CCCCCCCCCCAAAAAA",
|
| 16 |
+
"conv_kernel": 3,
|
| 17 |
+
"rope_theta": 1000000.0,
|
| 18 |
+
"ffn_pattern": "",
|
| 19 |
+
"use_value_embeddings": false
|
| 20 |
+
},
|
| 21 |
+
"user_config": {
|
| 22 |
+
"run": "lfm2-quantum-128m",
|
| 23 |
+
"device_type": "",
|
| 24 |
+
"fp8": false,
|
| 25 |
+
"fp8_recipe": "tensorwise",
|
| 26 |
+
"depth": 16,
|
| 27 |
+
"aspect_ratio": 64,
|
| 28 |
+
"head_dim": 64,
|
| 29 |
+
"max_seq_len": 1024,
|
| 30 |
+
"window_pattern": "L",
|
| 31 |
+
"mlp_type": "quantum",
|
| 32 |
+
"quantum_num_qubits": 4,
|
| 33 |
+
"quantum_depth": 2,
|
| 34 |
+
"mixer_pattern": "CCCCCCCCCCAAAAAA",
|
| 35 |
+
"conv_kernel": 3,
|
| 36 |
+
"rope_theta": 1000000.0,
|
| 37 |
+
"ffn_pattern": "",
|
| 38 |
+
"n_kv_head": 8,
|
| 39 |
+
"disable_value_embeds": true,
|
| 40 |
+
"gradient_checkpointing": true,
|
| 41 |
+
"num_iterations": -1,
|
| 42 |
+
"target_flops": -1.0,
|
| 43 |
+
"target_param_data_ratio": 12.0,
|
| 44 |
+
"device_batch_size": 16,
|
| 45 |
+
"total_batch_size": -1,
|
| 46 |
+
"embedding_lr": 0.3,
|
| 47 |
+
"unembedding_lr": 0.008,
|
| 48 |
+
"weight_decay": 0.28,
|
| 49 |
+
"matrix_lr": 0.02,
|
| 50 |
+
"muon_group_size": 8,
|
| 51 |
+
"scalar_lr": 0.5,
|
| 52 |
+
"warmup_steps": 40,
|
| 53 |
+
"warmdown_ratio": 0.2,
|
| 54 |
+
"final_lr_frac": 0.1,
|
| 55 |
+
"resume_from_step": -1,
|
| 56 |
+
"eval_every": 250,
|
| 57 |
+
"eval_tokens": 1048576,
|
| 58 |
+
"core_metric_every": -1,
|
| 59 |
+
"core_metric_max_per_task": 500,
|
| 60 |
+
"sample_every": -1,
|
| 61 |
+
"save_every": 250,
|
| 62 |
+
"model_tag": "lfm2-quantum-128m"
|
| 63 |
+
},
|
| 64 |
+
"device_batch_size": 16,
|
| 65 |
+
"max_seq_len": 1024,
|
| 66 |
+
"total_batch_size": 524288,
|
| 67 |
+
"dataloader_state_dict": {
|
| 68 |
+
"pq_idx": 28,
|
| 69 |
+
"rg_idx": 32,
|
| 70 |
+
"epoch": 1
|
| 71 |
+
},
|
| 72 |
+
"loop_state": {
|
| 73 |
+
"min_val_bpb": 0.9221935981158367,
|
| 74 |
+
"smooth_train_loss": 3.03223018311102,
|
| 75 |
+
"total_training_time": 50648.47665858269
|
| 76 |
+
}
|
| 77 |
+
}
|
model_002162.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:924c928581545cbd084392f689222d180af42870f91f08d572d147981c73b167
|
| 3 |
+
size 445164484
|
tokenizer/token_bytes.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0bae8cf2ec0dc77c382412f9eb4ed74681d38f6453b1f378d8251ea32192844d
|
| 3 |
+
size 132649
|
tokenizer/tokenizer.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ae73c5f7a960edc56022dfd46a653df2b9b38d84456e5e9f48eb5e02a60c21c2
|
| 3 |
+
size 412126
|