Image-Text-to-Text
GGUF
English
Chinese
Korean
qwen3_5
unsloth
qwen
qwen3.5
reasoning
chain-of-thought
lora
conversational
tritueviet Jackrong commited on
Commit
da5f627
·
0 Parent(s):

Duplicate from Jackrong/Qwen3.5-9B-Claude-4.6-Opus-Reasoning-Distilled-v2-GGUF

Browse files
.gitattributes ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ Qwen3.5-9B.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
37
+ Qwen3.5-9B.BF16-mmproj.gguf filter=lfs diff=lfs merge=lfs -text
38
+ Qwen3.5-9B.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
39
+ Qwen3.5-9B.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
40
+ mmproj-BF16.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3.5-9B.Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8fbbc7b04a7d4b052d14b7aa97c8bf2014d39ceca8c2baaa043711712ba71ccc
3
+ size 5629105024
Qwen3.5-9B.Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7a0502294c65e9b00c8e36a0f955b5a90e62412f5b9bf50d036991dbebff82f0
3
+ size 6467965824
Qwen3.5-9B.Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d4f248ddc1751283b9a37050cd0d6e2da72eb7a964afbdd6db9ecf5a4d317f61
3
+ size 9527497600
README.md ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ko
6
+ license: apache-2.0
7
+ base_model: Qwen/Qwen3.5-9B
8
+ tags:
9
+ - unsloth
10
+ - qwen
11
+ - qwen3.5
12
+ - reasoning
13
+ - chain-of-thought
14
+ - lora
15
+ pipeline_tag: image-text-to-text
16
+ datasets:
17
+ - nohurry/Opus-4.6-Reasoning-3000x-filtered
18
+ - Jackrong/Qwen3.5-reasoning-700x
19
+ - Roman1111111/claude-opus-4.6-10000x
20
+ ---
21
+
22
+ # 🌟 Qwen3.5-9B-Claude-4.6-Opus-Reasoning-Distilled-v2
23
+ 🔥 **Update (April 5):** I’ve released the complete training notebook, codebase, and a comprehensive PDF guide to help beginners and enthusiasts understand and reproduce this model's fine-tuning process.
24
+
25
+ > ❤️ Special thanks to the [**Unsloth**](https://unsloth.ai) open-source library and [@KyleHessling1](https://x.com/kylehessling1) for their support.
26
+
27
+ ## 📚 Resources & Guides
28
+
29
+ 👉 **[GitHub Repository: Jackrong-llm-finetuning-guide](https://github.com/R6410418/Jackrong-llm-finetuning-guide.git)**
30
+ Visit the repo to dive into the codebase and reproduce the results locally or on Colab.
31
+
32
+ ### 📥 Core Technical Document
33
+ **🔗 [Qwopus3.5-27b Complete Fine-Tuning Guide (PDF)](https://github.com/R6410418/Jackrong-llm-finetuning-guide/blob/main/guidePDF/Qwopus3-5-27b-Colab_complete_guide_to_llm_finetuning.pdf)**
34
+ * **The Full Pipeline:** A step-by-step walkthrough—from downloading the base model and unifying heterogeneous data, to configuring trainer hyperparameters and publishing to Hugging Face.
35
+ * **Beginner Friendly:** Includes an introductory guide to getting started with Google Colab and Unsloth.
36
+ * *Feedback welcome! If you spot any areas for improvement, please let me know and I will update it promptly.*
37
+
38
+ > **A Note:**
39
+ > My goal isn't just to detail a workflow, but to demystify LLM training. Beyond the social media hype, fine-tuning isn't an unattainable ritual—often, all you need is a Google account, a standard laptop, and relentless curiosity.
40
+ >
41
+ > *No one starts as an expert, but every expert was once brave enough to begin.*
42
+ >
43
+ > All training and testing for this project were self-funded. If you find this model or guide helpful, a **Star ⭐️ on GitHub** would be the greatest encouragement. Thank you! 🙏
44
+
45
+ > [!Note]
46
+ > The Claude series model optimizations are named under the **Qwopus3.5 series**, with the latest version being **🌟Qwopus3.5-v3**.
47
+
48
+ ---
49
+
50
+ ## 📢 Announcement
51
+
52
+ > *Note: Due to the constraints of SFT sample size and training scope, the model's broad general-purpose capabilities might be slightly impacted. The efficiency and accuracy results discussed here are based on the HumanEval and HumanEval+ benchmarks. Thank you for your understanding!*
53
+
54
+ ![HCaJnUQaoAAaMIc](https://cdn-uploads.huggingface.co/production/uploads/66309bd090589b7c65950665/k4JsVit-31Fw8RZ4pFkun.jpeg)
55
+
56
+ ## 💡 Model Introduction
57
+ **Qwen3.5-9B-Claude-4.6-Opus-Reasoning-Distilled-v2** is the second iteration of this reasoning-focused Qwen3.5-9B fine-tune, built to drastically improve the *efficiency* of chain-of-thought generation, unlocking highly substantial gains in reasoning speed and cost-reduction while actually increasing absolute accuracy.
58
+
59
+ Compared with the earlier version, **v2 was trained with 14,000 Claude 4.6 Opus-style general reasoning samples**, with a stronger emphasis on transferring concise, reusable reasoning patterns rather than only maximizing raw benchmark scores. The goal of v2 is not simply to make the model "think more," but to help it **think more economically**: reducing unnecessarily long internal chains, avoiding verbose over-analysis on easy problems, and massively improving the reasoning-cost-to-quality ratio while beating the baseline's benchmark correctness.
60
+
61
+ A key design choice in v2 is that the distillation data is **primarily general-domain reasoning data**—specifically focused on mathematics, word problems, logical deduction, and a balanced mix of general knowledge and instructions—rather than specialized code-heavy supervision. Consequently, **HumanEval and HumanEval+ are employed here to evaluate cross-task generalization and capability transfer**, rather than serving as direct optimization targets. High performance on these benchmarks, despite the lack of code-centric training, confirms that the model's **reasoning scaffold** has become more robust and transferable, proving that fundamental reasoning logic can effectively power specialized tasks like programming.
62
+
63
+ ### HumanEval | HumanEval+ Benchmark Analysis 🪐
64
+
65
+
66
+ ![Screenshot 2026-03-23 at 5.28.20 PM](https://cdn-uploads.huggingface.co/production/uploads/66309bd090589b7c65950665/VI6a_jMAnoFW7_75d3gO1.png)
67
+
68
+
69
+ ![Screenshot 2026-03-23 at 5.28.33 PM](https://cdn-uploads.huggingface.co/production/uploads/66309bd090589b7c65950665/Q6CsbuScRp6juKkgFgSh9.png)
70
+
71
+
72
+ ![Screenshot 2026-03-23 at 5.29.13 PM](https://cdn-uploads.huggingface.co/production/uploads/66309bd090589b7c65950665/PJQJEWUGoXtz6SMe1HrSF.png)
73
+
74
+
75
+ ![Screenshot 2026-03-23 at 5.29.34 PM](https://cdn-uploads.huggingface.co/production/uploads/66309bd090589b7c65950665/-JEWsx2y9aCLpsgKteEgO.png)
76
+
77
+
78
+ ![Screenshot 2026-03-23 at 5.29.52 PM](https://cdn-uploads.huggingface.co/production/uploads/66309bd090589b7c65950665/puDjTvm_H2EtcvhFceOTq.png)
79
+
80
+
81
+
82
+ ![Screenshot 2026-03-23 at 5.30.06 PM](https://cdn-uploads.huggingface.co/production/uploads/66309bd090589b7c65950665/y_e3gUeer4zZmKQyYz6Lm.png)
83
+
84
+ For users who care about **reasoning efficiency per unit of inference budget**, v2 is exceptionally powerful—not only achieving higher peak accuracy, but doing so while consuming over 20% fewer characters and tokens.
85
+
86
+ That matters especially for:
87
+
88
+ - **Resource-constrained local deployment**: On consumer GPUs or lower-memory local setups, shorter and cleaner reasoning traces can reduce latency, memory pressure, and the effective cost of generation.
89
+ - **Agentic workflows**: In multi-step agents, the model often solves many *easy* or *medium* subtasks. In those settings, excessively elaborate chain-of-thought can become a tax on throughput. A model that reaches a better answer with fewer reasoning tokens can radically improve end-to-end agent speed and lower cumulative inference cost.
90
+ - **Open-source tool use and emerging agent stacks**: For users building with lightweight open reasoning systems, browser-use agents, terminal agents, or projects in the "OpenClaw / local autonomous agent" style ecosystem, a model that achieves better peak accuracy while drastically improving reasoning economy is highly practical for real-world loops.
91
+ - **Simple problems at scale**: One common issue with strong reasoning-tuned base models is that they sometimes produce very elaborate internal traces even for simple prompts. While that can look impressive, it is often inefficient in practice. v2 is explicitly aimed at trimming this overhead.
92
+
93
+ In short, **v2 no longer forces a trade-off between absolute coding benchmark scores and reasoning economy**. It provides a fully optimized deployment-ready profile: **faster, shorter, more economical reasoning** paired with stronger generalization and accuracy. For local users, agent builders, and cost-sensitive applications, v2 is a strict upgrade.
94
+
95
+ ## 🗺️ Training Pipeline Overview
96
+
97
+ ```text
98
+ Base Model (Qwen3.5-9B)
99
+
100
+
101
+ Qwen3.5-9B fine-tuned with Unsloth
102
+
103
+
104
+ Supervised Fine-Tuning (SFT) + LoRA
105
+ (Response-Only Training masked on "<|im_start|>assistant\n<think>")
106
+
107
+
108
+ Jackrong/Qwen3.5-9B-Claude-4.6-Opus-Reasoning-Distilled-v2
109
+ ```
110
+
111
+ ### 🧠 Example of Learned Reasoning Scaffold(Example)
112
+
113
+ The model includes targeted optimizations addressing Qwen3.5’s tendency toward excessive transitional or repetitive reasoning on simple queries. Through deep distillation and structural imitation of Claude-4.6-Opus reasoning chains, the model adopts a more efficient structured thinking pattern:
114
+ **“Let me analyze this request carefully: 1..2..3...”.**
115
+ This streamlined reasoning paradigm significantly reduces redundant cognitive loops while preserving deep analytical capacity, resulting in substantially improved inference efficiency.
116
+
117
+ ```text
118
+ Let me analyze this request carefully:
119
+
120
+ 1. Identify the core objective of the problem.
121
+ 2. Break the task into clearly defined subcomponents.
122
+ 3. Evaluate constraints and edge cases.
123
+ 4. Formulate a step-by-step solution plan.
124
+ 5. Execute the reasoning sequentially and verify consistency.
125
+ .
126
+ .
127
+ .
128
+ ```
129
+
130
+ ### 📚 All Datasets Used
131
+ The dataset consists of high-quality, filtered reasoning distillation data:
132
+
133
+ | Dataset Name | Description / Purpose |
134
+ |--------------|-----------------------|
135
+ | [nohurry/Opus-4.6-Reasoning-3000x-filtered](https://huggingface.co/datasets/nohurry/Opus-4.6-Reasoning-3000x-filtered) | Provides comprehensive Claude 4.6 Opus reasoning trajectories. |
136
+ | [Roman1111111/claude-opus-4.6-10000x](https://huggingface.co/datasets/Roman1111111/claude-opus-4.6-10000x) | Large-scale public Claude 4.6 Opus distillation data used to strengthen general reasoning transfer in v2. |
137
+ | [Jackrong/Qwen3.5-reasoning-700x](https://huggingface.co/datasets/Jackrong/Qwen3.5-reasoning-700x) | Additional curated reasoning samples designed to strengthen structured step-by-step problem solving and improve reasoning diversity. |
138
+
139
+
140
+ ## ⚠️ Limitations & Intended Use
141
+ - **Hallucination Risk:** While reasoning is strong, the model remains an autoregressive LLM; external facts provided during the thinking sequence may occasionally contain hallucinations if verifying real-world events.
142
+ - **Intended Scenario:** Best suited for offline analytical tasks, coding, math, and heavy logic-dependent prompting where the user needs to transparently follow the AI's internal logic.
143
+ - This model is a test version intended solely for learning and demonstration purposes, and is for academic research and technical exploration use only.
144
+
145
+ ## 🙏 Acknowledgements
146
+ Significant thanks to the [Unsloth AI](https://unsloth.ai/) team for making rapid fine-tuning of large LLM models accessible. Additionally, we acknowledge Qwen internally, and the open-source community developers producing exceptional distilled datasets.
config.json ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3_5ForConditionalGeneration"
4
+ ],
5
+ "torch_dtype": "bfloat16",
6
+ "eos_token_id": 248046,
7
+ "image_token_id": 248056,
8
+ "model_name": "unsloth/Qwen3.5-9B",
9
+ "model_type": "qwen3_5",
10
+ "pad_token_id": 248055,
11
+ "text_config": {
12
+ "attention_bias": false,
13
+ "attention_dropout": 0.0,
14
+ "attn_output_gate": true,
15
+ "bos_token_id": null,
16
+ "torch_dtype": "bfloat16",
17
+ "eos_token_id": 248044,
18
+ "full_attention_interval": 4,
19
+ "head_dim": 256,
20
+ "hidden_act": "silu",
21
+ "hidden_size": 4096,
22
+ "initializer_range": 0.02,
23
+ "intermediate_size": 12288,
24
+ "layer_types": [
25
+ "linear_attention",
26
+ "linear_attention",
27
+ "linear_attention",
28
+ "full_attention",
29
+ "linear_attention",
30
+ "linear_attention",
31
+ "linear_attention",
32
+ "full_attention",
33
+ "linear_attention",
34
+ "linear_attention",
35
+ "linear_attention",
36
+ "full_attention",
37
+ "linear_attention",
38
+ "linear_attention",
39
+ "linear_attention",
40
+ "full_attention",
41
+ "linear_attention",
42
+ "linear_attention",
43
+ "linear_attention",
44
+ "full_attention",
45
+ "linear_attention",
46
+ "linear_attention",
47
+ "linear_attention",
48
+ "full_attention",
49
+ "linear_attention",
50
+ "linear_attention",
51
+ "linear_attention",
52
+ "full_attention",
53
+ "linear_attention",
54
+ "linear_attention",
55
+ "linear_attention",
56
+ "full_attention"
57
+ ],
58
+ "linear_conv_kernel_dim": 4,
59
+ "linear_key_head_dim": 128,
60
+ "linear_num_key_heads": 16,
61
+ "linear_num_value_heads": 32,
62
+ "linear_value_head_dim": 128,
63
+ "mamba_ssm_dtype": "float32",
64
+ "max_position_embeddings": 262144,
65
+ "mlp_only_layers": [],
66
+ "model_type": "qwen3_5_text",
67
+ "mtp_num_hidden_layers": 1,
68
+ "mtp_use_dedicated_embeddings": false,
69
+ "num_attention_heads": 16,
70
+ "num_hidden_layers": 32,
71
+ "num_key_value_heads": 4,
72
+ "pad_token_id": null,
73
+ "partial_rotary_factor": 0.25,
74
+ "rms_norm_eps": 1e-06,
75
+ "rope_parameters": {
76
+ "mrope_interleaved": true,
77
+ "mrope_section": [
78
+ 11,
79
+ 11,
80
+ 10
81
+ ],
82
+ "partial_rotary_factor": 0.25,
83
+ "rope_theta": 10000000,
84
+ "rope_type": "default"
85
+ },
86
+ "tie_word_embeddings": false,
87
+ "use_cache": true,
88
+ "vocab_size": 248320
89
+ },
90
+ "tie_word_embeddings": false,
91
+ "unsloth_fixed": true,
92
+ "unsloth_version": "2026.3.5",
93
+ "use_cache": false,
94
+ "video_token_id": 248057,
95
+ "vision_config": {
96
+ "deepstack_visual_indexes": [],
97
+ "depth": 27,
98
+ "torch_dtype": "bfloat16",
99
+ "hidden_act": "gelu_pytorch_tanh",
100
+ "hidden_size": 1152,
101
+ "in_channels": 3,
102
+ "initializer_range": 0.02,
103
+ "intermediate_size": 4304,
104
+ "model_type": "qwen3_5",
105
+ "num_heads": 16,
106
+ "num_position_embeddings": 2304,
107
+ "out_hidden_size": 4096,
108
+ "patch_size": 16,
109
+ "spatial_merge_size": 2,
110
+ "temporal_patch_size": 2
111
+ },
112
+ "vision_end_token_id": 248054,
113
+ "vision_start_token_id": 248053
114
+ }
mmproj-BF16.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3b18f4e5ad159c431b52c12225ef9953578abd60a4bb3bb1aa229edb5d1d6724
3
+ size 921704576