Kassadin commited on
Commit
03a55b9
·
verified ·
1 Parent(s): 438055c

Add limitations, detailed model info, and highlights

Browse files
Files changed (1) hide show
  1. README.md +76 -14
README.md CHANGED
@@ -15,35 +15,96 @@ pipeline_tag: text-generation
15
 
16
  # Qwen3.5-9B-Claude-distill
17
 
18
- A distilled model fine-tuned from Qwen3.5-9B using Claude-generated reasoning traces. This model inherits structured reasoning patterns through full-parameter supervised fine-tuning.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
  ## Model Details
21
 
22
- - **Base Model**: Qwen/Qwen3.5-9B
23
- - **Framework**: Swift 4.0.2
24
- - **Training Method**: Full-parameter fine-tuning (not LoRA)
25
- - **Training Samples**: ~11,800
 
 
 
 
 
 
 
 
 
 
 
26
 
27
  ## Training Data
28
 
29
- The model was trained on a curated collection of Claude-generated reasoning datasets:
 
 
 
 
 
 
 
30
 
31
- | Dataset | Description |
32
- |---------|-------------|
33
- | [claude-opus-4.6-10000x](https://huggingface.co/datasets/dalisoft/claude-opus-4.6-10000x) | High-fidelity reasoning traces for mathematical accuracy and structured logical deduction |
34
- | [claude-opus-4.6-high-reasoning-700x](https://huggingface.co/datasets/dalisoft/claude-opus-4.6-high-reasoning-700x) | Coding and creative writing with adaptive reasoning effort |
35
- | [Claude-Opus-4.6-Reasoning-927x](https://huggingface.co/datasets/dalisoft/Claude-Opus-4.6-Reasoning-927x) | Tool calling, bullshit detection, and multi-turn reasoning |
36
- | [Claude-Sonnet-X-Opus-4.6-Reasoning-small-500](https://huggingface.co/datasets/dalisoft/Claude-Sonnet-X-Opus-4.6-Reasoning-small-500) | Natural human-written prompts from Reddit and Stack Overflow |
37
 
38
  ## Usage
39
 
40
  ```python
41
  from transformers import AutoModelForCausalLM, AutoTokenizer
42
 
43
- model = AutoModelForCausalLM.from_pretrained("Kassadin88/Qwen3.5-9B-Claude-distill", trust_remote_code=True)
 
 
 
 
44
  tokenizer = AutoTokenizer.from_pretrained("Kassadin88/Qwen3.5-9B-Claude-distill")
 
 
 
 
 
 
 
 
 
 
45
  ```
46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  ## License
48
 
49
  Apache 2.0
@@ -52,4 +113,5 @@ Apache 2.0
52
 
53
  - [Swift](https://github.com/modelscope/swift) - The training framework
54
  - [Qwen Team](https://github.com/QwenLM) - The base model
55
- - Dataset creators: dalisoft and the open-source community
 
 
15
 
16
  # Qwen3.5-9B-Claude-distill
17
 
18
+ > A powerful reasoning model distilled from Claude Opus 4.6's chain-of-thought traces with enhanced capacity.
19
+
20
+ ## Introduction
21
+
22
+ **Qwen3.5-9B-Claude-distill** is a distilled model fine-tuned from Qwen3.5-9B using Claude-generated reasoning traces. Through full-parameter supervised fine-tuning, this model inherits structured reasoning patterns from Claude Opus 4.6, enabling it to:
23
+
24
+ - Break down complex problems into step-by-step reasoning
25
+ - Follow structured thinking patterns within `沉浸在思考中...` blocks
26
+ - Provide well-reasoned answers with transparent thought processes
27
+ - Handle more complex reasoning chains than smaller variants
28
+
29
+ ### Key Highlights
30
+
31
+ - **Full-parameter fine-tuning**: Unlike LoRA-based approaches, this model was trained with full parameter updates for deeper knowledge transfer
32
+ - **Chain-of-thought distillation**: Trained on extended reasoning traces that expose the model to structured problem-solving patterns
33
+ - **Balanced size-performance**: 9B parameters offer a sweet spot between capability and efficiency
34
 
35
  ## Model Details
36
 
37
+ | Property | Value |
38
+ |----------|-------|
39
+ | Base Model | Qwen/Qwen3.5-9B |
40
+ | Framework | Swift 4.0.2 |
41
+ | Training Method | Full-parameter fine-tuning |
42
+ | Training Samples | ~11,800 |
43
+ | Context Length | 4096 tokens |
44
+ | Precision | BF16 |
45
+
46
+ ### Training Configuration
47
+
48
+ - Optimizer: AdamW (fused)
49
+ - Learning Rate: 7e-6
50
+ - Scheduler: Cosine with 5% warmup
51
+ - DeepSpeed: ZeRO-2
52
 
53
  ## Training Data
54
 
55
+ The model was trained on a curated collection of Claude Opus 4.6 generated reasoning datasets:
56
+
57
+ | Dataset | Samples | Description |
58
+ |---------|---------|-------------|
59
+ | [claude-opus-4.6-10000x](https://huggingface.co/datasets/dalisoft/claude-opus-4.6-10000x) | ~10,000 | High-fidelity reasoning traces for mathematical accuracy and structured logical deduction |
60
+ | [claude-opus-4.6-high-reasoning-700x](https://huggingface.co/datasets/dalisoft/claude-opus-4.6-high-reasoning-700x) | ~700 | Coding and creative writing with adaptive reasoning effort |
61
+ | [Claude-Opus-4.6-Reasoning-927x](https://huggingface.co/datasets/dalisoft/Claude-Opus-4.6-Reasoning-927x) | ~927 | Tool calling, bullshit detection, and multi-turn reasoning |
62
+ | [Claude-Sonnet-X-Opus-4.6-Reasoning-small-500](https://huggingface.co/datasets/dalisoft/Claude-Sonnet-X-Opus-4.6-Reasoning-small-500) | ~500 | Natural human-written prompts from Reddit and Stack Overflow |
63
 
64
+ **Total**: ~12,100 high-quality reasoning samples (after deduplication and cleaning: ~11,800)
 
 
 
 
 
65
 
66
  ## Usage
67
 
68
  ```python
69
  from transformers import AutoModelForCausalLM, AutoTokenizer
70
 
71
+ model = AutoModelForCausalLM.from_pretrained(
72
+ "Kassadin88/Qwen3.5-9B-Claude-distill",
73
+ trust_remote_code=True,
74
+ torch_dtype="auto"
75
+ )
76
  tokenizer = AutoTokenizer.from_pretrained("Kassadin88/Qwen3.5-9B-Claude-distill")
77
+
78
+ # Chat format
79
+ messages = [
80
+ {"role": "system", "content": "You are a helpful AI assistant."},
81
+ {"role": "user", "content": "Solve: If 3x + 7 = 22, what is x?"}
82
+ ]
83
+ text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
84
+ inputs = tokenizer(text, return_tensors="pt")
85
+ outputs = model.generate(**inputs, max_new_tokens=512)
86
+ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
87
  ```
88
 
89
+ ## Limitations
90
+
91
+ - **Hallucination Risk**: While reasoning capabilities are enhanced, the model may still generate incorrect facts or hallucinate during the thinking process. External facts mentioned in reasoning traces should be verified independently.
92
+
93
+ - **Training Data Bias**: The model inherits biases from the training data, which primarily consists of English content with some Chinese samples. Performance on other languages may be limited.
94
+
95
+ - **Not a Replacement for Verification**: The structured reasoning outputs should not be treated as guaranteed correct answers. Critical applications require human verification.
96
+
97
+ - **Limited Domain Coverage**: Training data focuses on math, logic, coding, and general problem-solving. Specialized domains (medical, legal, financial) are not well-represented.
98
+
99
+ ## Intended Use Cases
100
+
101
+ - Offline analysis and reasoning tasks
102
+ - Mathematical problem solving
103
+ - Code generation and debugging
104
+ - Logical deduction and planning
105
+ - Educational applications where transparent reasoning is valuable
106
+ - Complex multi-step reasoning tasks
107
+
108
  ## License
109
 
110
  Apache 2.0
 
113
 
114
  - [Swift](https://github.com/modelscope/swift) - The training framework
115
  - [Qwen Team](https://github.com/QwenLM) - The base model
116
+ - [dalisoft](https://huggingface.co/dalisoft) - Dataset creator
117
+ - Open-source community for the reasoning datasets