中文版正在随流水线自动整理,稍后刷新即可;可先阅读下方英文原文。
本文由 AI图鉴自动抓取并翻译,版权归原作者所有;如需查看原文请点下方链接。
AI图鉴首页 › AI 资讯 › NariQ:一个10GB文件中的BF16级Qwen3.8-27B
我们建造了NariQ: Qwen3. 8-27B的3位或更低的量化,它保留了近BF16的质量,跨越了代理任务,数学,多语种推理,和图像底部
中文版正在随流水线自动整理,稍后刷新即可;可先阅读下方英文原文。
本文由 AI图鉴自动抓取并翻译,版权归原作者所有;如需查看原文请点下方链接。
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: Install (macOS, Linux) 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 from pip and serve model# 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: Start the llama.cpp server # 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: Pull the model # 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: Start the llama.cpp server # 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: Start the llama.cpp server # 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
(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).
- The 3-bit and 2.5-bit files match BF16 on long-horizon agent tasks, math and image understanding. The 2-bit file scores lower.
- NariQ is a trellis-coded post-training quantization (PTQ), calibrated on real coding-agent traces and stored in a layout that runs on a single GPU.
- More details are in the tech report.
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:
- Core Capabilities: Comprehensive improvements across coding, professional work, research, and long-horizon agentic tasks.
- Agent Execution: Stronger autonomous planning and better handling of environment feedback, leading to more reliable end-to-end task completion.
- Downstream Compatibility: Broader support for popular harnesses and development tools, making it easier to integrate into your existing stack.
- Flexible Thinking Control: Thinking mode is on by default and can be disabled per request; reasoning depth can be tuned with reasoning_effort, and reasoning context from historical messages is retained via preserve_thinking.
- Vision-Language Understanding: Native support for image and video understanding, from STEM diagrams and documents to hour-scale videos.
Model Overview
- Type: Causal Language Model with Vision Encoder
- Training Stage: Pre-training & Post-training
- Language Model
- Number of Parameters: 27B
- Hidden Dimension: 5120
- Tok
Auto-fetched and translated by AI Atlas. All rights belong to the original author.
ImageWise 是 AI 图片处理工作台,可识别截图、菜单、漫画、海报和商品图中的文字,结合画面语境翻译
Needle 3Needle 3:图像生成方向的 AI 工具,Hacker News 新品(热度 26)。
Reverse Image Location (GeoSolver)GeoSolver 可根据照片或截图中的道路、标志、植被、建筑和地形线索估计拍摄地点,并说明推理过程,适合
Things To Do APIThings To Do API:图像生成方向的 AI 工具,Hacker News 新品(热度 26)。
Modal 每月 $30 免费 GPU/CPU 额度
InstaBox5 台免费云电脑(每台 4 vCPU/8GB)
E2BAgent 沙箱:注册送 $100 赠金
DaytonaAgent 沙箱:注册送 $200 算力
标题、摘要与正文均来自该信源的公开页面,版权归原作者所有;本站自动聚合与翻译,仅作出处跳转。