jesdga95/basalt
关于
面向 NVIDIA Blackwell 优化的本地推理引擎
人工智能与机器学习实测星标增长
- 24小时
- +165
- 7天
- +559
- 15天
- +1,256
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
Basalt is a local inference engine for large language models: Qwen3.8-Flash-Next, DeepSeek-V4.1-Flash, Qwen3.8-27B, Qwen3.6-35B-A3B, Hy4-flash, Inkling 2 Mini, ERNIE-5.5-Flash, Gemma 4 and GLM-5.3-Flash. It runs on an NVIDIA Blackwell GPU (sm_120) on Linux and Windows x64, and on the DGX Spark (GB10, Arm64), with what does not fit in VRAM (the experts of a mixture-of-experts model) in system RAM, and optionally on more GPUs. The server speaks the OpenAI and Anthropic APIs. Website: basalt.jgulfo.com.

Help wanted: spare Blackwell compute for testing? See Contributing.
Questions, help or just hanging out: join the Discord.
Requirements
- Linux x86-64 with AVX2, or Windows 10 1903+ x64, with an NVIDIA Blackwell GPU (compute capability 12.0) (platforms).
- Or a DGX Spark or another GB10 machine: Linux Arm64 with its integrated Blackwell GPU (12.1) (Arm64).
- Or an RTX Spark laptop: Windows on Arm with the N1X's integrated Blackwell GPU (12.1), built from source (Arm64).
- CUDA 13.
- CMake 3.24+, GCC 13+ (Linux), Python 3.12+, and enough system RAM for the experts that do not fit in VRAM.
- The prebuilt Linux archives need glibc 2.38 and a libstdc++ with
GLIBCXX_3.4.32(GCC 13's), so they do not run on Ubuntu 22.04 (glibc 2.35). Build from source or use the container image there (platforms).
Quick start
Prebuilt Linux (x64 and Arm64) and Windows archives are attached to each release (what they need); otherwise build from source:
git clone https://github.com/jesdga95/basalt && cd basalt
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DBASALT_MODELS=all
cmake --build build -j # bin/basalt, bin/basalt-bench, bin/basalt-probe, bin/basalt-vision
# Windows: add -G Ninja to the first line, from an x64 VS 2022 prompt ([platforms](docs/platforms.md#building-on-windows))
# -DBASALT_MODELS is required: all, or the ids of the models you want, such as -DBASALT_MODELS=qwen4exp ([building](docs/building.md#building-only-some-models))
pip install -r requirements.txt
hf download jesdga/Qwen3.8-Flash-Next-Basalt Qwen3.8-FN-NVFP4-DQ6_K.basalt --local-dir models
Put the settings in basalt_config.json:
{
"version": 2,
"models": [{ "model": "models/Qwen3.8-FN-NVFP4-DQ6_K.basalt", "gpu": "0,1", "gpu-mode": "peer", "kv": "int8" }],
"engine": { "resident-experts": true },
"server": { "port": 8080 }
}
bin/basalt serve --config basalt_config.json
The server listens on 127.0.0.1. Every setting: configuration. More examples: example configurations.
Models
| Model | Context | Drafter | Images | Pack | Precision |
|---|---|---|---|---|---|
| Qwen3.8-Flash-Next | 262K, longer with YaRN | MTP | yes | Hugging Face | precision |
| DeepSeek-V4.1-Flash | 1M | DSpark | yes | Hugging Face | precision |
| Qwen3.8-27B | 262K | DFlash 2 | yes | Hugging Face | precision |
| Qwen3.6-35B-A3B | 262K | MTP | yes | Hugging Face | precision |
| Hy4-flash | 1M | DFly2 | yes | Hugging Face (hybrids) | precision |
| Inkling 2 Mini | 1M | DSpark | yes | Hugging Face | precision |
| ERNIE-5.5-Flash | 1M | DSpark | no | Hugging Face | precision |
| Gemma 4 | 262K | assistant drafter | 26B A4B and 31B | Hugging Face | precision |
| GLM-5.3-Flash | the pack's own | next-n, off by default | no | convert from Unsloth's GGUFs | precision |
Every model reads documents (PDF, text), and its drafter is on by default unless the table says otherwise.
All models compared, with each one's context limit, flags and cards: models.
Video
Qwen3.8-Flash-Next and Qwen3.8-27B read video; DeepSeek, Hy4-flash, Inkling 2 Mini, ERNIE-5.5-Flash, Gemma 4 and GLM-5.3-Flash do not. A video is named like an image in a chat message, and needs
--vision and FFmpeg on the machine. Flash-Next decodes frames on the GPU with NVDEC; the 27B decodes them on the CPU.
How a request names a video, and the limits: video.
Documentation
- Run: running, configuration, models and the router, sampling, image sources, documents, diagnostics, basalt-probe, platforms.
- Models: models, Flash-Next, DeepSeek,
Qwen3.8-27B, Qwen3.6-35B-A3B, Hy4-flash, Inkling 2 Mini,
ERNIE-5.5-Flash, Gemma 4,
the
.basaltfile, file format changes. - Quality: precision, method.
- Build and develop: building, adding a model, community runs, changelog, contributing.
Credits
- Code: Strata, the project Basalt forks (MIT); Infernix (Ian Ranson and contributors, Apache-2.0), whose kernels are adapted; ggml and llama.cpp (MIT); and ideas from NInfer. Licences: THIRD_PARTY_LICENSES.
- Models: Qwen, DeepSeek, Tencent (Hy4-flash), Thinking Machines Lab (Inkling 2 Mini), Baidu (ERNIE-5.5-Flash) and Google (Gemma 4), under the licences on their cards; Unsloth's GGUFs; NVIDIA's NVFP4 checkpoints; QUASAR-QAT's NVFP4 27B (Apache-2.0); z-lab's DFlash 2 drafter.
Thank you to everyone who has contributed or sponsored the project.
License
MIT, see LICENSE.
探索相关项目
加载中…