dongseokmotif commited on
Commit
a45182c
Β·
verified Β·
1 Parent(s): 33ac2f6

Add base model card (README)

Browse files
Files changed (1) hide show
  1. README.md +128 -0
README.md CHANGED
@@ -1,3 +1,131 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  license: mit
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ library_name: transformers
3
+ pipeline_tag: text-generation
4
+ language:
5
+ - en
6
+ - ko
7
+ tags:
8
+ - motif
9
+ - motif-3
10
+ - mixture-of-experts
11
+ - moe
12
+ - multilingual
13
+ - pretrained
14
+ - base-model
15
  license: mit
16
  ---
17
+
18
+ <div align="center">
19
+ <img src="https://cdn-avatars.huggingface.co/v1/production/uploads/6836935d054aee793ffd78f1/L3Rw_g8vkvD8dqhOYGZhl.png" width="180" alt="Motif">
20
+ </div>
21
+ <hr>
22
+
23
+ <div align="center" style="line-height: 1;">
24
+ <a href="https://motiftech.io" target="_blank"><img alt="Homepage" src="https://img.shields.io/badge/Homepage-Motif%20Technologies-1783ff?logoColor=white"/></a>
25
+ <a href="https://huggingface.co/Motif-Technologies" target="_blank"><img alt="Hugging Face" src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Motif-ffc107?color=ffc107&logoColor=white"/></a>
26
+ </div>
27
+ <div align="center" style="line-height: 1;">
28
+ <img alt="Tech Report" src="https://img.shields.io/badge/πŸ“„%20Tech%20Report-To%20be%20updated-lightgrey"/>
29
+ <a href="https://huggingface.co/Motif-Technologies/Motif-3-Base/blob/main/LICENSE" target="_blank"><img alt="License" src="https://img.shields.io/badge/License-MIT-f5de53?&color=f5de53"/></a>
30
+ </div>
31
+
32
+ <p align="center">
33
+ πŸ“„&nbsp;&nbsp;<b>Motif 3: Technical Report</b> <sup>(to be updated)</sup>
34
+ </p>
35
+
36
+ ## 1. Model Introduction
37
+
38
+ **Motif 3 Base** is the **base pretrained checkpoint** of Motif 3 β€” a large-scale, decoder-only Mixture-of-Experts (MoE) language model with **314 billion total parameters** and **13.2 billion parameters activated per token**. It is built from the ground up by [Motif Technologies](https://motiftech.io) following a fully in-house, proprietary design β€” not a re-parameterization of an existing open-source architecture.
39
+
40
+ This repository provides the **foundation model prior to post-training**: it has completed large-scale pretraining but has **not** undergone supervised fine-tuning, reinforcement learning, or preference/safety alignment. It is released for **further fine-tuning, continued pretraining, and research**. For the instruction-tuned, post-trained model, see **[Motif-Technologies/Motif-3](https://huggingface.co/Motif-Technologies/Motif-3)**.
41
+
42
+ Motif 3 is built around **Grouped Differential Latent Attention (GDLA)**, which integrates grouped differential attention with the compressed key–value representation of Multi-head Latent Attention. The architecture further incorporates **modified manifold-constrained hyper-connections (mHC)**, **Expert-Specific PolyNorm** activations, and a **Multi-Token Prediction (MTP)** auxiliary objective to improve optimization stability, expert specialization, and training efficiency.
43
+
44
+ The model is pretrained on approximately **12.5 trillion tokens** spanning web documents, STEM, code, mathematics, multilingual content, and domain-specialized corpora, with additional emphasis on Korean, reasoning-intensive, legal, and financial data.
45
+
46
+ ### Key Features
47
+ - 🧠 **Fine-grained sparse MoE** β€” 384 routed experts with only 8 activated per token (plus 1 shared expert), providing a large expert pool at limited per-token compute.
48
+ - πŸ“ **Native 256K context** (262,144 tokens), trained with window-aware context parallelism.
49
+ - βš™οΈ **Novel architecture** β€” GDLA attention, Expert-Specific PolyNorm, and modified mHC, with MTP used as an auxiliary pretraining objective.
50
+ - 🌐 **Multilingual & general-purpose**, with a strong bytes-per-token tokenizer for English, Korean, code, and math.
51
+ - 🧩 **Clean foundation** β€” a base checkpoint intended as a starting point for supervised fine-tuning, RL, and domain adaptation.
52
+
53
+ ## 2. Model Summary
54
+
55
+ <div align="center">
56
+ <table>
57
+ <tbody>
58
+ <tr><td><b>Model Type</b></td><td>Base (pretrained, not instruction-tuned)</td></tr>
59
+ <tr><td><b>Architecture</b></td><td>Mixture-of-Experts (MoE), decoder-only</td></tr>
60
+ <tr><td><b>Total Parameters</b></td><td>~314B</td></tr>
61
+ <tr><td><b>Activated Parameters</b></td><td>~13.2B / token</td></tr>
62
+ <tr><td><b>Number of Layers</b></td><td>53 (2 dense + 51 MoE)</td></tr>
63
+ <tr><td><b>Hidden Dimension</b></td><td>4096</td></tr>
64
+ <tr><td><b>Dense FFN Intermediate</b></td><td>12,288 (first 2 layers)</td></tr>
65
+ <tr><td><b>Attention</b></td><td>Grouped Differential Latent Attention (GDLA) with gated output</td></tr>
66
+ <tr><td><b>Query / KV Heads</b></td><td>80 / 16</td></tr>
67
+ <tr><td><b>Routed Experts</b></td><td>384 (top-8)</td></tr>
68
+ <tr><td><b>Shared Experts</b></td><td>1</td></tr>
69
+ <tr><td><b>Activation</b></td><td>Expert-Specific PolyNorm</td></tr>
70
+ <tr><td><b>Residual</b></td><td>Modified manifold-constrained hyper-connections (mHC)</td></tr>
71
+ <tr><td><b>Context Length</b></td><td>262,144 (256K)</td></tr>
72
+ <tr><td><b>Vocabulary Size</b></td><td>220,160</td></tr>
73
+ <tr><td><b>Pretraining Tokens</b></td><td>~12.5T</td></tr>
74
+ <tr><td><b>Tensor Type</b></td><td>bfloat16</td></tr>
75
+ </tbody>
76
+ </table>
77
+ </div>
78
+
79
+ ## 3. Intended Use & Limitations
80
+
81
+ **Intended use.** Motif 3 Base is a foundation model. Typical uses are supervised fine-tuning (SFT), continued pretraining, reinforcement learning, distillation, and research on pretrained representations.
82
+
83
+ **Not an assistant.** This checkpoint is **not instruction-tuned or aligned** and ships **without a chat template**. Do not expect it to follow instructions, hold a conversation, or refuse unsafe requests out of the box. Use it in **text-completion** mode (or fine-tune it first).
84
+
85
+ **Limitations.** Because no alignment or safety tuning has been applied, outputs may be factually incorrect, biased, or otherwise unsafe. Downstream users are responsible for adding appropriate fine-tuning, evaluation, and safety mitigations before deployment.
86
+
87
+ ## 4. Evaluation Results
88
+
89
+ We report the absolute performance of the pretrained base checkpoint under the prompting settings indicated below, to characterize the capabilities acquired during pretraining. We deliberately omit cross-model comparisons: base-model results are increasingly not published, and scores are highly sensitive to the evaluation harness and prompting protocol. Accuracy is reported for the multiple-choice and mathematics benchmarks; pass@1 is reported for HumanEval and MBPP. "CoT" denotes chain-of-thought prompting.
90
+
91
+ <div align="center">
92
+
93
+ | Benchmark | Setting | **Motif-3-Base** |
94
+ |:---|:---:|:---:|
95
+ | MMLU | 5-shot | 86.20 |
96
+ | MMLU-Pro | 5-shot CoT | 68.56 |
97
+ | ARC-C | 25-shot | 94.71 |
98
+ | WinoGrande | 5-shot | 80.90 |
99
+ | HellaSwag | 10-shot | 88.30 |
100
+ | PIQA | 0-shot | 85.14 |
101
+ | GSM8K | 8-shot CoT | 93.93 |
102
+ | MATH | 4-shot CoT | 70.58 |
103
+ | HumanEval | 0-shot | 73.70 |
104
+ | MBPP | 3-shot | 84.60 |
105
+
106
+ </div>
107
+
108
+ ## 5. Architecture
109
+
110
+ Motif 3 is a fully in-house design and introduces several custom components (full details in the technical report, to be updated):
111
+
112
+ - **Grouped Differential Latent Attention (GDLA)** β€” integrates grouped differential attention (asymmetric signal/noise heads with a token-dependent differential coefficient) with the compressed KV latent of Multi-head Latent Attention, plus a query-dependent output gate. Retains the expressive attention dynamics of differential attention while substantially reducing KV-cache requirements.
113
+ - **Expert-Specific PolyNorm** β€” replaces the SiLU gate with a learned polynomial normalization whose coefficients are learned independently per expert, reducing activation outliers while allowing each expert to specialize.
114
+ - **Modified manifold-constrained hyper-connections (mHC)** β€” replaces conventional residual additions with a doubly-stochastic (Birkhoff-polytope) mixing of 4 parallel residual streams; the post-mapping multiplier is annealed from 2 β†’ 1 during pretraining to limit activation-outlier accumulation.
115
+ - **Multi-Token Prediction (MTP)** β€” a DeepSeek-V3-style multi-token-prediction objective used as an auxiliary target during pretraining. (The MTP head is not shipped with this base checkpoint.)
116
+
117
+ ## 6. Access
118
+
119
+ This model is **openly available** β€” anyone can download the weights, no access request required.
120
+
121
+ ## 7. License
122
+
123
+ This model is released under the **MIT License**. See the [LICENSE](https://huggingface.co/Motif-Technologies/Motif-3-Base/blob/main/LICENSE) file for details.
124
+
125
+ ## 8. Citation
126
+
127
+ _Citation information will be added upon release of the technical report._
128
+
129
+ ---
130
+
131
+ Β© Motif Technologies. All rights reserved.