sglang-diffusion-modelopt-quant

Quantize diffusion DiT models with NVIDIA ModelOpt for SGLang Diffusion.

Updated Jun 4, 2026
One-click install
npx skills add https://github.com/annealing-inversion/sglang-kimi-deferral --skill sglang-diffusion-modelopt-quant-annealing-inversion
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sglang-diffusion-modelopt-quant
Source: https://github.com/annealing-inversion/sglang-kimi-deferral/tree/main/python/sglang/multimodal_gen/.claude/skills/sglang-diffusion-modelopt-quant
Command: npx skills add https://github.com/annealing-inversion/sglang-kimi-deferral --skill sglang-diffusion-modelopt-quant-annealing-inversion

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Use this skill when quantizing a diffusion DiT model with NVIDIA ModelOpt, and preparing FP8 or NVFP4 checkpoints that load, verify, and benchmark in SGLang Diffusion.

Core Features & Use Cases

  • Quantize DiT with NVIDIA ModelOpt
  • Adapt and verify FP8/NVFP4 checkpoints for SGLang Diffusion
  • Benchmark quantized performance and ensure compatibility

Quick Start

Run the ModelOpt quantization workflow for your DiT model to produce a SGLang-ready checkpoint.

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 DiT model with NVIDIA ModelOpt for SGLang?

To quantize a diffusion DiT model with NVIDIA ModelOpt, run the workflow to export FP8 or NVFP4 checkpoints, then load and verify them within the SGLang Diffusion runtime.

Does SGLang support loading FP8 and NVFP4 quantized diffusion checkpoints?

Yes, SGLang supports loading FP8 and NVFP4 quantized diffusion checkpoints. You can bridge ModelOpt exports to SGLang, verify model quality, and benchmark performance across both paths.

What do I need to prepare before quantizing DiT with ModelOpt?

Before quantizing DiT with ModelOpt, you need access to NVIDIA ModelOpt tooling, a diffusion transformer implementation, and the SGLang runtime with FP8/NVFP4 support to ensure successful checkpoint preparation.

Can I benchmark quantized FP8 vs NVFP4 performance in SGLang Diffusion?

Yes, you can benchmark quantized FP8 vs NVFP4 performance in SGLang Diffusion. The workflow includes verifying model quality and benchmarking performance across both precision paths.

Why is my ModelOpt quantized checkpoint not working with SGLang Diffusion?

If your ModelOpt quantized checkpoint is not working with SGLang Diffusion, verify that your SGLang runtime supports FP8/NVFP4 and that the checkpoint was properly adapted and verified during the export workflow.