Update namespace references from Vishva007 to OpenTensorLab
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117---base_model:- Qwen/Qwen3.5-0.8Btags:- quantization- auto-round- nvfp4- fp4- llm-compressor- compressed-tensors- text-generation- image-text-to-text- reasoningpipeline_tag: image-text-to-textlicense: apache-2.0---
# Vishva007/Qwen3.5-0.8B-NVFP4
This is an **NVFP4 (W4A16: 4-bit weight, 16-bit activation)** quantized version of [Qwen/Qwen3.5-0.8B](https://huggingface.co/Qwen/Qwen3.5-0.8B), produced using [AutoRound](https://github.com/intel/auto-round) β Intel's sign gradient descent based quantization method designed for production-grade accuracy retention.Exported via `compressed-tensors` (`llm_compressor` format) with **MTP** layers preserved.
## Quantization Details
| Parameter | Value ||---|---|| Method | AutoRound (NVFP4 Scheme) || Format | `llm_compressor` / `compressed-tensors` || Group Size | 16 || Symmetric | Yes || Iterations | 1000 || Calibration Samples | 512 || Batch Size | 4 || Sequence Length | 2048 || Torch Compile | Disabled |
## Key Notes
- **NVFP4 Quantization** β Weights are quantized to FP4 micro-scaled formats using group size 16; activations remain in 16-bit for stable numerical fidelity.- **Vision Tower (`visual` / `quant_nontext_module`):** Kept in **BF16** to preserve visual reasoning and OCR precision.- **Special Modules (`ignore_layers` & `layer_config`):** `linear_attn`, `mtp`, and `mtp.fc` are strictly retained in native **bfloat16** to ensure zero regression in speculative decoding and attention mechanisms.
## vLLM Serving
Serve the model directly via **vLLM** with tool-calling, MTP speculative decoding, and multimodal options enabled:
```bashvllm serve Vishva007/Qwen3.5-0.8B-NVFP4 \ --port 8000 \ --host 0.0.0.0 \ --max-model-len 18000 \ --kv-cache-dtype fp8 \ --gpu-memory-utilization 0.90 \ --enable-prefix-caching \ --enable-chunked-prefill \ --max-num-batched-tokens 18000 \ --max-num-seqs 128 \ --trust-remote-code \ --dtype bfloat16 \ --mm-processor-kwargs '{"max_pixels": 10485760, "max_length": 65536, "truncation": false}' \ --mm-processor-cache-type shm \ --limit-mm-per-prompt '{"image": 50}' \ --enable-auto-tool-choice \ --tool-call-parser qwen3_coder \ --default-chat-template-kwargs '{"enable_thinking": false}' \ --speculative-config '{"num_speculative_tokens": 3, "method": "mtp"}'
```
## MTP / Speculative Decoding
This model supports **Multi-Token Prediction (MTP)** for accelerated inference throughput using speculative decoding.
When serving with compatible backends like vLLM, enable MTP using:
```bash--speculative-config '{"num_speculative_tokens": 3, "method": "mtp"}'
```
### Notes
* Native draft weights for MTP were preserved during quantization to ensure seamless compatibility without drafting degradation.* You can tune `num_speculative_tokens` (e.g., between 1 and 3) to optimize speed and latency depending on context length and hardware.
### π Deploy on RunPod
One-click launch environments pre-configured with PyTorch, CUDA, and dependencies for fine-tuning or quantization.
> π **Need GPU compute?** Sign up via [RunPod](https://runpod.io?ref=iabrlp7z) and get **$5β$500 in free credits** when you add your first $10.
#### PyTorch 2.14
| Template | CUDA Version | Docker Image | Template ID | Deploy || :--- | :--- | :--- | :--- | :--- || **PyTorch 2.14 (CUDA 12.6)** | 12.6 | `vishva123/cuda-12.6-pytorch-2.14-runpod` | `d7lxsa4w9m` | [](https://runpod.io/console/deploy?template=d7lxsa4w9m&ref=iabrlp7z) || **PyTorch 2.14 (CUDA 13.0)** | 13.0 | `vishva123/cuda-13.0-pytorch-2.14-runpod` | `yk0y6j6rpg` | [](https://runpod.io/console/deploy?template=yk0y6j6rpg&ref=iabrlp7z) || **PyTorch 2.14 (CUDA 13.2)** | 13.2 | `vishva123/cuda-13.2-pytorch-2.14-runpod` | `gsp4gwx0nw` | [](https://runpod.io/console/deploy?template=gsp4gwx0nw&ref=iabrlp7z) |
#### PyTorch 2.13
| Template | CUDA Version | Docker Image | Template ID | Deploy || :--- | :--- | :--- | :--- | :--- || **PyTorch 2.13 (CUDA 12.6)** | 12.6 | `vishva123/cuda-12.6-pytorch-2.13-runpod` | `gmlupxnxfk` | [](https://runpod.io/console/deploy?template=gmlupxnxfk&ref=iabrlp7z) || **PyTorch 2.13 (CUDA 13.0)** | 13.0 | `vishva123/cuda-13.0-pytorch-2.13-runpod` | `y3j8xvk4f4` | [](https://runpod.io/console/deploy?template=y3j8xvk4f4&ref=iabrlp7z) || **PyTorch 2.13 (CUDA 13.2)** | 13.2 | `vishva123/cuda-13.2-pytorch-2.13-runpod` | `vigpissn5w` | [](https://runpod.io/console/deploy?template=vigpissn5w&ref=iabrlp7z) |
#### PyTorch 2.12
| Template | CUDA Version | Docker Image | Template ID | Deploy || :--- | :--- | :--- | :--- | :--- || **PyTorch 2.12 (CUDA 12.6)** | 12.6 | `vishva123/cuda-12.6-pytorch-2.12-runpod` | `ctmz86zmf0` | [](https://runpod.io/console/deploy?template=ctmz86zmf0&ref=iabrlp7z) || **PyTorch 2.12 (CUDA 13.0)** | 13.0 | `vishva123/cuda-13.0-pytorch-2.12-runpod` | `qjko5yiwzi` | [](https://runpod.io/console/deploy?template=qjko5yiwzi&ref=iabrlp7z) || **PyTorch 2.12 (CUDA 13.2)** | 13.2 | `vishva123/cuda-13.2-pytorch-2.12-runpod` | `ifg6xmye0f` | [](https://runpod.io/console/deploy?template=ifg6xmye0f&ref=iabrlp7z) |
------
base_model:
- Qwen/Qwen3.5-0.8B
tags:
- quantization
- auto-round
- nvfp4
- fp4
- llm-compressor
- compressed-tensors
- text-generation
- image-text-to-text
- reasoning
pipeline_tag: image-text-to-text
license: apache-2.0
---
# OpenTensorLab/Qwen3.5-0.8B-NVFP4
This is an **NVFP4 (W4A16: 4-bit weight, 16-bit activation)** quantized version of [Qwen/Qwen3.5-0.8B](https://huggingface.co/Qwen/Qwen3.5-0.8B), produced using [AutoRound](https://github.com/intel/auto-round) β Intel's sign gradient descent based quantization method designed for production-grade accuracy retention.
Exported via `compressed-tensors` (`llm_compressor` format) with **MTP** layers preserved.
## Quantization Details
| Parameter | Value |
|---|---|
| Method | AutoRound (NVFP4 Scheme) |
| Format | `llm_compressor` / `compressed-tensors` |
| Group Size | 16 |
| Symmetric | Yes |
| Iterations | 1000 |
| Calibration Samples | 512 |
| Batch Size | 4 |
| Sequence Length | 2048 |
| Torch Compile | Disabled |
## Key Notes
- **NVFP4 Quantization** β Weights are quantized to FP4 micro-scaled formats using group size 16; activations remain in 16-bit for stable numerical fidelity.
- **Vision Tower (`visual` / `quant_nontext_module`):** Kept in **BF16** to preserve visual reasoning and OCR precision.
- **Special Modules (`ignore_layers` & `layer_config`):** `linear_attn`, `mtp`, and `mtp.fc` are strictly retained in native **bfloat16** to ensure zero regression in speculative decoding and attention mechanisms.
## vLLM Serving
Serve the model directly via **vLLM** with tool-calling, MTP speculative decoding, and multimodal options enabled:
```bash
vllm serve OpenTensorLab/Qwen3.5-0.8B-NVFP4 \
--port 8000 \
--host 0.0.0.0 \
--max-model-len 18000 \
--kv-cache-dtype fp8 \
--gpu-memory-utilization 0.90 \
--enable-prefix-caching \
--enable-chunked-prefill \
--max-num-batched-tokens 18000 \
--max-num-seqs 128 \
--trust-remote-code \
--dtype bfloat16 \
--mm-processor-kwargs '{"max_pixels": 10485760, "max_length": 65536, "truncation": false}' \
--mm-processor-cache-type shm \
--limit-mm-per-prompt '{"image": 50}' \
--enable-auto-tool-choice \
--tool-call-parser qwen3_coder \
--default-chat-template-kwargs '{"enable_thinking": false}' \
--speculative-config '{"num_speculative_tokens": 3, "method": "mtp"}'
```
## MTP / Speculative Decoding
This model supports **Multi-Token Prediction (MTP)** for accelerated inference throughput using speculative decoding.
When serving with compatible backends like vLLM, enable MTP using:
```bash
--speculative-config '{"num_speculative_tokens": 3, "method": "mtp"}'
```
### Notes
* Native draft weights for MTP were preserved during quantization to ensure seamless compatibility without drafting degradation.
* You can tune `num_speculative_tokens` (e.g., between 1 and 3) to optimize speed and latency depending on context length and hardware.
### π Deploy on RunPod
One-click launch environments pre-configured with PyTorch, CUDA, and dependencies for fine-tuning or quantization.
> π **Need GPU compute?** Sign up via [RunPod](https://runpod.io?ref=iabrlp7z) and get **$5β$500 in free credits** when you add your first $10.
#### PyTorch 2.14
| Template | CUDA Version | Docker Image | Template ID | Deploy |
| :--- | :--- | :--- | :--- | :--- |
| **PyTorch 2.14 (CUDA 12.6)** | 12.6 | `vishva123/cuda-12.6-pytorch-2.14-runpod` | `d7lxsa4w9m` | [](https://runpod.io/console/deploy?template=d7lxsa4w9m&ref=iabrlp7z) |
| **PyTorch 2.14 (CUDA 13.0)** | 13.0 | `vishva123/cuda-13.0-pytorch-2.14-runpod` | `yk0y6j6rpg` | [](https://runpod.io/console/deploy?template=yk0y6j6rpg&ref=iabrlp7z) |
| **PyTorch 2.14 (CUDA 13.2)** | 13.2 | `vishva123/cuda-13.2-pytorch-2.14-runpod` | `gsp4gwx0nw` | [](https://runpod.io/console/deploy?template=gsp4gwx0nw&ref=iabrlp7z) |
#### PyTorch 2.13
| Template | CUDA Version | Docker Image | Template ID | Deploy |
| :--- | :--- | :--- | :--- | :--- |
| **PyTorch 2.13 (CUDA 12.6)** | 12.6 | `vishva123/cuda-12.6-pytorch-2.13-runpod` | `gmlupxnxfk` | [](https://runpod.io/console/deploy?template=gmlupxnxfk&ref=iabrlp7z) |
| **PyTorch 2.13 (CUDA 13.0)** | 13.0 | `vishva123/cuda-13.0-pytorch-2.13-runpod` | `y3j8xvk4f4` | [](https://runpod.io/console/deploy?template=y3j8xvk4f4&ref=iabrlp7z) |
| **PyTorch 2.13 (CUDA 13.2)** | 13.2 | `vishva123/cuda-13.2-pytorch-2.13-runpod` | `vigpissn5w` | [](https://runpod.io/console/deploy?template=vigpissn5w&ref=iabrlp7z) |
#### PyTorch 2.12
| Template | CUDA Version | Docker Image | Template ID | Deploy |
| :--- | :--- | :--- | :--- | :--- |
| **PyTorch 2.12 (CUDA 12.6)** | 12.6 | `vishva123/cuda-12.6-pytorch-2.12-runpod` | `ctmz86zmf0` | [](https://runpod.io/console/deploy?template=ctmz86zmf0&ref=iabrlp7z) |
| **PyTorch 2.12 (CUDA 13.0)** | 13.0 | `vishva123/cuda-13.0-pytorch-2.12-runpod` | `qjko5yiwzi` | [](https://runpod.io/console/deploy?template=qjko5yiwzi&ref=iabrlp7z) |
| **PyTorch 2.12 (CUDA 13.2)** | 13.2 | `vishva123/cuda-13.2-pytorch-2.12-runpod` | `ifg6xmye0f` | [](https://runpod.io/console/deploy?template=ifg6xmye0f&ref=iabrlp7z) |
---README.md+117-117