dgenerate quantize: float8_e4m3fn, int8_tensorwise of transformer from stabilityai/stable-diffusion-3.5-medium
Browse filesFiles changed (3)
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849---base_model: stabilityai/stable-diffusion-3.5-mediumbase_model_relation: quantizedtags:- dgenerate- quantization- comfyui---
# Teriks/stable-diffusion-3.5-medium-quants
ComfyUI safetensors float8_e4m3fn and int8_tensorwise quantization of [stabilityai/stable-diffusion-3.5-medium](https://huggingface.co/stabilityai/stable-diffusion-3.5-medium), written by [dgenerate](https://github.com/Teriks/dgenerate) 6.0.0.
The license of the source model applies to these weights.
## Source
| | || --- | --- || Model | `stabilityai/stable-diffusion-3.5-medium` || Pipeline | `StableDiffusion3Pipeline` || Components | `transformer` (`SD3Transformer2DModel`) || Formats | `comfy` |
## Quantization
Keep the original repository as the model and pass the quant file with the matching component option, so the config still comes from the repository.
Tensor names follow the ComfyUI layout (`--comfy`). ComfyUI and ComfyUI-GGUF load the files that have a key map for that architecture. A component with no key map is an error.
| Format | File || --- | --- || `float8_e4m3fn` | ComfyUI safetensors quant || `int8_tensorwise` | ComfyUI safetensors quant |
`--formats` accepts short names and presets. `q4` is Q4_K. `q8` is Q8_0. `fp8` is float8_e4m3fn.
## Command
```bashdgenerate --sub-command quantize stabilityai/stable-diffusion-3.5-medium --subfolders transformer --formats comfy --comfy --output 'G:\dgenerate-quants\sd35-medium' --hf-upload Teriks/stable-diffusion-3.5-medium-quants --hf-upload-card```
## Files
| Path | Size || --- | --- || `transformer-float8_e4m3fn-comfy.safetensors` | 2.5 GB || `transformer-int8_tensorwise-comfy.safetensors` | 2.5 GB |123version https://git-lfs.github.com/spec/v1oid sha256:f98fe487381daf673c33c20fa2c131263961cb735b7183b770d9fa9ffbed4232size 2697668348123version https://git-lfs.github.com/spec/v1oid sha256:5ae7f74bbd3ddfbde67869acad499343f4cc3463452c7cdcb5c1a6478b22df75size 2702657778README.mdAdded+49
transformer-float8_e4m3fn-comfy.safetensorsAdded+3
transformer-int8_tensorwise-comfy.safetensorsAdded+3