Text Generation
Transformers
Safetensors
deepseek_v4
agentic
code
smaug
abacusai
8-bit precision
fp8
Instructions to use abacusai/Smaug-Flash with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use abacusai/Smaug-Flash with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="abacusai/Smaug-Flash")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("abacusai/Smaug-Flash") model = AutoModelForCausalLM.from_pretrained("abacusai/Smaug-Flash", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use abacusai/Smaug-Flash with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "abacusai/Smaug-Flash" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "abacusai/Smaug-Flash", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/abacusai/Smaug-Flash
- SGLang
How to use abacusai/Smaug-Flash 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 "abacusai/Smaug-Flash" \ --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": "abacusai/Smaug-Flash", "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 "abacusai/Smaug-Flash" \ --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": "abacusai/Smaug-Flash", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use abacusai/Smaug-Flash with Docker Model Runner:
docker model run hf.co/abacusai/Smaug-Flash
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
base_model: deepseek-ai/DeepSeek-V4-Flash-0731
|
| 4 |
+
library_name: transformers
|
| 5 |
+
---
|
| 6 |
+
|
| 7 |
+
# Smaug-Flash
|
| 8 |
+
|
| 9 |
+
Abacus.AI finetune of DeepSeek-V4-Flash-0731 (full merged weights, checkpoint-native
|
| 10 |
+
FP8: e4m3 + e8m0 128x128-block scales on the finetuned attention matrices, experts in
|
| 11 |
+
the release packed-FP4 layout — loads exactly like the official release).
|
| 12 |
+
|
| 13 |
+
Training: agentic teacher-agreement SFT + product loop-escape KTO + instruction-following
|
| 14 |
+
repair SFT, merged as full deltas (no rank truncation).
|
| 15 |
+
|
| 16 |
+
LiveBench (2026 fresh sets, clean serving): overall-7 **77.61** vs base 74.17 —
|
| 17 |
+
math 91.3 / reasoning 86.2 / data_analysis 79.1 / language 79.2 / coding 77.1 /
|
| 18 |
+
instruction_following 69.3 / agentic_coding 61.1 (base 46.8).
|
| 19 |
+
|
| 20 |
+
Serving: SGLang v0.5.18, tp4, dp-attention, --moe-runner-backend flashinfer_mxfp4,
|
| 21 |
+
fp8 KV, 1M context. Recommended reasoning effort: max.
|