Team Ai
Modelpublic

ussoewwin/Hybrid-Sensitivity-Weighted-Quantization-SDXL-ConvRot-INT8

sourceHugging Faceotherupdated 14d agoView on Hugging Face
5likes
Model Card

Hybrid-Sensitivity-Weighted-Quantization (HSWQ)

<p align="center"> <img src="https://raw.githubusercontent.com/ussoewwin/Hybrid-Sensitivity-Weighted-Quantization/main/icon.png" width="128"> </p>

High-fidelity ConvRot INT8 reverse hybrid quantization for SDXL diffusion models. HSWQ uses per-layer trajectory-impact measurement instead of naive uniform cast, converting only the K lowest-impact layers to ConvRot INT8 while keeping every other layer at FP16. This is highly useful for users who need to strictly manage their VRAM resources while maintaining maximum image quality.

Method

Reverse hybrid (diag → reverse): The FP16 checkpoint is the only input. A per-layer trajectory-impact measurement (sdxl/diag_impact_sdxl.py) injects each candidate layer's ConvRot INT8 reconstruction into the FP16 model one at a time and runs the production sampler — recording the final-latent drift. The K lowest-impact layers are then packed as FULL ConvRot INT8 (int8_tensorwise) while every other layer stays FP16 (sdxl/gen_reverse_int8_sdxl.py). The V3.1 selector (DualMonitor + V4 weighted-histogram MSE + full SVD, fixed 300 MiB FP16 protection budget) provides static protection, and the reverse step provides the dynamic trajectory-based criterion for the remaining pool.

Validated by the deterministic 25-seed latent-trajectory comparison (per-step cosine + bifurcation detection); production gate = cosine mean ≥ 0.95 and 0/25 bifurcated.

The quantized file does not embed a VAE (first_stage_model.* is removed at conversion): load it with a separate SDXL VAE.

Technical details: https://github.com/ussoewwin/Hybrid-Sensitivity-Weighted-Quantization

How to quantize (SDXL ConvRot INT8): md/How to quantize SDXL.md

Diag → Reverse SDXL Technical Guide: md/Diag_Reverse_SDXL_v1.1_Technical_Guide.md

ComfyUI Loader for ConvRot INT8 / INT8: To load these INT8 models in ComfyUI, please use the custom node: ComfyUI-HSWQ-Loader-and-Tools

SDXL ConvRot INT8 Benchmark Test Results (published tables): benchmark result/benchmark_sdxl_int8.md


Benchmark (Reference)

Production gate: deterministic 25-seed latent-trajectory comparison (benchmark/sdxl_int8_traj_compare.py). PASS = final-cosine mean ≥ 0.95 and 0/25 bifurcated.

Configuration25-seed trajectory cosine meanFile sizeCompatibility
Original FP161.000100%High
Native ConvRot INT8 (all convertible layers)≈ 0.93~50%High
HSWQ Reverse Hybrid ConvRot INT8≥ 0.95 (gate)71% (FP16 mixed)High (ComfyUI INT8)

📦 Available Models

Filename convention: <model>_hswq_1on_re<K>_convrot_int8.safetensors — reverse hybrid with K lowest-impact layers converted to ConvRot INT8, bias correction ON (1on), everything else FP16.

FilenameBase ModelVersionLicense
JANKUTrainedChenkinNoobai_v777_hswq_1on_re550_convrot_int8.safetensorsJANKU Trained Chenkin & Noobai-Rouwei (Illustrious-XL)v777Fair AI Public License 1.0-SD
bluePencilXL_v031_hswq_1on_re570_convrot_int8.safetensorsblue_pencil-XLv0.3.1CreativeML Open RAIL++-M
epicrealismXL_pureFix_hswq_1on_re570_convrot_int8.safetensorsepiCRealism XLpureFixCreativeML Open RAIL++-M
koronemixIllustrious_v70_hswq_1on_re550_convrot_int8.safetensorskoronemixIllustriousv70Fair AI Public License 1.0-SD
koronemixVpred_v20_hswq_1on_re550_convrot_int8.safetensorskoronemixVpredv2.0CreativeML Open RAIL++-M
novaAnimeXL_ilV190_hswq_1on_re599_convrot_int8.safetensorsNova Anime XLilV190Fair AI Public License 1.0-SD
novaAsianXL_illustriousV70_hswq_1on_re550_convrot_int8.safetensorsNova Asian XLv7.0Fair AI Public License 1.0-SD
oneObsession_v24_hswq_1on_re572_convrot_int8.safetensorsOneObsessionv24CreativeML Open RAIL++-M
prefectIllustriousXL_v8_hswq_1on_re610_convrot_int8.safetensorsPrefect Illustrious XLv8Fair AI Public License 1.0-SD
realvisxlV30_v30TurboBakedvae_hswq_1on_re650_convrot_int8.safetensorsRealVisXL V3.0 (Turbo)v3.0 TurboCreativeML Open RAIL++-M
realvisxlV50_v40Bakedvae_hswq_1on_re550_convrot_int8.safetensorsRealVisXL V5.0 (Lightning)v4.0 BakedVAECreativeML Open RAIL++-M
realvisxlV50_v50Bakedvae_hswq_1on_re550_convrot_int8.safetensorsRealVisXL V5.0 (Lightning)v5.0 BakedVAECreativeML Open RAIL++-M
unholyDesireMixSinister_v90_hswq_1on_re590_convrot_int8.safetensorsUnholy Desire Mix - Sinisterv9.0Fair AI Public License 1.0-SD
uwazumimixILL_v50_hswq_1on_re720_convrot_int8.safetensorsUwazumiMixv5.0Fair AI Public License 1.0-SD
waiANIPONYXL_v140_hswq_1on_re650_convrot_int8.safetensorsWAI-ANI-PONY-XLv14.0Fair AI Public License 1.0-SD
waiANIPONYXL_v90_hswq_1on_re650_convrot_int8.safetensorsWAI-ANI-PONY-XLv9.0Fair AI Public License 1.0-SD
waiIllustriousSDXL_v170_hswq_1on_re597_convrot_int8.safetensorsIllustrious-XL v1.7 (WAI-illustrious-SDXL)v17.0Fair AI Public License 1.0-SD
waiREALCN_v150_hswq_1on_re630_convrot_int8.safetensorsWAI-REAL_CNv15.0Fair AI Public License 1.0-SD
waiREALISM_v10_hswq_1on_re590_convrot_int8.safetensorsWAI-REALISMv1.0Fair AI Public License 1.0-SD

📜 Credits & License

🏆 Special Acknowledgement

We extend our deepest respect and gratitude to the Nunchaku Team for their groundbreaking work on SVDQ quantization and for sharing their models with the community. This collection relies heavily on their research and original implementation.

Base Models

These models are derivatives of their respective creators. All credit for aesthetic tuning and model training belongs to the original creators.

  • —JANKU Trained Chenkin & Noobai-Rouwei (Illustrious-XL): Created by janxd.
  • —blue_pencil-XL: Created by Euge_us.
  • —epiCRealism XL: Created by epinikion.
  • —WAI-illustrious-SDXL / WAI-REAL_CN / WAI-REALISM / WAI-ANI-PONY-XL: Created by WAI0731.
  • —koronemixIllustrious / koronemixVpred: Created by koronen.
  • —Nova Anime XL / Nova Asian XL: Created by Crody.
  • —Prefect Illustrious XL: Created by Goofy_Ai.
  • —OneObsession: Created by Polyhedron.
  • —RealVisXL: Created by SG_161222.
  • —Unholy Desire Mix - Sinister: Created by UnholyDesiresStudio.
  • —UwazumiMix: Created by UWAZUMI.

Disclaimer: These models are provided for optimization and research purposes. Please adhere to the original licenses of the base models.