Orosius commited on
Commit
3ea9781
·
verified ·
1 Parent(s): 5ede6f9

Add checkpoint: 10,000,375,808 tokens, val_loss=2.9304

Browse files
checkpoint_tokens_10000M_loss_2.9304/README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - swamla
5
+ - sliding-window-attention
6
+ - multi-head-latent-attention
7
+ - pytorch
8
+ - causal-lm
9
+ ---
10
+
11
+ # SWA-MLA Model Checkpoint
12
+
13
+ **Training Progress:**
14
+ - Total tokens processed: 10,000,375,808
15
+ - Validation loss: 2.9304
16
+ - Perplexity: 18.74
17
+
18
+ This is an automatic checkpoint uploaded during training when validation loss improved.
19
+
20
+ ## Model Architecture
21
+ Hybrid architecture combining:
22
+ - **GatedDeltaNet** blocks for O(n) linear attention (local context)
23
+ - **Multi-head Latent Attention (MLA)** blocks for global context with KV compression
24
+ - **LatentMoE** for efficient mixture-of-experts in latent space
25
+
26
+ ## Model Configuration
27
+ - Size: engram-moe-1b
28
+ - Block size (context length): 2048
29
+ - DeltaNet layers per cycle: 2
30
+ - MLA layers per cycle: 1
31
+ - MLA KV LoRA rank: 256
32
+
33
+ ## Loading the Model
34
+ ```python
35
+ import torch
36
+ from transformers import AutoTokenizer
37
+
38
+ # Load tokenizer
39
+ tokenizer = AutoTokenizer.from_pretrained("Orosius/conatus", subfolder="checkpoint_tokens_10000M_loss_2.9304")
40
+
41
+ # Load model checkpoint
42
+ checkpoint = torch.hub.load_state_dict_from_url(
43
+ f"https://huggingface.co/Orosius/conatus/resolve/main/checkpoint_tokens_10000M_loss_2.9304/pytorch_model.bin",
44
+ map_location="cpu"
45
+ )
46
+
47
+ # You'll need the SWA-MLA model code to instantiate the model
48
+ # See: https://github.com/yourusername/swamla for the model implementation
49
+ ```
50
+
51
+ ## Training Details
52
+ - Optimizer: muon
53
+ - Learning rate: 0.0001
54
+ - Batch size: 48
55
+ - Gradient accumulation: 1
56
+
57
+ ---
58
+ Generated with [SWA-MLA](https://github.com/yourusername/swamla)
checkpoint_tokens_10000M_loss_2.9304/config.json ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "swa_mla",
3
+ "total_tokens": 10000375808,
4
+ "val_loss": 2.9304128551483153,
5
+ "training_config": {
6
+ "size": "engram-moe-1b",
7
+ "batch_size": 48,
8
+ "block_size": 2048,
9
+ "dropout": 0.0,
10
+ "local_layers_per_cycle": 2,
11
+ "mla_layers_per_cycle": 1,
12
+ "mla_q_lora_rank": 0,
13
+ "mla_kv_lora_rank": 256,
14
+ "mla_qk_nope_head_dim": 128,
15
+ "mla_qk_rope_head_dim": 64,
16
+ "mla_v_head_dim": 128,
17
+ "cudnn_compatible_heads": true,
18
+ "use_cudnn_sdpa": false,
19
+ "force_cudnn_sdpa": false,
20
+ "use_flash_attention": false,
21
+ "use_triton_mla": false,
22
+ "use_triton_kernels": true,
23
+ "use_gated_deltanet": true,
24
+ "deltanet_latent_dim": 0,
25
+ "deltanet_share_qk": false,
26
+ "use_engram": true,
27
+ "engram_layers": "2,6",
28
+ "engram_d_mem": 512,
29
+ "engram_n_hash_heads": 8,
30
+ "engram_ngram_orders": "2,3",
31
+ "engram_conv_kernel": 4,
32
+ "engram_lr_multiplier": 5.0,
33
+ "use_mup": true,
34
+ "mup_base_width": 256,
35
+ "use_progressive": false,
36
+ "progressive_schedule": "512:500M,1024:2B,2048:inf",
37
+ "use_ema": true,
38
+ "ema_decay": 0.9999,
39
+ "yarn_enabled": true,
40
+ "yarn_scale_factor": 1.0,
41
+ "yarn_original_max_seq_len": 2048,
42
+ "yarn_beta_fast": 32.0,
43
+ "yarn_beta_slow": 1.0,
44
+ "yarn_attn_factor": null,
45
+ "fope_enabled": true,
46
+ "fope_n_harmonics": 4,
47
+ "fope_floor_ratio": 0.1,
48
+ "fope_coef_init_std": 0.3,
49
+ "use_residual_scalars": true,
50
+ "x0_lr": 0.5,
51
+ "resid_lr": 0.005,
52
+ "x0_beta1": 0.96,
53
+ "use_moe": true,
54
+ "use_latent_moe": true,
55
+ "n_experts": 64,
56
+ "n_shared_experts": 1,
57
+ "n_activated": 2,
58
+ "expert_dim": null,
59
+ "router_z_loss_coef": 0.001,
60
+ "latent_ratio": 4,
61
+ "latent_dim": null,
62
+ "latent_n_experts": null,
63
+ "latent_n_activated": null,
64
+ "latent_preserve_expert_dim": true,
65
+ "max_iters": 1000000,
66
+ "learning_rate": 0.0001,
67
+ "min_lr": 1e-05,
68
+ "weight_decay": 0.1,
69
+ "beta1": 0.9,
70
+ "beta2": 0.95,
71
+ "warmup_iters": 400,
72
+ "grad_clip": 1.0,
73
+ "gradient_accumulation_steps": 1,
74
+ "gradient_checkpointing": true,
75
+ "optimizer_type": "muon",
76
+ "cautious_wd": true,
77
+ "wd_schedule": true,
78
+ "tokenizer_name": "openai-community/gpt2",
79
+ "num_workers": 8,
80
+ "use_bestfit_crop": true,
81
+ "output_dir": "outputs/full",
82
+ "log_interval": 50,
83
+ "eval_tokens": "500M",
84
+ "save_tokens": "500M",
85
+ "wandb_project": "swamla",
86
+ "wandb_run_name": null,
87
+ "hf_repo_id": "Orosius/conatus",
88
+ "resume_from_hf": true,
89
+ "resume_from": null,
90
+ "compile": true,
91
+ "compile_mode": "default",
92
+ "fp8_backend": "auto",
93
+ "use_fp8": false,
94
+ "use_tensorboard": false,
95
+ "use_wedlm": false,
96
+ "wedlm_block_size": 32,
97
+ "wedlm_min_mask_ratio": 0.1,
98
+ "wedlm_max_mask_ratio": 1.0,
99
+ "wedlm_ar_loss_weight": 0.5,
100
+ "wedlm_mask_token_id": null,
101
+ "profile": false,
102
+ "profile_steps": 5,
103
+ "profile_warmup": 2
104
+ }
105
+ }
checkpoint_tokens_10000M_loss_2.9304/pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d74c55bfe3cb5b44be6d14426174dc66f5eb88a9bbbad5d45c449c9798724f00
3
+ size 6526277979
checkpoint_tokens_10000M_loss_2.9304/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
checkpoint_tokens_10000M_loss_2.9304/tokenizer_config.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<|endoftext|>",
5
+ "eos_token": "<|endoftext|>",
6
+ "errors": "replace",
7
+ "is_local": false,
8
+ "model_max_length": 2048,
9
+ "pad_token": "<|endoftext|>",
10
+ "tokenizer_class": "GPT2Tokenizer",
11
+ "unk_token": "<|endoftext|>"
12
+ }