LLMs · Shanghai AI Lab
Intern-S2 (397B-A17B)
- Parameters
- 403B (17.0B active)
- Architecture
- Mixture of experts
- Max context
- 256K tokens
- License
- apache-2.0
- Released
- 2026-09
How to run it
On a mobile device
Intern-S2 (397B-A17B) is too big for a device like yours: it needs more memory than the device has. Models that run on mobile devices.
Quantized files · GGUF
Works in LM Studio, llama.cpp, Jan and Ollama. No sign-in needed.
huggingface.co/bartowski/Intern-S2-397B-GGUF (opens in a new tab)
ollama run hf.co/bartowski/Intern-S2-397B-GGUFOriginal weights · Hugging Face
Full-precision files from Shanghai AI Lab, for fine-tuning, vLLM, Transformers.
Official repo · GitHub
Reference code, inference scripts and docs from Shanghai AI Lab. The weights themselves download from Hugging Face.
github.com/InternLM/Intern-S1 (opens in a new tab)
git clone https://github.com/InternLM/Intern-S1Apps that run Intern-S2 (397B-A17B)
Our pick for each kind of computer, assuming the model fits in its memory. Pick your own GPU or device in the Model Finder for an exact answer.
| App | Type | Opens it as | Systems | Engine | Start |
|---|---|---|---|---|---|
| LM Studio | Desktop app | GGUF | macOSWindowsLinux | Open in LM Studio | |
| Ollama | CLI + API | GGUF from Hugging Face | macOSWindowsLinux |
|
|
| llama.cpp | CLI + API | GGUF | macOSWindowsLinux |
|
|
| Jan | Desktop app | GGUF | macOSWindowsLinux | Open in Jan | |
| vLLM | Server | Original weights | WSLWindowsLinux |
|
|
| SGLang | Server | Original weights | WSLWindowsLinux |
|
|
| Docker Model Runner | CLI + API | GGUF | macOSWindowsLinux |
|
|
| Lemonade | Desktop app | GGUF | macOSWindowsLinux |
|
|
| Unsloth Desktop | Desktop app | GGUF | macOSWindowsLinux | Open in Unsloth Desktop | |
| Atomic Chat | Desktop app | GGUF | macOSWindowsLinux | Open in Atomic Chat | |
| Pi | Coding agent | GGUF | macOSWindowsLinux | ||
| Hermes Agent | Assistant | GGUF | macOSWSLWindowsLinux | ||
| OpenClaw | Assistant | GGUF | macOSWSLWindowsLinux | ||
| OpenCode | Coding agent | GGUF | macOSWindowsLinux | ||
| Codex CLI | Coding agent | GGUF | macOSWSLWindowsLinux | ||
| OpenHands | Coding agent | GGUF | macOSWSLWindowsLinux | ||
| Zed | Coding agent | GGUF | macOSWindowsLinux | ||
| Cline | Coding agent | GGUF | macOSWindowsLinux | ||
| Open Interpreter | Coding agent | GGUF | macOSWindowsLinux | ||
| Goose | Coding agent | GGUF | macOSWindowsLinux | ||
| Aider | Coding agent | GGUF | macOSWindowsLinux | ||
| Crush | Coding agent | GGUF | macOSWindowsLinux | ||
| Qwen Code | Coding agent | GGUF | macOSWindowsLinux | ||
| Kilo Code | Coding agent | GGUF | macOSWindowsLinux | ||
| Open WebUI | Assistant | GGUF | macOSWindowsLinux | ||
| Khoj | Assistant | GGUF | macOSWindowsLinux | ||
| Letta | Assistant | GGUF | macOSWindowsLinux | ||
| KoboldCpp | Desktop app | GGUF | macOSWindowsLinux | Get KoboldCpp | |
| Text Generation WebUI | Desktop app | GGUF | macOSWindowsLinux | Get Text Generation WebUI | |
| llamafile | CLI + API | GGUF | macOSWindowsLinux | Get llamafile | |
| Msty Studio | Desktop app | GGUF | macOSWindowsLinux | Open in Msty Studio | |
| Llama (macOS) | Desktop app | GGUF | macOS | Open in Llama (macOS) | |
| RecurseChat | Desktop app | GGUF | macOS | Open in RecurseChat | |
| node-llama-cpp | Library | GGUF | macOSWindowsLinux | Get node-llama-cpp | |
| Continue | Coding agent | GGUF | macOSWindowsLinux | ||
| SillyTavern | Assistant | GGUF | macOSWindowsLinux | ||
| LibreChat | Assistant | GGUF | macOSWindowsLinux | ||
| Cherry Studio | Assistant | GGUF | macOSWindowsLinux | ||
| Chatbox | Assistant | GGUF | macOSWindowsLinux | ||
| PrivateGPT | Assistant | GGUF | macOSWindowsLinux | ||
| PocketPal AI | Mobile app | GGUF | iOSAndroid | App Store Google Play | |
| ChatterUI | Mobile app | GGUF | Android | Download the APK | |
| LLM Farm | Mobile app | GGUF | iOS |
Memory needed
Weights plus KV cache and runtime overhead. Leave a little extra free for the operating system and other apps. Try another context length.
| Quantization | Quality | Weights | Total at 8K context | Total at 32K context | Download |
|---|---|---|---|---|---|
Q2_K |
Low | 161 GB | 162 GB | 163 GB | GGUF · folder (opens in a new tab) |
Q3_K_M |
Low | 198 GB | 199 GB | 199 GB | GGUF · folder (opens in a new tab) |
Q4_K_M |
Good | 246 GB | 247 GB | 248 GB | GGUF · folder (opens in a new tab) |
Q5_K_M |
High | 286 GB | 287 GB | 288 GB | GGUF · folder (opens in a new tab) |
Q6_K |
High | 331 GB | 332 GB | 332 GB | GGUF · folder (opens in a new tab) |
Q8_0 |
Very high | 428 GB | 428 GB | 429 GB | GGUF · folder (opens in a new tab) |
F16 |
Full | 807 GB | 808 GB | 808 GB | Original weights (opens in a new tab) |
Best hardware for Intern-S2 (397B-A17B)
| Quality | Hardware | Quant | Memory | Speed | Runs |
|---|---|---|---|---|---|
| 92Excellent quality (A+) · 92 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 95/100 (quality, fit, speed and memory use) sets the ranking. | Apple M3 Ultra (512 GB) |
Q5_K_M | 318 GB / 384 GB | 36.7 tok/s | Runs great |
| 66Good quality (B) · 66 of 100: how capable the model is at Q2_K, whatever it runs on. Match score 84/100 (quality, fit, speed and memory use) sets the ranking. | Apple M3 Ultra (256 GB) |
Q2_K | 178 GB / 192 GB | 66.3 tok/s | Runs welltight fit |
| 92Excellent quality (A+) · 92 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 96/100 (quality, fit, speed and memory use) sets the ranking. | Apple M5 Ultra (512 GB) |
Q5_K_M | 318 GB / 384 GB | 50.7 tok/s | Runs great |
| 90Excellent quality (A+) · 90 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 94/100 (quality, fit, speed and memory use) sets the ranking. | AMD Instinct MI350X |
Q4_K_M | 261 GB / 288 GB | 186 tok/s | Runs welltight fit |
| 80Great quality (A) · 80 of 100: how capable the model is at Q3_K_M, whatever it runs on. Match score 91/100 (quality, fit, speed and memory use) sets the ranking. | AMD Instinct MI325X |
Q3_K_M | 211 GB / 256 GB | 188 tok/s | Runs great |
| 80Great quality (A) · 80 of 100: how capable the model is at Q3_K_M, whatever it runs on. Match score 91/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA GB300 Grace Blackwell Ultra Desktop Superchip |
Q3_K_M | 211 GB / 252 GB | 211 tok/s | Runs great |
| 66Good quality (B) · 66 of 100: how capable the model is at Q2_K, whatever it runs on. Match score 84/100 (quality, fit, speed and memory use) sets the ranking. | AMD Instinct MI300X |
Q2_K | 172 GB / 192 GB | 201 tok/s | Runs welltight fit |
| 66Good quality (B) · 66 of 100: how capable the model is at Q2_K, whatever it runs on. Match score 84/100 (quality, fit, speed and memory use) sets the ranking. | Apple M5 Ultra (256 GB) |
Q2_K | 178 GB / 192 GB | 88.6 tok/s | Runs welltight fit |
| 66Good quality (B) · 66 of 100: how capable the model is at Q2_K, whatever it runs on. Match score 84/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA B200 |
Q2_K | 171 GB / 180 GB | 239 tok/s | Runs welltight fit |
| 80Great quality (A) · 80 of 100: how capable the model is at Q3_K_M, whatever it runs on. Match score 82/100 (quality, fit, speed and memory use) sets the ranking. | AMD EPYC 7002 / 7003 series NAS (256 GB) |
Q3_K_M | 217 GB / 230 GB | 10.3 tok/s | Runs welltight fit |
Run it on a cluster
Devices that can’t run Intern-S2 (397B-A17B) alone can run it together. These example clusters do:
Estimates come from published hardware specs and our open formulas, not from running the model on your machine. Real speed varies with runtime, drivers and settings. Numbers marked “Measured” come from a linked benchmark.







