Instructions to use dataset-viber/stable-diffusion-v1-4-smashed with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use dataset-viber/stable-diffusion-v1-4-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("dataset-viber/stable-diffusion-v1-4-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 dataset-viber/stable-diffusion-v1-4-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("dataset-viber/stable-diffusion-v1-4-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
- Draw Things
- DiffusionBee
Add files using upload-large-folder tool
Browse files- README.md +1 -1
- smash_config.json +1 -1
README.md
CHANGED
|
@@ -41,7 +41,7 @@ The compression configuration of the model is stored in the `smash_config.json`
|
|
| 41 |
"quantizer": null,
|
| 42 |
"deepcache_interval": 2,
|
| 43 |
"max_batch_size": 1,
|
| 44 |
-
"device": "
|
| 45 |
"save_fns": [],
|
| 46 |
"load_fns": [
|
| 47 |
"diffusers"
|
|
|
|
| 41 |
"quantizer": null,
|
| 42 |
"deepcache_interval": 2,
|
| 43 |
"max_batch_size": 1,
|
| 44 |
+
"device": "cpu",
|
| 45 |
"save_fns": [],
|
| 46 |
"load_fns": [
|
| 47 |
"diffusers"
|
smash_config.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
| 6 |
"quantizer": null,
|
| 7 |
"deepcache_interval": 2,
|
| 8 |
"max_batch_size": 1,
|
| 9 |
-
"device": "
|
| 10 |
"save_fns": [],
|
| 11 |
"load_fns": [
|
| 12 |
"diffusers"
|
|
|
|
| 6 |
"quantizer": null,
|
| 7 |
"deepcache_interval": 2,
|
| 8 |
"max_batch_size": 1,
|
| 9 |
+
"device": "cpu",
|
| 10 |
"save_fns": [],
|
| 11 |
"load_fns": [
|
| 12 |
"diffusers"
|