Text Generation
Transformers
Safetensors
qwen3_5_moe
qwen3.5
Mixture of Experts
fp8
quantized
abliterated
compressed-tensors
vllm
conversational
Instructions to use bjk110/Qwen3.5-122B-A10B-abliterated-FP8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bjk110/Qwen3.5-122B-A10B-abliterated-FP8 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bjk110/Qwen3.5-122B-A10B-abliterated-FP8") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoProcessor, AutoModelForCausalLM processor = AutoProcessor.from_pretrained("bjk110/Qwen3.5-122B-A10B-abliterated-FP8") model = AutoModelForCausalLM.from_pretrained("bjk110/Qwen3.5-122B-A10B-abliterated-FP8", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] 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 bjk110/Qwen3.5-122B-A10B-abliterated-FP8 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bjk110/Qwen3.5-122B-A10B-abliterated-FP8" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bjk110/Qwen3.5-122B-A10B-abliterated-FP8", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/bjk110/Qwen3.5-122B-A10B-abliterated-FP8
- SGLang
How to use bjk110/Qwen3.5-122B-A10B-abliterated-FP8 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 "bjk110/Qwen3.5-122B-A10B-abliterated-FP8" \ --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": "bjk110/Qwen3.5-122B-A10B-abliterated-FP8", "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 "bjk110/Qwen3.5-122B-A10B-abliterated-FP8" \ --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": "bjk110/Qwen3.5-122B-A10B-abliterated-FP8", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use bjk110/Qwen3.5-122B-A10B-abliterated-FP8 with Docker Model Runner:
docker model run hf.co/bjk110/Qwen3.5-122B-A10B-abliterated-FP8
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,55 +1,77 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
| 4 |
tags:
|
| 5 |
- qwen3.5
|
| 6 |
- moe
|
| 7 |
- fp8
|
| 8 |
- quantized
|
| 9 |
- abliterated
|
| 10 |
-
-
|
| 11 |
-
-
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
---
|
| 14 |
|
| 15 |
# Qwen3.5-122B-A10B-abliterated-FP8
|
| 16 |
|
| 17 |
-
|
| 18 |
|
| 19 |
-
|
| 20 |
|
| 21 |
## Model Details
|
| 22 |
|
| 23 |
-
| | |
|
| 24 |
-
|---|---|
|
| 25 |
-
| Base Model | [wangzhang/Qwen3.5-122B-A10B-abliterated](https://huggingface.co/wangzhang/Qwen3.5-122B-A10B-abliterated) |
|
| 26 |
-
|
|
| 27 |
-
|
|
| 28 |
-
|
|
| 29 |
-
|
|
| 30 |
-
|
|
| 31 |
-
|
|
| 32 |
-
|
| 33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
-
##
|
| 38 |
|
| 39 |
-
This model
|
| 40 |
|
| 41 |
-
###
|
| 42 |
|
| 43 |
```bash
|
| 44 |
-
# 1.
|
| 45 |
-
|
| 46 |
|
| 47 |
-
# 2. Serve
|
| 48 |
-
vllm serve /path/to/
|
|
|
|
| 49 |
--tensor-parallel-size 2 \
|
|
|
|
|
|
|
|
|
|
| 50 |
--trust-remote-code \
|
|
|
|
| 51 |
--enable-chunked-prefill \
|
| 52 |
-
--max-model-len 32768 \
|
| 53 |
--reasoning-parser qwen3
|
| 54 |
```
|
| 55 |
|
|
|
|
| 1 |
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
license_name: apache-2.0
|
| 4 |
+
license_link: https://hf.co/Qwen/Qwen3.5-122B-A10B/blob/main/LICENSE
|
| 5 |
+
base_model:
|
| 6 |
+
- wangzhang/Qwen3.5-122B-A10B-abliterated
|
| 7 |
tags:
|
| 8 |
- qwen3.5
|
| 9 |
- moe
|
| 10 |
- fp8
|
| 11 |
- quantized
|
| 12 |
- abliterated
|
| 13 |
+
- compressed-tensors
|
| 14 |
+
- vllm
|
| 15 |
+
language:
|
| 16 |
+
- en
|
| 17 |
+
- ko
|
| 18 |
+
- zh
|
| 19 |
+
- ja
|
| 20 |
+
library_name: transformers
|
| 21 |
+
pipeline_tag: text-generation
|
| 22 |
---
|
| 23 |
|
| 24 |
# Qwen3.5-122B-A10B-abliterated-FP8
|
| 25 |
|
| 26 |
+
FP8 quantized derivative of [wangzhang/Qwen3.5-122B-A10B-abliterated](https://huggingface.co/wangzhang/Qwen3.5-122B-A10B-abliterated), which itself is derived from [Qwen/Qwen3.5-122B-A10B](https://huggingface.co/Qwen/Qwen3.5-122B-A10B).
|
| 27 |
|
| 28 |
+
This repository provides a modified derivative checkpoint for local inference and serving. The primary changes in this repository are FP8 quantization, weight repacking / export formatting, and serving compatibility adjustments.
|
| 29 |
|
| 30 |
## Model Details
|
| 31 |
|
| 32 |
+
| Property | Value |
|
| 33 |
+
|----------|-------|
|
| 34 |
+
| Intermediate Base Model | [wangzhang/Qwen3.5-122B-A10B-abliterated](https://huggingface.co/wangzhang/Qwen3.5-122B-A10B-abliterated) |
|
| 35 |
+
| Original Base Model | [Qwen/Qwen3.5-122B-A10B](https://huggingface.co/Qwen/Qwen3.5-122B-A10B) |
|
| 36 |
+
| Architecture | Qwen3.5 MoE (256 routed experts, 10B active) |
|
| 37 |
+
| Quantization | FP8 |
|
| 38 |
+
| Original Size | 228 GB (BF16) |
|
| 39 |
+
| Quantized Size | **116 GB** |
|
| 40 |
+
| Format | safetensors |
|
| 41 |
+
|
| 42 |
+
## Quantization Method
|
| 43 |
+
|
| 44 |
+
This model was quantized from the abliterated BF16 checkpoint into FP8 format for more practical deployment while preserving compatibility with modern inference stacks.
|
| 45 |
+
|
| 46 |
+
### What is Quantized
|
| 47 |
|
| 48 |
+
| Component | Format | Notes |
|
| 49 |
+
|-----------|--------|-------|
|
| 50 |
+
| Expert weights | **FP8** | Quantized for reduced memory footprint |
|
| 51 |
+
| Attention projections | **FP8** | Quantized where supported |
|
| 52 |
+
| Selected sensitive components | **BF16** | Kept at higher precision where needed for stability |
|
| 53 |
+
| Embeddings / norms / control tensors | **BF16** | Preserved at full precision |
|
| 54 |
|
| 55 |
+
## Serving with vLLM
|
| 56 |
|
| 57 |
+
This model is intended for vLLM-based inference and may require tensor parallelism depending on available memory.
|
| 58 |
|
| 59 |
+
### Quick Start
|
| 60 |
|
| 61 |
```bash
|
| 62 |
+
# 1. Download the model
|
| 63 |
+
huggingface-cli download bjk110/Qwen3.5-122B-A10B-abliterated-FP8
|
| 64 |
|
| 65 |
+
# 2. Serve with vLLM
|
| 66 |
+
vllm serve /path/to/model \
|
| 67 |
+
--served-model-name Qwen3.5-122B-A10B-abliterated-FP8 \
|
| 68 |
--tensor-parallel-size 2 \
|
| 69 |
+
--max-model-len 131072 \
|
| 70 |
+
--max-num-seqs 4 \
|
| 71 |
+
--gpu-memory-utilization 0.90 \
|
| 72 |
--trust-remote-code \
|
| 73 |
+
--enable-prefix-caching \
|
| 74 |
--enable-chunked-prefill \
|
|
|
|
| 75 |
--reasoning-parser qwen3
|
| 76 |
```
|
| 77 |
|