Text Generation
Transformers
Safetensors
English
llama
Merge
dare_ties
llama-3.1
mist
conversational
text-generation-inference
Instructions to use mlx-community/MIST-1-70B-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mlx-community/MIST-1-70B-MLX with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mlx-community/MIST-1-70B-MLX") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("mlx-community/MIST-1-70B-MLX") model = AutoModelForMultimodalLM.from_pretrained("mlx-community/MIST-1-70B-MLX") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use mlx-community/MIST-1-70B-MLX with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mlx-community/MIST-1-70B-MLX" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mlx-community/MIST-1-70B-MLX", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/mlx-community/MIST-1-70B-MLX
- SGLang
How to use mlx-community/MIST-1-70B-MLX 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 "mlx-community/MIST-1-70B-MLX" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mlx-community/MIST-1-70B-MLX", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "mlx-community/MIST-1-70B-MLX" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mlx-community/MIST-1-70B-MLX", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use mlx-community/MIST-1-70B-MLX with Docker Model Runner:
docker model run hf.co/mlx-community/MIST-1-70B-MLX
MIST-1-70B
MIST-1-70B is the mid-size model in the MIST model family by olaverse. Built by blending 4 of the best Llama 3.1 70B models using DARE+TIES. structured, detailed, production ready
MIST Model Family
| Model | Params | Speed | Status |
|---|---|---|---|
| MIST-1-8B | 8B | ~63 tok/s | โ Available |
| MIST-1-70B | 70B | ~23 tok/s | โ Available |
| MIST-1-140B | 140B | ~8 tok/s | โ Available |
Key Strengths
- ๐ง Strong Reasoning โ DeepSeek R1 distillation at 70B scale
- ๐ค Highly Helpful โ built on Nemotron #1 on helpfulness benchmarks
- ๐ป Coding โ clean documented production-ready code
- ๐ Math โ step-by-step structured problem solving
- ๐ Multilingual โ supports 8+ languages
- ๐ Long Context โ 128K token context window
- ๐ Unrestricted โ follows instructions without excessive refusals
Merge Method
MIST-1-70B uses DARE+TIES:
- DARE prunes redundant weights from each model
- TIES resolves weight conflicts using sign consensus
- Result: best capabilities of all 4 models combined
Benchmark Results
| Task | Speed | Quality |
|---|---|---|
| Reasoning | 10.5s | โ Correct step-by-step |
| Coding | 11.3s | โ Clean with type hints |
| Math | 11.3s | โ Structured with verification |
| General | 11.3s | โ Accurate and detailed |
| Instruction | 8.1s | โ Precise and formatted |
Average: 23 tok/s
How to Use
bfloat16 โ Full Precision (140GB VRAM)
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"olaverse/MIST-1-70B",
torch_dtype="auto",
device_map="auto",
)
tokenizer = AutoTokenizer.from_pretrained("olaverse/MIST-1-70B")
messages = [{"role": "user", "content": "Your question here"}]
text = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
inputs = tokenizer(text, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
4-bit Quantized (40GB VRAM)
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
import torch
quantization_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_compute_dtype=torch.bfloat16,
bnb_4bit_quant_type='nf4'
)
model = AutoModelForCausalLM.from_pretrained(
"olaverse/MIST-1-70B",
quantization_config=quantization_config,
device_map="auto",
)
tokenizer = AutoTokenizer.from_pretrained("olaverse/MIST-1-70B")
Hardware Requirements
| Precision | VRAM | Size |
|---|---|---|
| bfloat16 | 140GB (1x H200 or 2x H100) | 132GB |
| 4-bit (NF4) | 40GB (1x A100/H100) | ~35GB |
License
- Downloads last month
- 82