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
safety_checker/config.json
CHANGED
|
@@ -43,7 +43,7 @@
|
|
| 43 |
"use_bfloat16": false,
|
| 44 |
"vocab_size": 99
|
| 45 |
},
|
| 46 |
-
"transformers_version": "5.
|
| 47 |
"vision_config": {
|
| 48 |
"add_cross_attention": false,
|
| 49 |
"attention_dropout": 0.1,
|
|
|
|
| 43 |
"use_bfloat16": false,
|
| 44 |
"vocab_size": 99
|
| 45 |
},
|
| 46 |
+
"transformers_version": "5.10.2",
|
| 47 |
"vision_config": {
|
| 48 |
"add_cross_attention": false,
|
| 49 |
"attention_dropout": 0.1,
|
text_encoder/config.json
CHANGED
|
@@ -19,6 +19,6 @@
|
|
| 19 |
"num_hidden_layers": 5,
|
| 20 |
"pad_token_id": 1,
|
| 21 |
"projection_dim": 512,
|
| 22 |
-
"transformers_version": "5.
|
| 23 |
"vocab_size": 1000
|
| 24 |
}
|
|
|
|
| 19 |
"num_hidden_layers": 5,
|
| 20 |
"pad_token_id": 1,
|
| 21 |
"projection_dim": 512,
|
| 22 |
+
"transformers_version": "5.10.2",
|
| 23 |
"vocab_size": 1000
|
| 24 |
}
|
tokenizer/tokenizer_config.json
CHANGED
|
@@ -6,6 +6,7 @@
|
|
| 6 |
"eos_token": "<|endoftext|>",
|
| 7 |
"errors": "replace",
|
| 8 |
"is_local": true,
|
|
|
|
| 9 |
"model_max_length": 77,
|
| 10 |
"pad_token": "<|endoftext|>",
|
| 11 |
"tokenizer_class": "CLIPTokenizer",
|
|
|
|
| 6 |
"eos_token": "<|endoftext|>",
|
| 7 |
"errors": "replace",
|
| 8 |
"is_local": true,
|
| 9 |
+
"local_files_only": false,
|
| 10 |
"model_max_length": 77,
|
| 11 |
"pad_token": "<|endoftext|>",
|
| 12 |
"tokenizer_class": "CLIPTokenizer",
|