---
title: Nemotron-Labs-Image-30B-A3B-W5W4-GPTQ-24GB-ComfyUI
canonical_url: "https://www.modelscope.cn/models/StudioYebisu-ship-it/Nemotron-Labs-Image-30B-A3B-W5W4-GPTQ-24GB-ComfyUI"
md_url: "https://www.modelscope.cn/models/StudioYebisu-ship-it/Nemotron-Labs-Image-30B-A3B-W5W4-GPTQ-24GB-ComfyUI.md"
repository: StudioYebisu-ship-it/Nemotron-Labs-Image-30B-A3B-W5W4-GPTQ-24GB-ComfyUI
last_updated: 2026-11-26
license: other
pipeline_tag: text-to-image-synthesis
tasks:
  - text-to-image-synthesis
base_model:
  - nvidia/Nemotron-Labs-Image-30B-A3B
base_model_relation: quantized
parameters: 21.7B
tensor_type:
  - U8
  - F32
  - I8
  - BF16
library_name:
  - safetensors
  - pytorch
frameworks:
  - pytorch
downloads: 27
stars: 0
tags:
  - comfyui
  - text-to-image
  - autoregressive
  - mixture-of-experts
  - nemotron
  - w5a8
  - w4a8
  - gptq
  - convrot
---

# Nemotron-Labs-Image-30B-A3B-W5W4-GPTQ-24GB-ComfyUI

> Nemotron-Labs-Image-30B-A3B-W5W4-GPTQ-24GB-ComfyUI - StudioYebisu-ship-it 在 ModelScope 开源的模型。Nemotron-Labs-Image-30B-A3B W5/W4 Mixed GPTQ (24GB ComfyUI) nvidia/Nemotron-Labs-Image-30B-A3B を 24 GB GPU にフル常駐 (expertsoncard=True) させたまま、ALL-W5 RTN を上回る KL 再現精度…

StudioYebisu-ship-it/Nemotron-Labs-Image-30B-A3B-W5W4-GPTQ-24GB-ComfyUI 是 ModelScope 魔搭社区上的 21.7B 参数text-to-image-synthesis模型，采用 other 许可，基于 nvidia/Nemotron-Labs-Image-30B-A3B 构建。

- **Repository**: StudioYebisu-ship-it/Nemotron-Labs-Image-30B-A3B-W5W4-GPTQ-24GB-ComfyUI
- **License**: other
- **Tasks**: text-to-image-synthesis
- **Parameters**: 21.7B
- **Base model**: nvidia/Nemotron-Labs-Image-30B-A3B
- **Tags**: comfyui, text-to-image, autoregressive, mixture-of-experts, nemotron, w5a8, w4a8, gptq, convrot
- **Downloads**: 27
- **Stars**: 0
- **Last updated**: 2026-11-26

Source: https://www.modelscope.cn/models/StudioYebisu-ship-it/Nemotron-Labs-Image-30B-A3B-W5W4-GPTQ-24GB-ComfyUI

---

# Nemotron-Labs-Image-30B-A3B W5/W4 Mixed GPTQ (24GB ComfyUI)

`nvidia/Nemotron-Labs-Image-30B-A3B` を **24 GB GPU にフル常駐 (`experts_on_card=True`)** させたまま、**`ALL-W5 RTN` を上回る KL 再現精度 (`all4_own = 0.03382`) と 60.8 GiB BF16 に肉薄する視覚品質** を両立した **V3-6b** 量子化ウェイト・ComfyUI パッチ一式です。

This repository provides **V3-6b**, a native `W5A8` / `W4A8` mixed-precision ConvRot-GPTQ quantization of [`nvidia/Nemotron-Labs-Image-30B-A3B`](https://huggingface.co/nvidia/Nemotron-Labs-Image-30B-A3B) in ComfyUI format (`22.900 GiB`), fitting **100% resident on a 24 GB GPU** (`module_bytes = 20.6033 GiB`, `batch=1` `1024x1024` isolated generation peak = `20.7790 GiB`) with **zero expert pruning (`128/128` experts retained across all 23 MoE layers)**.

> [!IMPORTANT]
> **Non-Commercial License Notice (NVIDIA License Section 3.3)**
>
> The original model (`nvidia/Nemotron-Labs-Image-30B-A3B`) and these derivative quantized weights are governed by the **[NVIDIA License](LICENSE)** (`NVIDIA License Section 3.3`): they may **only be used or intended for use non-commercially (for research or evaluation purposes only)** (except NVIDIA Corporation and its affiliates).
> * Root attribution & licenses retained unmodified: [LICENSE](LICENSE), [NOTICE](NOTICE), and [licenses/Apache-2.0.txt](licenses/Apache-2.0.txt).
> * ComfyUI node patch attribution: [`patches/comfyui_nemotron_pruned_mixed.patch`](patches/comfyui_nemotron_pruned_mixed.patch) modifies GNU GPL v3.0 [`PedroMarinhoDev/ComfyUI-Nemotron-Image`](https://github.com/PedroMarinhoDev/ComfyUI-Nemotron-Image) ([patches/LICENSE-GPLv3.txt](patches/LICENSE-GPLv3.txt), [patches/NOTICE-ComfyUI-Nemotron-Image.txt](patches/NOTICE-ComfyUI-Nemotron-Image.txt)).
> * This project is not affiliated with, sponsored, or endorsed by NVIDIA Corporation.

---

## Key Features (`V3-6b`)

* **Native `W5A8` (`FMT == 5`) + Asymmetric Within-Layer `up/down` Precision**: Custom NVRTC CUDA kernels (`patches/comfyui_nemotron_pruned_mixed.patch`) split `up_proj` and `down_proj` precision per MoE layer for optimal bit allocation without dropping experts:
  * **`w5/w5` (10 layers)**: `L22, L24, L27, L29, L31, L34, L36, L38, L43, L51`
  * **`w5/w4` (4 layers)**: `L6, L17, L40, L47`
  * **`w4/w4` (9 layers)**: `L1, L3, L8, L10, L13, L15, L20, L45, L49`
* **100% Unpruned Experts (`128/128` per layer)**: All 23 MoE layers retain every routed expert, preserving rare and non-English capabilities without expert pruning loss.
* **BF16 Dense + Shared Int8 ConvRot**: Mamba2, Attention, and vision `lm_head` stay in `BF16`; shared experts use `int8 ConvRot (group=64)`.
* **Full-4096-Token ConvRot-Space Hessian-GPTQ**: Dynamic-programming sensitivity allocation (`routed_budget = 17.25 GiB`, `total_routed = 18,492,589,440` bytes) combined with 64×64 Hadamard ConvRot Hessian-GPTQ (`damp = 0.05`, up to `4096` vision tokens/image across `16` prompts, shrinkage `/512.0`).

## File Info

| Artifact | Path in Repo | Size | SHA-256 |
|---|---|---|---|
| **Quantized 24GB ComfyUI Weights** | `nemotron_labs_image_30b_a3b_w5w4_gptq_24gb.safetensors` | `24,589,186,044` bytes (`22.900 GiB`) | `cf2ab0396033f444c306c6c15d0b3513767b1b5cf01e8b5e7664c2178441a5b1` |
| **ComfyUI W5A8 + Mixed Patch** | `patches/comfyui_nemotron_pruned_mixed.patch` | `24,017` bytes | — |
| **Allocation Plan & Profile** | `metadata/allocation_plan.json`, `metadata/sensitivity_profile_v3.json` | — | — |
| **Ablation & Visual Logs** | `metadata/v3_ablation_results.json`, `metadata/visual_bench_metrics.json` | — | — |

---

## 24 GB ComfyUI Runtime & Fidelity Benchmarks

Evaluated with `ComfyUI-Nemotron-Image` + `patches/comfyui_nemotron_pruned_mixed.patch` (`engine="auto"`, `experts_in_ram=False`):

* **Uploaded Checkpoint Verification (A100-80GB rebuild, SHA-256 `cf2ab039...`)**:
  * **`experts_on_card`**: `True`, **`module_bytes`**: `20.6033 GiB`, **`FastDecoder.supported`**: `None` (`batch=1` & `batch=4`)
  * **Full-model `FastDecoder` vs `forward_sequence` logit parity**: `cos = 0.999993` (`top1 = (176505, 176505)`)
  * **Fresh `--seed 42` 4-image held-out `T=0.9` KL vs BF16**: `all4_own = 0.03493`, `EN3_own = 0.02585`, `JP_own = 0.06217`
* **Original `V3-6b` G4 Runtime & Visual Benchmark Run**:
  * **Full-model `FastDecoder` vs `forward_sequence` logit parity**: `cos = 0.999994` (`top1 = (176505, 176505)`)
  * **Isolated generation peak VRAM (`batch=1`, `1024x1024`, LM only)**: **`20.7790 GiB`** (`reserved = 20.8809 GiB`, `base = 20.7017 GiB`, `18.17s`); `batch=4` peaks at `21.0014 GiB`
  * **Isolated L24SQ VAE decode peak VRAM** (after LM unload): **`5.0031 GiB`**

### Quantitative Fidelity (Full-4096 Held-out Images, `T=0.9` KL vs 60.8 GiB BF16)

| Variant | 24GB Resident (`<=20.65 GiB`) | `module_bytes` | `all4_own` ↓ | `EN3_own` ↓ | `JP_own` ↓ | `all4_frc` ↓ | `EN3_frc` ↓ | Configuration |
|---|---:|---:|---:|---:|---:|---:|---:|---|
| `ALL-W4 RTN` | Yes | — | 0.05299 | 0.03988 | 0.09231 | 0.03814 | 0.03100 | Uniform W4A8 baseline |
| `V2-C` | Yes | 20.35 GiB | 0.04467 | 0.03467 | 0.07466 | — | — | W4/W6 mixed + pruned + RTN |
| `V3-3` | Yes | 20.5644 GiB | 0.03813 | 0.02732 | 0.07053 | 0.02329 | 0.01899 | Pruned + GPTQ (`n_cal=1536, damp=0.01`) |
| `V3-6a` | Yes | 20.5644 GiB | 0.03407 | **0.02539** | 0.06010 | **0.02120** | **0.01751** | Pruned (`L1=80,L3=112`) + GPTQ (`n_cal=4096, damp=0.05`) |
| **`V3-6b` (Released)** | **Yes** | **20.6033 GiB** | **0.03382** | **0.02575** | **0.05803** | **0.02135** | **0.01778** | **Unpruned 128 + BF16 dense + GPTQ (`n_cal=4096, damp=0.05`)** |
| `V3-6c` | Yes | 20.5667 GiB | 0.03493 | 0.02636 | 0.06064 | 0.02180 | 0.01813 | Pruned + `--int8-inproj-only` |
| `V3-6d` | Yes | 20.5313 GiB | 0.03475 | 0.02659 | 0.05924 | 0.02211 | 0.01837 | Unpruned 128 + `--int8-inproj-only` |
| `ALL-W5 RTN` (Reference) | No | (>23.7 GiB) | 0.03464 | 0.02787 | 0.05496 | 0.02265 | 0.02010 | Uniform W5A8 (exceeds 24 GB) |
| `ALL-W6 RTN` (Reference) | No | (~28+ GiB) | 0.02613 | 0.02195 | 0.03868 | 0.01603 | 0.01488 | Uniform W6A8 (exceeds 24 GB) |

---

## 6-Scene Identical-Condition Visual Comparison (`60.8 GiB BF16` vs `20.60 GiB V3-6b`)

All pairs below were generated on Colab (`seed=42`, `temperature=0.9`, `top_k=0`, `top_p=1.0`) with identical resolution, batch size, and sample index.

| Scene | 60.8 GiB BF16 | 20.60 GiB V3-6b (This Model) |
|---|---|---|
| **Editorial Blonde** (`880x1184`, `b=1, idx=0`) | ![BF16 editorial blonde](assets/compare/bf16_editorial_blonde_880x1184.png) | ![V3-6b editorial blonde](assets/compare/v3_editorial_blonde_880x1184.png) |
| **Perfume Bottle (`CORE-3`)** (`1024x1024`, `b=2, idx=1`) | ![BF16 perfume](assets/compare/bf16_core3_perfume_1024.png) | ![V3-6b perfume](assets/compare/v3_core3_perfume_1024.png) |
| **Sólida Lemonade (`PRD-11`)** (`880x1184`, `b=4, idx=3`) | ![BF16 lemonade](assets/compare/bf16_prd11_lemonade_880x1184.png) | ![V3-6b lemonade](assets/compare/v3_prd11_lemonade_880x1184.png) |
| **NORRSKEN Cover (`FSH-04`)** (`880x1184`, `b=4, idx=3`) | ![BF16 magazine](assets/compare/bf16_fsh04_magazine_880x1184.png) | ![V3-6b magazine](assets/compare/v3_fsh04_magazine_880x1184.png) |
| **Typewriter (`X-OBJ-11`)** (`1024x1024`, `b=4, idx=3`) | ![BF16 typewriter](assets/compare/bf16_xobj11_typewriter_1024.png) | ![V3-6b typewriter](assets/compare/v3_xobj11_typewriter_1024.png) |
| **Fjällgård Flat-Lay (`PRD-14`)** (`1248x832`, `b=1, idx=0`) | ![BF16 outdoor](assets/compare/bf16_prd14_outdoor_1248x832.png) | ![V3-6b outdoor](assets/compare/v3_prd14_outdoor_1248x832.png) |

---

## ComfyUI Installation & Usage

> [!WARNING]
> Because this checkpoint uses native **`W5A8`** (`FMT == 5`) and **within-layer asymmetric `up/down`** precision (`yebisu_mixed_convrot`), you **must apply [`patches/comfyui_nemotron_pruned_mixed.patch`](patches/comfyui_nemotron_pruned_mixed.patch)** to `ComfyUI-Nemotron-Image` before loading it.

1. **Install and patch `ComfyUI-Nemotron-Image`**:
   ```bash
   cd ComfyUI/custom_nodes
   git clone https://github.com/PedroMarinhoDev/ComfyUI-Nemotron-Image
   cd ComfyUI-Nemotron-Image
   git apply /path/to/patches/comfyui_nemotron_pruned_mixed.patch
   ```
2. **Download weights & VAE**:
   * Place `nemotron_labs_image_30b_a3b_w5w4_gptq_24gb.safetensors` from this repository into `ComfyUI/models/diffusion_models/`.
   * Download `nemotron_labs_image_tokenizer_bf16.safetensors` (`1.15 GiB`) from [`PedroMarinhoDev/Nemotron-Labs-Image-ComfyUI`](https://huggingface.co/PedroMarinhoDev/Nemotron-Labs-Image-ComfyUI) into `ComfyUI/models/vae/` (not bundled here to avoid duplicating weights).
3. **Recommended ComfyUI settings**:
   * **Sampling**: `temperature = 0.9`, `top_p = 1.0`, `top_k = 0`.
   * **Loader (`NemotronImageLoader`)**: `experts = "auto"` (or `"on the GPU"` on 24 GB GPUs), `engine = "auto"`.
   * **24 GB GPU Tip**: Free background desktop GPU consumers on Windows so at least **21.5 GiB** VRAM is available for full-resident `FastDecoder` execution (ComfyUI will unload/swap to decode with L24SQ).
