jacehoi Jackrong commited on
Commit
8a50ec5
·
0 Parent(s):

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

Browse files
.gitattributes ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-Claude-4.6-Opus-Reasoning-Distilled-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
37
+ Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
38
+ Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
39
+ q2_k/Qwen3.5-27B.BF16-mmproj.gguf filter=lfs diff=lfs merge=lfs -text
40
+ q2_k/Qwen3.5-27B.BF16-00002-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
41
+ q2_k/Qwen3.5-27B.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
42
+ q3_k_s/Qwen3.5-27B.BF16-mmproj.gguf filter=lfs diff=lfs merge=lfs -text
43
+ q3_k_s/Qwen3.5-27B.Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
44
+ q3_k_m/Qwen3.5-27B.BF16-mmproj.gguf filter=lfs diff=lfs merge=lfs -text
45
+ q3_k_m/Qwen3.5-27B.Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
46
+ Qwen3.5-27B.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
47
+ Qwen3.5-27B.Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
48
+ Qwen3.5-27B.BF16-mmproj.gguf filter=lfs diff=lfs merge=lfs -text
49
+ Qwen3.5-27B.BF16-00002-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
50
+ Qwen3.5-27B.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
51
+ Qwen3.5-27B.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
52
+ Qwen3.5-27B.Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
53
+ Qwen3.5-27B.Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
54
+ mmproj-BF16.gguf filter=lfs diff=lfs merge=lfs -text
Qwen3.5-27B.Q2_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a15622267316636d22575f8ab25a61347eab59def966f257f572914812348c61
3
+ size 10121835936
Qwen3.5-27B.Q3_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a19704ed96c8b958b11cba545a3f1a21bc647d62d95ef7b638aac09e8d90bebb
3
+ size 13289641376
Qwen3.5-27B.Q3_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:274d0a39139a774cdc247b99b67211b819a0b58fb96306d90057b75ece310dd3
3
+ size 12073948576
Qwen3.5-27B.Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:050c89b0ff28bd17f60a204bb4b4035fda04717dcdb9271ebb71dad0e822fc82
3
+ size 16540267968
Qwen3.5-27B.Q4_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1805c9e4ac813d390181fbd4dfb49cb7337ac524e85b3956b3f9df5c8d32104d
3
+ size 15568614848
Qwen3.5-27B.Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:283f5c4dac2b2754bab5ee425b89b800a26407d1a16512fafff7f1a5d739f868
3
+ size 28595758528
README.md ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - zh
5
+ license: apache-2.0
6
+ base_model: Qwen/Qwen3.5-27B
7
+ tags:
8
+ - unsloth
9
+ - qwen
10
+ - qwen3.5
11
+ - reasoning
12
+ - chain-of-thought
13
+ - Dense
14
+ pipeline_tag: text-generation
15
+ datasets:
16
+ - nohurry/Opus-4.6-Reasoning-3000x-filtered
17
+ - Jackrong/Qwen3.5-reasoning-700x
18
+ ---
19
+
20
+ # 🌟 Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled
21
+
22
+ > 📢 **Release Note**
23
+ > **Build Environment Upgrades:**
24
+ > - **Fine-tuning Framework**: **Unsloth 2026.3.3**
25
+ > - **Core Dependencies**: **Transformers 5.2.0**
26
+ > - This model fixes the crash in the official model caused by the Jinja template not supporting the **"developer"** role. (commonly sent by modern coding agents like Claude Code and OpenCode)
27
+ > - It does **not disable thinking mode by default**, and allowing the agent to run continuously for **over 9 minutes without interruption**.
28
+ > - Compared to the original model, **autonomy and stability are significantly improved**.
29
+
30
+ ![HB8AleUaMAArNyM](https://cdn-uploads.huggingface.co/production/uploads/66309bd090589b7c65950665/GHkMJL6I383eIwK1qj80K.jpeg)
31
+
32
+
33
+ ## 💡 Model Introduction
34
+ **Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled** is a highly capable reasoning model fine-tuned on top of the powerful Qwen3.5 architecture. The model's core directive is to leverage state-of-the-art Chain-of-Thought (CoT) distillation primarily sourced from Claude-4.6 Opus interactions.
35
+
36
+ Through Supervised Fine-Tuning (SFT) focusing specifically on structured reasoning logic, this model excels in breaking down complex user problems, planning step-by-step methodologies within strictly formatted `<think>` tags, and ultimately delivering precise, nuanced solutions.
37
+
38
+ ### 🧠 Example of Learned Reasoning Scaffold(Example)
39
+
40
+ 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:
41
+ **“Let me analyze this request carefully: 1..2..3...”.**
42
+ This streamlined reasoning paradigm significantly reduces redundant cognitive loops while preserving deep analytical capacity, resulting in substantially improved inference efficiency.
43
+
44
+ ```text
45
+ Let me analyze this request carefully:
46
+
47
+ 1. Identify the core objective of the problem.
48
+ 2. Break the task into clearly defined subcomponents.
49
+ 3. Evaluate constraints and edge cases.
50
+ 4. Formulate a step-by-step solution plan.
51
+ 5. Execute the reasoning sequentially and verify consistency.
52
+ .
53
+ .
54
+ .
55
+ ```
56
+
57
+ ## 🗺️ Training Pipeline Overview
58
+
59
+ ```text
60
+ Base Model (Qwen3.5-27B)
61
+
62
+
63
+ Supervised Fine-Tuning (SFT) + LoRA
64
+
65
+
66
+ Final Model (Claude-4.6-Opus-Reasoning-Distilled,text-only)
67
+ ```
68
+
69
+ ## 📋 Stage Details
70
+
71
+ 🔥**Community-tested advantages** (benchmark tests by user @sudoingX on a single RTX 3090):
72
+
73
+ Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled shows significant advantages in coding-agent environments such as Claude Code and OpenCode:
74
+
75
+ >- **Native support for the “developer” role**, requiring no Jinja template patches or ChatML workarounds.
76
+ >- **Thinking mode fully preserved** (logs confirm `thinking=1`), not silently disabled, maintaining the complete chain-of-thought reasoning process.
77
+ >- **Greatly improved autonomy and stability** — capable of running continuously for **over 9 minutes autonomously** (with zero human intervention). It actively waits for tool responses, reads outputs, self-corrects errors, and can even automatically generate a README, whereas the base model often stalls or freezes mid-execution.
78
+
79
+ >**Hardware usage remains unchanged:**
80
+ >- About **16.5 GB VRAM** with **Q4_K_M** quantization
81
+ >- **29–35 tok/s** generation speed
82
+ >- **Full 262K context** with no compromises
83
+
84
+ - These improvements come from successfully distilling the **structured reasoning style of Claude 4.6 Opus**, allowing Qwopus to be truly **plug-and-play in modern local coding agents** and deliver an experience close to Opus in smoothness and usability.
85
+
86
+ **Thanks to the community for the in-depth testing and feedback!**
87
+
88
+
89
+ ### 🔹 Supervised Fine-Tuning (SFT)
90
+ - **Objective:** To inject high-density reasoning logic and establish a strict format for problem-solving involving an internal thinking state prior to outputting the final response.
91
+ - **Methodology:** We utilized **Unsloth** for highly efficient memory and compute optimization. A critical component of this stage is the `train_on_responses_only` strategy, masking instructions so the loss is purely calculated over the generation of the `<think>` sequences and the subsequent solutions.
92
+ - **Format Enforcement:** All training samples were systematically normalized so the model strictly abides by the structure `<think> {internal reasoning} </think>\n {final answer}`.
93
+
94
+ ### 📚 All Datasets Used
95
+ The dataset consists of high-quality, filtered reasoning distillation data:
96
+
97
+ | Dataset Name | Description / Purpose |
98
+ |--------------|-----------------------|
99
+ | [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. |
100
+ | [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. |
101
+ | [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. |
102
+
103
+ ## 🌟 Core Skills & Capabilities
104
+ 1. **Modular & Structured Thinking:** Inheriting traits from Opus-level reasoning, the model demonstrates confident parsing of the prompt, establishing an outlined plan in its `<think>` block sequentially rather than exploratory "trial-and-error" self-doubt.
105
+
106
+ ## ⚠️ Limitations & Intended Use
107
+ - **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.
108
+ - **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.
109
+ - **Preview Version Notice:** Because this model is relatively new and intentionally lightweight, the surrounding ecosystem — including inference templates, fine-tuning pipelines, routing configurations, and tooling integrations — may not yet be fully mature or standardized. As a result, users may encounter occasional bugs, compatibility inconsistencies, or integration edge cases. The current release should be considered a preview build while the broader architectural stack and supporting utilities continue to stabilize and improve.
110
+
111
+ ## 🙏 Acknowledgements
112
+ Significant thanks to the [Unsloth AI](https://unsloth.ai/) team for making rapid fine-tuning of MoE and large LLM models accessible. Additionally, we acknowledge Qwen internally, and the open-source community developers producing exceptional distilled datasets (`nohurry` and `TeichAI`).
113
+
114
+ ## 📖 Citation
115
+
116
+ If you use this model in your research or projects, please cite:
117
+
118
+ ```bibtex
119
+ @misc{jackrong_qwen35_opus_distilled,
120
+ title = {Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled},
121
+ author = {Jackrong},
122
+ year = {2026},
123
+ publisher = {Hugging Face},
124
+ howpublished = {\url{https://huggingface.co/Jackrong/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled}}
125
+ }
126
+ ```
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.3",
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:44bc072ddb0d9373e720e040ab672e504dedbf9db1c47e1cb0678055e47b81ba
3
+ size 931145856