Text Generation
Transformers
Safetensors
English
Chinese
qwen3_5
image-text-to-text
qwen3.5
claude-distill
conversational
Instructions to use clzoro/Qwen3.5-9B-Claude-distill with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use clzoro/Qwen3.5-9B-Claude-distill with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="clzoro/Qwen3.5-9B-Claude-distill") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("clzoro/Qwen3.5-9B-Claude-distill") model = AutoModelForMultimodalLM.from_pretrained("clzoro/Qwen3.5-9B-Claude-distill", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use clzoro/Qwen3.5-9B-Claude-distill with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "clzoro/Qwen3.5-9B-Claude-distill" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "clzoro/Qwen3.5-9B-Claude-distill", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/clzoro/Qwen3.5-9B-Claude-distill
- SGLang
How to use clzoro/Qwen3.5-9B-Claude-distill with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "clzoro/Qwen3.5-9B-Claude-distill" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "clzoro/Qwen3.5-9B-Claude-distill", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "clzoro/Qwen3.5-9B-Claude-distill" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "clzoro/Qwen3.5-9B-Claude-distill", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use clzoro/Qwen3.5-9B-Claude-distill with Docker Model Runner:
docker model run hf.co/clzoro/Qwen3.5-9B-Claude-distill
Kassadin commited on
Add limitations, detailed model info, and highlights
Browse files
README.md
CHANGED
|
@@ -15,35 +15,96 @@ pipeline_tag: text-generation
|
|
| 15 |
|
| 16 |
# Qwen3.5-9B-Claude-distill
|
| 17 |
|
| 18 |
-
A
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
## Model Details
|
| 21 |
|
| 22 |
-
|
| 23 |
-
-
|
| 24 |
-
|
| 25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
## Training Data
|
| 28 |
|
| 29 |
-
The model was trained on a curated collection of Claude
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
-
|
| 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(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
-
-
|
|
|
|
|
|
| 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
|