Instructions to use OzzyGT/MiniMax_H3_sdnq_8bit_pruned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use OzzyGT/MiniMax_H3_sdnq_8bit_pruned with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("OzzyGT/MiniMax_H3_sdnq_8bit_pruned", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Can you make a HQ quant for SDNQ?
In comfyui I'm using HQ int8 quant from here https://huggingface.co/DmitryDB/MiniMax-H3-ComfyUI-Quants
It has every attention layers in BF16 and some other layers completely in BF16. There will be no much difference in size but quality will improve, I believe
I'll take a look, it should be easy to match it
I checked and they mostly have the same as this one, sdnq does a dynamic quantization and I do a profile before too to get the most affected layers, the remaining ones that they kept (~3B params) didn't have a significant loss.
Not sure if it's worth to have another version of the model with those, I will try to test a video with the same params with both, probably you should do the same, that's the best way to measure this since mathematically they don't make a real difference.