Instructions to use pruna-test/test-save-tiny-stable-diffusion-pipe-smashed with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use pruna-test/test-save-tiny-stable-diffusion-pipe-smashed with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("pruna-test/test-save-tiny-stable-diffusion-pipe-smashed", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Pruna AI
How to use pruna-test/test-save-tiny-stable-diffusion-pipe-smashed with Pruna AI:
from pruna import PrunaModel pip install -U diffusers transformers accelerate
from pruna import PrunaModel import torch # switch to "mps" for apple devices pipe = PrunaModel.from_pretrained("pruna-test/test-save-tiny-stable-diffusion-pipe-smashed", 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
- Local Apps Settings
- Draw Things
- DiffusionBee
Add files using upload-large-folder tool
Browse files- README.md +2 -0
- smash_config.json +2 -0
README.md
CHANGED
|
@@ -72,9 +72,11 @@ The compression configuration of the model is stored in the `smash_config.json`
|
|
| 72 |
"device": "cpu",
|
| 73 |
"device_map": null,
|
| 74 |
"save_fns": [],
|
|
|
|
| 75 |
"load_fns": [
|
| 76 |
"diffusers"
|
| 77 |
],
|
|
|
|
| 78 |
"reapply_after_load": {}
|
| 79 |
}
|
| 80 |
```
|
|
|
|
| 72 |
"device": "cpu",
|
| 73 |
"device_map": null,
|
| 74 |
"save_fns": [],
|
| 75 |
+
"save_artifacts_fns": [],
|
| 76 |
"load_fns": [
|
| 77 |
"diffusers"
|
| 78 |
],
|
| 79 |
+
"load_artifacts_fns": [],
|
| 80 |
"reapply_after_load": {}
|
| 81 |
}
|
| 82 |
```
|
smash_config.json
CHANGED
|
@@ -31,8 +31,10 @@
|
|
| 31 |
"device": "cpu",
|
| 32 |
"device_map": null,
|
| 33 |
"save_fns": [],
|
|
|
|
| 34 |
"load_fns": [
|
| 35 |
"diffusers"
|
| 36 |
],
|
|
|
|
| 37 |
"reapply_after_load": {}
|
| 38 |
}
|
|
|
|
| 31 |
"device": "cpu",
|
| 32 |
"device_map": null,
|
| 33 |
"save_fns": [],
|
| 34 |
+
"save_artifacts_fns": [],
|
| 35 |
"load_fns": [
|
| 36 |
"diffusers"
|
| 37 |
],
|
| 38 |
+
"load_artifacts_fns": [],
|
| 39 |
"reapply_after_load": {}
|
| 40 |
}
|