hanz0212 commited on
Commit
b3dd6bd
·
verified ·
1 Parent(s): 78202c8

Release 15 DAMI paper checkpoints and model card

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. LICENSE +21 -0
  2. README.md +83 -0
  3. checkpoints/main_gdn2_DAMI/config.json +47 -0
  4. checkpoints/main_gdn2_DAMI/generation_config.json +10 -0
  5. checkpoints/main_gdn2_DAMI/model.safetensors +3 -0
  6. checkpoints/main_gdn2_DAMI/tokenizer.json +0 -0
  7. checkpoints/main_gdn2_DAMI/tokenizer_config.json +16 -0
  8. checkpoints/main_gdn2_PoST/config.json +46 -0
  9. checkpoints/main_gdn2_PoST/generation_config.json +10 -0
  10. checkpoints/main_gdn2_PoST/model.safetensors +3 -0
  11. checkpoints/main_gdn2_PoST/tokenizer.json +0 -0
  12. checkpoints/main_gdn2_PoST/tokenizer_config.json +16 -0
  13. checkpoints/main_gdn2_random/config.json +46 -0
  14. checkpoints/main_gdn2_random/generation_config.json +10 -0
  15. checkpoints/main_gdn2_random/model.safetensors +3 -0
  16. checkpoints/main_gdn2_random/tokenizer.json +0 -0
  17. checkpoints/main_gdn2_random/tokenizer_config.json +16 -0
  18. checkpoints/main_gdn_DAMI/config.json +42 -0
  19. checkpoints/main_gdn_DAMI/generation_config.json +10 -0
  20. checkpoints/main_gdn_DAMI/model.safetensors +3 -0
  21. checkpoints/main_gdn_DAMI/tokenizer.json +0 -0
  22. checkpoints/main_gdn_DAMI/tokenizer_config.json +16 -0
  23. checkpoints/main_gdn_PoST/config.json +42 -0
  24. checkpoints/main_gdn_PoST/generation_config.json +10 -0
  25. checkpoints/main_gdn_PoST/model.safetensors +3 -0
  26. checkpoints/main_gdn_PoST/tokenizer.json +0 -0
  27. checkpoints/main_gdn_PoST/tokenizer_config.json +16 -0
  28. checkpoints/main_gdn_random/config.json +42 -0
  29. checkpoints/main_gdn_random/generation_config.json +10 -0
  30. checkpoints/main_gdn_random/model.safetensors +3 -0
  31. checkpoints/main_gdn_random/tokenizer.json +0 -0
  32. checkpoints/main_gdn_random/tokenizer_config.json +16 -0
  33. checkpoints/main_kda_DAMI/config.json +49 -0
  34. checkpoints/main_kda_DAMI/generation_config.json +10 -0
  35. checkpoints/main_kda_DAMI/model.safetensors +3 -0
  36. checkpoints/main_kda_DAMI/tokenizer.json +0 -0
  37. checkpoints/main_kda_DAMI/tokenizer_config.json +16 -0
  38. checkpoints/main_kda_PoST/config.json +47 -0
  39. checkpoints/main_kda_PoST/generation_config.json +10 -0
  40. checkpoints/main_kda_PoST/model.safetensors +3 -0
  41. checkpoints/main_kda_PoST/tokenizer.json +0 -0
  42. checkpoints/main_kda_PoST/tokenizer_config.json +16 -0
  43. checkpoints/main_kda_random/config.json +52 -0
  44. checkpoints/main_kda_random/generation_config.json +10 -0
  45. checkpoints/main_kda_random/model.safetensors +3 -0
  46. checkpoints/main_kda_random/tokenizer.json +0 -0
  47. checkpoints/main_kda_random/tokenizer_config.json +16 -0
  48. checkpoints/main_mamba2_DAMI/config.json +58 -0
  49. checkpoints/main_mamba2_DAMI/generation_config.json +10 -0
  50. checkpoints/main_mamba2_DAMI/model.safetensors +3 -0
LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2026 DAMI authors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
README.md CHANGED
@@ -1,3 +1,86 @@
1
  ---
2
  license: mit
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: mit
3
+ language:
4
+ - en
5
+ tags:
6
+ - dami
7
+ - linear-attention
8
+ - long-context
9
+ - initialization
10
+ - ruler
11
  ---
12
+
13
+ # DAMI: Dual-Axis Memory Initialization for Enhanced Long-Context Retrieval in Gated Linear Attention
14
+
15
+ Zhangchi Feng · Harry Jiang · Yangyifei Luo · Ray Zhang · Richong Zhang
16
+
17
+ [Project page](https://speedai.com/research/dami) · [Code, evaluation data and scripts](https://cnb.cool/speed-ai/research/DAMI)
18
+
19
+ DAMI allocates memory timescales across heads and input responses across layers to improve long-context retrieval. This repository contains the 15 paper checkpoints: five architectures (GDN, KDA, GDN2, Mamba-2, RWKV-7) with three initialization conditions (Random, PoST, DAMI). Each model has approximately 100M parameters and was trained for approximately 5B tokens with a 4096-token training context.
20
+
21
+ ## Checkpoints
22
+
23
+ All checkpoints are stored under `checkpoints/`, using the directory names below. Each directory contains the full model weights (`model.safetensors`), `config.json`, `generation_config.json`, `tokenizer.json`, and `tokenizer_config.json`.
24
+
25
+ | Architecture | Random | PoST | DAMI |
26
+ | --- | --- | --- | --- |
27
+ | GDN | `main_gdn_random` | `main_gdn_PoST` | `main_gdn_DAMI` |
28
+ | KDA | `main_kda_random` | `main_kda_PoST` | `main_kda_DAMI` |
29
+ | GDN2 | `main_gdn2_random` | `main_gdn2_PoST` | `main_gdn2_DAMI` |
30
+ | Mamba-2 | `main_mamba2_random` | `main_mamba2_PoST` | `main_mamba2_DAMI` |
31
+ | RWKV-7 | `main_rwkv7_random` | `main_rwkv7_PoST` | `main_rwkv7_DAMI` |
32
+
33
+ ## Download and evaluation
34
+
35
+ Clone the code repository and install its dependencies as described in its README. From the code repository root, download the checkpoints:
36
+
37
+ ```python
38
+ from huggingface_hub import snapshot_download
39
+
40
+ snapshot_download(
41
+ repo_id="SpeedAI-Lab/DAMI",
42
+ local_dir=".",
43
+ allow_patterns=["checkpoints/**"],
44
+ )
45
+ ```
46
+
47
+ To download only GDN + DAMI, use `allow_patterns=["checkpoints/main_gdn_DAMI/*"]`. Access to this repository requires authentication while it is private.
48
+
49
+ Run all 15 checkpoints on the fixed RULER evaluation data in Linux/WSL with CUDA:
50
+
51
+ ```bash
52
+ python evaluate_ruler.py --preflight --all --models-root checkpoints
53
+ python evaluate_ruler.py --all --models-root checkpoints \
54
+ --output-dir outputs/ruler-retest --skip-done
55
+ ```
56
+
57
+ For a single checkpoint, replace `--all` with `--architecture gdn --initialization dami`. The evaluator includes the architecture-specific FLA and RWKV adaptations required by these checkpoints; use the provided loading path for evaluation.
58
+
59
+ The code repository includes 5,500 fixed samples across 11 RULER task/length settings and 82,500 original predictions. Evaluation uses greedy decoding with up to 128 new tokens. Scores use case-insensitive answer containment; the average weights all 11 settings equally.
60
+
61
+ ## RULER results
62
+
63
+ Average accuracy (%), as reported in the paper:
64
+
65
+ | Architecture | Random | PoST | DAMI |
66
+ | --- | ---: | ---: | ---: |
67
+ | GDN | 30.42 | 33.49 | 44.36 |
68
+ | KDA | 26.38 | 33.67 | 43.09 |
69
+ | GDN2 | 30.27 | 33.47 | 43.71 |
70
+ | Mamba-2 | 9.95 | 13.73 | 24.42 |
71
+ | RWKV-7 | 23.87 | 20.69 | 29.16 |
72
+
73
+ ## Citation
74
+
75
+ ```bibtex
76
+ @misc{feng2026dami,
77
+ title={DAMI: Dual-Axis Memory Initialization for Enhanced Long-Context Retrieval in Gated Linear Attention},
78
+ author={Feng, Zhangchi and Jiang, Harry and Luo, Yangyifei and Zhang, Ray and Zhang, Richong},
79
+ year={2026},
80
+ url={https://speedai.com/research/dami}
81
+ }
82
+ ```
83
+
84
+ ## License
85
+
86
+ These checkpoints are released under the MIT License. See the LICENSE file. Benchmark attribution and data notices are provided in the code repository.
checkpoints/main_gdn2_DAMI/config.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "allow_neg_eigval": false,
3
+ "architectures": [
4
+ "GDN2ForCausalLM"
5
+ ],
6
+ "attn": null,
7
+ "attn_mode": "chunk",
8
+ "attnres_block_size": null,
9
+ "bos_token_id": 1,
10
+ "conv_size": 4,
11
+ "dtype": "float32",
12
+ "eos_token_id": 2,
13
+ "expand_v": 2,
14
+ "fuse_cross_entropy": true,
15
+ "fuse_linear_cross_entropy": false,
16
+ "fuse_norm": true,
17
+ "fuse_swiglu": true,
18
+ "head_dim": 64,
19
+ "head_init_design": null,
20
+ "hidden_act": "swish",
21
+ "hidden_ratio": 4,
22
+ "hidden_size": 512,
23
+ "initialization_manifest": {
24
+ "A_log_rule": "GDN v3_layerdt3 design target A_log (PoST tau by head + layerwise sensitivity)",
25
+ "design_config": "/root/linear-attention/flame/configs/gated_deltanet_100M_v3_layerdt3_a.json",
26
+ "dt_bias_rule": "head means aligned to gdn_v3_layerdt3 with deterministic small channel noise; channel_std=0.03",
27
+ "experiment": "v5_layerdt3_b",
28
+ "family": "GDN2",
29
+ "gdn_source_csv": null
30
+ },
31
+ "initializer_range": 0.02,
32
+ "intermediate_size": null,
33
+ "max_position_embeddings": 4096,
34
+ "model_type": "gdn2",
35
+ "norm_eps": 1e-06,
36
+ "num_heads": 6,
37
+ "num_hidden_layers": 18,
38
+ "num_v_heads": 6,
39
+ "pad_token_id": 0,
40
+ "tie_word_embeddings": false,
41
+ "transformers_version": "5.9.0",
42
+ "use_cache": true,
43
+ "use_gate": true,
44
+ "use_l2warp": false,
45
+ "use_short_conv": true,
46
+ "vocab_size": 32000
47
+ }
checkpoints/main_gdn2_DAMI/generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "output_attentions": false,
6
+ "output_hidden_states": false,
7
+ "pad_token_id": 0,
8
+ "transformers_version": "5.9.0",
9
+ "use_cache": true
10
+ }
checkpoints/main_gdn2_DAMI/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e5e93f40b6c97da4ca97dd039a2398db8b9db91d483336590735be783cdc1bb6
3
+ size 449050472
checkpoints/main_gdn2_DAMI/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
checkpoints/main_gdn2_DAMI/tokenizer_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": null,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<s>",
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "</s>",
7
+ "is_local": false,
8
+ "local_files_only": false,
9
+ "model_max_length": 1000000000000000019884624838656,
10
+ "pad_token": null,
11
+ "padding_side": "right",
12
+ "sp_model_kwargs": {},
13
+ "tokenizer_class": "LlamaTokenizer",
14
+ "unk_token": "<unk>",
15
+ "use_default_system_prompt": false
16
+ }
checkpoints/main_gdn2_PoST/config.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "allow_neg_eigval": false,
3
+ "architectures": [
4
+ "GDN2ForCausalLM"
5
+ ],
6
+ "attn": null,
7
+ "attn_mode": "chunk",
8
+ "attnres_block_size": null,
9
+ "bos_token_id": 1,
10
+ "conv_size": 4,
11
+ "dtype": "float32",
12
+ "eos_token_id": 2,
13
+ "expand_v": 2,
14
+ "fuse_cross_entropy": true,
15
+ "fuse_linear_cross_entropy": false,
16
+ "fuse_norm": true,
17
+ "fuse_swiglu": true,
18
+ "head_dim": 64,
19
+ "head_init_design": null,
20
+ "hidden_act": "swish",
21
+ "hidden_ratio": 4,
22
+ "hidden_size": 512,
23
+ "initialization_manifest": {
24
+ "A_log_rule": "PoST head-column values; all other tensors copied from the same seeded base initialization",
25
+ "dt_bias_rule": "GDN-aligned head means with deterministic small channel noise; channel_std=0.03",
26
+ "experiment": "v5_post_a",
27
+ "family": "GDN2",
28
+ "gdn_source_csv": "/root/checkpoints/gdn/training/gdn100m-v3-random-5b-v3_random_a/initial_head_params.csv"
29
+ },
30
+ "initializer_range": 0.02,
31
+ "intermediate_size": null,
32
+ "max_position_embeddings": 4096,
33
+ "model_type": "gdn2",
34
+ "norm_eps": 1e-06,
35
+ "num_heads": 6,
36
+ "num_hidden_layers": 18,
37
+ "num_v_heads": 6,
38
+ "pad_token_id": 0,
39
+ "tie_word_embeddings": false,
40
+ "transformers_version": "5.9.0",
41
+ "use_cache": true,
42
+ "use_gate": true,
43
+ "use_l2warp": false,
44
+ "use_short_conv": true,
45
+ "vocab_size": 32000
46
+ }
checkpoints/main_gdn2_PoST/generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "output_attentions": false,
6
+ "output_hidden_states": false,
7
+ "pad_token_id": 0,
8
+ "transformers_version": "5.9.0",
9
+ "use_cache": true
10
+ }
checkpoints/main_gdn2_PoST/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:893d33dd84873b17586298a2ce3f34736ad7bebdcd2098042f13d25e61ee407d
3
+ size 449050472
checkpoints/main_gdn2_PoST/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
checkpoints/main_gdn2_PoST/tokenizer_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": null,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<s>",
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "</s>",
7
+ "is_local": false,
8
+ "local_files_only": false,
9
+ "model_max_length": 1000000000000000019884624838656,
10
+ "pad_token": null,
11
+ "padding_side": "right",
12
+ "sp_model_kwargs": {},
13
+ "tokenizer_class": "LlamaTokenizer",
14
+ "unk_token": "<unk>",
15
+ "use_default_system_prompt": false
16
+ }
checkpoints/main_gdn2_random/config.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "allow_neg_eigval": false,
3
+ "architectures": [
4
+ "GDN2ForCausalLM"
5
+ ],
6
+ "attn": null,
7
+ "attn_mode": "chunk",
8
+ "attnres_block_size": null,
9
+ "bos_token_id": 1,
10
+ "conv_size": 4,
11
+ "dtype": "float32",
12
+ "eos_token_id": 2,
13
+ "expand_v": 2,
14
+ "fuse_cross_entropy": true,
15
+ "fuse_linear_cross_entropy": false,
16
+ "fuse_norm": true,
17
+ "fuse_swiglu": true,
18
+ "head_dim": 64,
19
+ "head_init_design": null,
20
+ "hidden_act": "swish",
21
+ "hidden_ratio": 4,
22
+ "hidden_size": 512,
23
+ "initialization_manifest": {
24
+ "A_log_rule": "GDN v3_random_a source A_log",
25
+ "dt_bias_rule": "GDN-aligned head means with deterministic small channel noise; channel_std=0.03",
26
+ "experiment": "v5_random_a",
27
+ "family": "GDN2",
28
+ "gdn_source_csv": "/root/checkpoints/gdn/training/gdn100m-v3-random-5b-v3_random_a/initial_head_params.csv"
29
+ },
30
+ "initializer_range": 0.02,
31
+ "intermediate_size": null,
32
+ "max_position_embeddings": 4096,
33
+ "model_type": "gdn2",
34
+ "norm_eps": 1e-06,
35
+ "num_heads": 6,
36
+ "num_hidden_layers": 18,
37
+ "num_v_heads": 6,
38
+ "pad_token_id": 0,
39
+ "tie_word_embeddings": false,
40
+ "transformers_version": "5.9.0",
41
+ "use_cache": true,
42
+ "use_gate": true,
43
+ "use_l2warp": false,
44
+ "use_short_conv": true,
45
+ "vocab_size": 32000
46
+ }
checkpoints/main_gdn2_random/generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "output_attentions": false,
6
+ "output_hidden_states": false,
7
+ "pad_token_id": 0,
8
+ "transformers_version": "5.9.0",
9
+ "use_cache": true
10
+ }
checkpoints/main_gdn2_random/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c6bfa974dec7c458b14f394d89ac33cee41086f3d7beda2bb6ab058652d7a875
3
+ size 449050472
checkpoints/main_gdn2_random/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
checkpoints/main_gdn2_random/tokenizer_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": null,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<s>",
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "</s>",
7
+ "is_local": false,
8
+ "local_files_only": false,
9
+ "model_max_length": 1000000000000000019884624838656,
10
+ "pad_token": null,
11
+ "padding_side": "right",
12
+ "sp_model_kwargs": {},
13
+ "tokenizer_class": "LlamaTokenizer",
14
+ "unk_token": "<unk>",
15
+ "use_default_system_prompt": false
16
+ }
checkpoints/main_gdn_DAMI/config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "allow_neg_eigval": false,
3
+ "architectures": [
4
+ "GatedDeltaNetForCausalLM"
5
+ ],
6
+ "attn": null,
7
+ "attn_mode": "chunk",
8
+ "attnres_block_size": null,
9
+ "bos_token_id": 1,
10
+ "conv_size": 4,
11
+ "dtype": "float32",
12
+ "eos_token_id": 2,
13
+ "expand_v": 2,
14
+ "fuse_cross_entropy": true,
15
+ "fuse_linear_cross_entropy": false,
16
+ "fuse_norm": true,
17
+ "fuse_swiglu": true,
18
+ "head_dim": 64,
19
+ "head_init_design": null,
20
+ "head_retention_scale": null,
21
+ "hidden_act": "swish",
22
+ "hidden_ratio": 4,
23
+ "hidden_size": 512,
24
+ "initial_full_weights_path": null,
25
+ "initializer_range": 0.02,
26
+ "intermediate_size": null,
27
+ "max_position_embeddings": 4096,
28
+ "model_type": "gated_deltanet",
29
+ "norm_eps": 1e-06,
30
+ "num_heads": 6,
31
+ "num_hidden_layers": 18,
32
+ "num_v_heads": null,
33
+ "pad_token_id": 0,
34
+ "position_adaptive_scaling": null,
35
+ "tie_word_embeddings": false,
36
+ "transformers_version": "5.9.0",
37
+ "use_cache": true,
38
+ "use_gate": true,
39
+ "use_l2warp": false,
40
+ "use_short_conv": true,
41
+ "vocab_size": 32000
42
+ }
checkpoints/main_gdn_DAMI/generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "output_attentions": false,
6
+ "output_hidden_states": false,
7
+ "pad_token_id": 0,
8
+ "transformers_version": "5.9.0",
9
+ "use_cache": true
10
+ }
checkpoints/main_gdn_DAMI/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:13dfd749678ff1f0578e57765e08cf262903aa6fbedf07ceba679f9ab291e9e2
3
+ size 415192624
checkpoints/main_gdn_DAMI/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
checkpoints/main_gdn_DAMI/tokenizer_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": null,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<s>",
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "</s>",
7
+ "is_local": false,
8
+ "local_files_only": false,
9
+ "model_max_length": 1000000000000000019884624838656,
10
+ "pad_token": null,
11
+ "padding_side": "right",
12
+ "sp_model_kwargs": {},
13
+ "tokenizer_class": "LlamaTokenizer",
14
+ "unk_token": "<unk>",
15
+ "use_default_system_prompt": false
16
+ }
checkpoints/main_gdn_PoST/config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "allow_neg_eigval": false,
3
+ "architectures": [
4
+ "GatedDeltaNetForCausalLM"
5
+ ],
6
+ "attn": null,
7
+ "attn_mode": "chunk",
8
+ "attnres_block_size": null,
9
+ "bos_token_id": 1,
10
+ "conv_size": 4,
11
+ "dtype": "float32",
12
+ "eos_token_id": 2,
13
+ "expand_v": 2,
14
+ "fuse_cross_entropy": true,
15
+ "fuse_linear_cross_entropy": false,
16
+ "fuse_norm": true,
17
+ "fuse_swiglu": true,
18
+ "head_dim": 64,
19
+ "head_init_design": null,
20
+ "head_retention_scale": null,
21
+ "hidden_act": "swish",
22
+ "hidden_ratio": 4,
23
+ "hidden_size": 512,
24
+ "initial_full_weights_path": null,
25
+ "initializer_range": 0.02,
26
+ "intermediate_size": null,
27
+ "max_position_embeddings": 4096,
28
+ "model_type": "gated_deltanet",
29
+ "norm_eps": 1e-06,
30
+ "num_heads": 6,
31
+ "num_hidden_layers": 18,
32
+ "num_v_heads": null,
33
+ "pad_token_id": 0,
34
+ "position_adaptive_scaling": null,
35
+ "tie_word_embeddings": false,
36
+ "transformers_version": "5.9.0",
37
+ "use_cache": true,
38
+ "use_gate": true,
39
+ "use_l2warp": false,
40
+ "use_short_conv": true,
41
+ "vocab_size": 32000
42
+ }
checkpoints/main_gdn_PoST/generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "output_attentions": false,
6
+ "output_hidden_states": false,
7
+ "pad_token_id": 0,
8
+ "transformers_version": "5.9.0",
9
+ "use_cache": true
10
+ }
checkpoints/main_gdn_PoST/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0875da62fdcf7760f134daab4593c6d7d250c82b9899da15344deb893ffb20ba
3
+ size 415192624
checkpoints/main_gdn_PoST/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
checkpoints/main_gdn_PoST/tokenizer_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": null,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<s>",
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "</s>",
7
+ "is_local": false,
8
+ "local_files_only": false,
9
+ "model_max_length": 1000000000000000019884624838656,
10
+ "pad_token": null,
11
+ "padding_side": "right",
12
+ "sp_model_kwargs": {},
13
+ "tokenizer_class": "LlamaTokenizer",
14
+ "unk_token": "<unk>",
15
+ "use_default_system_prompt": false
16
+ }
checkpoints/main_gdn_random/config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "allow_neg_eigval": false,
3
+ "architectures": [
4
+ "GatedDeltaNetForCausalLM"
5
+ ],
6
+ "attn": null,
7
+ "attn_mode": "chunk",
8
+ "attnres_block_size": null,
9
+ "bos_token_id": 1,
10
+ "conv_size": 4,
11
+ "dtype": "float32",
12
+ "eos_token_id": 2,
13
+ "expand_v": 2,
14
+ "fuse_cross_entropy": true,
15
+ "fuse_linear_cross_entropy": false,
16
+ "fuse_norm": true,
17
+ "fuse_swiglu": true,
18
+ "head_dim": 64,
19
+ "head_init_design": null,
20
+ "head_retention_scale": null,
21
+ "hidden_act": "swish",
22
+ "hidden_ratio": 4,
23
+ "hidden_size": 512,
24
+ "initial_full_weights_path": null,
25
+ "initializer_range": 0.02,
26
+ "intermediate_size": null,
27
+ "max_position_embeddings": 4096,
28
+ "model_type": "gated_deltanet",
29
+ "norm_eps": 1e-06,
30
+ "num_heads": 6,
31
+ "num_hidden_layers": 18,
32
+ "num_v_heads": null,
33
+ "pad_token_id": 0,
34
+ "position_adaptive_scaling": null,
35
+ "tie_word_embeddings": false,
36
+ "transformers_version": "5.9.0",
37
+ "use_cache": true,
38
+ "use_gate": true,
39
+ "use_l2warp": false,
40
+ "use_short_conv": true,
41
+ "vocab_size": 32000
42
+ }
checkpoints/main_gdn_random/generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "output_attentions": false,
6
+ "output_hidden_states": false,
7
+ "pad_token_id": 0,
8
+ "transformers_version": "5.9.0",
9
+ "use_cache": true
10
+ }
checkpoints/main_gdn_random/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d051a268ba74185e4f53952817ae3545c3e4ff22a7dac1c72d970150f5e0231c
3
+ size 415192624
checkpoints/main_gdn_random/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
checkpoints/main_gdn_random/tokenizer_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": null,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<s>",
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "</s>",
7
+ "is_local": false,
8
+ "local_files_only": false,
9
+ "model_max_length": 1000000000000000019884624838656,
10
+ "pad_token": null,
11
+ "padding_side": "right",
12
+ "sp_model_kwargs": {},
13
+ "tokenizer_class": "LlamaTokenizer",
14
+ "unk_token": "<unk>",
15
+ "use_default_system_prompt": false
16
+ }
checkpoints/main_kda_DAMI/config.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "allow_neg_eigval": false,
3
+ "architectures": [
4
+ "KDAForCausalLM"
5
+ ],
6
+ "attn": null,
7
+ "attn_mode": "chunk",
8
+ "attnres_block_size": null,
9
+ "bos_token_id": 1,
10
+ "conv_size": 4,
11
+ "disable_recompute": true,
12
+ "dtype": "float32",
13
+ "eos_token_id": 2,
14
+ "expand_v": 2,
15
+ "fuse_cross_entropy": true,
16
+ "fuse_linear_cross_entropy": false,
17
+ "fuse_norm": true,
18
+ "fuse_swiglu": true,
19
+ "head_dim": 64,
20
+ "head_init_design": null,
21
+ "hidden_act": "swish",
22
+ "hidden_ratio": 4,
23
+ "hidden_size": 512,
24
+ "initialization_manifest": {
25
+ "A_log_rule": "per-head A_log copied exactly from GDN v3_layerdt3 targets",
26
+ "design": "v4 layerdt3: GDN v3_layerdt3 (PoST tau by head + low-high-low layerwise sensitivity) targets",
27
+ "design_config": "/root/linear-attention/flame/configs/gated_deltanet_100M_v3_layerdt3_a.json",
28
+ "dt_bias_rule": "per-head mean equals GDN v3_layerdt3 target dt_bias; 64 channels use deterministic centered Gaussian noise, std=0.03",
29
+ "experiment": "v4_layerdt3_b",
30
+ "non_ad_tensors": "same seeded base KDA initialization (seed 42) as v4_random_a / v4_post_a"
31
+ },
32
+ "initializer_range": 0.02,
33
+ "intermediate_size": null,
34
+ "lower_bound": null,
35
+ "max_position_embeddings": 4096,
36
+ "model_type": "kda",
37
+ "norm_eps": 1e-06,
38
+ "num_heads": 6,
39
+ "num_hidden_layers": 18,
40
+ "num_v_heads": 6,
41
+ "pad_token_id": 0,
42
+ "safe_gate": false,
43
+ "tie_word_embeddings": false,
44
+ "transformers_version": "5.9.0",
45
+ "use_cache": true,
46
+ "use_l2warp": false,
47
+ "use_short_conv": true,
48
+ "vocab_size": 32000
49
+ }
checkpoints/main_kda_DAMI/generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "output_attentions": false,
6
+ "output_hidden_states": false,
7
+ "pad_token_id": 0,
8
+ "transformers_version": "5.9.0",
9
+ "use_cache": true
10
+ }
checkpoints/main_kda_DAMI/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c1ff8524598a136af2d32bf70001cd446a12a7f738ca4204877a7e11215c69c8
3
+ size 406802360
checkpoints/main_kda_DAMI/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
checkpoints/main_kda_DAMI/tokenizer_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": null,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<s>",
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "</s>",
7
+ "is_local": false,
8
+ "local_files_only": false,
9
+ "model_max_length": 1000000000000000019884624838656,
10
+ "pad_token": null,
11
+ "padding_side": "right",
12
+ "sp_model_kwargs": {},
13
+ "tokenizer_class": "LlamaTokenizer",
14
+ "unk_token": "<unk>",
15
+ "use_default_system_prompt": false
16
+ }
checkpoints/main_kda_PoST/config.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "allow_neg_eigval": false,
3
+ "architectures": [
4
+ "KDAForCausalLM"
5
+ ],
6
+ "attn": null,
7
+ "attn_mode": "chunk",
8
+ "attnres_block_size": null,
9
+ "bos_token_id": 1,
10
+ "conv_size": 4,
11
+ "disable_recompute": true,
12
+ "dtype": "float32",
13
+ "eos_token_id": 2,
14
+ "expand_v": 2,
15
+ "fuse_cross_entropy": true,
16
+ "fuse_linear_cross_entropy": false,
17
+ "fuse_norm": true,
18
+ "fuse_swiglu": true,
19
+ "head_dim": 64,
20
+ "head_init_design": null,
21
+ "hidden_act": "swish",
22
+ "hidden_ratio": 4,
23
+ "hidden_size": 512,
24
+ "initialization_manifest": {
25
+ "A_log_rule": "PoST head-column values 0..8.317766; all other tensors copied from the same seeded base initialization",
26
+ "dt_bias_rule": "GDN-aligned head means with deterministic small channel noise; channel_std=0.03",
27
+ "experiment": "v4_post_a",
28
+ "gdn_source_csv": "/root/checkpoints/gdn/training/gdn100m-v3-random-5b-v3_random_a/initial_head_params.csv"
29
+ },
30
+ "initializer_range": 0.02,
31
+ "intermediate_size": null,
32
+ "lower_bound": null,
33
+ "max_position_embeddings": 4096,
34
+ "model_type": "kda",
35
+ "norm_eps": 1e-06,
36
+ "num_heads": 6,
37
+ "num_hidden_layers": 18,
38
+ "num_v_heads": 6,
39
+ "pad_token_id": 0,
40
+ "safe_gate": false,
41
+ "tie_word_embeddings": false,
42
+ "transformers_version": "5.9.0",
43
+ "use_cache": true,
44
+ "use_l2warp": false,
45
+ "use_short_conv": true,
46
+ "vocab_size": 32000
47
+ }
checkpoints/main_kda_PoST/generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "output_attentions": false,
6
+ "output_hidden_states": false,
7
+ "pad_token_id": 0,
8
+ "transformers_version": "5.9.0",
9
+ "use_cache": true
10
+ }
checkpoints/main_kda_PoST/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f6be28267dc38fb84c4caafe9beba572ba861f7f4751bb5caa8218c07cb6155d
3
+ size 406802360
checkpoints/main_kda_PoST/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
checkpoints/main_kda_PoST/tokenizer_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": null,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<s>",
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "</s>",
7
+ "is_local": false,
8
+ "local_files_only": false,
9
+ "model_max_length": 1000000000000000019884624838656,
10
+ "pad_token": null,
11
+ "padding_side": "right",
12
+ "sp_model_kwargs": {},
13
+ "tokenizer_class": "LlamaTokenizer",
14
+ "unk_token": "<unk>",
15
+ "use_default_system_prompt": false
16
+ }
checkpoints/main_kda_random/config.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "allow_neg_eigval": false,
3
+ "architectures": [
4
+ "KDAForCausalLM"
5
+ ],
6
+ "attn": null,
7
+ "attn_mode": "chunk",
8
+ "attnres_block_size": null,
9
+ "bos_token_id": 1,
10
+ "conv_size": 4,
11
+ "disable_recompute": true,
12
+ "dtype": "float32",
13
+ "eos_token_id": 2,
14
+ "expand_v": 2,
15
+ "fuse_cross_entropy": true,
16
+ "fuse_linear_cross_entropy": false,
17
+ "fuse_norm": true,
18
+ "fuse_swiglu": true,
19
+ "head_dim": 64,
20
+ "head_init_design": null,
21
+ "hidden_act": "swish",
22
+ "hidden_ratio": 4,
23
+ "hidden_size": 512,
24
+ "initialization_manifest": {
25
+ "A_log_rule": "GDN v3_random_a source A_log",
26
+ "design_note": "KDA aligned random repeat: GDN v3_random_a head-level A_log/dtbias, per-head channel dtbias centered noise std=0.03",
27
+ "dt_bias_rule": "GDN-aligned head means with deterministic small channel noise; channel_std=0.03",
28
+ "experiment": "v4_random_c",
29
+ "gdn_source_csv": "/root/checkpoints/gdn/training/gdn100m-v3-random-5b-v3_random_a/initial_head_params.csv",
30
+ "repeat_of": "init_v4_random_a",
31
+ "repeat_rule": "identical initialization and training configuration to the source run; weights copied verbatim so run-to-run spread reflects training non-determinism only",
32
+ "source_package": "/root/checkpoints/kda/evals/_init_v4_random_a",
33
+ "source_weights_sha256": "f4333d94db0e652c24de2392ff77a3ba98064b3cbe7773fbb71d17edd64a9153"
34
+ },
35
+ "initializer_range": 0.02,
36
+ "intermediate_size": null,
37
+ "lower_bound": null,
38
+ "max_position_embeddings": 4096,
39
+ "model_type": "kda",
40
+ "norm_eps": 1e-06,
41
+ "num_heads": 6,
42
+ "num_hidden_layers": 18,
43
+ "num_v_heads": 6,
44
+ "pad_token_id": 0,
45
+ "safe_gate": false,
46
+ "tie_word_embeddings": false,
47
+ "transformers_version": "5.9.0",
48
+ "use_cache": true,
49
+ "use_l2warp": false,
50
+ "use_short_conv": true,
51
+ "vocab_size": 32000
52
+ }
checkpoints/main_kda_random/generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "output_attentions": false,
6
+ "output_hidden_states": false,
7
+ "pad_token_id": 0,
8
+ "transformers_version": "5.9.0",
9
+ "use_cache": true
10
+ }
checkpoints/main_kda_random/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f6033721f703a952664942d1a51e7704d45688fba56ae432d5fd656a9ea1b6c1
3
+ size 406802360
checkpoints/main_kda_random/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
checkpoints/main_kda_random/tokenizer_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": null,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<s>",
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "</s>",
7
+ "is_local": false,
8
+ "local_files_only": false,
9
+ "model_max_length": 1000000000000000019884624838656,
10
+ "pad_token": null,
11
+ "padding_side": "right",
12
+ "sp_model_kwargs": {},
13
+ "tokenizer_class": "LlamaTokenizer",
14
+ "unk_token": "<unk>",
15
+ "use_default_system_prompt": false
16
+ }
checkpoints/main_mamba2_DAMI/config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "A_init_range": [
3
+ 1,
4
+ 16
5
+ ],
6
+ "D_has_hdim": false,
7
+ "architectures": [
8
+ "Mamba2ForCausalLM"
9
+ ],
10
+ "bos_token_id": 1,
11
+ "chunk_size": 256,
12
+ "conv_init": null,
13
+ "conv_kernel": 4,
14
+ "dt_init_floor": 0.0001,
15
+ "dt_limit": [
16
+ 0.0,
17
+ {
18
+ "__float__": "Infinity"
19
+ }
20
+ ],
21
+ "dt_max": 0.1,
22
+ "dt_min": 0.001,
23
+ "dtype": "bfloat16",
24
+ "eos_token_id": 2,
25
+ "expand": 2,
26
+ "fuse_cross_entropy": true,
27
+ "fuse_linear_cross_entropy": false,
28
+ "fuse_norm": true,
29
+ "head_dim": 64,
30
+ "head_init_design": null,
31
+ "hidden_act": "silu",
32
+ "hidden_size": 512,
33
+ "initializer_range": 0.02,
34
+ "max_position_embeddings": 4096,
35
+ "model_type": "mamba2",
36
+ "n_groups": 1,
37
+ "norm_before_gate": false,
38
+ "norm_eps": 1e-05,
39
+ "num_heads": 16,
40
+ "num_hidden_layers": 42,
41
+ "pad_token_id": 0,
42
+ "rescale_prenorm_residual": true,
43
+ "residual_in_fp32": true,
44
+ "rms_norm": true,
45
+ "rmsnorm": true,
46
+ "state_size": 128,
47
+ "tie_word_embeddings": false,
48
+ "time_step_floor": 0.0001,
49
+ "time_step_max": 0.1,
50
+ "time_step_min": 0.001,
51
+ "time_step_rank": 128,
52
+ "transformers_version": "5.9.0",
53
+ "use_bias": false,
54
+ "use_cache": true,
55
+ "use_conv_bias": true,
56
+ "use_l2warp": false,
57
+ "vocab_size": 32000
58
+ }
checkpoints/main_mamba2_DAMI/generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "output_attentions": false,
6
+ "output_hidden_states": false,
7
+ "pad_token_id": 0,
8
+ "transformers_version": "5.9.0",
9
+ "use_cache": true
10
+ }
checkpoints/main_mamba2_DAMI/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1cc2b9b0acd06f27717d2079ac2e1aa2d08babeb9c45fa78d559715555a2b2be
3
+ size 210066632