AvnehBhatia commited on
Commit
a9cf22d
·
verified ·
1 Parent(s): aac4cbd

Model card: 0.1B hybrid design and small-scale results; add the 32k tokenizer

Browse files
Files changed (2) hide show
  1. README.md +57 -9
  2. tokenizer/tokenizer.json +0 -0
README.md CHANGED
@@ -1,17 +1,27 @@
1
  ---
2
  license: apache-2.0
 
 
 
3
  tags:
4
  - exealm
5
  - open-source
6
  - from-scratch
7
  - research-preview
 
 
 
 
8
  ---
9
 
10
  # ExeaLM
11
 
12
  An open language model built by high schoolers, run by [Exea Labs](https://exealabs.org).
13
 
14
- No weights are released yet. Checkpoints and results will be posted here as they exist.
 
 
 
15
 
16
  ## Links
17
 
@@ -19,15 +29,50 @@ No weights are released yet. Checkpoints and results will be posted here as they
19
  - Contributor sign-up: https://docs.google.com/forms/d/e/1FAIpQLSdPHVZhuXxBDUf-cJM2zDbj1JZPsduu95Y_kTJ_g4gKAXdDVw/viewform
20
  - Architecture paper: [TONN: Networks That Build Their Own Architecture from Data](https://www.preprints.org/manuscript/202611.0994)
21
 
22
- ## Model
23
 
24
- - Architecture: TONN, a sequence model that builds its own architecture from data. The paper is a concept paper and has not been peer reviewed.
25
- - Parameters, context length, tokenizer, languages: undecided.
26
- - License: Apache 2.0 for code and weights.
 
 
 
 
 
 
27
 
28
- ## Training data
29
 
30
- Planned: about 100 billion tokens, selected from the [NII LLM-jp Corpus v4](https://gitlab.llm-jp.nii.ac.jp/datasets/llm-jp-corpus-v4), the data released with [K2 Horizon](https://ifm.ai/blog/k2), FineWeb-Edu, DCLM-Baseline, and others. The count is set by diminishing returns: past about 200 billion tokens, extra data buys little for a model of 0.1 billion (100 million) parameters. The full mix, dataset links, and the math are in [DATA.md](https://github.com/exea-labs/ExeaLM/blob/main/DATA.md). A data card will list sources, licenses, filters, and the final mixture before training starts.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
 
32
  ## Intended use
33
 
@@ -35,8 +80,11 @@ Research and education on how open language models are built. Not for high-stake
35
 
36
  ## Limitations
37
 
38
- No evaluation results yet. Like other web-scale models, released checkpoints may produce incorrect, biased, or harmful text. We will publish evals and known limitations with each checkpoint.
 
 
39
 
40
  ## Contributing
41
 
42
- Anyone can contribute through GitHub. See [CONTRIBUTING.md](https://github.com/exea-labs/ExeaLM/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/exea-labs/ExeaLM/blob/main/CODE_OF_CONDUCT.md).
 
 
1
  ---
2
  license: apache-2.0
3
+ language:
4
+ - en
5
+ - ja
6
  tags:
7
  - exealm
8
  - open-source
9
  - from-scratch
10
  - research-preview
11
+ - tonn
12
+ - hybrid
13
+ - retrieval
14
+ - multi-agent
15
  ---
16
 
17
  # ExeaLM
18
 
19
  An open language model built by high schoolers, run by [Exea Labs](https://exealabs.org).
20
 
21
+ **Status: research preview.** No model weights yet. This repo holds the tokenizer and the results of the small-scale
22
+ experiments that decided the design. Everything is reproducible from
23
+ [github.com/exea-labs/ExeaLM](https://github.com/exea-labs/ExeaLM); the full report is
24
+ [results/README.md](https://github.com/exea-labs/ExeaLM/blob/main/results/README.md).
25
 
26
  ## Links
27
 
 
29
  - Contributor sign-up: https://docs.google.com/forms/d/e/1FAIpQLSdPHVZhuXxBDUf-cJM2zDbj1JZPsduu95Y_kTJ_g4gKAXdDVw/viewform
30
  - Architecture paper: [TONN: Networks That Build Their Own Architecture from Data](https://www.preprints.org/manuscript/202611.0994)
31
 
32
+ ## Model (planned)
33
 
34
+ - **Size:** 0.1 billion parameters (101M with the planned vocabulary, about 90M with this 32k tokenizer).
35
+ - **Architecture:** a hybrid of TONN and attention. Every third layer is a TONN layer: small learned circuits
36
+ (convolutions, running sums, state spaces, memories) whose layout TONN's search adjusts during training. The other
37
+ layers are standard multi-head attention. Each layer is followed by a gated MLP.
38
+ - **Built-in memory circuits** in every TONN layer:
39
+ - retrieval from a read-only library, with the model's own embeddings;
40
+ - a read-write message board shared by several copies of the model, so agents can talk.
41
+ - **Training data:** about 100B tokens; see [DATA.md](https://github.com/exea-labs/ExeaLM/blob/main/DATA.md).
42
+ - **License:** Apache 2.0 for code and weights.
43
 
44
+ ## Results so far (small-scale, on one Mac Studio GPU)
45
 
46
+ Bits per byte on held-out English, Japanese and code (lower is better).
47
+
48
+ | Size | Comparison | ExeaLM hybrid | Same-size Llama-style transformer |
49
+ |---|---|---|---|
50
+ | 13M | same training steps, 2 seeds | **1.531** | 1.554 |
51
+ | 27M | same training steps, best learning rates, 2 seeds | **1.492** | 1.523 |
52
+ | 48M | same training time, 2 seeds | **1.445** | 1.452 |
53
+ | ~0.1B (90M) | same training time, 1 seed | **1.474** | 1.481 |
54
+
55
+ - At 0.1B the hybrid trains at the same speed as the transformer (1.01 times its cost per token).
56
+ - Training several copies of the model as a swarm sharing a message board beats a matched control by 0.014 bits per
57
+ byte (2 seeds).
58
+ - Retrieval works on a synthetic lookup task: 100% on 1,024 unseen facts.
59
+ - On real text, retrieval is not yet a net gain. The model's own search finds the right Wikipedia article about 30% of
60
+ the time; with a perfect search it would gain 0.040 bits per token.
61
+
62
+ All of these are short runs (about 50M training tokens), far smaller than the planned 100B-token run.
63
+
64
+ ## Files
65
+
66
+ - `tokenizer/tokenizer.json`: the 32k byte-level BPE tokenizer.
67
+ - **Trained on:** 200 MB of English (FineWeb-Edu), 160 MB of Japanese (LLM-jp Corpus v4: Wikipedia and FineWeb-2)
68
+ and 80 MB of code.
69
+ - **Why 32k:** it won or tied against 49k and 64k at a fixed token budget.
70
+ - **Special tokens:** chat roles, plus `<|retrieved|>` and `<|board|>` for the memory circuits.
71
+
72
+ ```python
73
+ from tokenizers import Tokenizer
74
+ tok = Tokenizer.from_file("tokenizer/tokenizer.json")
75
+ ```
76
 
77
  ## Intended use
78
 
 
80
 
81
  ## Limitations
82
 
83
+ No evaluation results on standard benchmarks yet; the numbers above are language-modeling loss on small held-out sets.
84
+ Like other web-scale models, future checkpoints may produce incorrect, biased, or harmful text. We will publish evals
85
+ and known limitations with each checkpoint.
86
 
87
  ## Contributing
88
 
89
+ Anyone can contribute through GitHub. See [CONTRIBUTING.md](https://github.com/exea-labs/ExeaLM/blob/main/CONTRIBUTING.md)
90
+ and the [Code of Conduct](https://github.com/exea-labs/ExeaLM/blob/main/CODE_OF_CONDUCT.md).
tokenizer/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff