Image-Text-to-Text
Transformers
Safetensors
Russian
English
Chinese
qwen3_5_moe
fp8
llm-compressor
compressed-tensors
vllm
Mixture of Experts
roleplay
conversational
Instructions to use cloud19/JoyFox-Qwen3.6-35B-A3B-RP-Aggressive-FP8-Dynamic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cloud19/JoyFox-Qwen3.6-35B-A3B-RP-Aggressive-FP8-Dynamic with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="cloud19/JoyFox-Qwen3.6-35B-A3B-RP-Aggressive-FP8-Dynamic") 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, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("cloud19/JoyFox-Qwen3.6-35B-A3B-RP-Aggressive-FP8-Dynamic") model = AutoModelForMultimodalLM.from_pretrained("cloud19/JoyFox-Qwen3.6-35B-A3B-RP-Aggressive-FP8-Dynamic", device_map="auto") 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 Settings
- vLLM
How to use cloud19/JoyFox-Qwen3.6-35B-A3B-RP-Aggressive-FP8-Dynamic with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cloud19/JoyFox-Qwen3.6-35B-A3B-RP-Aggressive-FP8-Dynamic" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cloud19/JoyFox-Qwen3.6-35B-A3B-RP-Aggressive-FP8-Dynamic", "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/cloud19/JoyFox-Qwen3.6-35B-A3B-RP-Aggressive-FP8-Dynamic
- SGLang
How to use cloud19/JoyFox-Qwen3.6-35B-A3B-RP-Aggressive-FP8-Dynamic 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 "cloud19/JoyFox-Qwen3.6-35B-A3B-RP-Aggressive-FP8-Dynamic" \ --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": "cloud19/JoyFox-Qwen3.6-35B-A3B-RP-Aggressive-FP8-Dynamic", "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 "cloud19/JoyFox-Qwen3.6-35B-A3B-RP-Aggressive-FP8-Dynamic" \ --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": "cloud19/JoyFox-Qwen3.6-35B-A3B-RP-Aggressive-FP8-Dynamic", "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" } } ] } ] }' - Docker Model Runner
How to use cloud19/JoyFox-Qwen3.6-35B-A3B-RP-Aggressive-FP8-Dynamic with Docker Model Runner:
docker model run hf.co/cloud19/JoyFox-Qwen3.6-35B-A3B-RP-Aggressive-FP8-Dynamic
Model card in English
Browse files
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 |
-
(
|
|
|
|
| 26 |
|
| 27 |
-
* **
|
| 28 |
-
* **
|
| 29 |
-
* **
|
| 30 |
-
* **
|
|
|
|
| 31 |
|
| 32 |
-
##
|
| 33 |
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
|
|
|
|
|
|
| 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 |
-
##
|
| 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
|
|
|
|
| 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`.
|