Downloads · 30 days
8
42% of all-time downloads
AINovice2005/FLUX.1-schnell-smashed
FLUX.1-schnell-smashed is a text-to-image model from AINovice2005. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as apache-2.0.
This model was created using the pruna library. Pruna is a model optimization framework built for developers, enabling you to deliver more efficient models with minimal implementation overhead.
Downloads · 30 days
8
42% of all-time downloads
All-time downloads
19
Public
Repo size
22.6 GB
Likes
0
Public
Click a slice to open those files.
.pt12.6 GB · 56%
From the Hugging Face model README
This model was created using the pruna library. Pruna is a model optimization framework built for developers, enabling you to deliver more efficient models with minimal implementation overhead.
First things first, you need to install the pruna library:
pip install pruna
You can use the diffusers library to load the model but this might not include all optimizations by default.
To ensure that all optimizations are applied, use the pruna library to load the model using the following code:
from pruna import PrunaModel
loaded_model = PrunaModel.from_hub(
"AINovice2005/smashed-FLUX.1-schnell-pruna"
)
After loading the model, you can use the inference methods of the original model. Take a look at the documentation for more usage information.
The compression configuration of the model is stored in the smash_config.json file, which describes the optimization methods that were applied to the model.
{
"batcher": null,
"cacher": "pab",
"compiler": null,
"factorizer": null,
"pruner": null,
"quantizer": "hqq_diffusers",
"hqq_diffusers_backend": "torchao_int4",
"hqq_diffusers_group_size": 64,
"hqq_diffusers_weight_bits": 8,
"pab_interval": 2,
"batch_size": 1,
"device": "cuda",
"save_fns": [
"hqq_diffusers"
],
"load_fns": [
"hqq_diffusers"
],
"reapply_after_load": {
"factorizer": null,
"pruner": null,
"quantizer": null,
"cacher": "pab",
"compiler": null,
"batcher": null
}
}