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
Reason for choosing DSV3-style MTP head?
I am curious of why DeepSeek-V3 style single layer MTP head was selected among other options such as DFlash, DFly etc.
Good question β the short answer is that they're solving different problems, so they weren't really competing options for us.
We adopted the DeepSeek-V3 style MTP module primarily as a training-time objective, not as a speculative decoding drafter. It densifies the training signal per token and encourages the representations to plan ahead, and DS-V3 reported gains on the main model's quality from it β that's why it's in the pretraining stack at all. The fact that it can be repurposed as a draft head at inference is a bonus, not the design goal.
DFlash, DFly and similar drafters are trained after the target model is finished, on top of frozen weights. They're orthogonal to pretraining and can be added to any released checkpoint, including this one β so nothing here forecloses them. Since this is a base model release, we didn't do any inference-side drafter training or benchmarking, and we'd be happy to see the community train those on top of it.
On depth-1 specifically: we followed DS-V3's choice of a single module to keep the extra compute and memory overhead on the pretraining loop small; deeper MTP stacks cost more per step for diminishing returns at this scale.