File size: 3,416 Bytes
5982e34
 
 
 
e186f7d
 
193b02d
6d0c8f8
728f536
6d0c8f8
346d82d
0a62f10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dde9cca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
license: agpl-3.0
---

`absolutereality_v181_r32_r0.1_HSWQ_fp8e4m3fn.safetensors` This is only the sd15 unet layers at HSWQ_fp8e4m3fn

Example images and workflow inside, workflow is not the best as ComfyUI and other pipelines have dropped the ball for sd15.

Positive rompt:  realistic, a photo of a gothic horror woman in a black lake, beautiful woman, unsettling horror, professional, (Extremely Detailed:1.2), glow effects, godrays, intricate details, sharp focus, dramatic, photorealistic, tribal village, wooden village, burning forest background, sharp contrast, many colours, serious face, smirking, Eva Green

Negative embeddings files: BadDream, UnrealisticDream

<table style="width: auto;">
  <tr>
    <!-- Image 1 -->
    <td align="center" valign="top" style="padding: 10px;">
      <a href="assets/ComfyUI_temp_hbtnv_00003_.png" target="_blank">
        <img src="assets/ComfyUI_temp_hbtnv_00003_.png" height="120" style="border: 1px solid #444; border-radius: 4px;">
      </a>
      <br>
      <p style="width: 150px; word-wrap: break-word; line-height: 1.2;">
        <small><code>absolutereality_v181_r32_r0.1_HSWQ_fp8e4m3fn.safetensors</code></small>
      </p>
    </td>
    <!-- Image 2 -->
    <td align="center" valign="top" style="padding: 10px;">
      <a href="assets/ComfyUI_temp_hbtnv_00004_.png" target="_blank">
        <img src="assets/ComfyUI_temp_hbtnv_00004_.png" height="120" style="border: 1px solid #444; border-radius: 4px;">
      </a>
      <br>
      <p style="width: 150px; word-wrap: break-word; line-height: 1.2;">
        <small><code>absolutereality_v181.safetensors</code></small>
      </p>
    </td>
  </tr>
</table>


# 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 FP8 quantization for diffusion models (SDXL). HSWQ uses **sensitivity** and **importance** analysis instead of naive uniform cast, and offers two modes: standard-compatible (V1) and high-performance scaled (V2).

**Technical details:** [md/HSWQ_ Hybrid Sensitivity Weighted Quantization.md](https://github.com/ussoewwin/Hybrid-Sensitivity-Weighted-Quantization/blob/main/md/HSWQ_%20Hybrid%20Sensitivity%20Weighted%20Quantization.md)

**How to quantize:** [md/HSWQ_ How to quantize SDXL.md](https://github.com/ussoewwin/Hybrid-Sensitivity-Weighted-Quantization/blob/main/md/How%20to%20quantize%20SDXL.md)

**SDXL Benchmark Test Results:** [md/SDXL Benchmark Test Results.md](https://github.com/ussoewwin/Hybrid-Sensitivity-Weighted-Quantization/blob/main/test/benchmark_test.md)





# Credit & Special Acknowledgement

[https://github.com/ussoewwin/Hybrid-Sensitivity-Weighted-Quantization](https://github.com/ussoewwin/Hybrid-Sensitivity-Weighted-Quantization)

[https://github.com/tritant/ComfyUI_Kitchen_nvfp4_Converter](https://github.com/tritant/ComfyUI_Kitchen_nvfp4_Converter)

[https://github.com/NVIDIA/Model-Optimizer](https://github.com/NVIDIA/Model-Optimizer)

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.
- **Original Repository:** [nunchaku-tech/nunchaku-sdxl](https://huggingface.co/nunchaku-tech/nunchaku-sdxl)