Instructions to use Comfy-Org/MiniMax-H3-Image with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusion Single File
How to use Comfy-Org/MiniMax-H3-Image with Diffusion Single File:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
a scary trend
Hey... i have no internet right now so i have to do it this way.
what's with comfy only providing bf16 VAEs and pruned models? wouldn't be a problem if you could just merge shards and be done with it.. but that does not work anymore, for whatever reason. (if that was a conscious decision... fire the guy)
Why make it unnecessarily hard to make high quality stuff? i mean if the model makers only provide the bf16 or whatever, that's fine ... but i find ALL the fp32 VAEs and unpruned models i desire... just not on the comfy repo and not working in comfy-UI... i have a major sad-face right now... ^^
any hoe... rant over ... i shall return when i have a second computer... busy on cool stuffz, Cya soon ^^
No one actually runs the VAEs in fp32, not even the original code, it will not increase quality in any observable manner. I don't know why you think so.
The pruning also does not degrade any quality.
Will be great to release the non-pruned model too.
No one actually runs the VAEs in fp32, not even the original code, it will not increase quality in any observable manner. I don't know why you think so.
The pruning also does not degrade any quality.
Very true, but pruning does have adverse effects just quality isn't one of them.
No one actually runs the VAEs in fp32, not even the original code, it will not increase quality in any observable manner. I don't know why you think so.
The pruning also does not degrade any quality.
Very true, but pruning does have adverse effects just quality isn't one of them.
Such as?
Pruning a Variational Autoencoder (VAE) weight pruning (for model compression) can degrade both its reconstruction fidelity and generative capabilities.
This is what the AI had to say as it can say it better than me typing all this in myself.
The primary adverse effects fall into two categories:
- Explicit Weight & Channel Pruning (Model Compression)
When you intentionally remove weights, filters, or neurons to make a VAE smaller or faster, you introduce specific structural bottlenecks:
• Degraded Reconstruction Quality (Blurry Outputs). Pruning decoder weights directly reduces the network's capacity to map low-dimensional latent vectors back into high-dimensional data, resulting in a loss of high-frequency details, textures, and sharpness.
• Latent Space Distortion & Entanglement. Pruning encoder layers can corrupt the learned mapping from input data to the latent parameters (μ and σ). Previously disentangled latent dimensions may become correlated or noisy, making smooth latent interpolation erratic.
• Prior-Posterior Mismatch. Aggressive pruning often alters the aggregated posterior distribution q(z) so that it no longer aligns well with the standard normal prior p(z). When sampling from p(z) during generation, the pruned decoder receives latent codes from regions it was no longer calibrated to decode, producing artifacts or out-of-distribution samples.
• Asymmetric Sensitivity. VAEs are generally more sensitive to pruning than standard classifiers. Pruning the bottleneck layers or the final decoder layers causes far more severe degradation than pruning early encoder layers, because errors introduced near the latent space propagate and amplify through the rest of the generative pipeline.
- Implicit "Over-Pruning" (Posterior Collapse)
In VAE literature, "pruning" also refers to latent unit over-pruning (a form of posterior collapse), where strong Kullback-Leibler (KL) divergence regularization forces a large subset of latent variables to collapse to the prior ((q(z_i\vert{}x) \approx p(z_i))). As detailed in Tackling Over-pruning in Variational Autoencoders, this causes: [1] (https://www.researchgate.net/publication/317558156_Tackling_Over-pruning_in_Variational_Autoencoders), [2] (https://arxiv.org/html/1706.03643v2)
• Severe Underfitting. The model discards too much capacity and ignores meaningful variations in the input data, failing to capture complex data distributions even when the network is large enough to do so.
• Over-Reliance on Remaining Active Units. Because most latent units become inactive, the few remaining active units are forced to encode all the data's variance. Their individual posteriors drift far from the prior, creating a sharp discrepancy between training and sampling/generation time.
• Loss of Generative Diversity. With fewer active stochastic factors explaining the data, generated samples lack variety and tend to revert toward average or repetitive modes. [1] (https://arxiv.org/abs/1706.03643), [2] (https://arxiv.org/html/1706.03643v2)
If you're working on a specific implementation, let me know:
• Whether you are doing post-training weight pruning or troubleshooting latent posterior collapse
• Your data domain (images, audio, tabular, etc.) and architecture (e.g., standard VAE, β-VAE, VQ-VAE)
I watched a whole video about this just a few days ago, and a pruned model is even worse as you are giving it a lobotomy to make it smaller because you can't get something (the same thing) for nothing. VAE has issues, but pruning doesn't affect, most times, quality that we can discern at least.
Pruning a Variational Autoencoder (VAE) weight pruning (for model compression) can degrade both its reconstruction fidelity and generative capabilities.
This is what the AI had to say as it can say it better than me typing all this in myself.
The primary adverse effects fall into two categories:
- Explicit Weight & Channel Pruning (Model Compression)
When you intentionally remove weights, filters, or neurons to make a VAE smaller or faster, you introduce specific structural bottlenecks:
• Degraded Reconstruction Quality (Blurry Outputs). Pruning decoder weights directly reduces the network's capacity to map low-dimensional latent vectors back into high-dimensional data, resulting in a loss of high-frequency details, textures, and sharpness.
• Latent Space Distortion & Entanglement. Pruning encoder layers can corrupt the learned mapping from input data to the latent parameters (μ and σ). Previously disentangled latent dimensions may become correlated or noisy, making smooth latent interpolation erratic.
• Prior-Posterior Mismatch. Aggressive pruning often alters the aggregated posterior distribution q(z) so that it no longer aligns well with the standard normal prior p(z). When sampling from p(z) during generation, the pruned decoder receives latent codes from regions it was no longer calibrated to decode, producing artifacts or out-of-distribution samples.
• Asymmetric Sensitivity. VAEs are generally more sensitive to pruning than standard classifiers. Pruning the bottleneck layers or the final decoder layers causes far more severe degradation than pruning early encoder layers, because errors introduced near the latent space propagate and amplify through the rest of the generative pipeline.
- Implicit "Over-Pruning" (Posterior Collapse)
In VAE literature, "pruning" also refers to latent unit over-pruning (a form of posterior collapse), where strong Kullback-Leibler (KL) divergence regularization forces a large subset of latent variables to collapse to the prior ((q(z_i\vert{}x) \approx p(z_i))). As detailed in Tackling Over-pruning in Variational Autoencoders, this causes: [1] (https://www.researchgate.net/publication/317558156_Tackling_Over-pruning_in_Variational_Autoencoders), [2] (https://arxiv.org/html/1706.03643v2)
• Severe Underfitting. The model discards too much capacity and ignores meaningful variations in the input data, failing to capture complex data distributions even when the network is large enough to do so.
• Over-Reliance on Remaining Active Units. Because most latent units become inactive, the few remaining active units are forced to encode all the data's variance. Their individual posteriors drift far from the prior, creating a sharp discrepancy between training and sampling/generation time.
• Loss of Generative Diversity. With fewer active stochastic factors explaining the data, generated samples lack variety and tend to revert toward average or repetitive modes. [1] (https://arxiv.org/abs/1706.03643), [2] (https://arxiv.org/html/1706.03643v2)
If you're working on a specific implementation, let me know:
• Whether you are doing post-training weight pruning or troubleshooting latent posterior collapse
• Your data domain (images, audio, tabular, etc.) and architecture (e.g., standard VAE, β-VAE, VQ-VAE)I watched a whole video about this just a few days ago, and a pruned model is even worse as you are giving it a lobotomy to make it smaller because you can't get something (the same thing) for nothing. VAE has issues, but pruning doesn't affect, most times, quality that we can discern at least.
None of this applies in this case.
and voilá ... that is french for... and then i found out... that the model is a distill... LÖL ^^
next ... 6 steps, no Negs, no CFG
there are better jokes...
official request is out, ofc.
https://huggingface.co/MiniMaxAI/MiniMax-H3-Image/discussions/31