Instructions to use Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled") 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("Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled") model = AutoModelForMultimodalLM.from_pretrained("Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled") 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]:])) - llama-cpp-python
How to use Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled", filename="Qwen3.5-27B.BF16-00002-of-00002.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Inference
- Local Apps Settings
- llama.cpp
How to use Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled:Q4_K_M # Run inference directly in the terminal: llama cli -hf Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled:Q4_K_M # Run inference directly in the terminal: llama cli -hf Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled:Q4_K_M
Use Docker
docker model run hf.co/Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled:Q4_K_M
- SGLang
How to use Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled 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 "Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled" \ --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": "Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled", "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 "Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled" \ --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": "Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled with Ollama:
ollama run hf.co/Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled:Q4_K_M
- Unsloth Studio
How to use Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled 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 Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled 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 Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled to start chatting
- Pi
How to use Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- Docker Model Runner
How to use Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled with Docker Model Runner:
docker model run hf.co/Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled:Q4_K_M
- Lemonade
How to use Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled:Q4_K_M
Run and chat with the model
lemonade run user.Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled-Q4_K_M
List all available models
lemonade list
Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled
This repository contains the merged 16-bit supervised fine-tuning checkpoint and GGUF exports for a dense Qwen 3.5 reasoning model based on unsloth/Qwen3.5-27B. It is adapted from the official Unsloth A100 (80GB) notebook and trained on a cleaned subset of nohurry/Opus-4.6-Reasoning-3000x-filtered.
Repository contents
- Merged 16-bit model weights for Transformers / vLLM-style deployment
- GGUF exports for
llama.cpp-compatible runtimes - GGUF quantizations uploaded by the notebook:
q4_k_m,q8_0,q5_k_m
Training data
Raw dataset statistics:
- Total rows in
train: 2,326 - Columns:
id,problem,thinking,solution,difficulty,category,timestamp,hash
Cleaning and formatting applied in the notebook:
- Removed 18 rows with an empty
problem,thinking, orsolution - Removed 92 meta / incomplete-prompt responses
- Removed 33 duplicate
idrows - Final training set size: 2,183 conversations
- Category mix after cleaning: 2,052
math, 131code
Each training example is converted to Qwen chat format with the assistant target built as:
<think>
{thinking}
</think>
{solution}
Loss is applied only to assistant tokens via train_on_responses_only.
Training procedure
- Base model:
unsloth/Qwen3.5-27B - Reference notebook: Unsloth
Qwen_3_5_27B_A100(80GB).ipynb - Frameworks: Unsloth, TRL, Transformers, PEFT
- Task: supervised fine-tuning for long-form reasoning / answer generation
max_seq_length: 4096- LoRA rank: 8
- LoRA target modules:
q_proj,k_proj,v_proj,o_proj,gate_proj,up_proj,down_proj,out_proj per_device_train_batch_size: 4gradient_accumulation_steps: 2num_train_epochs: 1learning_rate: 2e-4warmup_steps: 20optim:adamw_8bitweight_decay: 0.001lr_scheduler_type:linear- Seed: 3407
Intended use
This repository is intended for research and experimentation on reasoning-style text generation, especially mixed math and code-oriented prompts that benefit from multi-step intermediate reasoning. The merged checkpoint is suitable for Transformers / vLLM-style serving, and the GGUF files are intended for llama.cpp-compatible runtimes.
Limitations
- Quantized GGUF variants may behave differently from the merged 16-bit checkpoint.
- The model was trained on explicit reasoning traces and may emit visible
<think>sections or long intermediate reasoning. - No formal evaluation or benchmark scores are included in this release.
Usage
Transformers / merged checkpoint:
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
repo_id = "Ayodele01/Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled"
tokenizer = AutoTokenizer.from_pretrained(repo_id)
model = AutoModelForCausalLM.from_pretrained(
repo_id,
torch_dtype=torch.bfloat16 if torch.cuda.is_available() and torch.cuda.is_bf16_supported() else torch.float16,
device_map="auto",
)
messages = [
{"role": "user", "content": "Solve: If 3x + 5 = 20, what is x?"}
]
inputs = tokenizer.apply_chat_template(
messages,
tokenize=True,
add_generation_prompt=True,
return_tensors="pt",
).to(model.device)
outputs = model.generate(
inputs,
max_new_tokens=512,
do_sample=False,
)
print(tokenizer.decode(outputs[0], skip_special_tokens=False))
GGUF / llama.cpp:
./llama-cli -m Qwen3.5-27B-opus46-reasoning.Q4_K_M.gguf -p "Solve: If 3x + 5 = 20, what is x?" -n 512
Provenance
- Base model: unsloth/Qwen3.5-27B
- Dataset: nohurry/Opus-4.6-Reasoning-3000x-filtered
- Reference notebook source: unslothai/notebooks
- Downloads last month
- 77