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
48fd5c2
·
0 Parent(s):

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

Browse files
.gitattributes ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-27B.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
37
+ Qwen3.5-27B.BF16-mmproj.gguf filter=lfs diff=lfs merge=lfs -text
38
+ Qwen3.5-27B.BF16-00002-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
39
+ Qwen3.5-27B.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
40
+ mmproj-BF16.gguf filter=lfs diff=lfs merge=lfs -text
41
+ Qwen3.5-27B.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
42
+ Qwen3.5-27B.BF16-00001-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
43
+ Qwen3.5-27B.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3.5-27B.Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:51ce67b6936e98b60abc4f61af79c3f5edd1610871818a917df55baae06d631b
3
+ size 16547395008
Qwen3.5-27B.Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e3097364bdd09f21415b162df53a981069b575000c1765504fa78a49f7cc5549
3
+ size 19231094208
Qwen3.5-27B.Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:637dea2da63526817f384f125cdd19af419d50be5249d95711b2dff79b04751c
3
+ size 22082524608
Qwen3.5-27B.Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9093fa002d4e64576b0724bd67010de8f87d5ec284fa71d8394fc47e2d9c65be
3
+ size 28595758528
README.md ADDED
@@ -0,0 +1,166 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - zh
5
+ - ko
6
+ license: apache-2.0
7
+ base_model: Qwen/Qwen3.5-27B
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-27B-Claude-4.6-Opus-Reasoning-Distilled-v2
23
+
24
+ 🔥 **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.
25
+
26
+ > ❤️ Special thanks to the [**Unsloth**](https://unsloth.ai) open-source library and [@KyleHessling1](https://x.com/kylehessling1) for their support.
27
+
28
+ ## 📚 Resources & Guides
29
+
30
+ 👉 **[GitHub Repository: Jackrong-llm-finetuning-guide](https://github.com/R6410418/Jackrong-llm-finetuning-guide.git)**
31
+ Visit the repo to dive into the codebase and reproduce the results locally or on Colab.
32
+
33
+ ### 📥 Core Technical Document
34
+ **🔗 [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)**
35
+ * **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.
36
+ * **Beginner Friendly:** Includes an introductory guide to getting started with Google Colab and Unsloth.
37
+ * *Feedback welcome! If you spot any areas for improvement, please let me know and I will update it promptly.*
38
+
39
+ > **A Note:**
40
+ > 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.
41
+ >
42
+ > *No one starts as an expert, but every expert was once brave enough to begin.*
43
+ >
44
+ > 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! 🙏
45
+
46
+ > [!Note]
47
+ > The Claude series model optimizations are named under the **Qwopus3.5 series**, with the latest version being **🌟Qwopus3.5-v3**.
48
+
49
+ ---
50
+
51
+ ## 📢 Announcement
52
+
53
+ > **v2 Update:**
54
+ > - **Accuracy preserved:** Matches base model on HumanEval (**96.91% pass@1**)
55
+ >
56
+ > - **Shorter reasoning:** ~**24% reduction** in chain-of-thought length
57
+ >
58
+ > - **Higher efficiency:** **+31.6% more correct solutions per token**
59
+ >
60
+ > - ⚠️**Trade-off:** −1.24% on HumanEval+ −7.2% on MMLU-Pro (Indicating reduced general knowledge reasoning performance)
61
+ >
62
+ > *⚠️Note: Due to the scope of SFT data and training focus, the model may underperform the base model on certain tasks requiring long-context understanding or more complex multi-step reasoning. The efficiency and accuracy results reported here are based solely on the HumanEval and HumanEval+ benchmarks. Thank you for your understanding.*
63
+
64
+ ![HCaJnUQaoAAaMIc](https://cdn-uploads.huggingface.co/production/uploads/66309bd090589b7c65950665/k4JsVit-31Fw8RZ4pFkun.jpeg)
65
+
66
+ ## 💡 Model Introduction
67
+ **Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled-v2** is the second iteration of this reasoning-focused Qwen3.5-27B 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.
68
+
69
+ 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.
70
+
71
+ 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.
72
+
73
+ ### HumanEval Benchmark Analysis 🪐
74
+
75
+ *The raw evaluation outputs for both models were independently cleaned, verified, and aggregated using **GPT-5.4-Pro-Thinking**. The final comparative results are based on these standardized and curated outputs. To ensure reliability, all results were further cross-checked and consolidated through **two rounds of independent validation using Claude-4.6-Opus-Thinking**.*
76
+
77
+ -All evaluations were conducted in an inference environment based on Unsloth + vLLM (BF16) to ensure consistent and efficient execution conditions.
78
+
79
+ ![Screenshot 2026-03-20 at 3.54.26 PM](https://cdn-uploads.huggingface.co/production/uploads/66309bd090589b7c65950665/jiO5dlkZ-QtE4YOcKiwu5.png)
80
+
81
+
82
+ ![Screenshot 2026-03-20 at 3.54.51 PM](https://cdn-uploads.huggingface.co/production/uploads/66309bd090589b7c65950665/XkgeRx_KSpA_L0mnk8fHM.png)
83
+
84
+
85
+ ![Screenshot 2026-03-20 at 3.58.30 PM](https://cdn-uploads.huggingface.co/production/uploads/66309bd090589b7c65950665/dUZDTx62-Iq9vQiDux3xN.png)
86
+
87
+
88
+ ![Screenshot 2026-03-20 at 3.55.49 PM](https://cdn-uploads.huggingface.co/production/uploads/66309bd090589b7c65950665/gPKc245Kdnr9XsHNWiR3v.png)
89
+
90
+
91
+ ![Screenshot 2026-03-20 at 3.56.01 PM](https://cdn-uploads.huggingface.co/production/uploads/66309bd090589b7c65950665/7MWprKLW12xczpMaj1yN7.png)
92
+
93
+
94
+ ![Screenshot 2026-03-20 at 3.56.18 PM](https://cdn-uploads.huggingface.co/production/uploads/66309bd090589b7c65950665/zvXBc1dsBjsFh66kQvJMJ.png)
95
+
96
+
97
+ ## 🗺️ Training Pipeline Overview
98
+
99
+ ```text
100
+ Base Model (Qwen3.5-27B)
101
+
102
+
103
+ Qwen3.5-27B fine-tuned with Unsloth
104
+
105
+
106
+ Supervised Fine-Tuning (SFT) + LoRA
107
+ (Response-Only Training masked on "<|im_start|>assistant\n<think>")
108
+
109
+
110
+ Jackrong/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled-v2
111
+ ```
112
+
113
+ ### 🧠 Example of Learned Reasoning Scaffold(Example)
114
+
115
+ 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:
116
+ **“Let me analyze this request carefully: 1..2..3...”.**
117
+ This streamlined reasoning paradigm significantly reduces redundant cognitive loops while preserving deep analytical capacity, resulting in substantially improved inference efficiency.
118
+
119
+ ```text
120
+ Let me analyze this request carefully:
121
+
122
+ 1. Identify the core objective of the problem.
123
+ 2. Break the task into clearly defined subcomponents.
124
+ 3. Evaluate constraints and edge cases.
125
+ 4. Formulate a step-by-step solution plan.
126
+ 5. Execute the reasoning sequentially and verify consistency.
127
+ .
128
+ .
129
+ .
130
+ ```
131
+
132
+ ### 📚 All Datasets Used
133
+ The dataset consists of high-quality, filtered reasoning distillation data:
134
+
135
+ | Dataset Name | Description / Purpose |
136
+ |--------------|-----------------------|
137
+ | [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. |
138
+ | [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. |
139
+ | [TeichAI/claude-4.5-opus-high-reasoning-250x](https://huggingface.co/datasets/TeichAI/claude-4.5-opus-high-reasoning-250x) | Injecting high-intensity, structured reasoning instances. |
140
+ | [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. |
141
+
142
+
143
+ ## ⚠️ Limitations & Intended Use
144
+ - **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.
145
+ - **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.
146
+ - This model is a test version intended solely for learning and demonstration purposes, and is for academic research and technical exploration use only.
147
+
148
+ ## 🙏 Acknowledgements
149
+ 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.
150
+
151
+
152
+ ## 📖 Citation
153
+
154
+ If you use this model in your research or projects, please cite:
155
+
156
+ ```bibtex
157
+ @misc{jackrong_qwen35_opus_distilled,
158
+ title = {Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled-v2},
159
+ author = {Jackrong},
160
+ year = {2026},
161
+ publisher = {Hugging Face},
162
+ howpublished = {\url{https://huggingface.co/Jackrong/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled-v2}}
163
+ }
164
+ ```
165
+
166
+
config.json ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3_5ForConditionalGeneration"
4
+ ],
5
+ "bos_token_id": null,
6
+ "torch_dtype": "bfloat16",
7
+ "eos_token_id": 248046,
8
+ "image_token_id": 248056,
9
+ "model_name": "qwen/Qwen3.5-27B",
10
+ "model_type": "qwen3_5",
11
+ "pad_token_id": 248044,
12
+ "text_config": {
13
+ "attention_bias": false,
14
+ "attention_dropout": 0.0,
15
+ "attn_output_gate": true,
16
+ "bos_token_id": null,
17
+ "torch_dtype": "bfloat16",
18
+ "eos_token_id": 248044,
19
+ "full_attention_interval": 4,
20
+ "head_dim": 256,
21
+ "hidden_act": "silu",
22
+ "hidden_size": 5120,
23
+ "initializer_range": 0.02,
24
+ "intermediate_size": 17408,
25
+ "layer_types": [
26
+ "linear_attention",
27
+ "linear_attention",
28
+ "linear_attention",
29
+ "full_attention",
30
+ "linear_attention",
31
+ "linear_attention",
32
+ "linear_attention",
33
+ "full_attention",
34
+ "linear_attention",
35
+ "linear_attention",
36
+ "linear_attention",
37
+ "full_attention",
38
+ "linear_attention",
39
+ "linear_attention",
40
+ "linear_attention",
41
+ "full_attention",
42
+ "linear_attention",
43
+ "linear_attention",
44
+ "linear_attention",
45
+ "full_attention",
46
+ "linear_attention",
47
+ "linear_attention",
48
+ "linear_attention",
49
+ "full_attention",
50
+ "linear_attention",
51
+ "linear_attention",
52
+ "linear_attention",
53
+ "full_attention",
54
+ "linear_attention",
55
+ "linear_attention",
56
+ "linear_attention",
57
+ "full_attention",
58
+ "linear_attention",
59
+ "linear_attention",
60
+ "linear_attention",
61
+ "full_attention",
62
+ "linear_attention",
63
+ "linear_attention",
64
+ "linear_attention",
65
+ "full_attention",
66
+ "linear_attention",
67
+ "linear_attention",
68
+ "linear_attention",
69
+ "full_attention",
70
+ "linear_attention",
71
+ "linear_attention",
72
+ "linear_attention",
73
+ "full_attention",
74
+ "linear_attention",
75
+ "linear_attention",
76
+ "linear_attention",
77
+ "full_attention",
78
+ "linear_attention",
79
+ "linear_attention",
80
+ "linear_attention",
81
+ "full_attention",
82
+ "linear_attention",
83
+ "linear_attention",
84
+ "linear_attention",
85
+ "full_attention",
86
+ "linear_attention",
87
+ "linear_attention",
88
+ "linear_attention",
89
+ "full_attention"
90
+ ],
91
+ "linear_conv_kernel_dim": 4,
92
+ "linear_key_head_dim": 128,
93
+ "linear_num_key_heads": 16,
94
+ "linear_num_value_heads": 48,
95
+ "linear_value_head_dim": 128,
96
+ "mamba_ssm_dtype": "float32",
97
+ "max_position_embeddings": 262144,
98
+ "mlp_only_layers": [],
99
+ "model_type": "qwen3_5_text",
100
+ "mtp_num_hidden_layers": 1,
101
+ "mtp_use_dedicated_embeddings": false,
102
+ "num_attention_heads": 24,
103
+ "num_hidden_layers": 64,
104
+ "num_key_value_heads": 4,
105
+ "pad_token_id": null,
106
+ "partial_rotary_factor": 0.25,
107
+ "rms_norm_eps": 1e-06,
108
+ "rope_parameters": {
109
+ "mrope_interleaved": true,
110
+ "mrope_section": [
111
+ 11,
112
+ 11,
113
+ 10
114
+ ],
115
+ "partial_rotary_factor": 0.25,
116
+ "rope_theta": 10000000,
117
+ "rope_type": "default"
118
+ },
119
+ "tie_word_embeddings": false,
120
+ "use_cache": true,
121
+ "vocab_size": 248320
122
+ },
123
+ "tie_word_embeddings": false,
124
+ "unsloth_version": "2026.3.8",
125
+ "use_cache": false,
126
+ "video_token_id": 248057,
127
+ "vision_config": {
128
+ "deepstack_visual_indexes": [],
129
+ "depth": 27,
130
+ "torch_dtype": "bfloat16",
131
+ "hidden_act": "gelu_pytorch_tanh",
132
+ "hidden_size": 1152,
133
+ "in_channels": 3,
134
+ "initializer_range": 0.02,
135
+ "intermediate_size": 4304,
136
+ "model_type": "qwen3_5",
137
+ "num_heads": 16,
138
+ "num_position_embeddings": 2304,
139
+ "out_hidden_size": 5120,
140
+ "patch_size": 16,
141
+ "spatial_merge_size": 2,
142
+ "temporal_patch_size": 2
143
+ },
144
+ "vision_end_token_id": 248054,
145
+ "vision_start_token_id": 248053
146
+ }
mmproj-BF16.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:191cc67513358de838abaae1e35900f5f47cbeca2efffda0dae6713dbaf72240
3
+ size 931145856