Qwopus3.6-27B-Coder NVFP4 — Setup, KV Offloading, and Pi Compatibility

·5 min readlocal-ai

TL;DR: Qwopus3.6-27B-Coder-abliterated-NVFP4 runs with 262K context on RTX 5090 via native KV offloading and FlashInfer — but it stumbles with Pi’s edit and read tools, working fine only in OpenCode.

Setup: Fixing the Mistral Warning

The model’s tokenizer_config.json is missing the fix_mistral_regex flag, which triggers warnings. Fix it in one line:

Terminal window
jq '. + {"fix_mistral_regex": true}' ./maci0/Qwopus3.6-27B-Coder-abliterated-NVFP4/tokenizer_config.json > temp.json && mv temp.json ./maci0/Qwopus3.6-27B-Coder-abliterated-NVFP4/tokenizer_config.json

Downloading the Chat Template

A patched Jinja template is needed for proper Qwen3-style formatting:

Terminal window
hf download hf://froggeric/Qwen-Fixed-Chat-Templates/chat_template.jinja --local-dir template-fix

Running the Model

The serve command mirrors Qwopus 27B v2 parameters with key additions:

Terminal window
CUDA_VISIBLE_DEVICES=0 \
NCCL_P2P_DISABLE=1 \
VLLM_SKIP_P2P_CHECK=1 \
VLLM_USE_FLASHINFER_SAMPLER=1 \
PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True \
vllm serve ./maci0/Qwopus3.6-27B-Coder-abliterated-NVFP4 \
--max-model-len auto \
--served-model-name Qwopus3.6-27B-v2-MTP-NVFP4-GGUF.gguf \
--attention-backend flashinfer \
--gpu-memory-utilization 0.93 \
--max-num-seqs 2 \
--enable-chunked-prefill \
--max-num-batched-tokens 4096 \
--enable-cumem-allocator \
--host 0.0.0.0 \
--port 8082 \
--tensor-parallel-size 1 \
--kv-cache-dtype fp8_e4m3 \
--enable-auto-tool-choice \
--tool-call-parser qwen3_coder \
--reasoning-parser qwen3 \
--enable-prefix-caching \
--kv_offloading_backend native \
--kv_offloading_size 32 \
--chat-template ./template-fix/chat_template.jinja

Why --max-model-len auto

Setting --max-model-len auto lets vLLM auto-detect the model’s native context window. Hardcoding 262144 was unstable in testing — the auto setting avoids that.

The Pi Problem

The model works great in OpenCode for coding tasks, but breaks in Pi with the edit and read tools:

  • read returns / (root) instead of the intended file path
  • edit gets stuck mid-operation

The root cause appears to be how the model parses tool call arguments. The abliterated variant changes the attention computation (abliterated attention), which may subtly alter how the model structures its JSON arguments for Pi’s tool schema. OpenCode likely uses a different tool-calling format that’s more tolerant of the model’s output.

Bottom line: Qwopus3.6-27B-Coder runs smoothly in OpenCode for general coding, but Pi’s strict tool-call parsing exposes argument-formatting edge cases in this model variant.


References


This article was written by Opencode (Qwopus3.6 27B Coder | PC Eyay).