gufo README

项目的 README,来自 github.com/gufo-org/gufo。合并为一个 markdown 文件:README.md。

Gufo: The Open Source Strix Halo AI engine

Gufo logo

Latest release Documentation Extension API series MIT license

Gufo is an open-source inference engine for one machine: AMD Strix Halo, the Ryzen AI MAX+ 395 with its Radeon 8060S (gfx1151) and up to 128 GiB of unified memory. It serves text, embedding, speech, image and video models over OpenAI-compatible APIs, from a single binary with kernels tuned for that chip. It runs on Linux, where releases are built and tested, and natively on Windows.

Gufo supports one model per use case, the best that fits, and checks each one against the original before optimizing it. Its cache is built for coding agents that resend long conversations, and extensions let you bring your own model.

Models

Model What it does Weights license
Qwen3.8 Flash-Next Text and images Qwen Community License 1.0
Qwen3.8 27B Text and images Apache 2.0
DeepSeek V4 Flash Text MIT
Inkling 2 Mini Text and images Apache 2.0
EmbeddingGemma 2 Embeddings for text, images, audio and video Apache 2.0
Qwen3-ASR 1.7B Speech to text Apache 2.0
Qwen3-TTS 1.7B Text to speech and voice cloning Apache 2.0
Qwen-Image-2.1 Image generation and editing Qwen Research License, non-commercial
Qwen-Image-2.1-Turbo Eight-step image generation and editing Qwen Research License, non-commercial
MiniMax H3 Video with sound MiniMax H3 Community License
Loom packages Every loom-fun text package on AMD Loom kernels Each model's own

Each model page lists the files to download, the modes and the measured speed. Gufo's own code is MIT; the weights keep their publishers' terms.

Extensions add more models without changing Gufo. With gufo set up as in the quickstart, install a reviewed one from the extension registry:

gufo extension install lfm3

Extensions explains what that runs and how to trust it; the catalogue lists the official and community extensions.

Quickstart

Download Qwen3.8 Flash-Next and its MTP head:

hf download unsloth/Qwen3.8-Flash-Next-GGUF \
  --revision d96201194f103c906994f283f504209dc8d2a10c \
  --include "UD-Q4_K_XL/*" \
  --include "MTP/mtp-Qwen3.8-Flash-Next-shared-Q8_0.gguf" \
  --local-dir models/flash-next

Define gufo to run in the container, with the GPU and the models folder:

gufo() {
  podman run --rm -it --network host \
    --userns=keep-id:uid=1000,gid=1000 --group-add keep-groups \
    --device /dev/kfd --device /dev/dri --device /dev/accel/accel0 \
    --ulimit memlock=-1 \
    -v ./models:/models:ro \
    -v gufo-extensions:/home/gufo/.local/share/gufo/extensions \
    ghcr.io/gufo-org/toolboxes/gufo-runtime:latest gufo "$@"
}

Serve the model, then ask it something from another terminal:

gufo serve llm --served-model-name flash-next \
  --model /models/flash-next/UD-Q4_K_XL/Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf \
  --speculative mtp --mtp-model /models/flash-next/MTP/mtp-Qwen3.8-Flash-Next-shared-Q8_0.gguf

curl http://localhost:8080/v1/chat/completions -H "Content-Type: application/json" \
  -d '{"model": "flash-next", "messages": [{"role": "user", "content": "Say something"}]}'

Any OpenAI client works with the base URL http://localhost:8080/v1: Open WebUI, the OpenAI SDKs, Codex and other agents. If the GPU isn't found, see troubleshooting. For the Debian package, Nix, a source build or Windows, see install.

Documentation

The documentation is on gufo.blog/docs, one version per release, and in docs/ for the development version.

The changelog and releases list what changed.

Principles

Contributing

Contributions are welcome: Gufo needs the Strix Halo community to keep improving. CONTRIBUTING.md explains what belongs in Gufo and what belongs in an extension. To add a model without changing Gufo, write an extension.

Community projects built on Gufo include Gufo RDMA for Dual Strix Halo, which runs models across two machines and isn't merged yet.

License

Gufo's original code is MIT licensed. Its design builds on other open-source engines, listed in reference projects. Adapted code and dependencies keep their own notices in NOTICE, THIRD_PARTY_NOTICES.md and licenses/, installed under share/licenses/gufo. Model weights aren't bundled and keep their publishers' terms.

gufo (gufo-org/gufo)

正在搜索数据库…

1.2K ·GitHub
这是什么?Gufo 是专为 AMD Strix Halo 硬件(配备 Radeon 8060S / gfx1151 的 Ryzen AI MAX+ 395,最高 128 GiB 统一内存)打造的本地推理引擎,通过 OpenAI 兼容 API 提供文本、语音、图像和视频模型服务。
这是像 llama.cpp 那样的通用运行时,还是为某一特定芯片打造?它是一个垂直的、面向特定硬件的引擎,只为 Strix Halo(gfx1151)打造,而不是通用的跨 GPU 运行时。它借鉴了 llama.cpp 和 vLLM 的设计思路,但把优化范围收窄到这一个芯片系列。
怎么把它跑起来?在 Linux x86-64 上从源码构建:要么使用固定的 flake.lock 运行“nix develop”,要么安装 C++20 编译器、CMake 3.21+、Ninja 和 ROCm,然后用“cmake --preset release”构建,并用“cmake --install build/release”安装。运行起来后,通过它兼容 OpenAI 的 Chat Completions/Responses API 与之交互,例如从 Open WebUI、VS Code 或 OpenAI SDK 调用。
运行它需要特定的 AMD 芯片和 ROCm 吗?需要——仅支持 AMD Strix Halo(gfx1151)上的 Linux x86-64,经验证的工具链为 GCC 15.3 搭配 ROCm 7.2.3(hipBLAS、hipBLASLt、rocBLAS、hipCUB、rocWMMA),另外还需要 ICU、libcurl、OpenSSL、libpng/libjpeg 以及用于媒体输入输出的 FFmpeg。
有 Windows 版本吗?还没有合并——Windows 移植版和面向双 Strix Halo 机器的“Gufo RDMA”变体以独立分支的形式存在,尚未合并进主分支。
Gufo 开箱支持运行哪些模型?它内置支持 Qwen3.8 27B 和 Qwen3.8 Flash-Next(文本)、DeepSeek V4 Flash(文本)、Qwen3-ASR 1.7B(语音识别)、Qwen3-TTS 1.7B(语音合成和声音克隆);Qwen-Image-2.1(图像生成/编辑)和 MiniMax H3(文本转视频/音频)列为开发中。
Gufo 在 Strix Halo 上速度如何?报告的峰值包括:Qwen3.8 Flash-Next 提示处理速度 1,628.52 tok/s,8 个并发请求合计最高 157.22 tok/s;Qwen3.8 27B 的 pp 速度 656.33 tok/s,使用投机解码(DFlash2)时合计最高 123.00 tok/s。
Gufo 自带模型权重吗?不带。Gufo 只是引擎;模型权重需要另行获取(例如从 Hugging Face),并遵循其各自发布者的许可条款。
为什么要打造针对特定芯片的引擎,而不是扩展 llama.cpp 或 vLLM?项目的理念是收窄聚焦于一个硬件目标(128 GiB 版 Strix Halo)及其最适配的模型,以广度换取更深入的优化、更简单的维护,以及针对每个模型的专门质量跟踪。
作者
gufo-org
大小
61.9 MB
星标
1.2K
时长
3个月
提交 · 90 天