sglang-diffusion-modelopt-quant

Quantize diffusion transformers to FP8 or NVFP4 with NVIDIA ModelOpt.

12|2|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/scottgl9/sglang-spark-gb10-optimizations --skill sglang-diffusion-modelopt-quant-scottgl9
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sglang-diffusion-modelopt-quant
Source: https://github.com/scottgl9/sglang-spark-gb10-optimizations/tree/main/python/sglang/multimodal_gen/.claude/skills/sglang-diffusion-modelopt-quant
Command: npx skills add https://github.com/scottgl9/sglang-spark-gb10-optimizations --skill sglang-diffusion-modelopt-quant-scottgl9

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python, sglang, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill facilitates the quantization, adaptation, verification, and benchmarking of diffusion transformers using NVIDIA ModelOpt, ensuring models are optimized for deployment and efficient inference.

Core Features & Use Cases

  • Quantization Workflow: Convert diffusion models with NVIDIA ModelOpt to FP8 or NVFP4 formats.
  • Checkpoint Adaptation: Transform exported checkpoints to be loadable and verifiable within SGLang Diffusion.
  • Performance Benchmarking: Measure speed improvements and model quality post-quantization.
  • Use Case: A user needs to quantize a diffusion model for faster inference and validate its accuracy compared to the baseline.

Quick Start

Use the skill to quantize your diffusion model with ModelOpt, generate the transformed checkpoint, and then validate its performance in SGLang.

Frequently Asked Questions about sglang-diffusion-modelopt-quant

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I quantize a diffusion model to FP8 or NVFP4 using NVIDIA ModelOpt?

To quantize a diffusion model to FP8 or NVFP4, this Skill automates the NVIDIA ModelOpt workflow to convert models, adapt checkpoints, and verify compatibility for optimized inference.

Can I validate and benchmark diffusion checkpoints after quantization?

Yes, you can validate and benchmark diffusion checkpoints post-quantization to measure speed improvements and evaluate model quality compared to the baseline performance.

Does SGLang support loading quantized diffusion transformer checkpoints?

Yes, this Skill transforms exported checkpoints to be directly loadable and verifiable within SGLang Diffusion for deployment and performance evaluation.

What is the process for adapting diffusion model checkpoints for SGLang?

Checkpoint adaptation involves transforming exported NVIDIA ModelOpt checkpoints into a loadable format, ensuring they are verifiable and compatible within the SGLang Diffusion environment.

Do I need Python and SGLang to run diffusion model quantization scripts?

Yes, Python and SGLang are required dependencies to execute the scripts for quantization, checkpoint adaptation, and performance benchmarking of diffusion transformers.

When should I use NVFP4 quantization for my diffusion transformer?

Use NVFP4 quantization for diffusion transformers when you need optimized deployment and efficient inference, provided you validate model accuracy and speed improvements against the baseline.