--- base_model: - Jackrong/Qwopus3.5-9B-v3.5 tags: - text-generation-inference - transformers - unsloth - qwen3_5 - reasoning - chain-of-thought - lora - sft - agent - tool-use - function-calling - coder license: apache-2.0 language: - en - zh - es - ru - ja pipeline_tag: image-text-to-text datasets: - lambda/hermes-agent-reasoning-traces - Jackrong/Claude-opus-4.7-TraceInversion-5000x - Jackrong/Claude-opus-4.6-TraceInversion-9000x --- # 🌟 Qwopus3.5-9B-coder ## πŸš€ Model Fine-Tuning and Logical Alignment (Qwopus3.5-9B-coder) As the base model of this model, **Qwopus3.5-9B-v3.5** is already a model with powerful capabilities. On this foundation, **Qwopus3.5-9B-coder** is specially optimized and fine-tuned for high-performance **πŸ€– Agentic Coding, complex Tool Calling, and logical reasoning.** > πŸ’‘ **Why the 9B Dense Model?** > We believe that the 9B dense architecture represents the perfect **"sweet spot"** for large language models. It runs seamlessly at 8-bit precision on entry-level 16GB RAM devicesβ€”such as standard laptops and the Mac miniβ€”making it exceptionally lightweight yet highly versatile. Without requiring expensive hardware, it allows you to achieve excellent performance paired with impressive inference speeds. Simply put, **Qwen3.5-9B is currently the best open-source model in its class.** ![image](https://cdn-uploads.huggingface.co/production/uploads/66309bd090589b7c65950665/8qFQVuCxbgkWqKa2B_Vph.jpeg) > [!TIP] >**Vision & Tool Calling Support**: This model supports visual capabilities and tool calling. To enable vision, please place the `mmproj.gguf` file from the [GGUF repository](https://huggingface.co/Jackrong/Qwopus3.5-9B-coder-GGUF) into the same directory as the main `.gguf` file. --- ### πŸ›  Training Strategy The fine-tuning process of this model deeply integrates **Trace Inversion** data augmentation technology with high-quality **Agent Traces**. This systematic approach not only strengthens the model's ability to solve complex programming tasks, but also greatly improves its logical coherence and accuracy when using various tools. This model is designed specifically for the following goals: - 🧩 More structured and stronger logical reasoning capabilities, reducing repetitive thinking - πŸ’» More powerful capabilities in code writing, debugging, and repository-level task processing - πŸ›  More stable and accurate Tool Calling capabilities for terminal commands, file operations, and browsers - πŸ” Better cross-data source distillation alignment > [!WARNING] > - **Community Release Notice**: Qwopus3.5-9B-coder is released purely as an experimental community version, aiming to explore the combination of Agent capabilities and deep reasoning, and is only for research and exploration use. > - **Warning**: Because this model is vertically fine-tuned for programming agents and deep reasoning, and has not undergone comprehensive general performance evaluation, its capabilities in general domains or specific non-programming tasks may suffer from Capability Decay. Users are advised to be aware of its limitations in other scenarios while exploring its core capabilities. --- ## πŸ“Š Baseline Performance Comparison To verify the execution efficiency and logical robustness of **Qwopus3.5-9B-coder** in actual agent scenarios, we adopted the open-source testing framework [benchlocal](https://github.com/stevibe/benchlocal). ### Test Configuration - **Hardware Environment**: Apple Silicon (Mac) - **Inference Backend**: LM Studio / MLX / GGUF - **Testing Platform**: [benchlocal](https://github.com/stevibe/benchlocal) - An evaluation suite focusing on local model agent capabilities. - 🍎 You can see the actual inference speeds of different model formats on the same device. ### πŸ§ͺ Benchmark Results
1. Complex Agent Performance - HermesAgent-20
The following is the comparative performance under the HermesAgent-20 task set:
HermesAgent-20 Performance Metrics
Model Test Set Comprehensive Score Core Dimensions (M/O/S/S/B)
Qwopus3.5-9B-coder HermesAgent-20 85 84 / 93 / 88 / 75 / 84
Qwen/Qwen3.5-9B HermesAgent-20 71 75 / 58 / 100 / 53 / 69
armand0e/Qwen3.5-9B-Agent HermesAgent-20 68 71 / 83 / 43 / 61 / 80
DJLougen/Harmonic-Hermes-9B HermesAgent-20 47 60 / 45 / 23 / 69 / 38
2. Tool Call Stability - ToolCall-15
This is a ToolCall-15 test set targeting the stability of tool calls, aiming to test the stability of the model in tool calling:
ToolCall-15 Stability Metrics
Model Test Set Comprehensive Score Dimension Scores (A/B/C/D/E)
Qwopus3.5-9B-coder ToolCall-15 100 100 / 100 / 100 / 100 / 100
Qwen/Qwen3.5-9B ToolCall-15 100 100 / 100 / 100 / 100 / 100
armand0e/Qwen3.5-9B-Agent ToolCall-15 93 100 / 100 / 100 / 67 / 100
3. Code Debugging & Bug Fixing - BugFind-15
BugFind-15 is a test set containing 15 scenarios from shallow to deep, aiming to evaluate the real debugging capabilities of the model in discovering and fixing syntax, logical errors, and "trap" code in multiple programming languages through deterministic environment runtime verification.
BugFind-15 Performance Metrics
Model Test Set Comprehensive Score Dimension Scores (A/B/C/D/E)
Qwopus3.5-9B-coder BugFind-15 79 67 / 87 / 100 / 77 / 43
Jackrong/MLX-Qwen3.5-9B-DeepSeek-V4-Flash BugFind-15 75 67 / 100 / 67 / 57 / 80
armand0e/Qwen3.5-9B-Agent BugFind-15 58 29 / 87 / 73 / 20 / 67
### πŸͺ SWE-bench Verified Performance (Repository-level Coding Capability) The following shows the comparative performance on **SWE-bench Verified**, which evaluates language models on resolving software engineering issues in real-world open-source repositories:
SWE-bench Verified Performance Metrics
Model Test Set Comprehensive Score (%)
Claude 4.5 Opus SWE-bench Verified 80.9
Qwen/Qwen3.5-27B SWE-bench Verified 75.0
Qwen/Qwen3.6-35B-A3B SWE-bench Verified 73.4
Qwopus3.5-9B-coder SWE-bench Verified 53.89
google/gemma-4-31B-it SWE-bench Verified 52.0
google/gemma-4-26B-A4B SWE-bench Verified 45.0 - 48.0
> [!IMPORTANT] > - βš™οΈ All tests were conducted with a temperature of 1 as officially recommended by qwen3.5. All errors and model issues were attempted to be regenerated twice after a test failure. If both attempts fail, it is considered a failure. > - 🍎 All screenshots of the test interfaces have been uploaded to the image folder in the repository. Click the link below to view and verify: > - πŸ”— [View Test Screenshots](https://huggingface.co/Jackrong/Qwopus3.5-9B-coder/tree/main/test_images) > - ❀️ **Kyle Hessling** for his generous hardware and equipment support. You can follow him for more updates on X / Twitter: [@KyleHessling1](https://x.com/KyleHessling1). --- ### πŸ§ͺ Core Dataset Usage: Trace Inversion and High-Quality Agent Traces In order to break through the "reasoning bubble" limitation of the model in actual programming and tool usage, and to endow it with real Agent behavioral capabilities, this model introduced core augmented datasets during training: #### 1. Reasoning Synthetic Data Combining Trace Inversion **Currently, based on public information, commercial models such as OpenAI's GPT series and Anthropic's Claude series have very clearly hidden the true internal reasoning chains of their models. For these models, what we can ultimately see in the API or front-end interface can often only be considered a highly compressed "Reasoning Bubble".** To break through this limitation, we adopted the **Trace Inversion** technology. This technology utilizes an external "surrogate model" to reconstruct a complete and logically coherent deep reasoning chain based on the "question + final answer + compressed reasoning summary" published by commercial models. The "reasoning bubble", which originally consisted of only a few sentences and logical leaps, is expanded into a high-quality deep learning trace with complete derivation, calculation, and logical verification, providing step-by-step logical learning signals for the model. ![a_high_resolution_infographic_slide_style_figure](https://cdn-uploads.huggingface.co/production/uploads/66309bd090589b7c65950665/Jo2bm_rUJQmfK3Na4Uja2.png) #### 2. GLM-5.1 Agent Real Trace Data: lambda/hermes-agent-reasoning-traces To significantly enhance the model's execution and coding capabilities in real environments, this model additionally introduced the **`lambda/hermes-agent-reasoning-traces`** dataset. ![Screenshot 2026-05-16 at 5.34.59β€―PM](https://cdn-uploads.huggingface.co/production/uploads/66309bd090589b7c65950665/BTusWFqYaOS5GmRYvBuPq.png) - **Data Source and Scale**: This data subset contains approximately 10,000 high-quality multi-turn Tool Calling Trajectories generated based on the ZhipuAI GLM-5.1 and kimi-4.6 models. - **Real Agent Behavior**: Unlike traditional synthetic data, these samples represent real Agent conversations. Each sample not only contains the step-by-step reasoning process in the `` tags, but also includes actual tool execution results (rather than fabricated outputs out of thin air). - **Extensive Domain Coverage**: - **Terminal & Coding**: Script writing, code debugging, environment configuration, and data processing. - **Repository Tasks**: Involving real code repository work, such as bug fixes, refactoring, and code review. - **Browser Automation**: Web navigation, scraping, and form filling. - **Agent Tools**: Memory persistence, task delegation, skill management, etc. By learning these Agent trajectories that contain real feedback and thoughtful processes, Qwopus3.5-9B-coder can exhibit thinking and operational modes closer to human experts when facing complex programming and system operations tasks. --- ## πŸ—ΊοΈ Training Pipeline Overview The training of this model integrates a phased learning pipeline of **Trace Inversion** data augmentation technology and **high-quality Agent Trajectories data**. Its core logic lies in restoring the highly compressed "reasoning bubble" of commercial models into a deep path for learning, and combining it with real agent operational traces to comprehensively improve the model's logical reasoning and code execution capabilities. ```text [ πŸ—ΊοΈ Trace Inversion: Full Process of Data Inversion and "Attack" Distillation ] A. Surrogate Model Training 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: "Attacking" Claude-4.7-Max _______________________________________________________ | | | Claude-4.7-Max API ──► Compressed Bubbles + Final Answer | |_______________________________________________________| β”‚ β–Ό [ 🧠 Trace-Inverter-4B (Logical Reconstructor) ] ────► Synthetic CoT β”‚ β–Ό [ 🧩 Data Splicing ] ◄────────── (Original Prompt + Response) (Embed the inverted chain of thought into tags, and splice with the original Q&A pair for restoration) β”‚ β–Ό (Result: claude-opus-4.6/4.7 Inversion Set) C. Final SFT Pipeline ___________________________________________ | | | Base Model (Qwopus3.5-9B-v3.5) | |___________________________________________| β”‚ β–Ό [ πŸ“¦ Stage 1: Format Establishment and Logic Injection ] ───────► [ πŸ› οΈ Stage 2: Agent Trajectories and Programming Reinforcement ] (Integrate inverted reasoning data, stabilize thinking format) (Introduce GLM-5.1 Agent Trajectories, reinforce interaction and execution) β”‚ β”‚ β”‚ β–Ό β”‚ __________________________________________________ β”‚ | πŸ” Hermes Agent Trace Sample Structure Breakdown (GLM-5.1) | β”‚ | 1. [πŸ› οΈ System] -> JSON Tool Definition | β”‚ | 2. [πŸ‘€ Human] -> Initial Task Instruction | β”‚ | β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” | β”‚ | β”‚ πŸ” Multi-turn Loop: β”‚ | β”‚ | β”‚ 3. [🧠 GPT] -> Logical Reasoning/Reflection β”‚ | β”‚ | β”‚ 4. [πŸ€– GPT] -> Tool Call Execution Action β”‚ | β”‚ | β”‚ 5. [βš™οΈ Tool] -> Real Feedback β”‚ | β”‚ | β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ | β”‚ |__________________________________________________| β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β–Ό ___________________________________ | | | 🌟 Final Model: Qwopus3.5-9B-coder | |___________________________________| ``` > [!NOTE] > Because agent trajectory datasets are complex and diverse. The datasets have undergone rigorous cleaning and formatting. ## 🎯 Three-Stage Curriculum Learning **Qwopus3.5-9B-coder** adopts a phased reasoning data mixture strategy similar to Curriculum Learning, gradually increasing the difficulty and complexity of training signals: 1. **Early Stage (Format Establishment):** Focuses on short-to-medium length reasoning samples with stable formats. The primary goal of this stage is to establish a reliable, structured new reasoning format while avoiding overwhelming the model with extreme complexity. 2. **Middle Stage (Complexity Scaling & Multi-Teacher Distillation):** Gradually increases the proportion of complex reasoning samples from multiple teacher models. - The distillation data is sourced from more powerful models whose style distribution closely matches the base model, ensuring that the capability gap is not too wide, thereby achieving efficient learning. 3. **Late Stage (Long-Context Reinforcement & Drift Prevention):** Reinforces reasoning capabilities in long contexts. Crucially, this stage retains **short-sample replay** to ensure the model maintains its short-context instruction-following capability and minimizes capability drift. --- ## πŸš€ Context Length and Long-Context Usage During fine-tuning, this model was trained with a maximum sequence length of **32K tokens**. The training data mixture was also constructed around samples up to **32K tokens**, so the "Context Length Distribution" shown in this model card reflects the fine-tuning data distribution rather than a hard architectural limit. The model still inherits the native long-context capability of the Qwen3.6 base model. Therefore, longer context windows such as **128K** or **256K** may be available in compatible inference runtimes, depending on the backend and configuration. For practical long-context inference beyond 32K, especially when using **llama.cpp / GGUF**, it is recommended to enable **RoPE/YaRN scaling** instead of only increasing `n_ctx` / `--ctx-size`. Directly setting a larger context window without RoPE scaling may work in some cases, but it can be less stable and may not achieve the expected long-context performance. This is consistent with Qwen community guidance for long-context GGUF usage: **128K context generally requires YaRN/RoPE scaling**, and it is not necessarily enabled by default in llama.cpp. For example, Qwen maintainers have noted that "128K context length needs YaRN" and that it should be explicitly enabled when supported by the runtime. Reference: https://huggingface.co/Qwen/Qwen2.5-72B-Instruct-GGUF/discussions/2 Community feedback also suggests that RoPE/YaRN scaling can improve long-context stability for this model family. One user reported that, on **HermesAgent-20**, `Qwopus3.6-35B-A3B-v1` performed better when extending from **32K to 128K via RoPE scaling** than when directly setting a **128K context window** without scaling, with scores of **83 vs. 72** in their setup. This result may vary depending on the backend, quantization type, KV cache settings, hardware, and benchmark configuration, but it is consistent with the recommendation to use RoPE/YaRN scaling for contexts beyond 32K. Example llama.cpp configuration for extending from 32K to 128K: ```bash ./llama-server \ -m model.gguf \ --ctx-size 131072 \ --rope-scaling yarn \ --rope-scale 4 \ --yarn-orig-ctx 32768 ``` For 256K context, users may need to adjust the scaling factor accordingly and validate the result in their own workload: ```bash ./llama-server \ -m model.gguf \ --ctx-size 262144 \ --rope-scaling yarn \ --rope-scale 8 \ --yarn-orig-ctx 32768 ``` Please note that long-context behavior may vary depending on the inference backend, quantization type, KV cache settings, available memory, and task type. For best results, users should benchmark their own target workload when using contexts beyond 32K. --- ## 🀝 Collaboration & Training Details This model is the result of continuous exploration in Agentic AI and reasoning capabilities. **Training Infrastructure & Configuration:** - πŸ–₯️ **Hardware:** Local compute devices / Cloud GPUs (e.g. GB10 / H100 / RTX 5090 / A100) - βš™οΈ **Framework:** Unsloth for efficient fine-tuning --- ## ⚠️ IMPORTANT > [!CAUTION] > **Compatibility and Deployment Notice** > - **Tool Calling Format**: When using this model for tool calling, please ensure that you use a Prompt format and System Prompt that match the training data to activate its Agent capabilities. > - **Reasoning Output Extraction**: The model's thinking process is typically wrapped in `` and `` tags. When deploying to front-end applications, these tags may need to be parsed and hidden. --- ## πŸ“š Resources & Guides πŸ‘‰ **[GitHub Repository: Jackrong-llm-finetuning-guide](https://github.com/R6410418/Jackrong-llm-finetuning-guide.git)** Visit the repository to dive into our fine-tuning codebase and guides. --- ## πŸ™ Acknowledgements Special thanks to: - The Qwen team for the strong Qwen3.6 MoE base model. - Unsloth for efficient fine-tuning frameworks. - Open-source datasets and community contributors. - **Kyle Hessling** for his generous hardware and equipment support. You can follow him for more updates on X / Twitter: [@KyleHessling1](https://x.com/KyleHessling1). --- ## πŸ“– Citation ```bibtex @misc{jackrong_qwopus35_9b_coder, title = {Qwopus3.5-9B-coder}, author = {Jackrong}, year = {2026}, publisher = {Hugging Face} } ```