返回资讯中心
外部精选
软件工程
#开发者实时流

NariQ: BF16-level Qwen3.8-27B in a 10 GB file

Use this model Instructions to use nari-labs/Qwen3.8-27B-NariQ-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

Hacker News 最新toebee2026/11/23 · 今天30 分钟阅读

以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。

Like 9

Follow

Nari Labs 9.86k

Image-Text-to-Text

GGUF

nariq

qwen

quantized

coding-agent

llama.cpp

conversational

arxiv: 2611.26157

arxiv: 2406.11235

License: apache-2.0

Model card Files Files and versions xet

Community

Deploy

Copy to bucket

Use this model Instructions to use nari-labs/Qwen3.8-27B-NariQ-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

Notebooks

Google Colab

Kaggle

Local Apps Settings

llama.cpp How to use nari-labs/Qwen3.8-27B-NariQ-GGUF with llama.cpp:

curl -LsSf https://llama.app/install.sh | sh

Start a local OpenAI-compatible server with a web UI:

llama serve -hf nari-labs/Qwen3.8-27B-NariQ-GGUF:BF16

Run inference directly in the terminal:

llama cli -hf nari-labs/Qwen3.8-27B-NariQ-GGUF:BF16

Install from WinGet (Windows)

winget install llama.cpp

Start a local OpenAI-compatible server with a web UI:

llama serve -hf nari-labs/Qwen3.8-27B-NariQ-GGUF:BF16

Run inference directly in the terminal:

llama cli -hf nari-labs/Qwen3.8-27B-NariQ-GGUF:BF16

Build from source code

git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app

Start a local OpenAI-compatible server with a web UI:

./build/bin/llama serve -hf nari-labs/Qwen3.8-27B-NariQ-GGUF:BF16

Run inference directly in the terminal:

./build/bin/llama cli -hf nari-labs/Qwen3.8-27B-NariQ-GGUF:BF16

Use Docker

docker model run hf.co/nari-labs/Qwen3.8-27B-NariQ-GGUF:BF16

Llama new

LM Studio

Jan

vLLM How to use nari-labs/Qwen3.8-27B-NariQ-GGUF with vLLM:

Install vLLM from pip:

pip install vllm

Start the vLLM server:

vllm serve "nari-labs/Qwen3.8-27B-NariQ-GGUF"

Call the server using curl (OpenAI-compatible API):

curl -X POST "http://localhost:8000/v1/chat/completions"
-H "Content-Type: application/json"
--data '{ "model": "nari-labs/Qwen3.8-27B-NariQ-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'

Use Docker

docker model run hf.co/nari-labs/Qwen3.8-27B-NariQ-GGUF:BF16

Ollama How to use nari-labs/Qwen3.8-27B-NariQ-GGUF with Ollama:

ollama run hf.co/nari-labs/Qwen3.8-27B-NariQ-GGUF:BF16

Unsloth Desktop

Pi How to use nari-labs/Qwen3.8-27B-NariQ-GGUF with Pi:

Install llama.cpp:

brew install llama.cpp

Start a local OpenAI-compatible server:

llama serve -hf nari-labs/Qwen3.8-27B-NariQ-GGUF:BF16

Configure the model in Pi

Install Pi:

npm install -g @earendil-works/pi-coding-agent

Add to ~/.pi/agent/models.json:

{ "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "nari-labs/Qwen3.8-27B-NariQ-GGUF:BF16" } ] } } }

Run Pi

Start Pi in your project directory:

pi

Docker Model Runner How to use nari-labs/Qwen3.8-27B-NariQ-GGUF with Docker Model Runner:

docker model run hf.co/nari-labs/Qwen3.8-27B-NariQ-GGUF:BF16

Lemonade How to use nari-labs/Qwen3.8-27B-NariQ-GGUF with Lemonade:

Download Lemonade from https://lemonade-server.ai/

lemonade pull nari-labs/Qwen3.8-27B-NariQ-GGUF:BF16

Run and chat with the model

lemonade run user.Qwen3.8-27B-NariQ-GGUF-BF16

List all available models

lemonade list

Hermes Agent How to use nari-labs/Qwen3.8-27B-NariQ-GGUF with Hermes Agent:

Install llama.cpp:

brew install llama.cpp

Start a local OpenAI-compatible server:

llama serve -hf nari-labs/Qwen3.8-27B-NariQ-GGUF:BF16

Configure Hermes

Install Hermes:

curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup

Point Hermes at the local server:

hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default nari-labs/Qwen3.8-27B-NariQ-GGUF:BF16

Run Hermes

hermes

Atomic Chat

OpenClaw How to use nari-labs/Qwen3.8-27B-NariQ-GGUF with OpenClaw:

Install llama.cpp:

brew install llama.cpp

Start a local OpenAI-compatible server:

llama serve -hf nari-labs/Qwen3.8-27B-NariQ-GGUF:BF16

Configure OpenClaw

Install OpenClaw:

npm install -g openclaw@latest

Register the local server and set it as the default model:

openclaw onboard --non-interactive --mode local
--auth-choice custom-api-key
--custom-base-url http://127.0.0.1:9931/v1
--custom-model-id "nari-labs/Qwen3.8-27B-NariQ-GGUF:BF16"
--custom-provider-id llama-cpp
--custom-compatibility openai
--custom-text-input
--accept-risk
--skip-health

Run OpenClaw

openclaw agent --local --agent main --message "Hello from Hugging Face"

NariQ: Qwen3.8-27B in a 10 GB file, BF16-level on long-horizon agentic tasks Quickstart

Known limits and future work

Contact us

License

Acknowledgements

Citation

Qwen3.8-27B Qwen3.8 Highlights

Model Overview

Best Practices

Citation

NariQ: Qwen3.8-27B in a 10 GB file, BF16-level on long-horizon agentic tasks

(Nov 20, 2026) We are releasing NariQ v1 GGUFs of Qwen3.8-27B at 3, 2.5 and 2 bits per weight. Run them on our llama.cpp fork (required).

Each cell gives a percentage and a count in parentheses. For DeepSWE, the count is the mean number of fully solved tasks per round. Across the same three rounds, the mean share of each task's new tests that passed was 83.1% (BF16), 82.9% (3-bit), 83.2% (2.5-bit) and 77.2% (2-bit). One BF16 verifier timeout in round 3 counts as zero (338 of 339 trials graded). Each NariQ variant had all 339 trials graded. Terminal-Bench counts solved trials, and the remaining columns count correct answers. The agent runs use the Claude Code CLI (2.1.309, thinking on, effort max) driving the local model, with a 262,144-token context and the model's thinking-mode sampling (temperature 1.0, top-p 0.95, top-k 20).

KL divergence from the BF16 model on held-out coding-agent traces, against file size. Every point was measured by us with the same code. Lower is better.

DeepSWE fully solved tasks out of 113, against file size. Our NariQ points and solid BF16 line average three rounds with Claude Code. Our GSQ-RCO points use one round. The hollow diamonds show approximate averages from Unsloth's published Dynamic V3.1 chart (mini-swe-agent). Compare each point with the BF16 line for its harness. Higher is better.

Terminal-Bench 2.1 score over 82 tasks × 3 attempts, against file size. Filled circles are our runs (Claude Code); hollow diamonds are Unsloth's reported results (mini-swe-agent), read from its published Dynamic V3.1 chart (hence ≈; its scores are averages over several passes). The two harnesses differ, so compare each point with the BF16 line of its own harness (solid: ours, dashed: Unsloth's). Higher is better.

Quickstart

One command on Linux with an NVIDIA GPU and driver 570 or newer (downloads the fork's binaries and the files, checks them, and fits the context to your GPU):

curl -fsSLO https://github.com/nari-labs/nari-llama.cpp/releases/download/b12431-nariv0/run.sh bash run.sh 3.0 # or 2.5, 2.0

Or download and serve yourself, with llama-server from the fork:

hf download nari-labs/Qwen3.8-27B-NariQ-GGUF
Qwen3.8-27B-NariQ-3.0bpw.gguf Qwen3.8-27B-NariQ-mmproj-BF16.gguf --local-dir . llama-server -m Qwen3.8-27B-NariQ-3.0bpw.gguf --mmproj Qwen3.8-27B-NariQ-mmproj-BF16.gguf
-ngl 99 -c 131072 --jinja --port 8080
--temp 1.0 --top-p 0.95 --top-k 20 --min-p 0

The sampling flags are the thinking-mode settings our scores used. -c 131072 fits a 24 GB GPU with little to spare; lower it if a display shares the GPU, or let run.sh pick the largest context that fits. Use -c 262144 (the model's full context) on 32 GB or more. GPU memory with the vision projector:

Prebuilt binaries, the Docker image, supported GPUs and build steps: the fork's README.

Decode speed on one NVIDIA RTX PRO 6000 (Blackwell), single session, 512 greedy output tokens, tokens/s:

NariQ on our llama.cpp fork with -fa on -ctk bf16 -ctv bf16 -t 1 -tb 16 --backend-sampling --samplers temperature (greedy sampling on the GPU, BF16 KV cache). UD-IQ3_XXS is Unsloth's file on llama.cpp, measured earlier on the same GPU type.

Known limits and future work

Requires a NariQ-aware runtime: for now, our llama.cpp fork. Stock llama.cpp, Ollama and LM Studio can't load the new tensor types yet; we hope to merge support into upstream llama.cpp. Our internal SGLang plugin and our inference engine built on Resin are a work in progress for potential public release.

The llama.cpp fork needs more work across hardware. The current fork is focused on SM120 performance (e.g. RTX PRO 6000). Ampere, Ada and Hopper GPUs and Apple M-series GPUs are slower than comparable GGUFs for now; we would love open-source contributions for speedups, as this has been a solo effort. GPUs older than Ampere fall back to slow CPU execution, and AMD and Intel GPUs are not supported yet. GeForce cards have not been tested yet; tested GPUs are RTX PRO 6000, H100, L4 and A10.

Apple M-series (Metal): build from source; on an M3 Pro (18 GB) decode is about 3.8 tok/s with the 3.0bpw file (4.9 with 2.0bpw), far slower than CUDA. Other Macs are untested.

The 2-bit file is weaker overall; use the 2.5-bit or 3-bit for higher overall performance.

The vision tower stays in BF16; only the language model is quantized. The MTP (multi-token prediction) module is not included yet; it is still to be quantized.

KV-cache and activation quantization are next, so the files fit long contexts on 16 GB consumer GPUs and run faster. Today the KV cache and activations stay in BF16.

Contact us

For technical consulting, compute sponsorships, or partnership inquiries, please contact founders@narilabs.com.

License

These files inherit the base model's Apache-2.0 license; see NOTICE.

Acknowledgements

Thanks to the Qwen team for the amazing Qwen3.8-27B, and to the Unsloth, ExLlamaV3, GSQ-RCO (IST Austria DASLab) and GGML teams, whose open-source work this release builds on. NariQ's trellis codes build on QTIP (Tseng et al., 2024).

Citation

If you use NariQ, please cite the technical report:

@techreport{kim2026nariq, title = {NariQ: Sub-3-Bit Quantization for Long-Horizon Agentic Tasks}, author = {Doyeob (Toby) Kim}, institution = {Nari Labs}, year = {2026}, month = nov, eprint = {2611.26157}, archivePrefix = {arXiv}, url = {https://arxiv.org/abs/2611.26157} }

Qwen3.8-27B

Following the widespread community adoption of the Qwen3.5 and Qwen3.6 series, we are pleased to introduce Qwen3.8, the most capable generation in the Qwen open-model family to date.

Built on the architectural foundation of Qwen3.5, Qwen3.8 delivers substantial gains across coding, professional work, research, and long-horizon agentic tasks. Qwen3.8-27B brings these advances to a compact, deployment-friendly dense model: a native vision-language model that understands images and videos, with flexible thinking control, designed to carry complex, multi-step tasks through to completion with greater reliability.

Qwen3.8 Highlights

Qwen3.8-27B features the following enhancements:

Model Overview

Type: Causal Language Model with Vision Encoder

Training Stage: Pre-training & Post-training

Language Model Number of Parameters: 27B

Hidden Dimension: 5120

Token Embedding: 248,320 (Padded)

Number of Layers: 64

Hidden Layout: 16 × (3 × (Gated DeltaNet → FFN) → 1 × (Gated Attention → FFN))

Gated DeltaNet: Number of Linear Attention Heads: 48 for V and 16 for QK

Head Dimension: 128

Gated Attention: Number of Attention Heads: 24 for Q and 4 for KV

Head Dimension: 256

Rotary Position Embedding Dimension: 64

Feed Forward Network: Intermediate Dimension: 17,408

LM Output: 248,320 (Padded)

MTP (Multi-Token P

正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。

打开原文
去社区讨论 →