Instructions to use prithivMLmods/Q3.5-27B-Opus-DA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/Q3.5-27B-Opus-DA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="prithivMLmods/Q3.5-27B-Opus-DA") 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, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("prithivMLmods/Q3.5-27B-Opus-DA") model = AutoModelForImageTextToText.from_pretrained("prithivMLmods/Q3.5-27B-Opus-DA") 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
- vLLM
How to use prithivMLmods/Q3.5-27B-Opus-DA with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prithivMLmods/Q3.5-27B-Opus-DA" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/Q3.5-27B-Opus-DA", "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/prithivMLmods/Q3.5-27B-Opus-DA
- SGLang
How to use prithivMLmods/Q3.5-27B-Opus-DA 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 "prithivMLmods/Q3.5-27B-Opus-DA" \ --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": "prithivMLmods/Q3.5-27B-Opus-DA", "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 "prithivMLmods/Q3.5-27B-Opus-DA" \ --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": "prithivMLmods/Q3.5-27B-Opus-DA", "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 new
How to use prithivMLmods/Q3.5-27B-Opus-DA 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 prithivMLmods/Q3.5-27B-Opus-DA 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 prithivMLmods/Q3.5-27B-Opus-DA to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for prithivMLmods/Q3.5-27B-Opus-DA to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="prithivMLmods/Q3.5-27B-Opus-DA", max_seq_length=2048, ) - Docker Model Runner
How to use prithivMLmods/Q3.5-27B-Opus-DA with Docker Model Runner:
docker model run hf.co/prithivMLmods/Q3.5-27B-Opus-DA
Q3.5-27B-Opus-DA
Q3.5-27B-Opus-DA (Qwen3.5 Distilled-Abliterated) is a reasoning-focused model built on Qwen/Qwen3.5-27B. This model is optimized for rich, detailed, and context-aware reasoning, leveraging multi-stage training on Opus reasoning traces combined with advanced refusal direction analysis and ablation-based training strategies to reduce internal refusal behaviors while preserving strong reasoning and instruction-following performance.
This model is intended strictly for research and learning purposes. Due to reduced internal refusal mechanisms, it may generate sensitive or unrestricted content. Users assume full responsibility for how the model is used. The authors and hosting platform disclaim any liability for generated outputs.
Note: This model is experimental and may generate artifacts.
Key Highlights
- Multi-Stage Training on Opus Reasoning Traces: Fine-tuned across multiple stages using high-quality reasoning traces from Claude Opus, enabling deep reasoning alignment.
- Distilled Abliterated (DA): Applies advanced refusal direction analysis and ablation-based strategies to reduce internal refusal behaviors while preserving reasoning quality.
- Qwen3.5 Base: Built on the powerful Qwen/Qwen3.5-27B backbone for strong reasoning and generation performance.
- Instruction + Reasoning Fusion: Handles both instruction-following and complex multi-step reasoning tasks seamlessly.
- High-Coherence Outputs: Maintains consistency across long generations with improved contextual grounding.
Datasets Used and Training Details
| Category | Details |
|---|---|
| Base Model | Qwen/Qwen3.5-27B |
| Final Model Size | 27B Parameters |
| Training Type | Multi-stage distillation + abliteration |
| Objective | Preserve reasoning quality from larger models; reduce refusal behaviors via ablation strategies; improve instruction-following reliability |
| Reasoning Dataset 1 | nohurry/Opus-4.6-Reasoning-3000x-filtered |
| Reasoning Dataset 2 | Jackrong/Qwen3.5-reasoning-700x |
| Reasoning Dataset 3 | Roman1111111/claude-opus-4.6-10000x |
| Alignment / Evaluation Dataset | prithivMLmods/harm_bench |
| Training Focus | Structured reasoning, long-chain thinking, robustness across diverse prompts |
| Training Inspiration 1 | Jackrong-llm-finetuning-guide |
| Training Inspiration 2 | Unsloth Documentation |
Quick Start with Transformers
pip install transformers==5.7.0
# or latest
pip install git+https://github.com/huggingface/transformers.git
from transformers import Qwen3_5ForConditionalGeneration, AutoProcessor
import torch
model = Qwen3_5ForConditionalGeneration.from_pretrained(
"prithivMLmods/Q3.5-27B-Opus-DA",
torch_dtype="auto",
device_map="auto"
)
processor = AutoProcessor.from_pretrained(
"prithivMLmods/Q3.5-27B-Opus-DA"
)
messages = [
{
"role": "user",
"content": [
{"type": "text", "text": "Generate a highly detailed caption of a futuristic city skyline at sunset."}
],
}
]
text = processor.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
inputs = processor(
text=[text],
padding=True,
return_tensors="pt"
).to("cuda")
generated_ids = model.generate(**inputs, max_new_tokens=512)
generated_ids_trimmed = [
out_ids[len(in_ids):] for in_ids, out_ids in zip(inputs.input_ids, generated_ids)
]
output_text = processor.batch_decode(
generated_ids_trimmed,
skip_special_tokens=True,
clean_up_tokenization_spaces=False
)
print(output_text)
Intended Use
- Reasoning & Chain-of-Thought Tasks: Deep multi-step reasoning powered by Opus-distilled traces
- Instruction Following: Hybrid prompts requiring both instruction adherence and reasoning
- Red-Teaming & Alignment Research: Evaluating reduced-refusal systems and refusal direction analysis
- Local High-Performance Deployment: Multi-GPU or quantized inference setups
- Research on Abliteration: Studying the effects of ablation-based training on reasoning preservation
Limitations & Risks
Important Note: This model intentionally minimizes built-in safety refusals.
- Sensitive Content Risk: May produce unrestricted or controversial outputs
- User Responsibility: Requires careful and ethical usage
- High Compute Demand: Large models need significant VRAM or optimized inference
- Abliteration Trade-offs: Reduced refusal may impact safety alignment and output filtering
- Downloads last month
- 27
