Instructions to use HarleyWang/Qwen3.5-27B-Claude-Opus-4.6-High-Reasoning with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HarleyWang/Qwen3.5-27B-Claude-Opus-4.6-High-Reasoning with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="HarleyWang/Qwen3.5-27B-Claude-Opus-4.6-High-Reasoning") 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("HarleyWang/Qwen3.5-27B-Claude-Opus-4.6-High-Reasoning") model = AutoModelForMultimodalLM.from_pretrained("HarleyWang/Qwen3.5-27B-Claude-Opus-4.6-High-Reasoning") 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 HarleyWang/Qwen3.5-27B-Claude-Opus-4.6-High-Reasoning with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "HarleyWang/Qwen3.5-27B-Claude-Opus-4.6-High-Reasoning" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HarleyWang/Qwen3.5-27B-Claude-Opus-4.6-High-Reasoning", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/HarleyWang/Qwen3.5-27B-Claude-Opus-4.6-High-Reasoning
- SGLang
How to use HarleyWang/Qwen3.5-27B-Claude-Opus-4.6-High-Reasoning 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 "HarleyWang/Qwen3.5-27B-Claude-Opus-4.6-High-Reasoning" \ --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": "HarleyWang/Qwen3.5-27B-Claude-Opus-4.6-High-Reasoning", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "HarleyWang/Qwen3.5-27B-Claude-Opus-4.6-High-Reasoning" \ --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": "HarleyWang/Qwen3.5-27B-Claude-Opus-4.6-High-Reasoning", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Unsloth Studio
How to use HarleyWang/Qwen3.5-27B-Claude-Opus-4.6-High-Reasoning with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for HarleyWang/Qwen3.5-27B-Claude-Opus-4.6-High-Reasoning to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for HarleyWang/Qwen3.5-27B-Claude-Opus-4.6-High-Reasoning to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for HarleyWang/Qwen3.5-27B-Claude-Opus-4.6-High-Reasoning to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="HarleyWang/Qwen3.5-27B-Claude-Opus-4.6-High-Reasoning", max_seq_length=2048, ) - Docker Model Runner
How to use HarleyWang/Qwen3.5-27B-Claude-Opus-4.6-High-Reasoning with Docker Model Runner:
docker model run hf.co/HarleyWang/Qwen3.5-27B-Claude-Opus-4.6-High-Reasoning
Qwen3.5-27B-Claude-Opus-4.6-High-Reasoning
A distilled version of Qwen3.5-27B, enhanced with Claude Opus 4.6 reasoning patterns through knowledge distillation.
Evaluation Results
- Evaluator: Qwen3-Coder-Next
- Test Samples: 260 (based on personal dataset, for reference only)
- Date: 2026-03-29
Overall Performance
| Metric | Base Model | Distilled Model | Improvement |
|---|---|---|---|
| Win Rate | 25.77% | 73.85% | +48.08% |
| Avg Latency (s) | 71.70 | 68.47 | -4.5% |
Score Breakdown (10-point scale)
| Dimension | Base Model | Distilled Model | Improvement |
|---|---|---|---|
| Accuracy | 6.35 | 8.59 | +35.3% |
| Logic | 6.47 | 8.69 | +34.3% |
| Completeness | 5.70 | 8.82 | +54.7% |
| Clarity | 6.51 | 8.43 | +29.5% |
| Actionability | 5.85 | 8.56 | +46.3% |
Performance by Category
| Category | Base Win Rate | Distilled Win Rate | Samples |
|---|---|---|---|
| debug | 22.67% | 76.00% | 75 |
| design | 51.32% | 48.68% | 76 |
| prompt | 5.80% | 94.20% | 69 |
| reasoning | 17.50% | 82.50% | 40 |
Quick Start with vLLM
Installation
pip install vllm
Online Inference (Simple)
from vllm import LLM, SamplingParams
# Initialize the model
llm = LLM(
model="HarleyWang/Qwen3.5-27B-Claude-Opus-4.6-High-Reasoning",
dtype="bfloat16",
tensor_parallel_size=2, # Adjust based on your GPU count
max_model_len=8192,
)
# Define sampling parameters
sampling_params = SamplingParams(
temperature=0.7,
top_p=0.9,
max_tokens=2048,
)
# Create messages
messages = [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Explain how to optimize a slow database query."}
]
# Use apply_chat_template from tokenizer
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("HarleyWang/Qwen3.5-27B-Claude-Opus-4.6-High-Reasoning")
prompt = tokenizer.apply_chat_template(messages, tokenize=False)
# Generate
outputs = llm.generate(prompt, sampling_params)
# Print output
for output in outputs:
print(output.outputs[0].text)
Online Inference (Streaming)
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
llm = LLM(
model="HarleyWang/Qwen3.5-27B-Claude-Opus-4.6-High-Reasoning",
dtype="bfloat16",
tensor_parallel_size=2,
)
tokenizer = AutoTokenizer.from_pretrained("HarleyWang/Qwen3.5-27B-Claude-Opus-4.6-High-Reasoning")
messages = [
{"role": "user", "content": "Write a Python function to sort a list."}
]
prompt = tokenizer.apply_chat_template(messages, tokenize=False)
sampling_params = SamplingParams(
temperature=0.7,
top_p=0.9,
max_tokens=1024,
stream=True, # Enable streaming
)
for output in llm.generate(prompt, sampling_params, use_tqdm=False):
print(output.outputs[0].text, end="", flush=True)
print()
Offline Inference (Batch)
from vllm import LLM, SamplingParams
llm = LLM(
model="HarleyWang/Qwen3.5-27B-Claude-Opus-4.6-High-Reasoning",
dtype="bfloat16",
tensor_parallel_size=2,
)
prompts = [
"Explain quantum computing.",
"Write a haiku about coding.",
"Debug: Why is this loop infinite?",
]
sampling_params = SamplingParams(
temperature=0.7,
top_p=0.9,
max_tokens=512,
)
outputs = llm.generate(prompts, sampling_params)
for output in outputs:
print(f"Prompt: {output.prompt}")
print(f"Response: {output.outputs[0].text}")
print("-" * 50)
Command Line Interface
# Start an OpenAI-compatible API server
python -m vllm.entrypoints.openai.api_server \
--model HarleyWang/Qwen3.5-27B-Claude-Opus-4.6-High-Reasoning \
--dtype bfloat16 \
--tensor-parallel-size 2 \
--host 0.0.0.0 \
--port 8000
# In another terminal, use the API
curl http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "default",
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "What is the capital of France?"}
],
"temperature": 0.7,
"max_tokens": 256
}'
License
This model is licensed under Apache-2.0.
This model was distilled to capture Claude Opus 4.6's reasoning capabilities while maintaining Qwen3.5-27B's efficiency and multilingual support. Recommended for inference with vLLM for optimal performance.
- Downloads last month
- 7
Model tree for HarleyWang/Qwen3.5-27B-Claude-Opus-4.6-High-Reasoning
Base model
Qwen/Qwen3.5-27B