bjk110 commited on
Commit
1e92560
·
verified ·
1 Parent(s): e80e65a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +49 -27
README.md CHANGED
@@ -1,55 +1,77 @@
1
  ---
2
- base_model: wangzhang/Qwen3.5-122B-A10B-abliterated
3
- pipeline_tag: text-generation
 
 
 
4
  tags:
5
  - qwen3.5
6
  - moe
7
  - fp8
8
  - quantized
9
  - abliterated
10
- - uncensored
11
- - block-wise-fp8
12
- license: apache-2.0
 
 
 
 
 
 
13
  ---
14
 
15
  # Qwen3.5-122B-A10B-abliterated-FP8
16
 
17
- **FP8 E4M3 block-wise quantized** version of [wangzhang/Qwen3.5-122B-A10B-abliterated](https://huggingface.co/wangzhang/Qwen3.5-122B-A10B-abliterated).
18
 
19
- Same checkpoint format as [Qwen/Qwen3.5-122B-A10B-FP8](https://huggingface.co/Qwen/Qwen3.5-122B-A10B-FP8).
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
- | Quantization | FP8 E4M3, block-wise 128×128, `weight_scale_inv` (bfloat16) |
27
- | Checkpoint Size | **115 GB** (50% of original 228 GB) |
28
- | Active Parameters | ~10B (MoE, 10 of 256 experts active per token) |
29
- | Total Parameters | 122B |
30
- | Max Context | 32,768 tokens |
31
- | Uncensored | (abliterated, 0.5% refusal rate) |
32
- | Activation | Dynamic (not stored in checkpoint) |
33
- | BF16 Preserved | lm_head, embed_tokens, norms, conv1d, router gate, in_proj_a/b |
 
 
 
 
34
 
35
- ## Usage
 
 
 
 
 
36
 
37
- ### ⚠️ vLLM Patch Required
38
 
39
- This model uses the `qwen3_5_moe_text` (text-only MoE) architecture, which is not natively supported in vLLM v0.17–v0.18. You must apply the included `vllm_patches/patch_qwen35_moe_text.py` before serving.
40
 
41
- ### Serving with vLLM
42
 
43
  ```bash
44
- # 1. Apply patch (run before vLLM process starts)
45
- python vllm_patches/patch_qwen35_moe_text.py
46
 
47
- # 2. Serve
48
- vllm serve /path/to/Qwen3.5-122B-A10B-abliterated-FP8 \
 
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