reaperdoesntknow commited on
Commit
679b37d
·
verified ·
1 Parent(s): 5753cfe

Complete model card — training details, usage, collection cross-links

Browse files
Files changed (1) hide show
  1. README.md +119 -208
README.md CHANGED
@@ -1,252 +1,163 @@
1
  ---
 
2
  library_name: transformers
 
3
  tags:
4
- - trl
5
  - sft
 
 
 
 
 
 
 
 
6
  ---
7
 
8
- # Model Card for Model ID
9
-
10
- <!-- Provide a quick summary of what the model is/does. -->
11
-
12
-
13
-
14
- ## Model Details
15
-
16
- ### Model Description
17
-
18
- <!-- Provide a longer summary of what this model is. -->
19
-
20
- This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
21
-
22
- - **Developed by:** [More Information Needed]
23
- - **Funded by [optional]:** [More Information Needed]
24
- - **Shared by [optional]:** [More Information Needed]
25
- - **Model type:** [More Information Needed]
26
- - **Language(s) (NLP):** [More Information Needed]
27
- - **License:** [More Information Needed]
28
- - **Finetuned from model [optional]:** [More Information Needed]
29
-
30
- ### Model Sources [optional]
31
-
32
- <!-- Provide the basic links for the model. -->
33
-
34
- - **Repository:** [More Information Needed]
35
- - **Paper [optional]:** [More Information Needed]
36
- - **Demo [optional]:** [More Information Needed]
37
-
38
- ## Uses
39
-
40
- <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
41
-
42
- ### Direct Use
43
-
44
- <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
45
-
46
- [More Information Needed]
47
-
48
- ### Downstream Use [optional]
49
-
50
- <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
51
-
52
- [More Information Needed]
53
-
54
- ### Out-of-Scope Use
55
-
56
- <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
57
-
58
- [More Information Needed]
59
-
60
- ## Bias, Risks, and Limitations
61
-
62
- <!-- This section is meant to convey both technical and sociotechnical limitations. -->
63
-
64
- [More Information Needed]
65
-
66
- ### Recommendations
67
-
68
- <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
69
-
70
- Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
71
-
72
- ## How to Get Started with the Model
73
-
74
- Use the code below to get started with the model.
75
-
76
- [More Information Needed]
77
-
78
- ## Training Details
79
-
80
- ### Training Data
81
-
82
- <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
83
-
84
- [More Information Needed]
85
-
86
- ### Training Procedure
87
-
88
- <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
89
-
90
- #### Preprocessing [optional]
91
-
92
- [More Information Needed]
93
-
94
 
95
- #### Training Hyperparameters
96
 
97
- - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
98
-
99
- #### Speeds, Sizes, Times [optional]
100
-
101
- <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
102
-
103
- [More Information Needed]
104
-
105
- ## Evaluation
106
-
107
- <!-- This section describes the evaluation protocols and provides the results. -->
108
-
109
- ### Testing Data, Factors & Metrics
110
-
111
- #### Testing Data
112
-
113
- <!-- This should link to a Dataset Card if possible. -->
114
-
115
- [More Information Needed]
116
-
117
- #### Factors
118
-
119
- <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
120
-
121
- [More Information Needed]
122
-
123
- #### Metrics
124
-
125
- <!-- These are the evaluation metrics being used, ideally with a description of why. -->
126
-
127
- [More Information Needed]
128
-
129
- ### Results
130
-
131
- [More Information Needed]
132
-
133
- #### Summary
134
-
135
-
136
-
137
- ## Model Examination [optional]
138
-
139
- <!-- Relevant interpretability work for the model goes here -->
140
-
141
- [More Information Needed]
142
-
143
- ## Environmental Impact
144
-
145
- <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
146
-
147
- Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
148
-
149
- - **Hardware Type:** [More Information Needed]
150
- - **Hours used:** [More Information Needed]
151
- - **Cloud Provider:** [More Information Needed]
152
- - **Compute Region:** [More Information Needed]
153
- - **Carbon Emitted:** [More Information Needed]
154
-
155
- ## Technical Specifications [optional]
156
-
157
- ### Model Architecture and Objective
158
-
159
- [More Information Needed]
160
 
161
- ### Compute Infrastructure
162
 
163
- [More Information Needed]
164
 
165
- #### Hardware
166
 
167
- [More Information Needed]
168
 
169
- #### Software
 
 
 
 
 
 
 
 
 
 
 
 
 
 
170
 
171
- [More Information Needed]
172
 
173
- ## Citation [optional]
 
 
 
174
 
175
- <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
 
 
 
 
 
176
 
177
- **BibTeX:**
178
 
179
- [More Information Needed]
180
 
181
- **APA:**
182
 
183
- [More Information Needed]
 
184
 
185
- ## Glossary [optional]
 
 
 
 
 
 
 
186
 
187
- <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
 
 
188
 
189
- [More Information Needed]
 
190
 
191
- ## More Information [optional]
 
 
 
 
 
 
 
192
 
193
- [More Information Needed]
 
194
 
195
- ## Model Card Authors [optional]
196
 
197
- [More Information Needed]
 
 
 
198
 
199
- ## Model Card Contact
200
 
201
- [More Information Needed]
 
 
 
 
202
 
203
- ---
204
 
205
- ## Convergent Intelligence Portfolio
 
 
 
 
 
 
206
 
207
- *Part of the [Qwen3 1.7B Distillation Series](https://huggingface.co/reaperdoesntknow) by [Convergent Intelligence LLC: Research Division](https://huggingface.co/reaperdoesntknow)*
208
 
 
209
 
210
- ### Related Models
 
 
 
 
 
 
 
 
211
 
212
- | Model | Downloads | Format |
213
- |-------|-----------|--------|
214
- | [Qwen3-1.7B-Distilled-30B-A3B](https://huggingface.co/reaperdoesntknow/Qwen3-1.7B-Distilled-30B-A3B) | 96 | HF |
215
- | [Qwen3-1.7B-Distilled-30B-A3B-SFT](https://huggingface.co/reaperdoesntknow/Qwen3-1.7B-Distilled-30B-A3B-SFT) | 65 | HF |
216
- | [Qwen3-1.7B-Distilled-30B-A3B-SFT-GGUF](https://huggingface.co/reaperdoesntknow/Qwen3-1.7B-Distilled-30B-A3B-SFT-GGUF) | 175 | GGUF |
217
 
218
- ### Top Models from Our Lab
219
 
220
- | Model | Downloads |
221
- |-------|-----------|
222
- | [LFM2.5-1.2B-Distilled-SFT](https://huggingface.co/reaperdoesntknow/LFM2.5-1.2B-Distilled-SFT) | 342 |
223
- | [Qwen3-1.7B-Coder-Distilled-SFT](https://huggingface.co/reaperdoesntknow/Qwen3-1.7B-Coder-Distilled-SFT) | 302 |
224
- | [Qwen3-0.6B-Distilled-30B-A3B-Thinking-SFT-GGUF](https://huggingface.co/reaperdoesntknow/Qwen3-0.6B-Distilled-30B-A3B-Thinking-SFT-GGUF) | 203 |
225
- | [Qwen3-1.7B-Coder-Distilled-SFT-GGUF](https://huggingface.co/reaperdoesntknow/Qwen3-1.7B-Coder-Distilled-SFT-GGUF) | 194 |
226
- | [SMOLM2Prover-GGUF](https://huggingface.co/reaperdoesntknow/SMOLM2Prover-GGUF) | 150 |
227
 
228
- **Total Portfolio: 41 models | 2,781 total downloads**
229
 
 
230
 
231
- *Last updated: 2026-03-28 12:46 UTC*
232
 
233
- <!-- CIX-CROSSLINK-START -->
 
 
 
 
 
 
 
 
234
 
235
  ---
236
 
237
- ## From the Convergent Intelligence Portfolio
238
-
239
- **[DistilQwen Collection](https://huggingface.co/collections/reaperdoesntknow/distilqwen-69bf40ec669117e3f069ef1c)** — Our only BF16 series. Proof-weighted distillation from Qwen3-30B-A3B → 1.7B and 0.6B on H100. Three teacher variants (Instruct, Thinking, Coder), nine models, 2,788 combined downloads. The rest of the portfolio proves structure beats scale on CPU. This collection shows what happens when you give the methodology real hardware.
240
-
241
- Top model: [Qwen3-1.7B-Coder-Distilled-SFT](https://huggingface.co/reaperdoesntknow/Qwen3-1.7B-Coder-Distilled-SFT) — 508 downloads
242
-
243
- Full methodology: [Structure Over Scale (DOI: 10.57967/hf/8165)](https://doi.org/10.57967/hf/8165)
244
-
245
- *Convergent Intelligence LLC: Research Division*
246
-
247
- <!-- CIX-CROSSLINK-END -->
248
-
249
- ---
250
- <sub>Part of the [reaperdoesntknow research portfolio](https://huggingface.co/reaperdoesntknow) — 48 models, 12,094 total downloads | Last refreshed: 2026-03-29 21:04 UTC</sub>
251
- <!-- cix-keeper-ts:2026-03-30T02:43:02Z -->
252
- <!-- card-refresh: 2026-03-30 -->
 
1
  ---
2
+ license: apache-2.0
3
  library_name: transformers
4
+ pipeline_tag: text-generation
5
  tags:
6
+ - qwen3
7
  - sft
8
+ - trl
9
+ - knowledge-distillation
10
+ - thinking
11
+ - longwriter
12
+ - convergent-intelligence
13
+ base_model: Qwen/Qwen3-1.7B
14
+ datasets:
15
+ - longwriter-6k
16
  ---
17
 
18
+ # Qwen3-1.7B-Thinking-Distil
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
+ **Extended Reasoning Distillation from Qwen3-30B-A3B-Thinking → 1.7B**
21
 
22
+ *Convergent Intelligence LLC: Research Division*
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
 
24
+ ---
25
 
26
+ ## What This Is
27
 
28
+ The most downloaded model in the Convergent Intelligence portfolio. Qwen3-1.7B-Thinking-Distil captures extended deliberation patterns from the Qwen3-30B-A3B **Thinking** teacher — the variant that generates long-form reasoning chains before committing to an answer — and compresses them into a 1.7B student via supervised fine-tuning on the [longwriter-6k](https://huggingface.co/datasets/longwriter-6k) dataset.
29
 
30
+ The Thinking teacher produces the **richest signal** of the three teacher variants in the DistilQwen family (Instruct, Thinking, Coder). Where Instruct distillation captures clean instruction-following and Coder captures hierarchical decomposition, Thinking distillation captures the extended internal monologue — the model reasoning through uncertainty, backtracking, and re-evaluating before arriving at a conclusion. That deliberative depth is what makes this variant the highest-download model in the collection.
31
 
32
+ ## Architecture
33
+
34
+ | Parameter | Value |
35
+ |-----------|-------|
36
+ | Architecture | Qwen3ForCausalLM |
37
+ | Parameters | ~2.03B (1.7B effective) |
38
+ | Hidden Size | 2048 |
39
+ | Layers | 28 |
40
+ | Attention Heads | 16 (Q) / 8 (KV) — GQA |
41
+ | Intermediate | 6144 |
42
+ | Head Dimension | 128 |
43
+ | Context Length | 40,960 tokens (max position) |
44
+ | Vocabulary | 151,936 |
45
+ | Precision | BF16 |
46
+ | Activation | SiLU |
47
 
48
+ ## Training
49
 
50
+ **Teacher:** Qwen3-30B-A3B-Thinking
51
+ **Student:** Qwen3-1.7B
52
+ **Dataset:** longwriter-6k — long-form generation samples that preserve extended reasoning chains
53
+ **Method:** Supervised Fine-Tuning (SFT) via TRL
54
 
55
+ | Parameter | Value |
56
+ |-----------|-------|
57
+ | Max Sequence Length | 4,096 |
58
+ | Precision | BF16 |
59
+ | Framework | TRL (SFTTrainer) |
60
+ | Hardware | NVIDIA H100 |
61
 
62
+ The training captures the teacher's extended thinking traces through direct SFT rather than logit-level KD. This is a deliberate design choice — the longwriter-6k dataset provides naturally long reasoning samples where the signal is in the structure of the generation (how the teacher approaches, reconsiders, and resolves), not just the final token probabilities.
63
 
64
+ For the full topology-aware distillation pipeline (BV decomposition, jump detection, curriculum ordering), see [TopologicalQwen](https://huggingface.co/reaperdoesntknow/TopologicalQwen). This model is the SFT-direct variant — simpler, faster to train, and empirically the most downloaded for a reason: the Thinking teacher's extended chains transfer well through pure SFT.
65
 
66
+ ## Usage
67
 
68
+ ```python
69
+ from transformers import AutoModelForCausalLM, AutoTokenizer
70
 
71
+ model = AutoModelForCausalLM.from_pretrained(
72
+ "reaperdoesntknow/Qwen3-1.7B-Thinking-Distil",
73
+ torch_dtype="auto",
74
+ device_map="auto"
75
+ )
76
+ tokenizer = AutoTokenizer.from_pretrained(
77
+ "reaperdoesntknow/Qwen3-1.7B-Thinking-Distil"
78
+ )
79
 
80
+ messages = [
81
+ {"role": "user", "content": "Explain why gradient descent can get stuck in saddle points but not local minima in high dimensions."}
82
+ ]
83
 
84
+ text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
85
+ inputs = tokenizer(text, return_tensors="pt").to(model.device)
86
 
87
+ output = model.generate(
88
+ **inputs,
89
+ max_new_tokens=2048,
90
+ do_sample=True,
91
+ top_p=0.9,
92
+ temperature=0.7,
93
+ repetition_penalty=1.15
94
+ )
95
 
96
+ print(tokenizer.decode(output[0], skip_special_tokens=True))
97
+ ```
98
 
99
+ ### Generation Tips
100
 
101
+ - **Temperature 0.6–0.8** works best for reasoning tasks — low enough for coherence, high enough to activate the extended deliberation patterns from the Thinking teacher.
102
+ - **Repetition penalty 1.1–1.2** prevents the model from getting caught in reasoning loops during long generations.
103
+ - **Max tokens 1024–2048** — the model was trained on 4096 max seq, so it can generate long. Give it room.
104
+ - The model inherits the Thinking teacher's tendency to reason before answering. Let it.
105
 
106
+ ## Distillation Position
107
 
108
+ ```
109
+ Qwen3-30B-A3B-Thinking (teacher)
110
+ ↓ SFT on longwriter-6k (4096 max seq)
111
+ Qwen3-1.7B-Thinking-Distil ← you are here
112
+ ```
113
 
114
+ This model is the **direct SFT** path. The DistilQwen collection also includes models that go through additional refinement stages:
115
 
116
+ ```
117
+ Qwen3-1.7B (base)
118
+ → Qwen3-1.7B-Distilled-30B-A3B (Instruct teacher KD)
119
+ → DiStil (uncensored SFT)
120
+ → Disctil (DISC refinement)
121
+ → TopologicalQwen (full TKD pipeline)
122
+ ```
123
 
124
+ Different paths, different capabilities. This model prioritizes extended reasoning. TopologicalQwen prioritizes structural precision. The Coder variant prioritizes hierarchical decomposition. They're complementary.
125
 
126
+ ## DistilQwen Collection
127
 
128
+ | Model | Downloads | What It Does |
129
+ |-------|-----------|-------------|
130
+ | **[Qwen3-1.7B-Thinking-Distil](https://huggingface.co/reaperdoesntknow/Qwen3-1.7B-Thinking-Distil)** | **1,188** | **← this model. Thinking teacher SFT.** |
131
+ | [TopologicalQwen](https://huggingface.co/reaperdoesntknow/TopologicalQwen) | 1,134 | Full TKD pipeline. BV decomposition + DualMind format. |
132
+ | [DiStil-Qwen3-1.7B-uncensored](https://huggingface.co/reaperdoesntknow/DiStil-Qwen3-1.7B-uncensored) | 1,030 | DISC-informed uncensored distillation. |
133
+ | [Qwen3-1.7B-Coder-Distilled-SFT](https://huggingface.co/reaperdoesntknow/Qwen3-1.7B-Coder-Distilled-SFT) | 966 | Coder teacher. Hierarchical problem solving. |
134
+ | [DistilQwen3-1.7B-uncensored](https://huggingface.co/reaperdoesntknow/DistilQwen3-1.7B-uncensored) | 832 | Base uncensored variant. |
135
+
136
+ Full collection: [DistilQwen on HuggingFace](https://huggingface.co/collections/reaperdoesntknow/distilqwen-69bf40ec669117e3f069ef1c)
137
 
138
+ ## Methodology
 
 
 
 
139
 
140
+ Full methodology paper: **[Structure Over Scale: Proof-Weighted Knowledge Distillation](https://doi.org/10.57967/hf/8165)** (DOI: 10.57967/hf/8165)
141
 
142
+ Companion paper: **[Three Teachers to Dual Cognition](https://doi.org/10.57967/hf/8184)** (DOI: 10.57967/hf/8184) — covers the DualMind extension and ghost imprinting phenomenon.
 
 
 
 
 
 
143
 
144
+ ## License
145
 
146
+ Apache 2.0 — same as the base Qwen3 model.
147
 
148
+ ## Citation
149
 
150
+ ```bibtex
151
+ @misc{colca2026distilqwen,
152
+ title={Structure Over Scale: Proof-Weighted Knowledge Distillation from Qwen3-30B to 1.7B},
153
+ author={Colca, Roy},
154
+ year={2026},
155
+ doi={10.57967/hf/8165},
156
+ publisher={Convergent Intelligence LLC: Research Division}
157
+ }
158
+ ```
159
 
160
  ---
161
 
162
+ *Convergent Intelligence LLC: Research Division — 49 models, 22,598 downloads across the portfolio.*
163
+ *[Full portfolio](https://huggingface.co/reaperdoesntknow) | [DistilQwen Collection](https://huggingface.co/collections/reaperdoesntknow/distilqwen-69bf40ec669117e3f069ef1c) | [DualMind Collection](https://huggingface.co/collections/reaperdoesntknow/dualmind-69c93f888c6e79ecc69cf41e)*