Text Generation
Transformers
Safetensors
English
Chinese
multilingual
qwen3_5
image-text-to-text
abliterated
uncensored
qwen3
qwen3.6
nvfp4
modelopt
mtp
multi-token-prediction
speculative-decoding
hybrid-attention
mamba
gated-deltanet
multimodal
aeon
rtx-5090
rtx-pro-6000
b100
b200
dedicated-vram-blackwell
sm_120
sm_100
32gb
conv1d-preserved
conversational
8-bit precision
Instructions to use connorhzp/Qwen3.6-27B-AEON-Ultimate-Uncensored-Multimodal-NVFP4-MTP-XS with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use connorhzp/Qwen3.6-27B-AEON-Ultimate-Uncensored-Multimodal-NVFP4-MTP-XS with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="connorhzp/Qwen3.6-27B-AEON-Ultimate-Uncensored-Multimodal-NVFP4-MTP-XS") 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("connorhzp/Qwen3.6-27B-AEON-Ultimate-Uncensored-Multimodal-NVFP4-MTP-XS") model = AutoModelForMultimodalLM.from_pretrained("connorhzp/Qwen3.6-27B-AEON-Ultimate-Uncensored-Multimodal-NVFP4-MTP-XS") 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 connorhzp/Qwen3.6-27B-AEON-Ultimate-Uncensored-Multimodal-NVFP4-MTP-XS with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "connorhzp/Qwen3.6-27B-AEON-Ultimate-Uncensored-Multimodal-NVFP4-MTP-XS" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "connorhzp/Qwen3.6-27B-AEON-Ultimate-Uncensored-Multimodal-NVFP4-MTP-XS", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/connorhzp/Qwen3.6-27B-AEON-Ultimate-Uncensored-Multimodal-NVFP4-MTP-XS
- SGLang
How to use connorhzp/Qwen3.6-27B-AEON-Ultimate-Uncensored-Multimodal-NVFP4-MTP-XS 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 "connorhzp/Qwen3.6-27B-AEON-Ultimate-Uncensored-Multimodal-NVFP4-MTP-XS" \ --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": "connorhzp/Qwen3.6-27B-AEON-Ultimate-Uncensored-Multimodal-NVFP4-MTP-XS", "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 "connorhzp/Qwen3.6-27B-AEON-Ultimate-Uncensored-Multimodal-NVFP4-MTP-XS" \ --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": "connorhzp/Qwen3.6-27B-AEON-Ultimate-Uncensored-Multimodal-NVFP4-MTP-XS", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use connorhzp/Qwen3.6-27B-AEON-Ultimate-Uncensored-Multimodal-NVFP4-MTP-XS with Docker Model Runner:
docker model run hf.co/connorhzp/Qwen3.6-27B-AEON-Ultimate-Uncensored-Multimodal-NVFP4-MTP-XS
Duplicate from AEON-7/Qwen3.6-27B-AEON-Ultimate-Uncensored-Multimodal-NVFP4-MTP-XS
Browse files- .gitattributes +36 -0
- README.md +244 -0
- chat_template.jinja +154 -0
- config.json +253 -0
- generation_config.json +13 -0
- hf_quant_config.json +63 -0
- model.safetensors +3 -0
- preprocessor_config.json +21 -0
- tokenizer.json +3 -0
- tokenizer_config.json +36 -0
- video_preprocessor_config.json +21 -0
.gitattributes
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,244 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: AEON-7/Qwen3.6-27B-AEON-Ultimate-Uncensored-BF16
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
- zh
|
| 7 |
+
- multilingual
|
| 8 |
+
library_name: transformers
|
| 9 |
+
pipeline_tag: text-generation
|
| 10 |
+
tags:
|
| 11 |
+
- abliterated
|
| 12 |
+
- uncensored
|
| 13 |
+
- qwen3
|
| 14 |
+
- qwen3.6
|
| 15 |
+
- nvfp4
|
| 16 |
+
- modelopt
|
| 17 |
+
- mtp
|
| 18 |
+
- multi-token-prediction
|
| 19 |
+
- speculative-decoding
|
| 20 |
+
- hybrid-attention
|
| 21 |
+
- mamba
|
| 22 |
+
- gated-deltanet
|
| 23 |
+
- multimodal
|
| 24 |
+
- aeon
|
| 25 |
+
- rtx-5090
|
| 26 |
+
- rtx-pro-6000
|
| 27 |
+
- b100
|
| 28 |
+
- b200
|
| 29 |
+
- dedicated-vram-blackwell
|
| 30 |
+
- sm_120
|
| 31 |
+
- sm_100
|
| 32 |
+
- 32gb
|
| 33 |
+
- conv1d-preserved
|
| 34 |
+
---
|
| 35 |
+
|
| 36 |
+
# Qwen3.6-27B-AEON-Ultimate-Uncensored-Multimodal-NVFP4-MTP-XS
|
| 37 |
+
|
| 38 |
+
> **Deployment, operations & benchmarks → [github.com/AEON-7/Qwen3.6-27B-AEON-Ultimate-Uncensored-DFlash](https://github.com/AEON-7/Qwen3.6-27B-AEON-Ultimate-Uncensored-DFlash)**
|
| 39 |
+
>
|
| 40 |
+
> The GitHub repo is the source of truth for the production deployment guide, hardware-tuned docker-compose configs, full configuration reference, measured benchmarks, and `AGENTS.md` — an operator's manual that pre-empts common stale-documentation traps.
|
| 41 |
+
|
| 42 |
+
> ## 🏆 DGX Spark performance — current production *(v3 image, 2026-04-29)*
|
| 43 |
+
>
|
| 44 |
+
> Served with **DFlash spec decode** *(not the MTP head)* on this XS body, the v3 image (`ghcr.io/aeon-7/vllm-aeon-ultimate-dflash:qwen36-v3`) clocks **38.5 tok/s median, 71.3 tok/s peak** thinking-on / **38.1 / 68.4** thinking-off — a **+18 % median / +26 % peak** lift over the prior v2.1 image and a **+17 % / +21 %** stacked lift vs the original `-NVFP4` (compressed-tensors) production. Median TTFT is **247 ms** (was 325 ms — −24 %). See the [GitHub Performance section](https://github.com/AEON-7/Qwen3.6-27B-AEON-Ultimate-Uncensored-DFlash#performance) for the four-config comparison table.
|
| 45 |
+
|
| 46 |
+
> **🙏 Reference recipe credit:** The conv1d-preserved NVFP4 + MTP graft pipeline used to build this XS variant is based on [**sakamakismile**](https://huggingface.co/sakamakismile)'s validated [Qwen3.6-27B-NVFP4-MTP series](https://huggingface.co/sakamakismile/Qwen3.6-27B-Text-NVFP4-MTP) (22K+ downloads). They worked out the modelopt config — including the strategic decision to quantize the GDN projection matmuls to NVFP4 while preserving `linear_attn.conv1d` at BF16 — and the MTP-head graft technique. We adapted the recipe to AEON-Ultimate's abliterated weights and ship both the conv1d-preserved-only XS variant (matching their footprint) and a heavier regular-MTP variant that additionally keeps the projections at BF16. Full credit for the underlying recipe → sakamakismile.
|
| 47 |
+
|
| 48 |
+
## What "XS" means — and what it's *not*
|
| 49 |
+
|
| 50 |
+
This is the **extra-small footprint** sibling of [`-Multimodal-NVFP4-MTP`](https://huggingface.co/AEON-7/Qwen3.6-27B-AEON-Ultimate-Uncensored-Multimodal-NVFP4-MTP). XS is **not "everything to FP4."** It is a deliberate, principled split: the heavy GDN matmul projections drop to NVFP4 (where they're bandwidth-bound and FP4 wins big), while the SSM-critical `linear_attn.conv1d` kernel **stays BF16** (where FP4 has documented stability problems on long-context recurrence).
|
| 51 |
+
|
| 52 |
+
| | **Multimodal-NVFP4-MTP** (regular) | **Multimodal-NVFP4-MTP-XS** *(this repo)* |
|
| 53 |
+
|---|---|---|
|
| 54 |
+
| `linear_attn` projections (`in_proj_qkv`, `in_proj_z`, `in_proj_a/b`, `out_proj`) | preserved BF16 (~11 GB) | quantized to NVFP4 (~3 GB) |
|
| 55 |
+
| **`linear_attn.conv1d`** *(SSM 1D convolution — recurrence-critical)* | **preserved BF16** | **preserved BF16** ✅ |
|
| 56 |
+
| `linear_attn` SSM state vectors (`A_log`, `dt_bias`, `norm.weight`) | preserved BF16 | preserved BF16 ✅ |
|
| 57 |
+
| `mtp.*` head *(grafted bf16 from base, bit-exact verified)* | yes | yes |
|
| 58 |
+
| Vision tower | preserved BF16 | preserved BF16 |
|
| 59 |
+
| **Total disk** | **~27 GB** | **~21 GB** |
|
| 60 |
+
| **VRAM footprint at runtime** | ~28 GB | ~22 GB |
|
| 61 |
+
|
| 62 |
+
**This is a smart, strategic quantization — not a precision compromise.** The conv1d preservation matters: the GatedDeltaNet recurrence depends on the 1D convolution behaving numerically like its training distribution, and FP4 quantization of `conv1d` has been observed to cause drift on long-context inference in community testing. By keeping conv1d BF16 while quantizing the projections (which are bandwidth-limited matmuls where FP4 is a clean win), we get the ~6 GB footprint reduction without sacrificing the part of the model that's actually fragile under quantization. This is the same principle modelopt's `NVFP4_DEFAULT_CFG` applies by default and the same recipe sakamakismile validated across his Qwen3.6-NVFP4-MTP series (22K+ downloads).
|
| 63 |
+
|
| 64 |
+
**When to pick which:**
|
| 65 |
+
- **Pick the regular variant** if you have ≥48 GB VRAM. Even the *projection* weights at BF16 give a small additional safety margin on long-context recurrence stability.
|
| 66 |
+
- **Pick this XS variant** if you have **24–32 GB VRAM** (RTX 5090, single GPUs without headroom for full BF16 GDN). The conv1d preservation guarantees the SSM recurrence stays numerically stable; the ~6 GB savings buy meaningful KV-cache headroom on tight GPUs.
|
| 67 |
+
|
| 68 |
+
We ship both because we have the headroom on RTX PRO 6000 / B100/B200 to run the larger, more numerically-conservative version, and several users on tighter cards have asked for the smaller one. **Neither variant** quantizes `linear_attn.conv1d` — that would be a different (and not-recommended) variant we have explicitly chosen not to ship.
|
| 69 |
+
|
| 70 |
+
## Variants
|
| 71 |
+
|
| 72 |
+
| Format | Size | Use case |
|
| 73 |
+
|---|---|---|
|
| 74 |
+
| [BF16](https://huggingface.co/AEON-7/Qwen3.6-27B-AEON-Ultimate-Uncensored-BF16) | 51 GB | Full-precision reference weights |
|
| 75 |
+
| [NVFP4 (compressed-tensors + DFlash)](https://huggingface.co/AEON-7/Qwen3.6-27B-AEON-Ultimate-Uncensored-NVFP4) | 26 GB | DGX Spark — DFlash spec decode, validated |
|
| 76 |
+
| [Multimodal-NVFP4-MTP](https://huggingface.co/AEON-7/Qwen3.6-27B-AEON-Ultimate-Uncensored-Multimodal-NVFP4-MTP) | 27 GB | RTX PRO 6000 / B100/B200 — MTP, GDN preserved BF16 |
|
| 77 |
+
| [Text-NVFP4-MTP](https://huggingface.co/AEON-7/Qwen3.6-27B-AEON-Ultimate-Uncensored-Text-NVFP4-MTP) | 26 GB | Same as above without vision tower |
|
| 78 |
+
| **Multimodal-NVFP4-MTP-XS** *(this repo)* | **21 GB** | RTX 5090 / smaller dedicated VRAM — MTP, full FP4 incl. GDN projections |
|
| 79 |
+
| [Text-NVFP4-MTP-XS](https://huggingface.co/AEON-7/Qwen3.6-27B-AEON-Ultimate-Uncensored-Text-NVFP4-MTP-XS) | 20 GB | Same as this repo without vision tower |
|
| 80 |
+
|
| 81 |
+
## What this is
|
| 82 |
+
|
| 83 |
+
The **modelopt-format NVFP4 + MTP variant, multimodal-preserved, with `linear_attn` projections fully quantized**, of [AEON-7/Qwen3.6-27B-AEON-Ultimate-Uncensored-BF16](https://huggingface.co/AEON-7/Qwen3.6-27B-AEON-Ultimate-Uncensored-BF16) — the lossless abliteration of Qwen 3.6 27B (KL 0.000492 vs base, 0/100 refusals, multimodal preserved, hybrid GDN-aware quantization).
|
| 84 |
+
|
| 85 |
+
Specifically:
|
| 86 |
+
|
| 87 |
+
- **Body quantized to NVFP4** via `nvidia-modelopt` 0.43.0 with `NVFP4_DEFAULT_CFG`. modelopt format, served by vLLM through `--quantization modelopt`.
|
| 88 |
+
- **Linear-attn / GatedDeltaNet projections quantized to NVFP4** (this is the XS difference). Only `linear_attn.conv1d` is kept BF16 (modelopt's default). The community has validated this approach on Qwen3.5/3.6-NVFP4 builds with 22K+ downloads on sakamakismile's reference recipes; we re-ran calibration on our abliterated weights and the model serves correctly.
|
| 89 |
+
- **Vision tower preserved BF16** (333 keys). Multimodal inference fully functional.
|
| 90 |
+
- **MTP head grafted from the base** `Qwen/Qwen3.6-27B` checkpoint (15 tensors, BF16, bit-exact verified). Powers `--speculative-config '{"method":"qwen3_5_mtp",...}'` for self-speculative decoding without a separate drafter.
|
| 91 |
+
|
| 92 |
+
## Why MTP
|
| 93 |
+
|
| 94 |
+
Multi-Token Prediction (MTP) lets the model predict multiple future tokens per forward pass via the trained `mtp.*` head, enabling **speculative decoding without a separate drafter model**. The acceptance rate is high because the drafter is the model itself — same architecture, same weights, same distribution.
|
| 95 |
+
|
| 96 |
+
Indicative published numbers (sakamakismile's reference recipe on RTX 5090):
|
| 97 |
+
|
| 98 |
+
- Single-stream short prompts at `n=3`: ~132 tok/s
|
| 99 |
+
- Single-stream long-form: ~105 tok/s
|
| 100 |
+
- 2-parallel aggregate (256K + KV FP8): ~189-207 tok/s
|
| 101 |
+
- Mean acceptance length: ~3.0-4.0 (compared to DFlash chains of ~2.0-2.3)
|
| 102 |
+
|
| 103 |
+
Validated benchmarks of the AEON-Ultimate XS variant land in the [GitHub repo](https://github.com/AEON-7/Qwen3.6-27B-AEON-Ultimate-Uncensored-DFlash#performance) once measured.
|
| 104 |
+
|
| 105 |
+
## 🎯 When to pick this variant — measured hardware routing
|
| 106 |
+
|
| 107 |
+
The right speculative-decode method depends on **memory architecture**:
|
| 108 |
+
|
| 109 |
+
| Hardware tier | Recommended variant | Why |
|
| 110 |
+
|---|---|---|
|
| 111 |
+
| **DGX Spark / GB10** *(sm_121a, unified memory)* | Either: **[`-NVFP4` (DFlash)](https://huggingface.co/AEON-7/Qwen3.6-27B-AEON-Ultimate-Uncensored-NVFP4)** *(simpler, validated)* **or this XS body served with `--speculative-config '{"method":"dflash",...}'`** *(highest measured throughput — see note below)* | Spark prefers DFlash regardless of body. The XS body **with DFlash spec** lands at **37.6 tok/s median, 68.7 tok/s peak** on Spark — the highest measured config. The grafted MTP head in this repo is *unused* in that path. **Never use `--speculative-config '{"method":"qwen3_5_mtp",...}'` on Spark** — that lands at only 24.1 tok/s median. |
|
| 112 |
+
| **RTX PRO 6000 Blackwell** *(96 GB dedicated VRAM)* | [Multimodal-NVFP4-MTP](https://huggingface.co/AEON-7/Qwen3.6-27B-AEON-Ultimate-Uncensored-Multimodal-NVFP4-MTP) — GDN BF16 for best long-context fidelity, *or* **this XS variant** for ~10 % faster decode | XS measured 111.4 tok/s median vs regular's 101.5 on RTX PRO 6000. Both win against DFlash on dedicated VRAM. |
|
| 113 |
+
| **B100 / B200** *(sm_100, dedicated FP4)* | [Multimodal-NVFP4-MTP](https://huggingface.co/AEON-7/Qwen3.6-27B-AEON-Ultimate-Uncensored-Multimodal-NVFP4-MTP) (preferred — GDN BF16 fits) or this XS | Native FP4 + dedicated VRAM = MTP territory. Whichever fits cleanly. |
|
| 114 |
+
| **RTX 5090** *(sm_120, 32 GB dedicated VRAM)* | **This XS variant** ✅ if you use vision; [Text-XS](https://huggingface.co/AEON-7/Qwen3.6-27B-AEON-Ultimate-Uncensored-Text-NVFP4-MTP-XS) if text-only | XS variants fit comfortably in 32 GB; matches sakamakismile's reference footprint. |
|
| 115 |
+
| **A100 / H100** *(no native FP4)* | [BF16](https://huggingface.co/AEON-7/Qwen3.6-27B-AEON-Ultimate-Uncensored-BF16) | NVFP4 dequantizes to BF16 on Ampere/Hopper — no benefit. |
|
| 116 |
+
|
| 117 |
+
Full bench numbers: [GitHub repo Performance section](https://github.com/AEON-7/Qwen3.6-27B-AEON-Ultimate-Uncensored-DFlash#performance).
|
| 118 |
+
| **A100 / H100** (no native FP4) | [BF16](https://huggingface.co/AEON-7/Qwen3.6-27B-AEON-Ultimate-Uncensored-BF16) |
|
| 119 |
+
|
| 120 |
+
## Usage
|
| 121 |
+
|
| 122 |
+
### vLLM serve — dedicated-VRAM Blackwell (default: MTP via grafted head)
|
| 123 |
+
|
| 124 |
+
```bash
|
| 125 |
+
# One-time: pull this repo locally
|
| 126 |
+
hf download AEON-7/Qwen3.6-27B-AEON-Ultimate-Uncensored-Multimodal-NVFP4-MTP-XS \
|
| 127 |
+
--local-dir ./aeon-ultimate-multimodal-nvfp4-mtp-xs
|
| 128 |
+
|
| 129 |
+
# Serve
|
| 130 |
+
export VLLM_NVFP4_GEMM_BACKEND=flashinfer-cutlass
|
| 131 |
+
export VLLM_USE_FLASHINFER_MOE_FP4=0
|
| 132 |
+
export VLLM_USE_FLASHINFER_SAMPLER=1
|
| 133 |
+
|
| 134 |
+
vllm serve ./aeon-ultimate-multimodal-nvfp4-mtp-xs \
|
| 135 |
+
--quantization modelopt \
|
| 136 |
+
--trust-remote-code \
|
| 137 |
+
--max-model-len 262144 \
|
| 138 |
+
--max-num-seqs 32 \
|
| 139 |
+
--max-num-batched-tokens 32768 \
|
| 140 |
+
--gpu-memory-utilization 0.94 \
|
| 141 |
+
--enable-chunked-prefill \
|
| 142 |
+
--enable-prefix-caching \
|
| 143 |
+
--reasoning-parser qwen3 \
|
| 144 |
+
--tool-call-parser qwen3_coder \
|
| 145 |
+
--enable-auto-tool-choice \
|
| 146 |
+
--speculative-config '{"method":"qwen3_5_mtp","num_speculative_tokens":3}'
|
| 147 |
+
```
|
| 148 |
+
|
| 149 |
+
`num_speculative_tokens=3` is the canonical setting for `qwen3_5_mtp`. Higher values diverge the drafter further from the target distribution and acceptance falls.
|
| 150 |
+
|
| 151 |
+
### vLLM serve — DGX Spark (DFlash spec, *not* MTP — measured winning config)
|
| 152 |
+
|
| 153 |
+
For DGX Spark, swap the spec method to DFlash. The XS body still benefits from FP4 silicon, but DFlash's k=15 chains are decisively better than MTP's n=3 on unified memory.
|
| 154 |
+
|
| 155 |
+
```bash
|
| 156 |
+
# Pull the DFlash drafter alongside this body
|
| 157 |
+
hf download z-lab/Qwen3.6-27B-DFlash --local-dir ./qwen36-27b-dflash
|
| 158 |
+
|
| 159 |
+
vllm serve ./aeon-ultimate-multimodal-nvfp4-mtp-xs \
|
| 160 |
+
--quantization modelopt \
|
| 161 |
+
--trust-remote-code \
|
| 162 |
+
--max-model-len 200000 \
|
| 163 |
+
--max-num-seqs 16 \
|
| 164 |
+
--max-num-batched-tokens 32768 \
|
| 165 |
+
--gpu-memory-utilization 0.85 \
|
| 166 |
+
--enable-chunked-prefill \
|
| 167 |
+
--enable-prefix-caching \
|
| 168 |
+
--reasoning-parser qwen3 \
|
| 169 |
+
--tool-call-parser qwen3_coder \
|
| 170 |
+
--enable-auto-tool-choice \
|
| 171 |
+
--attention-backend flash_attn \
|
| 172 |
+
--speculative-config '{"method":"dflash","model":"./qwen36-27b-dflash","num_speculative_tokens":15}'
|
| 173 |
+
```
|
| 174 |
+
|
| 175 |
+
Production-validated v3 image: [`ghcr.io/aeon-7/vllm-aeon-ultimate-dflash:qwen36-v3`](https://github.com/AEON-7/Qwen3.6-27B-AEON-Ultimate-Uncensored-DFlash/pkgs/container/vllm-aeon-ultimate-dflash). Measured **38.1 tok/s median, 68.4 tok/s peak** thinking-off and **38.5 / 71.3** thinking-on — the highest single-stream config we've measured on Spark.
|
| 176 |
+
|
| 177 |
+
### Configuration notes
|
| 178 |
+
|
| 179 |
+
- **`--quantization modelopt`** is required for this body (not `compressed-tensors` — different format).
|
| 180 |
+
- **`--speculative-config '{"method":"qwen3_5_mtp", ...}'`** uses the grafted MTP head; correct for **dedicated-VRAM Blackwell**. Don't use this on DGX Spark.
|
| 181 |
+
- **`--speculative-config '{"method":"dflash", ...}'`** uses an external DFlash drafter; correct for **DGX Spark**. The grafted MTP head in this repo sits unused in this path (~0.85 GB dead weight). Don't use this on RTX PRO 6000 or B100/B200 — they prefer MTP.
|
| 182 |
+
- **`--gpu-memory-utilization 0.94`** is the validated cap on RTX PRO 6000; `0.85` is the cap on DGX Spark (unified memory thrashes higher).
|
| 183 |
+
|
| 184 |
+
## Quantization recipe
|
| 185 |
+
|
| 186 |
+
- **Tool**: `nvidia-modelopt` 0.43.0 with `NVFP4_DEFAULT_CFG`
|
| 187 |
+
- **Loader**: `Qwen3_5ForConditionalGeneration.from_pretrained` (multimodal-preserved class)
|
| 188 |
+
- **Calibration**: `neuralmagic/calibration` LLM split, 20 samples × 8192 tokens
|
| 189 |
+
- **Excluded from quantization (kept BF16)** — XS variant differences from the regular variant in **bold**:
|
| 190 |
+
- `lm_head`, `proj_out.*`, `*router*`, `*mlp.gate.*` (NVFP4_DEFAULT_CFG)
|
| 191 |
+
- **`*linear_attn.conv1d*`, `*mixer.conv1d*`** *(NVFP4_DEFAULT_CFG default — kept BF16 because FP4 quantization of the SSM 1D convolution causes drift on long-context recurrence; this is the recurrence-critical kernel of the GatedDeltaNet block. **Both regular and XS variants preserve this.**)*
|
| 192 |
+
- **`*linear_attn*` is NOT broadly excluded** (XS difference — the projection matmuls `in_proj_qkv`, `in_proj_z`, `in_proj_a/b`, `out_proj` get NVFP4-quantized; saves ~8 GB; FP4 is a clean win on bandwidth-bound matmuls)
|
| 193 |
+
- `*visual*` (vision tower preservation)
|
| 194 |
+
- `*mtp*` (MTP head preservation)
|
| 195 |
+
- `*output_layer*`, `output.*`
|
| 196 |
+
- **MTP graft**: 15 tensors copied bf16 from `Qwen/Qwen3.6-27B` after modelopt export
|
| 197 |
+
- **Pipeline**: lna-lab/GGUF-to-NVFP4-SM120 reference recipe, adapted for AEON-Ultimate-BF16 input + separate MTP source
|
| 198 |
+
|
| 199 |
+
## Provenance & credits
|
| 200 |
+
|
| 201 |
+
- **BF16 source**: [`AEON-7/Qwen3.6-27B-AEON-Ultimate-Uncensored-BF16`](https://huggingface.co/AEON-7/Qwen3.6-27B-AEON-Ultimate-Uncensored-BF16). See that card for the full abliteration pipeline.
|
| 202 |
+
- **MTP graft technique**: [lna-lab/GGUF-to-NVFP4-SM120](https://github.com/lna-lab/GGUF-to-NVFP4-SM120) (`docs/MTP_GRAFT_RECIPE.md`)
|
| 203 |
+
- **Reference benchmark recipes**: [`sakamakismile/Qwen3.6-27B-Text-NVFP4-MTP`](https://huggingface.co/sakamakismile/Qwen3.6-27B-Text-NVFP4-MTP)
|
| 204 |
+
- **Quantization**: NVIDIA TensorRT Model Optimizer (`nvidia-modelopt` 0.43.0)
|
| 205 |
+
- **Base**: Alibaba Qwen team — `Qwen/Qwen3.6-27B`
|
| 206 |
+
|
| 207 |
+
## License + responsibility
|
| 208 |
+
|
| 209 |
+
Apache 2.0, inherited from `Qwen/Qwen3.6-27B`. **This is an uncensored model.** Read the full [User Responsibility & Arbitration Clause](https://huggingface.co/AEON-7/Qwen3.6-27B-AEON-Ultimate-Uncensored-BF16#user-responsibility--arbitration-clause) on the BF16 source card before deploying. Summary: you implement downstream safety layers (input validation, output filtering, content moderation, audit logging, rate limiting, access controls, human-in-the-loop for high-risk workflows). The model has no opinions of its own — you supply the opinions, the judgment, and the ethics.
|
| 210 |
+
|
| 211 |
+
---
|
| 212 |
+
|
| 213 |
+
## ☕ Support the work
|
| 214 |
+
|
| 215 |
+
If this release has been useful, tips are deeply appreciated — they go directly toward more compute, more models, and more open releases.
|
| 216 |
+
|
| 217 |
+
<table align="center">
|
| 218 |
+
<tr>
|
| 219 |
+
<td align="center" width="50%">
|
| 220 |
+
<strong>₿ Bitcoin (BTC)</strong><br/>
|
| 221 |
+
<img src="https://raw.githubusercontent.com/AEON-7/AEON-7/main/assets/qr/btc.png" alt="BTC QR" width="200"/><br/>
|
| 222 |
+
<sub><code>bc1q09xmzn00q4z3c5raene0f3pzn9d9pvawfm0py4</code></sub>
|
| 223 |
+
</td>
|
| 224 |
+
<td align="center" width="50%">
|
| 225 |
+
<strong>Ξ Ethereum (ETH)</strong><br/>
|
| 226 |
+
<img src="https://raw.githubusercontent.com/AEON-7/AEON-7/main/assets/qr/eth.png" alt="ETH QR" width="200"/><br/>
|
| 227 |
+
<sub><code>0x1512667F6D61454ad531d2E45C0a5d1fd82D0500</code></sub>
|
| 228 |
+
</td>
|
| 229 |
+
</tr>
|
| 230 |
+
<tr>
|
| 231 |
+
<td align="center" width="50%">
|
| 232 |
+
<strong>◎ Solana (SOL)</strong><br/>
|
| 233 |
+
<img src="https://raw.githubusercontent.com/AEON-7/AEON-7/main/assets/qr/sol.png" alt="SOL QR" width="200"/><br/>
|
| 234 |
+
<sub><code>DgQsjHdAnT5PNLQTNpJdpLS3tYGpVcsHQCkpoiAKsw8t</code></sub>
|
| 235 |
+
</td>
|
| 236 |
+
<td align="center" width="50%">
|
| 237 |
+
<strong>ⓜ Monero (XMR)</strong><br/>
|
| 238 |
+
<img src="https://raw.githubusercontent.com/AEON-7/AEON-7/main/assets/qr/xmr.png" alt="XMR QR" width="200"/><br/>
|
| 239 |
+
<sub><code>836XrSKw4R76vNi3QPJ5Fa9ugcyvE2cWmKSPv3AhpTNNKvqP8v5ba9JRL4Vh7UnFNjDz3E2GXZDVVenu3rkZaNdUFhjAvgd</code></sub>
|
| 240 |
+
</td>
|
| 241 |
+
</tr>
|
| 242 |
+
</table>
|
| 243 |
+
|
| 244 |
+
> **Ethereum L2s (Base, Arbitrum, Optimism, Polygon, etc.) and EVM-compatible tokens** can be sent to the same Ethereum address.
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{%- set image_count = namespace(value=0) %}
|
| 2 |
+
{%- set video_count = namespace(value=0) %}
|
| 3 |
+
{%- macro render_content(content, do_vision_count, is_system_content=false) %}
|
| 4 |
+
{%- if content is string %}
|
| 5 |
+
{{- content }}
|
| 6 |
+
{%- elif content is iterable and content is not mapping %}
|
| 7 |
+
{%- for item in content %}
|
| 8 |
+
{%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
|
| 9 |
+
{%- if is_system_content %}
|
| 10 |
+
{{- raise_exception('System message cannot contain images.') }}
|
| 11 |
+
{%- endif %}
|
| 12 |
+
{%- if do_vision_count %}
|
| 13 |
+
{%- set image_count.value = image_count.value + 1 %}
|
| 14 |
+
{%- endif %}
|
| 15 |
+
{%- if add_vision_id %}
|
| 16 |
+
{{- 'Picture ' ~ image_count.value ~ ': ' }}
|
| 17 |
+
{%- endif %}
|
| 18 |
+
{{- '<|vision_start|><|image_pad|><|vision_end|>' }}
|
| 19 |
+
{%- elif 'video' in item or item.type == 'video' %}
|
| 20 |
+
{%- if is_system_content %}
|
| 21 |
+
{{- raise_exception('System message cannot contain videos.') }}
|
| 22 |
+
{%- endif %}
|
| 23 |
+
{%- if do_vision_count %}
|
| 24 |
+
{%- set video_count.value = video_count.value + 1 %}
|
| 25 |
+
{%- endif %}
|
| 26 |
+
{%- if add_vision_id %}
|
| 27 |
+
{{- 'Video ' ~ video_count.value ~ ': ' }}
|
| 28 |
+
{%- endif %}
|
| 29 |
+
{{- '<|vision_start|><|video_pad|><|vision_end|>' }}
|
| 30 |
+
{%- elif 'text' in item %}
|
| 31 |
+
{{- item.text }}
|
| 32 |
+
{%- else %}
|
| 33 |
+
{{- raise_exception('Unexpected item type in content.') }}
|
| 34 |
+
{%- endif %}
|
| 35 |
+
{%- endfor %}
|
| 36 |
+
{%- elif content is none or content is undefined %}
|
| 37 |
+
{{- '' }}
|
| 38 |
+
{%- else %}
|
| 39 |
+
{{- raise_exception('Unexpected content type.') }}
|
| 40 |
+
{%- endif %}
|
| 41 |
+
{%- endmacro %}
|
| 42 |
+
{%- if not messages %}
|
| 43 |
+
{{- raise_exception('No messages provided.') }}
|
| 44 |
+
{%- endif %}
|
| 45 |
+
{%- if tools and tools is iterable and tools is not mapping %}
|
| 46 |
+
{{- '<|im_start|>system\n' }}
|
| 47 |
+
{{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
|
| 48 |
+
{%- for tool in tools %}
|
| 49 |
+
{{- "\n" }}
|
| 50 |
+
{{- tool | tojson }}
|
| 51 |
+
{%- endfor %}
|
| 52 |
+
{{- "\n</tools>" }}
|
| 53 |
+
{{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }}
|
| 54 |
+
{%- if messages[0].role == 'system' %}
|
| 55 |
+
{%- set content = render_content(messages[0].content, false, true)|trim %}
|
| 56 |
+
{%- if content %}
|
| 57 |
+
{{- '\n\n' + content }}
|
| 58 |
+
{%- endif %}
|
| 59 |
+
{%- endif %}
|
| 60 |
+
{{- '<|im_end|>\n' }}
|
| 61 |
+
{%- else %}
|
| 62 |
+
{%- if messages[0].role == 'system' %}
|
| 63 |
+
{%- set content = render_content(messages[0].content, false, true)|trim %}
|
| 64 |
+
{{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
|
| 65 |
+
{%- endif %}
|
| 66 |
+
{%- endif %}
|
| 67 |
+
{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
|
| 68 |
+
{%- for message in messages[::-1] %}
|
| 69 |
+
{%- set index = (messages|length - 1) - loop.index0 %}
|
| 70 |
+
{%- if ns.multi_step_tool and message.role == "user" %}
|
| 71 |
+
{%- set content = render_content(message.content, false)|trim %}
|
| 72 |
+
{%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
|
| 73 |
+
{%- set ns.multi_step_tool = false %}
|
| 74 |
+
{%- set ns.last_query_index = index %}
|
| 75 |
+
{%- endif %}
|
| 76 |
+
{%- endif %}
|
| 77 |
+
{%- endfor %}
|
| 78 |
+
{%- if ns.multi_step_tool %}
|
| 79 |
+
{{- raise_exception('No user query found in messages.') }}
|
| 80 |
+
{%- endif %}
|
| 81 |
+
{%- for message in messages %}
|
| 82 |
+
{%- set content = render_content(message.content, true)|trim %}
|
| 83 |
+
{%- if message.role == "system" %}
|
| 84 |
+
{%- if not loop.first %}
|
| 85 |
+
{{- raise_exception('System message must be at the beginning.') }}
|
| 86 |
+
{%- endif %}
|
| 87 |
+
{%- elif message.role == "user" %}
|
| 88 |
+
{{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
|
| 89 |
+
{%- elif message.role == "assistant" %}
|
| 90 |
+
{%- set reasoning_content = '' %}
|
| 91 |
+
{%- if message.reasoning_content is string %}
|
| 92 |
+
{%- set reasoning_content = message.reasoning_content %}
|
| 93 |
+
{%- else %}
|
| 94 |
+
{%- if '</think>' in content %}
|
| 95 |
+
{%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
|
| 96 |
+
{%- set content = content.split('</think>')[-1].lstrip('\n') %}
|
| 97 |
+
{%- endif %}
|
| 98 |
+
{%- endif %}
|
| 99 |
+
{%- set reasoning_content = reasoning_content|trim %}
|
| 100 |
+
{%- if (preserve_thinking is defined and preserve_thinking is true) or (loop.index0 > ns.last_query_index) %}
|
| 101 |
+
{{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
|
| 102 |
+
{%- else %}
|
| 103 |
+
{{- '<|im_start|>' + message.role + '\n' + content }}
|
| 104 |
+
{%- endif %}
|
| 105 |
+
{%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
|
| 106 |
+
{%- for tool_call in message.tool_calls %}
|
| 107 |
+
{%- if tool_call.function is defined %}
|
| 108 |
+
{%- set tool_call = tool_call.function %}
|
| 109 |
+
{%- endif %}
|
| 110 |
+
{%- if loop.first %}
|
| 111 |
+
{%- if content|trim %}
|
| 112 |
+
{{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 113 |
+
{%- else %}
|
| 114 |
+
{{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 115 |
+
{%- endif %}
|
| 116 |
+
{%- else %}
|
| 117 |
+
{{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 118 |
+
{%- endif %}
|
| 119 |
+
{%- if tool_call.arguments is defined %}
|
| 120 |
+
{%- for args_name, args_value in tool_call.arguments|items %}
|
| 121 |
+
{{- '<parameter=' + args_name + '>\n' }}
|
| 122 |
+
{%- set args_value = args_value | string if args_value is string else args_value | tojson | safe %}
|
| 123 |
+
{{- args_value }}
|
| 124 |
+
{{- '\n</parameter>\n' }}
|
| 125 |
+
{%- endfor %}
|
| 126 |
+
{%- endif %}
|
| 127 |
+
{{- '</function>\n</tool_call>' }}
|
| 128 |
+
{%- endfor %}
|
| 129 |
+
{%- endif %}
|
| 130 |
+
{{- '<|im_end|>\n' }}
|
| 131 |
+
{%- elif message.role == "tool" %}
|
| 132 |
+
{%- if loop.previtem and loop.previtem.role != "tool" %}
|
| 133 |
+
{{- '<|im_start|>user' }}
|
| 134 |
+
{%- endif %}
|
| 135 |
+
{{- '\n<tool_response>\n' }}
|
| 136 |
+
{{- content }}
|
| 137 |
+
{{- '\n</tool_response>' }}
|
| 138 |
+
{%- if not loop.last and loop.nextitem.role != "tool" %}
|
| 139 |
+
{{- '<|im_end|>\n' }}
|
| 140 |
+
{%- elif loop.last %}
|
| 141 |
+
{{- '<|im_end|>\n' }}
|
| 142 |
+
{%- endif %}
|
| 143 |
+
{%- else %}
|
| 144 |
+
{{- raise_exception('Unexpected message role.') }}
|
| 145 |
+
{%- endif %}
|
| 146 |
+
{%- endfor %}
|
| 147 |
+
{%- if add_generation_prompt %}
|
| 148 |
+
{{- '<|im_start|>assistant\n' }}
|
| 149 |
+
{%- if enable_thinking is defined and enable_thinking is false %}
|
| 150 |
+
{{- '<think>\n\n</think>\n\n' }}
|
| 151 |
+
{%- else %}
|
| 152 |
+
{{- '<think>\n' }}
|
| 153 |
+
{%- endif %}
|
| 154 |
+
{%- endif %}
|
config.json
ADDED
|
@@ -0,0 +1,253 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen3_5ForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"dtype": "bfloat16",
|
| 6 |
+
"image_token_id": 248056,
|
| 7 |
+
"language_model_only": false,
|
| 8 |
+
"model_type": "qwen3_5",
|
| 9 |
+
"text_config": {
|
| 10 |
+
"attention_bias": false,
|
| 11 |
+
"attention_dropout": 0.0,
|
| 12 |
+
"attn_output_gate": true,
|
| 13 |
+
"bos_token_id": 248044,
|
| 14 |
+
"dtype": "bfloat16",
|
| 15 |
+
"eos_token_id": 248044,
|
| 16 |
+
"full_attention_interval": 4,
|
| 17 |
+
"head_dim": 256,
|
| 18 |
+
"hidden_act": "silu",
|
| 19 |
+
"hidden_size": 5120,
|
| 20 |
+
"initializer_range": 0.02,
|
| 21 |
+
"intermediate_size": 17408,
|
| 22 |
+
"layer_types": [
|
| 23 |
+
"linear_attention",
|
| 24 |
+
"linear_attention",
|
| 25 |
+
"linear_attention",
|
| 26 |
+
"full_attention",
|
| 27 |
+
"linear_attention",
|
| 28 |
+
"linear_attention",
|
| 29 |
+
"linear_attention",
|
| 30 |
+
"full_attention",
|
| 31 |
+
"linear_attention",
|
| 32 |
+
"linear_attention",
|
| 33 |
+
"linear_attention",
|
| 34 |
+
"full_attention",
|
| 35 |
+
"linear_attention",
|
| 36 |
+
"linear_attention",
|
| 37 |
+
"linear_attention",
|
| 38 |
+
"full_attention",
|
| 39 |
+
"linear_attention",
|
| 40 |
+
"linear_attention",
|
| 41 |
+
"linear_attention",
|
| 42 |
+
"full_attention",
|
| 43 |
+
"linear_attention",
|
| 44 |
+
"linear_attention",
|
| 45 |
+
"linear_attention",
|
| 46 |
+
"full_attention",
|
| 47 |
+
"linear_attention",
|
| 48 |
+
"linear_attention",
|
| 49 |
+
"linear_attention",
|
| 50 |
+
"full_attention",
|
| 51 |
+
"linear_attention",
|
| 52 |
+
"linear_attention",
|
| 53 |
+
"linear_attention",
|
| 54 |
+
"full_attention",
|
| 55 |
+
"linear_attention",
|
| 56 |
+
"linear_attention",
|
| 57 |
+
"linear_attention",
|
| 58 |
+
"full_attention",
|
| 59 |
+
"linear_attention",
|
| 60 |
+
"linear_attention",
|
| 61 |
+
"linear_attention",
|
| 62 |
+
"full_attention",
|
| 63 |
+
"linear_attention",
|
| 64 |
+
"linear_attention",
|
| 65 |
+
"linear_attention",
|
| 66 |
+
"full_attention",
|
| 67 |
+
"linear_attention",
|
| 68 |
+
"linear_attention",
|
| 69 |
+
"linear_attention",
|
| 70 |
+
"full_attention",
|
| 71 |
+
"linear_attention",
|
| 72 |
+
"linear_attention",
|
| 73 |
+
"linear_attention",
|
| 74 |
+
"full_attention",
|
| 75 |
+
"linear_attention",
|
| 76 |
+
"linear_attention",
|
| 77 |
+
"linear_attention",
|
| 78 |
+
"full_attention",
|
| 79 |
+
"linear_attention",
|
| 80 |
+
"linear_attention",
|
| 81 |
+
"linear_attention",
|
| 82 |
+
"full_attention",
|
| 83 |
+
"linear_attention",
|
| 84 |
+
"linear_attention",
|
| 85 |
+
"linear_attention",
|
| 86 |
+
"full_attention"
|
| 87 |
+
],
|
| 88 |
+
"linear_conv_kernel_dim": 4,
|
| 89 |
+
"linear_key_head_dim": 128,
|
| 90 |
+
"linear_num_key_heads": 16,
|
| 91 |
+
"linear_num_value_heads": 48,
|
| 92 |
+
"linear_value_head_dim": 128,
|
| 93 |
+
"mamba_ssm_dtype": "float32",
|
| 94 |
+
"max_position_embeddings": 262144,
|
| 95 |
+
"model_type": "qwen3_5_text",
|
| 96 |
+
"mtp_num_hidden_layers": 1,
|
| 97 |
+
"mtp_use_dedicated_embeddings": false,
|
| 98 |
+
"num_attention_heads": 24,
|
| 99 |
+
"num_hidden_layers": 64,
|
| 100 |
+
"num_key_value_heads": 4,
|
| 101 |
+
"output_gate_type": "swish",
|
| 102 |
+
"pad_token_id": null,
|
| 103 |
+
"partial_rotary_factor": 0.25,
|
| 104 |
+
"rms_norm_eps": 1e-06,
|
| 105 |
+
"rope_parameters": {
|
| 106 |
+
"mrope_interleaved": true,
|
| 107 |
+
"mrope_section": [
|
| 108 |
+
11,
|
| 109 |
+
11,
|
| 110 |
+
10
|
| 111 |
+
],
|
| 112 |
+
"partial_rotary_factor": 0.25,
|
| 113 |
+
"rope_theta": 10000000,
|
| 114 |
+
"rope_type": "default"
|
| 115 |
+
},
|
| 116 |
+
"tie_word_embeddings": false,
|
| 117 |
+
"use_cache": true,
|
| 118 |
+
"vocab_size": 248320
|
| 119 |
+
},
|
| 120 |
+
"tie_word_embeddings": false,
|
| 121 |
+
"transformers_version": "5.5.3",
|
| 122 |
+
"video_token_id": 248057,
|
| 123 |
+
"vision_config": {
|
| 124 |
+
"deepstack_visual_indexes": [],
|
| 125 |
+
"depth": 27,
|
| 126 |
+
"dtype": "bfloat16",
|
| 127 |
+
"hidden_act": "gelu_pytorch_tanh",
|
| 128 |
+
"hidden_size": 1152,
|
| 129 |
+
"in_channels": 3,
|
| 130 |
+
"initializer_range": 0.02,
|
| 131 |
+
"intermediate_size": 4304,
|
| 132 |
+
"model_type": "qwen3_5",
|
| 133 |
+
"num_heads": 16,
|
| 134 |
+
"num_position_embeddings": 2304,
|
| 135 |
+
"out_hidden_size": 5120,
|
| 136 |
+
"patch_size": 16,
|
| 137 |
+
"spatial_merge_size": 2,
|
| 138 |
+
"temporal_patch_size": 2
|
| 139 |
+
},
|
| 140 |
+
"vision_end_token_id": 248054,
|
| 141 |
+
"vision_start_token_id": 248053,
|
| 142 |
+
"quantization_config": {
|
| 143 |
+
"config_groups": {
|
| 144 |
+
"group_0": {
|
| 145 |
+
"input_activations": {
|
| 146 |
+
"dynamic": false,
|
| 147 |
+
"num_bits": 4,
|
| 148 |
+
"type": "float",
|
| 149 |
+
"group_size": 16
|
| 150 |
+
},
|
| 151 |
+
"weights": {
|
| 152 |
+
"dynamic": false,
|
| 153 |
+
"num_bits": 4,
|
| 154 |
+
"type": "float",
|
| 155 |
+
"group_size": 16
|
| 156 |
+
},
|
| 157 |
+
"targets": [
|
| 158 |
+
"Linear"
|
| 159 |
+
]
|
| 160 |
+
}
|
| 161 |
+
},
|
| 162 |
+
"ignore": [
|
| 163 |
+
"lm_head",
|
| 164 |
+
"model.language_model.layers.0.linear_attn.conv1d",
|
| 165 |
+
"model.language_model.layers.1.linear_attn.conv1d",
|
| 166 |
+
"model.language_model.layers.10.linear_attn.conv1d",
|
| 167 |
+
"model.language_model.layers.12.linear_attn.conv1d",
|
| 168 |
+
"model.language_model.layers.13.linear_attn.conv1d",
|
| 169 |
+
"model.language_model.layers.14.linear_attn.conv1d",
|
| 170 |
+
"model.language_model.layers.16.linear_attn.conv1d",
|
| 171 |
+
"model.language_model.layers.17.linear_attn.conv1d",
|
| 172 |
+
"model.language_model.layers.18.linear_attn.conv1d",
|
| 173 |
+
"model.language_model.layers.2.linear_attn.conv1d",
|
| 174 |
+
"model.language_model.layers.20.linear_attn.conv1d",
|
| 175 |
+
"model.language_model.layers.21.linear_attn.conv1d",
|
| 176 |
+
"model.language_model.layers.22.linear_attn.conv1d",
|
| 177 |
+
"model.language_model.layers.24.linear_attn.conv1d",
|
| 178 |
+
"model.language_model.layers.25.linear_attn.conv1d",
|
| 179 |
+
"model.language_model.layers.26.linear_attn.conv1d",
|
| 180 |
+
"model.language_model.layers.28.linear_attn.conv1d",
|
| 181 |
+
"model.language_model.layers.29.linear_attn.conv1d",
|
| 182 |
+
"model.language_model.layers.30.linear_attn.conv1d",
|
| 183 |
+
"model.language_model.layers.32.linear_attn.conv1d",
|
| 184 |
+
"model.language_model.layers.33.linear_attn.conv1d",
|
| 185 |
+
"model.language_model.layers.34.linear_attn.conv1d",
|
| 186 |
+
"model.language_model.layers.36.linear_attn.conv1d",
|
| 187 |
+
"model.language_model.layers.37.linear_attn.conv1d",
|
| 188 |
+
"model.language_model.layers.38.linear_attn.conv1d",
|
| 189 |
+
"model.language_model.layers.4.linear_attn.conv1d",
|
| 190 |
+
"model.language_model.layers.40.linear_attn.conv1d",
|
| 191 |
+
"model.language_model.layers.41.linear_attn.conv1d",
|
| 192 |
+
"model.language_model.layers.42.linear_attn.conv1d",
|
| 193 |
+
"model.language_model.layers.44.linear_attn.conv1d",
|
| 194 |
+
"model.language_model.layers.45.linear_attn.conv1d",
|
| 195 |
+
"model.language_model.layers.46.linear_attn.conv1d",
|
| 196 |
+
"model.language_model.layers.48.linear_attn.conv1d",
|
| 197 |
+
"model.language_model.layers.49.linear_attn.conv1d",
|
| 198 |
+
"model.language_model.layers.5.linear_attn.conv1d",
|
| 199 |
+
"model.language_model.layers.50.linear_attn.conv1d",
|
| 200 |
+
"model.language_model.layers.52.linear_attn.conv1d",
|
| 201 |
+
"model.language_model.layers.53.linear_attn.conv1d",
|
| 202 |
+
"model.language_model.layers.54.linear_attn.conv1d",
|
| 203 |
+
"model.language_model.layers.56.linear_attn.conv1d",
|
| 204 |
+
"model.language_model.layers.57.linear_attn.conv1d",
|
| 205 |
+
"model.language_model.layers.58.linear_attn.conv1d",
|
| 206 |
+
"model.language_model.layers.6.linear_attn.conv1d",
|
| 207 |
+
"model.language_model.layers.60.linear_attn.conv1d",
|
| 208 |
+
"model.language_model.layers.61.linear_attn.conv1d",
|
| 209 |
+
"model.language_model.layers.62.linear_attn.conv1d",
|
| 210 |
+
"model.language_model.layers.8.linear_attn.conv1d",
|
| 211 |
+
"model.language_model.layers.9.linear_attn.conv1d",
|
| 212 |
+
"model.visual*",
|
| 213 |
+
"mtp.fc",
|
| 214 |
+
"mtp.layers.0.input_layernorm",
|
| 215 |
+
"mtp.layers.0.mlp.down_proj",
|
| 216 |
+
"mtp.layers.0.mlp.gate_proj",
|
| 217 |
+
"mtp.layers.0.mlp.up_proj",
|
| 218 |
+
"mtp.layers.0.post_attention_layernorm",
|
| 219 |
+
"mtp.layers.0.self_attn.k_norm",
|
| 220 |
+
"mtp.layers.0.self_attn.k_proj",
|
| 221 |
+
"mtp.layers.0.self_attn.o_proj",
|
| 222 |
+
"mtp.layers.0.self_attn.q_norm",
|
| 223 |
+
"mtp.layers.0.self_attn.q_proj",
|
| 224 |
+
"mtp.layers.0.self_attn.v_proj",
|
| 225 |
+
"mtp.norm",
|
| 226 |
+
"mtp.pre_fc_norm_embedding",
|
| 227 |
+
"mtp.pre_fc_norm_hidden"
|
| 228 |
+
],
|
| 229 |
+
"quant_algo": "NVFP4",
|
| 230 |
+
"producer": {
|
| 231 |
+
"name": "modelopt",
|
| 232 |
+
"version": "0.43.0"
|
| 233 |
+
},
|
| 234 |
+
"quant_method": "modelopt",
|
| 235 |
+
"exclude_modules": [
|
| 236 |
+
"mtp.fc",
|
| 237 |
+
"mtp.layers.0.input_layernorm",
|
| 238 |
+
"mtp.layers.0.mlp.down_proj",
|
| 239 |
+
"mtp.layers.0.mlp.gate_proj",
|
| 240 |
+
"mtp.layers.0.mlp.up_proj",
|
| 241 |
+
"mtp.layers.0.post_attention_layernorm",
|
| 242 |
+
"mtp.layers.0.self_attn.k_norm",
|
| 243 |
+
"mtp.layers.0.self_attn.k_proj",
|
| 244 |
+
"mtp.layers.0.self_attn.o_proj",
|
| 245 |
+
"mtp.layers.0.self_attn.q_norm",
|
| 246 |
+
"mtp.layers.0.self_attn.q_proj",
|
| 247 |
+
"mtp.layers.0.self_attn.v_proj",
|
| 248 |
+
"mtp.norm",
|
| 249 |
+
"mtp.pre_fc_norm_embedding",
|
| 250 |
+
"mtp.pre_fc_norm_hidden"
|
| 251 |
+
]
|
| 252 |
+
}
|
| 253 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 248044,
|
| 3 |
+
"do_sample": true,
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
248046,
|
| 6 |
+
248044
|
| 7 |
+
],
|
| 8 |
+
"pad_token_id": 248044,
|
| 9 |
+
"temperature": 1.0,
|
| 10 |
+
"top_k": 20,
|
| 11 |
+
"top_p": 0.95,
|
| 12 |
+
"transformers_version": "5.5.3"
|
| 13 |
+
}
|
hf_quant_config.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"producer": {
|
| 3 |
+
"name": "modelopt",
|
| 4 |
+
"version": "0.43.0"
|
| 5 |
+
},
|
| 6 |
+
"quantization": {
|
| 7 |
+
"quant_algo": "NVFP4",
|
| 8 |
+
"kv_cache_quant_algo": null,
|
| 9 |
+
"group_size": 16,
|
| 10 |
+
"exclude_modules": [
|
| 11 |
+
"lm_head",
|
| 12 |
+
"model.language_model.layers.0.linear_attn.conv1d",
|
| 13 |
+
"model.language_model.layers.1.linear_attn.conv1d",
|
| 14 |
+
"model.language_model.layers.10.linear_attn.conv1d",
|
| 15 |
+
"model.language_model.layers.12.linear_attn.conv1d",
|
| 16 |
+
"model.language_model.layers.13.linear_attn.conv1d",
|
| 17 |
+
"model.language_model.layers.14.linear_attn.conv1d",
|
| 18 |
+
"model.language_model.layers.16.linear_attn.conv1d",
|
| 19 |
+
"model.language_model.layers.17.linear_attn.conv1d",
|
| 20 |
+
"model.language_model.layers.18.linear_attn.conv1d",
|
| 21 |
+
"model.language_model.layers.2.linear_attn.conv1d",
|
| 22 |
+
"model.language_model.layers.20.linear_attn.conv1d",
|
| 23 |
+
"model.language_model.layers.21.linear_attn.conv1d",
|
| 24 |
+
"model.language_model.layers.22.linear_attn.conv1d",
|
| 25 |
+
"model.language_model.layers.24.linear_attn.conv1d",
|
| 26 |
+
"model.language_model.layers.25.linear_attn.conv1d",
|
| 27 |
+
"model.language_model.layers.26.linear_attn.conv1d",
|
| 28 |
+
"model.language_model.layers.28.linear_attn.conv1d",
|
| 29 |
+
"model.language_model.layers.29.linear_attn.conv1d",
|
| 30 |
+
"model.language_model.layers.30.linear_attn.conv1d",
|
| 31 |
+
"model.language_model.layers.32.linear_attn.conv1d",
|
| 32 |
+
"model.language_model.layers.33.linear_attn.conv1d",
|
| 33 |
+
"model.language_model.layers.34.linear_attn.conv1d",
|
| 34 |
+
"model.language_model.layers.36.linear_attn.conv1d",
|
| 35 |
+
"model.language_model.layers.37.linear_attn.conv1d",
|
| 36 |
+
"model.language_model.layers.38.linear_attn.conv1d",
|
| 37 |
+
"model.language_model.layers.4.linear_attn.conv1d",
|
| 38 |
+
"model.language_model.layers.40.linear_attn.conv1d",
|
| 39 |
+
"model.language_model.layers.41.linear_attn.conv1d",
|
| 40 |
+
"model.language_model.layers.42.linear_attn.conv1d",
|
| 41 |
+
"model.language_model.layers.44.linear_attn.conv1d",
|
| 42 |
+
"model.language_model.layers.45.linear_attn.conv1d",
|
| 43 |
+
"model.language_model.layers.46.linear_attn.conv1d",
|
| 44 |
+
"model.language_model.layers.48.linear_attn.conv1d",
|
| 45 |
+
"model.language_model.layers.49.linear_attn.conv1d",
|
| 46 |
+
"model.language_model.layers.5.linear_attn.conv1d",
|
| 47 |
+
"model.language_model.layers.50.linear_attn.conv1d",
|
| 48 |
+
"model.language_model.layers.52.linear_attn.conv1d",
|
| 49 |
+
"model.language_model.layers.53.linear_attn.conv1d",
|
| 50 |
+
"model.language_model.layers.54.linear_attn.conv1d",
|
| 51 |
+
"model.language_model.layers.56.linear_attn.conv1d",
|
| 52 |
+
"model.language_model.layers.57.linear_attn.conv1d",
|
| 53 |
+
"model.language_model.layers.58.linear_attn.conv1d",
|
| 54 |
+
"model.language_model.layers.6.linear_attn.conv1d",
|
| 55 |
+
"model.language_model.layers.60.linear_attn.conv1d",
|
| 56 |
+
"model.language_model.layers.61.linear_attn.conv1d",
|
| 57 |
+
"model.language_model.layers.62.linear_attn.conv1d",
|
| 58 |
+
"model.language_model.layers.8.linear_attn.conv1d",
|
| 59 |
+
"model.language_model.layers.9.linear_attn.conv1d",
|
| 60 |
+
"model.visual*"
|
| 61 |
+
]
|
| 62 |
+
}
|
| 63 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4a1b465994f5ada331c3458098d4ccf80c4811720c5219ad466b2b0c1753ded4
|
| 3 |
+
size 20559273880
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"size": {
|
| 3 |
+
"longest_edge": 16777216,
|
| 4 |
+
"shortest_edge": 65536
|
| 5 |
+
},
|
| 6 |
+
"patch_size": 16,
|
| 7 |
+
"temporal_patch_size": 2,
|
| 8 |
+
"merge_size": 2,
|
| 9 |
+
"image_mean": [
|
| 10 |
+
0.5,
|
| 11 |
+
0.5,
|
| 12 |
+
0.5
|
| 13 |
+
],
|
| 14 |
+
"image_std": [
|
| 15 |
+
0.5,
|
| 16 |
+
0.5,
|
| 17 |
+
0.5
|
| 18 |
+
],
|
| 19 |
+
"processor_class": "Qwen3VLProcessor",
|
| 20 |
+
"image_processor_type": "Qwen2VLImageProcessorFast"
|
| 21 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:530dc3d0de71a4d102af7d2f92a2a9178f430b489b1d5b48feb56d9c37e6a54e
|
| 3 |
+
size 11071634
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"audio_bos_token": "<|audio_start|>",
|
| 4 |
+
"audio_eos_token": "<|audio_end|>",
|
| 5 |
+
"audio_token": "<|audio_pad|>",
|
| 6 |
+
"backend": "tokenizers",
|
| 7 |
+
"bos_token": null,
|
| 8 |
+
"clean_up_tokenization_spaces": false,
|
| 9 |
+
"eos_token": "<|im_end|>",
|
| 10 |
+
"errors": "replace",
|
| 11 |
+
"image_token": "<|image_pad|>",
|
| 12 |
+
"is_local": true,
|
| 13 |
+
"local_files_only": false,
|
| 14 |
+
"max_length": null,
|
| 15 |
+
"model_max_length": 262144,
|
| 16 |
+
"model_specific_special_tokens": {
|
| 17 |
+
"audio_bos_token": "<|audio_start|>",
|
| 18 |
+
"audio_eos_token": "<|audio_end|>",
|
| 19 |
+
"audio_token": "<|audio_pad|>",
|
| 20 |
+
"image_token": "<|image_pad|>",
|
| 21 |
+
"video_token": "<|video_pad|>",
|
| 22 |
+
"vision_bos_token": "<|vision_start|>",
|
| 23 |
+
"vision_eos_token": "<|vision_end|>"
|
| 24 |
+
},
|
| 25 |
+
"pad_to_multiple_of": null,
|
| 26 |
+
"pad_token": "<|endoftext|>",
|
| 27 |
+
"pad_token_type_id": 0,
|
| 28 |
+
"padding_side": "left",
|
| 29 |
+
"pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
|
| 30 |
+
"split_special_tokens": false,
|
| 31 |
+
"tokenizer_class": "TokenizersBackend",
|
| 32 |
+
"unk_token": null,
|
| 33 |
+
"video_token": "<|video_pad|>",
|
| 34 |
+
"vision_bos_token": "<|vision_start|>",
|
| 35 |
+
"vision_eos_token": "<|vision_end|>"
|
| 36 |
+
}
|
video_preprocessor_config.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"size": {
|
| 3 |
+
"longest_edge": 25165824,
|
| 4 |
+
"shortest_edge": 4096
|
| 5 |
+
},
|
| 6 |
+
"patch_size": 16,
|
| 7 |
+
"temporal_patch_size": 2,
|
| 8 |
+
"merge_size": 2,
|
| 9 |
+
"image_mean": [
|
| 10 |
+
0.5,
|
| 11 |
+
0.5,
|
| 12 |
+
0.5
|
| 13 |
+
],
|
| 14 |
+
"image_std": [
|
| 15 |
+
0.5,
|
| 16 |
+
0.5,
|
| 17 |
+
0.5
|
| 18 |
+
],
|
| 19 |
+
"processor_class": "Qwen3VLProcessor",
|
| 20 |
+
"video_processor_type": "Qwen3VLVideoProcessor"
|
| 21 |
+
}
|