๐ข Qwopus3.6-27B-Coder-Compat-MTP-GGUF
Compatibility Edition
Bundled-MTP GGUF release with expanded chat-template interoperability for tool-using runtimes and OpenAI-compatible agent histories.
โ JSON-string arguments
โ Mapping & list arguments
โ llama.cpp / minja
โ Hugging Face Jinja
โก Bundled MTP
๐ง Weight-identical validation
๐ Compatibility-focused template update
This edition expands interoperability across agent frameworks that store historical
tool_call.function.arguments in different valid representations. The embedded template accepts
pre-serialized JSON strings as well as structured mappings and lists, while preserving the original tool-call
payload. This is a template-level compatibility update: model weights and the bundled MTP prediction tensors
remain unchanged.
HF template rendering
10 / 10
All compatibility cases rendered successfully.
llama.cpp / minja
10 / 10
Exact commands and arguments preserved.
Loop regression
0 loops
10/10 cases; no malformed tool-call loops.
MTP acceptance
76.81%
944 of 1,229 draft tokens accepted.
๐ Weight-identical Q4_K_M template comparison
| Metric | Compat template | Official template |
|---|
| HF rendering | 10/10 | 3/10 |
| minja rendering | 10/10 | 9/10 |
| Coding quality | 1.70 / 2 | 1.70 / 2 |
| Median decode speed | 30.53 tok/s | 29.92 tok/s |
| MTP acceptance | 76.81% | 76.41% |
| Prompt tokens across speed set | 11,150 | 12,238 |
Validation used two Q4_K_M GGUF files with identical per-tensor SHA-256 manifests across all
866 tensors, including the bundled MTP/NextN tensors. Tests ran on NVIDIA GB10 with
llama.cpp build 9733, 32K context, one parallel slot, Jinja enabled, reasoning disabled, and MTP draft decoding enabled.
The measured speed difference was +2.06% for the compatibility template and is within normal runtime variance.
[!NOTE]
Compatibility scope: The update targets chat-history serialization and template rendering across Hugging Face Jinja, llama.cpp/minja, and OpenAI-compatible tool-call representations. It does not change the trained model weights, coding specialization, vision capability, or MTP architecture.
๐ค Template Update by Kyle Hessling
This compatibility template modification was completed by Kyle Hessling. Many thanks to Kyle for implementing and validating this update across the supported tool-call formats and runtimes.
If you encounter any template-related issues, follow and contact Kyle on X to share your feedback:
@KyleHessling1.
Original Qwopus3.6-27B-Coder-MTP-GGUF Model Card
The complete original model card is retained below for model background, training details, benchmarks, usage guidance, resources, acknowledgements, and citation.
๐ช Qwopus-3.6-27B-Coder
Coder SFT Release
Agentic Coding & Tool-Use Reasoning Model Fine-Tuned on Qwopus3.6-27B-v2
๐งฌ Trace Inversion & Negentropy
๐ง 27B Dense Model
โก Agentic Coding
๐ ๏ธ Tool Calling & Agent
๐ SWE-bench Verified: 67.0% (off-thinking)
๐ก What is Qwopus-3.6-27B-Coder?
๐ช Qwopus-3.6-27B-Coder is a reasoning-enhanced agentic coding model built on top of Qwopus3.6-27B-v2. It inherits the powerful reasoning foundation of the v2 base โ which achieved 87.43% MMLU-Pro (300ex) and 75.25% SWE-bench Verified โ and further specializes it for agentic code generation, structured tool calling, debugging, and instruction-following in developer workflows. The model is designed to excel at repository-level coding tasks, multi-turn tool orchestration, and complex logical reasoning under realistic agent environments.
๐งฉ Agentic Coding
Optimized for repository-level coding, debugging, patch generation, and structured multi-step development workflows.
๐ ๏ธ Tool Calling
Learns from real agent trajectories with tool definitions, tool calls, and environment feedback for robust multi-turn execution.
๐งฌ Trace Inversion
Inherits the full Qwopus training recipe with reconstructed step-by-step reasoning trajectories from Claude Opus.
๐ 27B Scale
Dense 27B parameters with native long-context support, delivering deep reasoning with practical single-GPU deployability.
[!WARNING]
Community Release Notice: Qwopus-3.6-27B-Coder is an experimental community release intended for research, evaluation, and agent workflow exploration. It has not undergone full safety evaluation or broad general-domain benchmarking.
[!IMPORTANT]
Benchmark Status: The first completed benchmark is SWE-bench Verified full 500 in thinking-off / no-thinking mode, where the Q5_K_M 27B GGUF run resolved 335/500 = 67.0%. Other benchmark suites remain pending and will be updated as testing completes.
๐ก 1. Base Model, Training Stack & Collaboration
๐ง 1.1 Base Model: Qwopus3.6-27B-v2
Qwopus3.6-27B-v2 is a reasoning-enhanced dense language model built on Qwen3.6-27B. Through a multi-stage curriculum learning pipeline and Trace Inversion augmentation, it achieves strong performance across knowledge, coding, and reasoning benchmarks. This coder variant inherits that foundation and extends it with specialized coding and tool-use data.
| Attribute | Specifications & Details |
|---|
| ๐ง Architecture | Dense Transformer / 27 Billion Parameters |
| ๐ข Base Developer | Alibaba Cloud (DAMO Academy) โ Qwen3.6-27B |
| ๐ฏ Primary Focus | Agentic coding, tool-use stability, code debugging, structured instruction following, repository-level tasks |
| ๐งฌ Distillation Strategy | Trace Inversion + high-quality agent trajectories + curriculum SFT |
| ๐ Context Window | Native support up to 32K tokens (fine-tuning target); compatible with longer contexts via RoPE/YaRN scaling |
๐งช 1.2 Hardware Cooperation & Joint Collaboration
This project is built in close collaboration and joint effort with engineer
Kyle Hessling, whose hardware infrastructure and training support made stable 27B-scale fine-tuning and evaluation possible.
๐
You can follow him for hardware and model training updates on X / Twitter: @KyleHessling1
๐ฆฅ 1.3 Fine-Tuning Framework (Unsloth)
The model training workflow is accelerated and memory-optimized with
Unsloth. Special thanks to the Unsloth team for making efficient large-model fine-tuning accessible.
โก 1.4 MTP Variant: Faster Speculative Decoding
A
Multi-Token Prediction (MTP) variant of this model is also available, featuring auxiliary prediction heads (
draft=2) for speculative decoding. Based on the Qwopus3.6-27B-v2-MTP benchmark, the MTP variant achieved
~1.66x speedup over standard decoding with preserved accuracy. See the
Qwopus3.6-27B-v2-MTP model card for detailed MTP performance analysis.
๐The custom MTP heads processing pipeline is open-sourced in qwen-mtp-gguf. If you find this toolkit helpful, please consider leaving a star on GitHub!
๐ 2. Background & Motivation
๐ฏ 2.1 Why a 27B Coder Model?
The Qwopus coder line has demonstrated strong results at the 4B and 9B scales. The 27B coder variant represents a significant leap in reasoning depth, code generation quality, and tool-use robustness. At 27B parameters, the model has sufficient capacity to internalize complex repository structures, multi-file dependencies, and nuanced tool-calling patterns โ while remaining deployable on a single GPU (e.g., RTX 5090). This scale bridges the gap between compact local models and expensive API-based solutions, making it suitable for production agentic coding workflows.
๐งฌ 2.2 Trace Inversion & Agent Behavior
Commercial and frontier models often expose only compressed reasoning summaries. Qwopus-style training uses
Trace Inversion to reconstruct these compressed "Reasoning Bubbles" into fuller learnable reasoning traces. For coding, this is paired with agent trajectories that include tool definitions, tool calls, and real feedback, teaching the model to reason through interactive work rather than only produce static answers.
This model integrates:
- claude-opus-4.6-traceInversion-9000x: 9,000 high-value, fully reconstructed step-by-step reasoning trajectories.
- claude-opus-4.7-traceInversion-5000x: 5,000 complex multi-turn logic and mathematics samples optimized for negative entropy reconstruction.
- lambda/hermes-agent-reasoning-traces: ~10,000 high-quality multi-turn tool-calling trajectories from GLM-5.1 and kimi-4.6 models.
๐ฆ 2.3 Special Dataset: Trace Inversion & Agent Traces
Trace Inversion: Uses a specialized logical reconstructor,
Trace-Inverter-4B, to reverse-engineer compressed reasoning bubbles into complete, step-by-step learnable CoT chains. This approach addresses the
"Information Entropy Trap" โ where direct imitation of compressed summaries leads to reasoning fractures โ by ensuring the model learns continuous, rigorous logical derivations.
Agent Traces (lambda/hermes-agent-reasoning-traces): Each sample contains real multi-turn tool execution results (not fabricated outputs), with step-by-step reasoning inside <think> tags. Coverage includes:
- Terminal & Coding: Script writing, debugging, environment configuration
- Repository Tasks: Bug fixing, refactoring, code review
- Browser Automation: Web navigation, scraping, form filling
- Agent Tools: Memory persistence, task delegation, skill management
๐ 3. Performance Benchmarks
๐ Evaluation & Performance Metrics
First completed result: SWE-bench Verified full 500, evaluated in no-thinking mode for fast local agentic coding.
โก
No-Thinking SWE-bench Result
This benchmark was intentionally run with thinking disabled. The goal is to show the model's practical coding ability when used as a fast local agent, without relying on long visible reasoning traces. On an RTX 5090 with MTP enabled, the model runs at approximately 100 tokens/sec, making this result especially relevant for interactive development workflows.
SWE-bench Verified
67.0%
335 / 500 resolved
Inference Mode
Thinking Off
no visible CoT required
Local Throughput
~100 t/s
RTX 5090 + MTP
Evaluation Build
Q5_K_M
27B GGUF quant
Evaluation setup: SWE-bench Verified full 500, Qwopus-3.6-27B-Coder Q5_K_M GGUF, thinking-off / no-thinking mode. Final score: 335/500 = 67.0%.
๐ป 3.1 SWE-bench Verified: Full 500 No-Thinking Result
SWE-bench Verified measures whether a model can solve real GitHub issues by editing repository code and passing the hidden tests. In this run, Qwopus-3.6-27B-Coder solved 335 out of 500 verified tasks while running in no-thinking mode, prioritizing direct action quality and local speed over long explicit reasoning.
| Metric | Result | Notes |
|---|
| Final score | 335/500 = 67.0% | Full SWE-bench Verified 500-task split |
| Mode | Thinking off | No long visible chain-of-thought during evaluation |
| Quantization | Q5_K_M GGUF | Local 27B quantized deployment |
| Throughput | ~100 tokens/sec | Observed on RTX 5090 with MTP enabled |
๐งฉ 3.2 Repository-Level Breakdown
The result is strongest on practical library-maintenance tasks such as scikit-learn, xarray, requests, and Django, while also showing solid coverage on symbolic mathematics, test infrastructure, documentation tooling, and plotting libraries.
Repository
Resolved
Rate
scikit-learn
27/32
84%
pydata/xarray
18/22
82%
psf/requests
6/8
75%
django
166/231
72%
sympy
48/75
64%
pytest
12/19
63%
sphinx-doc
26/44
59%
matplotlib
20/34
59%
astropy
9/22
41%
pylint
2/10
20%
โ๏ธ 3.3 SWE-bench Verified Reference Comparison
Important comparison note: the reference scores below are from external model reports and are generally thinking-enabled or harness-specific where noted. Qwopus-3.6-27B-Coder is shown here as a no-thinking, quantized local run, so this table should be read as positioning context rather than a strict same-mode leaderboard.
| Model | Thinking Mode | SWE-bench Verified | Context |
|---|
| Qwopus-3.6-27B-Coder | Off / No-thinking | 67.0 | Q5_K_M, RTX 5090 + MTP, ~100 t/s |
| OpenAI GPT-5 | On | 70.1 | Thinking-on reference |
| OpenAI GPT-5 mini | On | 59.8 | Thinking-on reference |
| OpenAI GPT-5 nano | On | 34.8 | Thinking-on reference |
| GLM-4.7 | On | 70.6 | OpenHands reference |
| GLM-4.5-Air | On | 57.6 | OpenHands reference |
| Qwen3-Coder-30B-A3B-Instruct (2025-07) | Off / No-thinking | 70.3 | No-thinking reference |
| Claude 4.0 Opus | On | 67.6 | Thinking-on reference |
| Claude 4.5 Opus | On | 80.9 | Thinking-on reference |
| Qwen3.6-27B | On | 77.2 | Thinking-on reference |
| Qwen3.5-397B-A17B | On | 76.2 | Thinking-on reference |
| Qwen3.5-27B | On | 75.0 | Thinking-on reference |
| Qwen3.6-35B-A3B | On | 73.4 | Thinking-on reference |
| Gemma4-31B | On | 52.0 | Thinking-on reference |
| Gemma4-26B-A4B | On | 17.4 | Thinking-on reference |
๐ฎ 3.4 Live Thinking-Disabled Demo: Boat Survival
Kyle Hessling also tested Qwopus-3.6-27B-Coder in a small interactive game environment with thinking disabled. The demo is a practical smoke test for fast decision-making, instruction adherence, and local responsiveness beyond static benchmark tables.
Takeaway: The headline is not that this no-thinking local run beats every thinking-enabled frontier reference. The important result is that a quantized 27B local coder can reach 67.0% on the full SWE-bench Verified split while staying fast enough for interactive agent loops. This makes Qwopus-3.6-27B-Coder a practical option for developers who want strong repository-level repair performance without paying the latency cost of long reasoning mode.
๐บ๏ธ 4. Training & Data Pipeline Overview
The training process fuses Trace Inversion data augmentation with a Three-Stage Curriculum Learning pipeline. The core engineering focuses on expanding context length gradually while training on reconstructed reasoning traces and real agent trajectories to keep the output format stable.
[ ๐บ๏ธ Trace Inversion: Reconstructing Distillation Workflow ]
A. Surrogate Model Training (Trace Inverter)
Open-source Model (GLM-5.1 / DS-V4) โโโบ Complete Reasoning Chain โโโบ [ Qwen3-235B Compression ] โโโบ Reasoning Bubbles
โ โ
โโโโโโโโโโโโบ [ Training ] โโโโโโโโโโโ
(Base: Qwen3-4B-Instruct)
(Result: Trace-Inverter-4B)
B. Inversion Phase: Reconstructing Claude-4.7-Max
_______________________________________________________
| |
| Claude-4.7-Max API โโโบ Compressed Bubbles + Answer |
|_______________________________________________________|
โ
โผ
[ ๐ง Trace-Inverter-4B (Logic Reconstructor) ] โโโบ Synthetic Deep Reasoning Trace (Learnable CoT)
โ
โผ
[ ๐งฉ Data Splicing ] โโโโโโโโโโโ (Original Prompt + Response)
(Embed reconstructed CoT in <think> tags, splicing with original prompt/response)
โ
โผ
(Result: claude-opus-4.6/4.7 inverted sets)
C. Final Coder SFT Curriculum Pipeline
___________________________________________
| |
| Base Model (Qwopus3.6-27B-v2) |
|___________________________________________|
โ
โผ
[ ๐ฆ Phase 1: Format Inception ] โโโบ [ ๐ ๏ธ Phase 2: Agent/Coding Expansion ] โโโบ [ ๐ Phase 3: Long-Context SFT ]
( < 4096 tokens ) ( 4096 - 8192 tokens ) ( 8192 - 32K tokens )
(Stable <think> format) (Tool traces + coding tasks) (Long / multi-turn / replay)
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โผ
_______________________________________________
| |
| ๐ Final Model: Qwopus-3.6-27B-Coder |
|_______________________________________________|
[!NOTE]
Due to the complex and diverse format of agent trajectory datasets, rigorous cleaning and format standardization were applied to ensure data quality.
๐ 5. Three-Stage Curriculum Learning
To steadily scale reasoning quality under long-context inference, Qwopus-3.6-27B-Coder uses a curriculum-style data mixture building on the approach proven in the Qwopus coder line. The model is first stabilized on short, clean reasoning samples, then exposed to complex coding and agent traces, and finally reinforced with longer contexts plus replay data.
| Curriculum Stage | Focus & Sample Characteristics | Strategy Details |
|---|
| ๐ฆ Stage 1: Format Inception | โข Limit context within 4,096 tokens โข Emphasize stable reasoning templates | Focuses on short-to-medium length, cleanly formatted reasoning samples. The primary goal is to establish reliable structured reasoning output, including stable <think> boundaries, before exposing the model to longer chains. |
| ๐ ๏ธ Stage 2: Complexity Expansion | โข Extend length to 4,096 - 8,192 tokens โข Introduce higher-difficulty coding and agent samples | Gradually increases the ratio of complex reasoning chains, code debugging tasks, and multi-turn tool traces. The model learns to connect reasoning, action selection, and environment feedback. |
| ๐ Stage 3: Long-Context SFT | โข Progressively scale samples up to 32K tokens โข Use short-sample replay | Pushes the model toward long-context and multi-turn reasoning while replaying high-quality short samples to reduce instruction-following drift. The 32K figure describes the fine-tuning sequence/data mixture target, not a hard architectural limit. |
๐ฏ 6. Recommended Use Cases & Known Limits
โ
Good Fits
Agentic code generation and repository-level debugging, complex tool-call orchestration, structured multi-step reasoning, code review and patch generation, DevOps scripting and automation, and any workflow requiring deep logical reasoning combined with tool execution.
โ Known Limits
As a specialized coder model, it has not undergone comprehensive general-domain safety evaluation. Capability decay may occur in non-coding or non-agent tasks. Tool-call behavior depends strongly on prompt format and tool schema consistency. Long-context performance beyond 32K may require RoPE/YaRN scaling.
[!CAUTION]
Deployment note: The model may emit reasoning inside <think> and </think> tags. Front-end applications and agent frameworks should parse or hide these sections where appropriate. For tool calling, ensure the prompt format and system prompt match the training data configuration to activate agent capabilities.
โ ๏ธ 7. Training & Deployment Notes
[!CAUTION]
Compatibility Notes
- Tool Calling Format: To activate the model's agent capabilities, ensure the prompt format and system prompt include appropriate tool definitions and match the training data format.
- Reasoning Output Extraction: The model's thinking process is wrapped in
<think> and </think> tags. Front-end applications may need to parse and hide these tags.
- Long-Context Usage: For contexts beyond 32K, consider enabling RoPE/YaRN scaling (e.g.,
--rope-scaling yarn --rope-scale 4 --yarn-orig-ctx 32768 in llama.cpp).
๐ 8. Benchmark Progress
The first completed evaluation is the no-thinking SWE-bench Verified run reported above. Additional local agentic benchmarks remain pending and will be added after testing.
| Benchmark | Status | Result / Reference |
|---|
| SWE-bench Verified | โ
Completed | 335/500 = 67.0% (thinking-off, Q5_K_M, RTX 5090 + MTP) |
| BugFind-15 | ๐ Pending | 9B reference: 79 |
| HermesAgent-20 | ๐ Pending | 9B reference: 85 |
| ToolCall-15 | ๐ Pending | 9B reference: 100 |
| InstructFollow-15 | ๐ Pending | 9B reference: 93 |
๐ 9. Resources & Guides
๐ GitHub Repository: Jackrong-llm-finetuning-guide
Access the repository to dive into the codebase and reproduce our results.
๐ Qwen MTP GGUF Processing Workflow
A custom splitting and merging methodology designed specifically for Qwen series Multi-Token Prediction (MTP) heads.
๐ benchlocal Evaluation Framework
The evaluation framework used to run the local agentic and coding benchmarks.
๐ Qwopus3.6-27B-v2 Model Card
Base model card with full MMLU-Pro, SWE-bench, and throughput benchmarks.
๐ 10. Acknowledgements
Special thanks to:
- The Qwen team for providing the powerful Qwen3.6-27B base model.
- Unsloth for providing the highly efficient fine-tuning framework.
- Kyle Hessling for the close collaboration on hardware, training infrastructure, and evaluation support.
- Open-source datasets and community contributors, particularly
lambda/hermes-agent-reasoning-traces for the high-quality agent trajectory data.
๐ 11. Citation
@misc{jackrong_qwopus36_27b_coder,
title = {Qwopus-3.6-27B-Coder},
author = {Jackrong},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/Jackrong/Qwopus-3.6-27B-Coder}}
}