PyTorch
Safetensors
atomslm
language-model
Sqersters commited on
Commit
1215ca5
·
verified ·
1 Parent(s): 5c42dbc

Upload AtomSLM checkpoint

Browse files
Files changed (4) hide show
  1. README.md +15 -16
  2. config.json +1 -6
  3. dashboard.png +2 -2
  4. model.safetensors +3 -0
README.md CHANGED
@@ -8,31 +8,23 @@ datasets:
8
  tags:
9
  - atomslm
10
  - language-model
11
- - shared-weights
12
  - pytorch
13
  ---
14
 
15
  # AtomSLM-600K
16
 
17
- **AtomSLM** is a compact, shared-weight language model family built on the
18
- AtomNet architecture (Shared Weight Core + Per-Layer FiLM Modulation).
19
- One shared weight core is reused across all N layers, with tiny per-layer
20
- FiLM vectors providing the only per-layer state — deep reasoning at minimal parameter cost.
21
 
22
  ## Model Details
23
 
24
  | Field | Value |
25
  |------------------|--------------------------------|
26
- | Architecture | AtomNet (shared-core + FiLM) |
27
  | Parameters | 0.613M |
28
  | Vocab size | 4096 |
29
- | d_model | 120 |
30
- | Layers | 8 |
31
- | FFN multiplier | 2.0 |
32
  | Context window | 256 tokens |
33
- | Weight tying | True |
34
- | Best val loss | 3.3455 |
35
- | Best PPL (val) | 28.37 |
36
  | Trained steps | 4900 |
37
 
38
  ## Training
@@ -66,7 +58,8 @@ Trained on the following datasets with a custom BPE tokenizer (vocab size matchi
66
  "resume": null,
67
  "compile": false,
68
  "amp": false,
69
- "core_warmup_steps": 0
 
70
  }
71
  ```
72
 
@@ -82,11 +75,17 @@ Trained on the following datasets with a custom BPE tokenizer (vocab size matchi
82
 
83
  ```python
84
  import torch
 
85
  from models.atomgpt import AtomSLM
 
86
 
87
- ckpt = torch.load('pytorch_model.bin', map_location='cpu')
88
- model = AtomSLM(ckpt['config'])
89
- model.load_state_dict(ckpt['model_state'])
 
 
 
 
90
  model.eval()
91
  ```
92
 
 
8
  tags:
9
  - atomslm
10
  - language-model
 
11
  - pytorch
12
  ---
13
 
14
  # AtomSLM-600K
15
 
16
+ **AtomSLM** is a compact language model family achieving competitive
17
+ performance at minimal parameter cost through proprietary architecture.
 
 
18
 
19
  ## Model Details
20
 
21
  | Field | Value |
22
  |------------------|--------------------------------|
 
23
  | Parameters | 0.613M |
24
  | Vocab size | 4096 |
 
 
 
25
  | Context window | 256 tokens |
26
+ | Best val loss | 3.3553 |
27
+ | Best PPL (val) | 28.65 |
 
28
  | Trained steps | 4900 |
29
 
30
  ## Training
 
58
  "resume": null,
59
  "compile": false,
60
  "amp": false,
61
+ "core_warmup_steps": 0,
62
+ "gated": false
63
  }
64
  ```
65
 
 
75
 
76
  ```python
77
  import torch
78
+ from safetensors.torch import load_file
79
  from models.atomgpt import AtomSLM
80
+ from models.config import AtomSLMConfig
81
 
82
+ # Load config and weights
83
+ import json
84
+ cfg = AtomSLMConfig(**json.load(open('config.json')))
85
+ state_dict = load_file('model.safetensors')
86
+
87
+ model = AtomSLM(cfg)
88
+ model.load_state_dict(state_dict)
89
  model.eval()
90
  ```
91
 
config.json CHANGED
@@ -1,12 +1,7 @@
1
  {
2
  "vocab_size": 4096,
3
- "d_model": 120,
4
- "n_layers": 8,
5
- "ffn_mult": 2.0,
6
- "dropout": 0.1,
7
  "max_seq_len": 256,
8
- "tie_weights": true,
9
  "architecture": "AtomSLM",
10
- "val_loss": 3.345488176345825,
11
  "step": 4900
12
  }
 
1
  {
2
  "vocab_size": 4096,
 
 
 
 
3
  "max_seq_len": 256,
 
4
  "architecture": "AtomSLM",
5
+ "val_loss": 3.355283432006836,
6
  "step": 4900
7
  }
dashboard.png CHANGED

Git LFS Details

  • SHA256: d7d26758a4cca116ceeafab69049e29725f23ed31fce12e4ccbe0704fbfa7f98
  • Pointer size: 131 Bytes
  • Size of remote file: 129 kB

Git LFS Details

  • SHA256: 801e5028989aed174ae58f19a89f3af9135ed0e5af7b6b31776b27e1ea233604
  • Pointer size: 131 Bytes
  • Size of remote file: 133 kB
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac3d922bcecc97b41e88f9282999abd99f0a59d856f42fb9bd95fd607413719a
3
+ size 4422760