Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

Magnitude icon

Magnitude

Run powerful open models on the hardware you already own

Download Magnitude Documentation Discord Follow Magnitude on Twitter GitHub Repo stars

Magnitude is an open source inference engine that spreads models across your GPU, RAM, and SSD so they run on everyday Macs and PCs. It works on Apple Silicon, NVIDIA, AMD, Intel, or just a CPU. One click connects it to the agent you already use (Pi, OpenCode, Hermes, Codex, and more).

⭐ Help us reach more developers and grow the Magnitude community. Star this repo!

Get started

Download the installer:

Setting up a server? Install the CLI only:

curl -fsSL https://magnitude.dev/install.sh | sh     # macOS / Linux
irm https://magnitude.dev/install.ps1 | iex          # Windows PowerShell

For more info, see CLI only. For Docker container installs, see Docker.

Why Magnitude?

  • Use your whole machine: streams experts from RAM and SSD, not just your GPU
  • Tuned to your chip: optimizes kernels per model, over 2x faster than Ollama
  • Works out of the box: configures itself for your machine, no flags or manual tuning
  • Built for concurrent agents: flexing KV memory and shared prefix caches
  • Works with your agent: one click connects Pi, OpenCode, Hermes, Codex, and more
  • Free, private, open source: no token costs, nothing leaves your machine, Apache 2.0

How it runs on everyday hardware

Decode speed of Qwen 3.8 Flash Next and DeepSeek V4.1 Flash across Mac mini M5 Pro, RTX 3090, DGX Spark, and RTX 5090

View full benchmarks →

FAQ

How does it run models bigger than my memory?

Most large open models today are ultra sparse MoEs: they are split into hundreds of small parts called experts, and only ~5% activate for each token. Magnitude spreads the model into tiers (GPU VRAM holds the shared layers and most used experts, system RAM holds the next tier of frequently used experts, and your NVMe SSD holds the rest). On every token, Magnitude predicts and prefetches upcoming experts up from SSD to RAM to VRAM before the GPU needs them.

Why is it faster than other local engines?

Other engines ship one-size-fits-all kernels, because tuning each model for each chip by hand would take forever. Magnitude tunes kernels automatically on your actual chip when you download a model, pairs each model with its best speculative decoding drafter, and predicts and prefetches streamed experts off RAM and SSD ahead of time. See the full benchmarks against Ollama.

What hardware do I need?

Any Apple Silicon, NVIDIA, AMD, or Intel GPU, or nothing but a CPU, on macOS, Linux, or Windows (desktop app, headless CLI, or Docker). VRAM needs to fit at least the active experts for a model; beyond that, the more experts you can cache in VRAM and RAM the faster it runs, and a faster NVMe SSD (like PCIe 5.0) speeds up anything that spills to disk. Magnitude profiles your machine and recommends the best models before you download anything.

Which models can I run?

Any GGUF model from Hugging Face in a supported family, including fine-tunes and other people's quants. We write optimized kernels for each of the most popular open-weight families, including sparse MoE models that stream from RAM and SSD. See the families and the models we recommend at magnitude.dev/models.

Which agents work with it?

One click connects Pi, OpenCode, Hermes, OpenClaw, Codex, Claude Code, Oh My Pi, and Cline. Anything else works through the OpenAI-compatible API.

Will streaming wear out my SSD or slow down my computer?

No. Streaming model weights from your SSD is strictly read-only, so it causes zero flash wear. Magnitude also uses direct uncached reads instead of OS disk swap, and dynamically shrinks KV memory when sessions go idle so your computer stays responsive.

Is it free and private?

Yes. Magnitude is 100% free and open source under Apache 2.0. Prompts, files, and models stay on your machine, with no token costs, API keys, or internet connection needed once a model is downloaded.

关于 About

Open source inference engine that spreads models across your GPU, RAM, and SSD so they run on everyday Macs and PCs. Works on Apple Silicon, NVIDIA, AMD, Intel, or just a CPU.

语言 Languages

Rust68.0%
TypeScript16.2%
Python4.3%
C++3.9%
Cuda3.1%
Metal1.7%
GLSL1.1%
C0.5%
Jinja0.2%
Svelte0.2%
PowerShell0.2%
Swift0.2%
JavaScript0.1%
Shell0.1%
HTML0.1%
CSS0.1%
Objective-C0.0%
NSIS0.0%
Dockerfile0.0%
EJS0.0%
CMake0.0%
AppleScript0.0%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
3367
Total Commits
峰值: 480次/周
Less
More

核心贡献者 Contributors