Text Generation
English
linear-attention
deltanet
jsjs424 commited on
Commit
9cbcf1a
·
0 Parent(s):

Integral DeltaNet checkpoints

Browse files
.gitattributes ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ assets/integral_deltanet.png filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ pipeline_tag: text-generation
4
+ datasets:
5
+ - HuggingFaceFW/fineweb-edu
6
+ language:
7
+ - en
8
+ tags:
9
+ - linear-attention
10
+ - deltanet
11
+ ---
12
+
13
+ # Integral DeltaNet: Improved Linear Attention with Adaptive Memory Integration
14
+
15
+ Official checkpoints of **Integral DeltaNet: Improved Linear Attention with
16
+ Adaptive Memory Integration**.
17
+
18
+ [Junsoo Oh](https://junsoo424.github.io/), [Jihun Yun](https://abcdxyzpqrst.github.io/),
19
+ [Junhyuck Kim](https://jhyuckkim.github.io/), [Hanbaek Lyu](https://www.hanbaeklyu.com/)
20
+
21
+ Code: [junsoo424/Integral-DeltaNet](https://github.com/junsoo424/Integral-DeltaNet)
22
+
23
+ <p align="center">
24
+ <img src="https://huggingface.co/jsjs424/Integral-DeltaNet/resolve/main/assets/integral_deltanet.png" width="85%" alt="Integral DeltaNet: an integral state accumulates a weighted history of delta states, and a gated readout combines both">
25
+ </p>
26
+
27
+ Linear attention compresses the past into a fixed-size state, which causes
28
+ memory collisions. Delta-rule updates and gating reduce them, but they can also
29
+ discard information that a later query still needs. Integral DeltaNet uses two
30
+ states operating at different timescales: a fast **delta state** \\(S_t\\),
31
+ updated using an expressive linear-attention rule such as KDA or GDN-2, and a
32
+ slow **integral state** \\(X_t\\), which maintains a channel-wise weighted
33
+ history of past delta states. The model adaptively combines the two states at
34
+ readout:
35
+
36
+ $$X_t = S_t\,\mathrm{Diag}(\lambda_t) + X_{t-1}\,\mathrm{Diag}(1-\lambda_t), \qquad o_t = S_t(\gamma_t \odot q_t) + X_t\big((1-\gamma_t) \odot q_t\big)$$
37
+
38
+ Here \\(o_t\\) is the layer output for the query \\(q_t\\). The integration
39
+ rate \\(\lambda_t\\) and the readout gate \\(\gamma_t\\) are per-channel gates
40
+ computed from the input.
41
+
42
+ ## Checkpoints
43
+
44
+ | Model | 340M (15B tokens) | 1.3B (100B tokens) |
45
+ |---|---|---|
46
+ | Integral KDA | `integral-kda-340m.pt` | `integral-kda-1.3b.pt` |
47
+ | Integral GDN-2 | `integral-gdn2-340m.pt` | `integral-gdn2-1.3b.pt` |
48
+ | KDA | `kda-340m.pt` | `kda-1.3b.pt` |
49
+ | GDN-2 | `gdn2-340m.pt` | `gdn2-1.3b.pt` |
50
+
51
+ All models are trained from scratch on FineWeb-Edu with the Llama 2 tokenizer
52
+ and a 4K context. Each Integral model matches its backbone in non-embedding
53
+ parameters.
54
+
55
+ - `configs/models/<name>.yaml`: the architecture of `<name>.pt`. The same
56
+ config is stored in the file under `"model_config"`.
57
+ - `configs/training/340m.yaml`, `configs/training/1.3b.yaml`: the training
58
+ recipes (AdamW, 0.5M-token batches, cosine decay from 4e-4 to 4e-5, 8 GPUs).
59
+
60
+ Each file holds bf16 weights. Load one with the code from GitHub:
61
+
62
+ ```python
63
+ import torch
64
+ from huggingface_hub import hf_hub_download
65
+ from integral_deltanet.model import CausalLM
66
+
67
+ payload = torch.load(hf_hub_download("jsjs424/Integral-DeltaNet", "integral-kda-1.3b.pt"),
68
+ map_location="cpu", weights_only=True)
69
+ model = CausalLM(payload["model_config"])
70
+ model.load_state_dict(payload["model"])
71
+ ```
72
+
73
+ ## Citation
74
+
75
+ ```bibtex
76
+ @article{oh2026integral,
77
+ title = {Integral DeltaNet: Improved Linear Attention with Adaptive Memory Integration},
78
+ author = {Oh, Junsoo and Yun, Jihun and Kim, Junhyuck and Lyu, Hanbaek},
79
+ journal = {arXiv preprint},
80
+ year = {2026}
81
+ }
82
+ ```
assets/integral_deltanet.png ADDED

Git LFS Details

  • SHA256: 9620100708a16f8845cacbb8eded850a21ef0be8f8dbf6f6cef0ad103c04f5cf
  • Pointer size: 131 Bytes
  • Size of remote file: 105 kB
configs/models/gdn2-1.3b.yaml ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # GDN-2 1.3B: 18 layers x 2304, trained on 100B FineWeb-Edu tokens.
2
+ # Weights: gdn2-1.3b.pt. Training recipe: configs/training/1.3b.yaml.
3
+
4
+ # Backbone
5
+ model_type: gdn2
6
+ scale: 1.3b
7
+ vocab_size: 32000
8
+ hidden_size: 2304
9
+ num_hidden_layers: 18
10
+ intermediate_size: 6208
11
+ norm_eps: 1.0e-05
12
+ reference_shape: true # the GDN-2 reference 1.3B shape: 16 x 128 heads on a 2304-wide model
13
+
14
+ # Token mixer (GDN-2)
15
+ num_heads: 16
16
+ head_dim: 128
17
+ expand_v: 1
18
+ num_v_heads: null
19
+ attn_mode: chunk
20
+ use_short_conv: true
21
+ conv_size: 4
22
+ allow_neg_eigval: false
23
+ output_gate: paper_swish_rmsnorm
24
+
25
+ # Kernels and runtime (speed and memory only; the weights do not depend on them)
26
+ gradient_checkpointing: true
27
+
28
+ # Parameter counts, checked when the model is built
29
+ expected_body_parameters: 1302640416
30
+ expected_parameters: 1450096416
configs/models/gdn2-340m.yaml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # GDN-2 340M: 12 layers x 1536, trained on 15B FineWeb-Edu tokens.
2
+ # Weights: gdn2-340m.pt. Training recipe: configs/training/340m.yaml.
3
+
4
+ # Backbone
5
+ model_type: gdn2
6
+ scale: 340m
7
+ vocab_size: 32000
8
+ hidden_size: 1536
9
+ num_hidden_layers: 12
10
+ intermediate_size: 2896
11
+ norm_eps: 1.0e-05
12
+
13
+ # Token mixer (GDN-2)
14
+ num_heads: 12
15
+ head_dim: 128
16
+ expand_v: 1
17
+ num_v_heads: null
18
+ attn_mode: chunk
19
+ use_short_conv: true
20
+ conv_size: 4
21
+ allow_neg_eigval: false
22
+ output_gate: paper_swish_rmsnorm
23
+
24
+ # Kernels and runtime (speed and memory only; the weights do not depend on them)
25
+ gradient_checkpointing: true
26
+
27
+ # Parameter counts, checked when the model is built
28
+ expected_body_parameters: 339741840
29
+ expected_parameters: 438045840
configs/models/integral-gdn2-1.3b.yaml ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Integral GDN-2 1.3B: 18 layers x 2304, trained on 100B FineWeb-Edu tokens.
2
+ # Weights: integral-gdn2-1.3b.pt. Training recipe: configs/training/1.3b.yaml.
3
+
4
+ # Backbone
5
+ model_type: gdn2
6
+ scale: 1.3b
7
+ vocab_size: 32000
8
+ hidden_size: 2304
9
+ num_hidden_layers: 18
10
+ intermediate_size: 6048
11
+ norm_eps: 1.0e-05
12
+ reference_shape: true # the GDN-2 reference 1.3B shape: 16 x 128 heads on a 2304-wide model
13
+
14
+ # Token mixer (GDN-2)
15
+ num_heads: 16
16
+ head_dim: 128
17
+ expand_v: 1
18
+ num_v_heads: null
19
+ attn_mode: chunk
20
+ use_short_conv: true
21
+ conv_size: 4
22
+ allow_neg_eigval: false
23
+ output_gate: paper_swish_rmsnorm
24
+
25
+ # Integral DeltaNet layer
26
+ mixer_implementation: integral
27
+ integration_readout_gate: true
28
+ integration_gate_coupling: independent
29
+ integration_gamma_gate: channel
30
+ integration_lambda_gate: channel
31
+ integration_gamma_rank: 128
32
+ integration_gate_mode: learned
33
+ integration_gate_bias_init: timescale
34
+ integration_chi_min: 4.0
35
+ integration_tau_gamma: 1024.0
36
+ integration_tau_lambda: 1024.0
37
+
38
+ # Kernels and runtime (speed and memory only; the weights do not depend on them)
39
+ chunk_size: 32
40
+ kernel_implementation: triton
41
+ compile_precompute: false
42
+ allow_approximate_fusions: false
43
+ fuse_qkv_conv: true
44
+ fuse_preprocess: false
45
+ fuse_decay_gate: false
46
+ gradient_checkpointing: true
47
+
48
+ # Parameter counts, checked when the model is built
49
+ expected_body_parameters: 1302861600
50
+ expected_parameters: 1450317600
configs/models/integral-gdn2-340m.yaml ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Integral GDN-2 340M: 12 layers x 1536, trained on 15B FineWeb-Edu tokens.
2
+ # Weights: integral-gdn2-340m.pt. Training recipe: configs/training/340m.yaml.
3
+
4
+ # Backbone
5
+ model_type: gdn2
6
+ scale: 340m
7
+ vocab_size: 32000
8
+ hidden_size: 1536
9
+ num_hidden_layers: 12
10
+ intermediate_size: 2728
11
+ norm_eps: 1.0e-05
12
+
13
+ # Token mixer (GDN-2)
14
+ num_heads: 12
15
+ head_dim: 128
16
+ expand_v: 1
17
+ num_v_heads: null
18
+ attn_mode: chunk
19
+ use_short_conv: true
20
+ conv_size: 4
21
+ allow_neg_eigval: false
22
+ output_gate: paper_swish_rmsnorm
23
+
24
+ # Integral DeltaNet layer
25
+ mixer_implementation: integral
26
+ integration_readout_gate: true
27
+ integration_gate_coupling: independent
28
+ integration_gamma_gate: channel
29
+ integration_lambda_gate: channel
30
+ integration_gamma_rank: 128
31
+ integration_gate_mode: learned
32
+ integration_gate_bias_init: timescale
33
+ integration_chi_min: 4.0
34
+ integration_tau_gamma: 1024.0
35
+ integration_tau_lambda: 1024.0
36
+
37
+ # Kernels and runtime (speed and memory only; the weights do not depend on them)
38
+ chunk_size: 16
39
+ kernel_implementation: auto
40
+ compile_precompute: true
41
+ allow_approximate_fusions: true
42
+ fuse_qkv_conv: true
43
+ fuse_preprocess: false
44
+ fuse_decay_gate: true
45
+ gradient_checkpointing: true
46
+
47
+ # Parameter counts, checked when the model is built
48
+ expected_body_parameters: 339926160
49
+ expected_parameters: 438230160
configs/models/integral-kda-1.3b.yaml ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Integral KDA 1.3B: 18 layers x 2304, trained on 100B FineWeb-Edu tokens.
2
+ # Weights: integral-kda-1.3b.pt. Training recipe: configs/training/1.3b.yaml.
3
+
4
+ # Backbone
5
+ model_type: kda
6
+ scale: 1.3b
7
+ vocab_size: 32000
8
+ hidden_size: 2304
9
+ num_hidden_layers: 18
10
+ intermediate_size: 7408
11
+ norm_eps: 1.0e-05
12
+ reference_shape: true # the GDN-2 reference 1.3B shape: 16 x 128 heads on a 2304-wide model
13
+
14
+ # Token mixer (KDA)
15
+ num_heads: 16
16
+ head_dim: 128
17
+ expand_v: 1
18
+ num_v_heads: null
19
+ attn_mode: chunk
20
+ use_short_conv: true
21
+ conv_size: 4
22
+ allow_neg_eigval: false
23
+ output_gate: builtin_sigmoid_rmsnorm
24
+ safe_gate: false
25
+ lower_bound: null
26
+
27
+ # Integral DeltaNet layer
28
+ mixer_implementation: integral
29
+ integration_readout_gate: true
30
+ integration_gate_coupling: independent
31
+ integration_gamma_gate: channel
32
+ integration_lambda_gate: channel
33
+ integration_gamma_rank: 128
34
+ integration_gate_mode: learned
35
+ integration_gate_bias_init: timescale
36
+ integration_chi_min: 4.0
37
+ integration_tau_gamma: 1024.0
38
+ integration_tau_lambda: 1024.0
39
+
40
+ # Kernels and runtime (speed and memory only; the weights do not depend on them)
41
+ chunk_size: 32
42
+ kernel_implementation: triton
43
+ compile_precompute: false
44
+ allow_approximate_fusions: false
45
+ fuse_qkv_conv: true
46
+ fuse_preprocess: false
47
+ fuse_decay_gate: false
48
+ gradient_checkpointing: true
49
+
50
+ # Parameter counts, checked when the model is built
51
+ expected_body_parameters: 1302861600
52
+ expected_parameters: 1450317600
configs/models/integral-kda-340m.yaml ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Integral KDA 340M: 12 layers x 1536, trained on 15B FineWeb-Edu tokens.
2
+ # Weights: integral-kda-340m.pt. Training recipe: configs/training/340m.yaml.
3
+
4
+ # Backbone
5
+ model_type: kda
6
+ scale: 340m
7
+ vocab_size: 32000
8
+ hidden_size: 1536
9
+ num_hidden_layers: 12
10
+ intermediate_size: 3744
11
+ norm_eps: 1.0e-05
12
+
13
+ # Token mixer (KDA)
14
+ num_heads: 12
15
+ head_dim: 128
16
+ expand_v: 1
17
+ num_v_heads: null
18
+ attn_mode: chunk
19
+ use_short_conv: true
20
+ conv_size: 4
21
+ allow_neg_eigval: false
22
+ output_gate: builtin_sigmoid_rmsnorm
23
+ safe_gate: false
24
+ lower_bound: null
25
+
26
+ # Integral DeltaNet layer
27
+ mixer_implementation: integral
28
+ integration_readout_gate: true
29
+ integration_gate_coupling: independent
30
+ integration_gamma_gate: channel
31
+ integration_lambda_gate: channel
32
+ integration_gamma_rank: 128
33
+ integration_gate_mode: learned
34
+ integration_gate_bias_init: timescale
35
+ integration_chi_min: 4.0
36
+ integration_tau_gamma: 1024.0
37
+ integration_tau_lambda: 1024.0
38
+
39
+ # Kernels and runtime (speed and memory only; the weights do not depend on them)
40
+ chunk_size: 16
41
+ kernel_implementation: auto
42
+ compile_precompute: true
43
+ allow_approximate_fusions: true
44
+ fuse_qkv_conv: true
45
+ fuse_preprocess: false
46
+ fuse_decay_gate: true
47
+ gradient_checkpointing: true
48
+
49
+ # Parameter counts, checked when the model is built
50
+ expected_body_parameters: 339704976
51
+ expected_parameters: 438008976
configs/models/kda-1.3b.yaml ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # KDA 1.3B: 18 layers x 2304, trained on 100B FineWeb-Edu tokens.
2
+ # Weights: kda-1.3b.pt. Training recipe: configs/training/1.3b.yaml.
3
+
4
+ # Backbone
5
+ model_type: kda
6
+ scale: 1.3b
7
+ vocab_size: 32000
8
+ hidden_size: 2304
9
+ num_hidden_layers: 18
10
+ intermediate_size: 7568
11
+ norm_eps: 1.0e-05
12
+ reference_shape: true # the GDN-2 reference 1.3B shape: 16 x 128 heads on a 2304-wide model
13
+
14
+ # Token mixer (KDA)
15
+ num_heads: 16
16
+ head_dim: 128
17
+ expand_v: 1
18
+ num_v_heads: null
19
+ attn_mode: chunk
20
+ use_short_conv: true
21
+ conv_size: 4
22
+ allow_neg_eigval: false
23
+ output_gate: builtin_sigmoid_rmsnorm
24
+ safe_gate: false
25
+ lower_bound: null
26
+
27
+ # Kernels and runtime (speed and memory only; the weights do not depend on them)
28
+ gradient_checkpointing: true
29
+
30
+ # Parameter counts, checked when the model is built
31
+ expected_body_parameters: 1302640416
32
+ expected_parameters: 1450096416
configs/models/kda-340m.yaml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # KDA 340M: 12 layers x 1536, trained on 15B FineWeb-Edu tokens.
2
+ # Weights: kda-340m.pt. Training recipe: configs/training/340m.yaml.
3
+
4
+ # Backbone
5
+ model_type: kda
6
+ scale: 340m
7
+ vocab_size: 32000
8
+ hidden_size: 1536
9
+ num_hidden_layers: 12
10
+ intermediate_size: 3920
11
+ norm_eps: 1.0e-05
12
+
13
+ # Token mixer (KDA)
14
+ num_heads: 12
15
+ head_dim: 128
16
+ expand_v: 1
17
+ num_v_heads: null
18
+ attn_mode: chunk
19
+ use_short_conv: true
20
+ conv_size: 4
21
+ allow_neg_eigval: false
22
+ output_gate: builtin_sigmoid_rmsnorm
23
+ safe_gate: false
24
+ lower_bound: null
25
+
26
+ # Kernels and runtime (speed and memory only; the weights do not depend on them)
27
+ gradient_checkpointing: true
28
+
29
+ # Parameter counts, checked when the model is built
30
+ expected_body_parameters: 339963024
31
+ expected_parameters: 438267024
configs/training/1.3b.yaml ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Training recipe for the 1.3B models: 100B tokens, 8 GPUs, 0.5M-token batches.
2
+ data:
3
+ dataset: HuggingFaceFW/fineweb-edu
4
+ dataset_config: sample-100BT
5
+ tokenizer: meta-llama/Llama-2-7b-hf
6
+ sequence_length: 4096
7
+ shuffle_buffer: 10000
8
+ document_separator: bos # <s> before every document
9
+
10
+ optimization:
11
+ target_tokens: 100000000000
12
+ max_steps: 190735
13
+ warmup_steps: 1907
14
+ peak_lr: 0.0004
15
+ min_lr: 0.00004
16
+ betas: [0.9, 0.95]
17
+ eps: 1.0e-8
18
+ weight_decay: 0.1
19
+ max_grad_norm: 1.0
20
+
21
+ runtime:
22
+ precision: bf16
23
+ expected_world_size: 8
24
+ micro_batch_size: 4
25
+ gradient_accumulation_steps: 4
26
+ global_batch_tokens: 524288
27
+ num_workers: 0
28
+ seed: 42
29
+ log_every: 10
30
+
31
+ checkpoint:
32
+ save_every: 1000
33
+ keep_last: 2
configs/training/340m.yaml ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Training recipe for the 340M models: 15B tokens, 8 GPUs, 0.5M-token batches.
2
+ data:
3
+ dataset: HuggingFaceFW/fineweb-edu
4
+ dataset_config: sample-100BT
5
+ tokenizer: meta-llama/Llama-2-7b-hf
6
+ sequence_length: 4096
7
+ shuffle_buffer: 10000
8
+ document_separator: bos # <s> before every document
9
+
10
+ optimization:
11
+ target_tokens: 15000000000
12
+ max_steps: 28610
13
+ warmup_steps: 954
14
+ peak_lr: 0.0004
15
+ min_lr: 0.00004
16
+ betas: [0.9, 0.95]
17
+ eps: 1.0e-8
18
+ weight_decay: 0.1
19
+ max_grad_norm: 1.0
20
+
21
+ runtime:
22
+ precision: bf16
23
+ expected_world_size: 8
24
+ micro_batch_size: 8
25
+ gradient_accumulation_steps: 2
26
+ global_batch_tokens: 524288
27
+ num_workers: 0
28
+ seed: 42
29
+ log_every: 10
30
+
31
+ checkpoint:
32
+ save_every: 1000
33
+ keep_last: 2
gdn2-1.3b.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:814b9d9de4ab9ef65d3d34da4c66da3f36e6c70007db98612b5840a6d44f5109
3
+ size 2900318026
gdn2-340m.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb4a9f619fd381017248d4db3a4b8e6b4de64bb6ed482cba3da984f1f067e695
3
+ size 876175806
integral-gdn2-1.3b.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1cdb6217b06b0cebef004f73121ccd02a284ee39d8d5e8d80ac48f1bce5af113
3
+ size 2900820831
integral-gdn2-340m.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a29b77a2b0aae7f0a986c0d6104eed78d3d7728ce1a1fb4bb05c13c9c418e957
3
+ size 876584999
integral-kda-1.3b.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d7eb85e69ea85762ed30f3037aa1e6883113df7e7be9cc319c1210449bfdba5d
3
+ size 2900814370
integral-kda-340m.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fa9e7ab0ba7b64591c1c01fb52204e12a7e23b85dc4e90d119ce0a430836c897
3
+ size 876138342
kda-1.3b.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:22d40182fd06d5f5d80b42eaccfacb4f7b62cb6534138345c0bd13c4945bedb2
3
+ size 2900311953
kda-340m.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b37a7d0f74137939840faf5efa91158e8b75c399fa359ea9d8e84dfc1c199c0
3
+ size 876614165