Instructions to use timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF", filename="Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-BF16-split--00001-of-00002.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF: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 timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF: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 timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF:Q4_K_M
Use Docker
docker model run hf.co/timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF:Q4_K_M
- Ollama
How to use timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF with Ollama:
ollama run hf.co/timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF:Q4_K_M
- Unsloth Studio
How to use timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF 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 timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF 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 timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF to start chatting
- Pi
How to use timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF: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": "timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF: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 timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF with Docker Model Runner:
docker model run hf.co/timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF:Q4_K_M
- Lemonade
How to use timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF-Q4_K_M
List all available models
lemonade list
- Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF
- What's Different From Stage 1
- Training Details
- Quantizations
- Architecture
- Usage
- Pipeline
- Known Limitations
- Model Provenance
- Disclaimer
- ⚠️ This model has had safety alignment significantly reduced and has been fine-tuned for enhanced reasoning. It may generate content that is harmful, offensive, or inappropriate. Users are solely responsible for ensuring their use complies with applicable laws and ethical standards. This release is intended for research, testing, and controlled environments.
- ☕ Support This Work
- What's Different From Stage 1
Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF
The world's first reasoning-enhanced uncensored 397B model. Abliterated + LoRA fine-tuned on 12,842 high-quality reasoning samples distilled from Anthropic's Opus 4.6 outputs.
This is Stage 2 of the Qwen3.5-397B pipeline:
- Stage 1 — Abliterated (refusals removed), no fine-tuning
- Stage 2 (this repo) — Abliterated + LoRA reasoning fine-tune. Better chain-of-thought, deeper analysis, more structured problem-solving
397B total parameters, 17B active per token (Mixture-of-Experts). Trained for 3,046 steps across 8×H200 GPUs. Final loss: 0.363, accuracy: 90.2%.
What's Different From Stage 1
| Stage 1 (Abliterated Only) | Stage 2 (This Model) | |
|---|---|---|
| Abliteration | ✅ Custom pipeline | ✅ Same pipeline |
| Fine-tuning | None | LoRA r=64, 134.7M trainable params |
| Training data | None | 12,842 reasoning samples (Opus 4.6 distillation) |
| Reasoning quality | Base Qwen3.5 | Enhanced chain-of-thought + structured analysis |
| Thinking mode | Default | Trained with <think> tags for explicit reasoning |
| Final loss | N/A | 0.363 |
| Final accuracy | N/A | 90.2% |
Training Details
LoRA Configuration:
- Rank: 64, Alpha: 128
- Target modules:
self_attn.{q,k,v,o}_proj,shared_expert.{gate,up,down}_proj - Trainable parameters: 134.7M / 396.5B total (0.034%)
- Gradient checkpointing: enabled
Training Hyperparameters:
- Optimizer: AdamW (fused)
- Learning rate: 1.5e-5 (cosine scheduler)
- Effective batch size: 64
- Sequence length: 4,096
- Epochs: 2 (3,046 total steps)
- Warmup: 3%
- Precision: BF16
Dataset Composition (12,842 samples, deduplicated):
opus-10000x: 9,633 multi-turn conversations with deep reasoningopus-3000x: 2,326 problem/thinking/solution samples with explicit chain-of-thoughtreasoning-700x: 633 complex reasoning and analytical taskshigh-reasoning-250x: 250 elite-tier reasoning samples requiring multi-step deduction
All samples feature reasoning traces distilled from Anthropic's Claude Opus 4.6, including <think> tag formatting for explicit chain-of-thought.
Training Curve:
- Step 0: Loss 0.83
- Step 500: Loss ~0.52
- Step 1000: Loss ~0.42
- Step 2000: Loss ~0.39
- Step 3046: Loss 0.363, Accuracy 90.2%
Quantizations
| Quant | Size | BPW | RAM Required | Description | Use Case |
|---|---|---|---|---|---|
| BF16 | 739 GB (2 splits) | 16.01 | ~750 GB | Full precision | Reference, maximum quality |
| Q8_0 | 393 GB | 8.51 | ~400 GB | 8-bit | Best quality with compression |
| Q6_K | 304 GB | 6.57 | ~310 GB | 6-bit | High quality, good compression |
| Q4_K_M | 225 GB | ~4.85 | ~230 GB | 4-bit mixed | Recommended for most users |
| Q3_K_M | 177 GB | ~3.83 | ~185 GB | 3-bit mixed | Memory-constrained setups |
| Q2_K | 135 GB | ~2.92 | ~140 GB | 2-bit | Extreme compression |
Note: Q5_K_M is unavailable due to infrastructure loss during upload. Will be regenerated and uploaded in a future update.
Architecture
- Type: Qwen3.5MoeForConditionalGeneration (hybrid GatedDeltaNet + MoE Transformer)
- Total Parameters: 397B
- Active Parameters: 17B per token
- Hidden Size: 4,096
- Layers: 60
- Attention: 32 heads (GQA, 2 KV heads), head_dim 256
- Experts: 512 routed + shared expert, 10 active per token
- Hybrid Attention: GatedDeltaNet linear attention + self-attention every 4th layer
- Context Length: 262,144 tokens
- Vocab Size: 248,320
- Multimodal: Native vision encoder (text + image + video)
- Languages: 201+ (en, zh, ja, ko, fr, de, es, pt, ru, ar, th, vi, id, ...)
- License: Apache 2.0
Usage
llama.cpp
# Recommended: Q4_K_M for balanced quality/memory
./llama-cli -m Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-Q4_K_M.gguf \
-p "You are a helpful uncensored assistant with strong reasoning abilities." \
-n 2048 --temp 0.7 --top-p 0.9
# Server mode with large context
./llama-server -m Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-Q4_K_M.gguf \
--port 8080 --host 0.0.0.0 -c 131072
LM Studio
Download the GGUF file and load it in LM Studio. The model supports <think> reasoning tags — enable thinking mode for best results on complex tasks.
Open WebUI / SillyTavern
Point your backend to a llama.cpp server. Full OpenAI-compatible API at /v1/chat/completions.
Pipeline
Qwen3.5-397B-A17B (base)
↓ Custom abliteration (strength 20.0, attn.o_proj + shared_expert.down_proj)
↓ LoRA fine-tuning (12,842 Opus 4.6 reasoning samples, 3,046 steps)
↓ LoRA merge into base weights
↓ BF16 GGUF conversion (llama.cpp)
↓ Quantization cascade (Q8_0 → Q2_K)
All processing done in BF16 on 8×H200 SXM5 GPUs (1.1TB VRAM total). Abliteration and quantization applied in correct order: full-precision abliteration → training → merge → THEN quantize.
Known Limitations
- Q5_K_M missing: Lost during infrastructure migration. Will be regenerated.
- Packed expert abliteration: The 512 routed experts use packed tensor format and were not individually abliterated. Some edge-case refusals may persist.
- Vision: Multimodal vision encoder is preserved but untested post-training. Text generation is the primary target.
- Thinking mode: The model generates
<think>tags for reasoning. Strip them in post-processing if unwanted.
Model Provenance
- Base model: Qwen/Qwen3.5-397B-A17B (Apache 2.0)
- Stage 1: timteh673/Qwen3.5-397B-A17B-Uncensored-GGUF
- Training data: Custom reasoning dataset distilled from Anthropic Opus 4.6 outputs
- Quantization: llama.cpp
- Hardware: 8×NVIDIA H200 SXM5, 1.1TB VRAM
Disclaimer
⚠️ This model has had safety alignment significantly reduced and has been fine-tuned for enhanced reasoning. It may generate content that is harmful, offensive, or inappropriate. Users are solely responsible for ensuring their use complies with applicable laws and ethical standards. This release is intended for research, testing, and controlled environments.
☕ Support This Work
Every donation helps fund more open-weight model releases. ⚡ Forged on 8×NVIDIA H200 SXM5 | 1.1TB VRAM
💎 Crypto Donations
| Currency | Address |
|---|---|
| BTC | bc1p4q7vpwucvww2y3x4nhps4y4vekye8uwm9re5a0kx8l6u5nky5ucszm2qhh |
| ETH | 0xe5Aa16E53b141D42458ABeEDb00a157c3Fea2108 |
| SOL | 9CXwjG1mm9uLkxRevdMQiF61cr6TNHSiWtFRHmUEgzkG |
- Downloads last month
- 24,419
2-bit
3-bit
4-bit
6-bit
8-bit
16-bit
Model tree for timteh673/Qwen3.5-397B-A17B-Opus-4.6-Reasoning-Uncensored-GGUF
Base model
Qwen/Qwen3.5-397B-A17B