cloud19 commited on
Commit
5fde52b
·
verified ·
1 Parent(s): e50a71c

Model card in English

Browse files
Files changed (1) hide show
  1. README.md +29 -16
README.md CHANGED
@@ -4,6 +4,7 @@ license_name: apache-2.0
4
  library_name: transformers
5
  pipeline_tag: image-text-to-text
6
  base_model: joyfox/JoyFox-Qwen3.6-35B-A3B-RP-Aggressive
 
7
  tags:
8
  - fp8
9
  - llm-compressor
@@ -20,22 +21,26 @@ language:
20
 
21
  # JoyFox-Qwen3.6-35B-A3B-RP-Aggressive — FP8 Dynamic
22
 
23
- FP8_DYNAMIC-квант модели
24
  [joyfox/JoyFox-Qwen3.6-35B-A3B-RP-Aggressive](https://huggingface.co/joyfox/JoyFox-Qwen3.6-35B-A3B-RP-Aggressive)
25
- (архитектура `Qwen3_5MoeForConditionalGeneration`, база `Qwen/Qwen3.6-35B-A3B`).
 
26
 
27
- * **Источник:** `joyfox/JoyFox-Qwen3.6-35B-A3B-RP-Aggressive`
28
- * **Лицензия:** apache-2.0 (наследуется от источника и базовой модели)
29
- * **Инструмент:** [llm-compressor](https://github.com/vllm-project/llm-compressor), data-free one-shot
30
- * **Схема:** веса FP8 per-channel (статические), активации FP8 per-token (динамические)
 
31
 
32
- ## Что не квантовалось
33
 
34
- В BF16 оставлены: `lm_head`, эмбеддинги, вижн-башня (`model.visual.*`),
35
- слои линейного внимания Gated DeltaNet (`linear_attn.*`), роутеры MoE (`mlp.gate`),
36
- gate шаренного эксперта (`shared_expert_gate`) и MTP-голова (`mtp.*`).
 
 
37
 
38
- ## Рецепт
39
 
40
  ```python
41
  from transformers import AutoProcessor, Qwen3_5MoeForConditionalGeneration
@@ -65,15 +70,23 @@ model.save_pretrained("out")
65
  processor.save_pretrained("out")
66
  ```
67
 
68
- ## Запуск в vLLM
69
-
70
- Спекулятивное декодирование (MTP) намеренно **не** используется.
71
- Мышление (`<think>`) выключается на уровне шаблона чата.
72
 
73
  ```bash
74
  vllm serve cloud19/JoyFox-Qwen3.6-35B-A3B-RP-Aggressive-FP8-Dynamic \
75
- --served-model-name joyfox-test \
 
76
  --max-model-len 16384 --kv-cache-dtype fp8 \
77
  --limit-mm-per-prompt '{"image": 0, "audio": 0, "video": 0}' \
78
  --default-chat-template-kwargs '{"enable_thinking": false}'
79
  ```
 
 
 
 
 
 
 
 
 
 
 
4
  library_name: transformers
5
  pipeline_tag: image-text-to-text
6
  base_model: joyfox/JoyFox-Qwen3.6-35B-A3B-RP-Aggressive
7
+ base_model_relation: quantized
8
  tags:
9
  - fp8
10
  - llm-compressor
 
21
 
22
  # JoyFox-Qwen3.6-35B-A3B-RP-Aggressive — FP8 Dynamic
23
 
24
+ FP8_DYNAMIC (W8A8) quantization of
25
  [joyfox/JoyFox-Qwen3.6-35B-A3B-RP-Aggressive](https://huggingface.co/joyfox/JoyFox-Qwen3.6-35B-A3B-RP-Aggressive)
26
+ (architecture `Qwen3_5MoeForConditionalGeneration`, base model `Qwen/Qwen3.6-35B-A3B`)
27
+ a 35B-A3B MoE roleplay finetune.
28
 
29
+ * **Source:** `joyfox/JoyFox-Qwen3.6-35B-A3B-RP-Aggressive`
30
+ * **License:** apache-2.0 (inherited from the source and base models)
31
+ * **Tool:** [llm-compressor](https://github.com/vllm-project/llm-compressor), data-free one-shot
32
+ * **Scheme:** FP8 per-channel weights (static), FP8 per-token activations (dynamic)
33
+ * **Weights size:** 36.66 GiB (down from ~70 GiB BF16) — fits a single 96 GB GPU with ample room for KV cache
34
 
35
+ ## Kept in BF16
36
 
37
+ The following modules were excluded from quantization: `lm_head`, embeddings,
38
+ the vision tower (`model.visual.*`), the Gated DeltaNet linear-attention layers
39
+ (`linear_attn.*`), MoE routers (`mlp.gate`), the shared-expert gate
40
+ (`shared_expert_gate`) and the MTP head (`mtp.*`). The ignore list matches the
41
+ reference `RedHatAI/Qwen3.6-35B-A3B-FP8-dynamic` quantization.
42
 
43
+ ## Recipe
44
 
45
  ```python
46
  from transformers import AutoProcessor, Qwen3_5MoeForConditionalGeneration
 
70
  processor.save_pretrained("out")
71
  ```
72
 
73
+ ## Serving with vLLM
 
 
 
74
 
75
  ```bash
76
  vllm serve cloud19/JoyFox-Qwen3.6-35B-A3B-RP-Aggressive-FP8-Dynamic \
77
+ --served-model-name joyfox \
78
+ --enable-chunked-prefill \
79
  --max-model-len 16384 --kv-cache-dtype fp8 \
80
  --limit-mm-per-prompt '{"image": 0, "audio": 0, "video": 0}' \
81
  --default-chat-template-kwargs '{"enable_thinking": false}'
82
  ```
83
+
84
+ Notes:
85
+
86
+ * **Chunked prefill is required.** The hybrid attention stack (Gated DeltaNet
87
+ linear-attention layers) uses vLLM's mamba cache in mode `align`; passing
88
+ `--no-enable-chunked-prefill` makes the engine refuse to start.
89
+ * The MTP head is shipped as `model_mtp.safetensors`, but speculative decoding
90
+ is intentionally **not** used here.
91
+ * Thinking (`<think>`) is disabled at the chat-template level via
92
+ `enable_thinking: false`.