Instructions to use pruna-test/test-save-tiny-stable-diffusion-pipe-smashed-pro 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-pro 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-pro", 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-pro with Pruna AI:
from pruna_pro import PrunaProModel pip install -U diffusers transformers accelerate
from pruna_pro import PrunaProModel import torch # switch to "mps" for apple devices pipe = PrunaProModel.from_pretrained("pruna_pro-test/test-save-tiny-stable-diffusion-pipe-smashed-pro", 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
- Draw Things
- DiffusionBee
Add files using upload-large-folder tool
Browse files- README.md +3 -1
- smash_config.json +2 -0
README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
---
|
| 2 |
library_name: diffusers
|
| 3 |
tags:
|
| 4 |
-
- safetensors
|
| 5 |
- pruna_pro-ai
|
| 6 |
- pruna-ai
|
|
|
|
| 7 |
---
|
| 8 |
|
| 9 |
# Model Card for pruna-test/test-save-tiny-stable-diffusion-pipe-smashed-pro
|
|
@@ -102,9 +102,11 @@ The compression configuration of the model is stored in the `smash_config.json`
|
|
| 102 |
"device": "cpu",
|
| 103 |
"device_map": null,
|
| 104 |
"save_fns": [],
|
|
|
|
| 105 |
"load_fns": [
|
| 106 |
"diffusers"
|
| 107 |
],
|
|
|
|
| 108 |
"reapply_after_load": {}
|
| 109 |
}
|
| 110 |
```
|
|
|
|
| 1 |
---
|
| 2 |
library_name: diffusers
|
| 3 |
tags:
|
|
|
|
| 4 |
- pruna_pro-ai
|
| 5 |
- pruna-ai
|
| 6 |
+
- safetensors
|
| 7 |
---
|
| 8 |
|
| 9 |
# Model Card for pruna-test/test-save-tiny-stable-diffusion-pipe-smashed-pro
|
|
|
|
| 102 |
"device": "cpu",
|
| 103 |
"device_map": null,
|
| 104 |
"save_fns": [],
|
| 105 |
+
"save_artifacts_fns": [],
|
| 106 |
"load_fns": [
|
| 107 |
"diffusers"
|
| 108 |
],
|
| 109 |
+
"load_artifacts_fns": [],
|
| 110 |
"reapply_after_load": {}
|
| 111 |
}
|
| 112 |
```
|
smash_config.json
CHANGED
|
@@ -60,8 +60,10 @@
|
|
| 60 |
"device": "cpu",
|
| 61 |
"device_map": null,
|
| 62 |
"save_fns": [],
|
|
|
|
| 63 |
"load_fns": [
|
| 64 |
"diffusers"
|
| 65 |
],
|
|
|
|
| 66 |
"reapply_after_load": {}
|
| 67 |
}
|
|
|
|
| 60 |
"device": "cpu",
|
| 61 |
"device_map": null,
|
| 62 |
"save_fns": [],
|
| 63 |
+
"save_artifacts_fns": [],
|
| 64 |
"load_fns": [
|
| 65 |
"diffusers"
|
| 66 |
],
|
| 67 |
+
"load_artifacts_fns": [],
|
| 68 |
"reapply_after_load": {}
|
| 69 |
}
|