Instructions to use Motif-Technologies/Motif-3-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Motif-Technologies/Motif-3-Base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Motif-Technologies/Motif-3-Base", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Motif-Technologies/Motif-3-Base", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Motif-Technologies/Motif-3-Base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Motif-Technologies/Motif-3-Base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Motif-Technologies/Motif-3-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Motif-Technologies/Motif-3-Base
- SGLang
How to use Motif-Technologies/Motif-3-Base with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Motif-Technologies/Motif-3-Base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Motif-Technologies/Motif-3-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Motif-Technologies/Motif-3-Base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Motif-Technologies/Motif-3-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Motif-Technologies/Motif-3-Base with Docker Model Runner:
docker model run hf.co/Motif-Technologies/Motif-3-Base
1. Model Introduction
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 following a fully in-house, proprietary design.
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.
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.
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.
Key Features
- π§ 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.
- π Native 256K context (262,144 tokens), trained with window-aware context parallelism.
- βοΈ Novel architecture β GDLA attention, Expert-Specific PolyNorm, and modified mHC, with MTP used as an auxiliary pretraining objective.
- π Multilingual & general-purpose, with a strong bytes-per-token tokenizer for English, Korean, code, and math.
- π§© Clean foundation β a base checkpoint intended as a starting point for supervised fine-tuning, RL, and domain adaptation.
2. Model Summary
| Model Type | Base (pretrained, not instruction-tuned) |
| Architecture | Mixture-of-Experts (MoE), decoder-only |
| Total Parameters | ~314B |
| Activated Parameters | ~13.2B / token |
| Number of Layers | 53 (2 dense + 51 MoE) |
| Hidden Dimension | 4096 |
| Dense FFN Intermediate | 12,288 (first 2 layers) |
| Attention | Grouped Differential Latent Attention (GDLA) with gated output |
| Query / KV Heads | 80 / 16 |
| Routed Experts | 384 (top-8) |
| Shared Experts | 1 |
| Activation | Expert-Specific PolyNorm |
| Residual | Modified manifold-constrained hyper-connections (mHC) |
| Context Length | 262,144 (256K) |
| Vocabulary Size | 220,160 |
| Pretraining Tokens | ~12.5T |
| Tensor Type | bfloat16 |
3. Intended Use & Limitations
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.
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).
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.
4. Evaluation Results
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.
| Benchmark | Setting | Motif-3-Base |
|---|---|---|
| MMLU | 5-shot | 86.20 |
| MMLU-Pro | 5-shot CoT | 68.56 |
| ARC-C | 25-shot | 94.71 |
| WinoGrande | 5-shot | 80.90 |
| HellaSwag | 10-shot | 88.30 |
| PIQA | 0-shot | 85.14 |
| GSM8K | 8-shot CoT | 93.93 |
| MATH | 4-shot CoT | 70.58 |
| HumanEval | 0-shot | 73.70 |
| MBPP | 3-shot | 84.60 |
5. Architecture
Motif 3 is a fully in-house design and introduces several custom components (full details in the technical report):
- 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.
- 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.
- 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.
- 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.)
6. Access
This model is openly available β anyone can download the weights, no access request required.
7. License
This model is released under the MIT License. See the LICENSE file for details.
Β© Motif Technologies. All rights reserved.
- Downloads last month
- -