Add files using upload-large-folder tool
Browse files- README.md +4 -4
- model_index.json +1 -1
- safety_checker/config.json +1 -1
- scheduler/scheduler_config.json +1 -1
- text_encoder/config.json +1 -1
- unet/config.json +2 -2
- vae/config.json +2 -2
README.md
CHANGED
|
@@ -5,7 +5,7 @@ tags:
|
|
| 5 |
- safetensors
|
| 6 |
---
|
| 7 |
|
| 8 |
-
# Model Card for
|
| 9 |
|
| 10 |
This model was created using the [pruna](https://github.com/PrunaAI/pruna) library. Pruna is a model optimization framework built for developers, enabling you to deliver more efficient models with minimal implementation overhead.
|
| 11 |
|
|
@@ -17,7 +17,7 @@ First things first, you need to install the pruna library:
|
|
| 17 |
pip install pruna
|
| 18 |
```
|
| 19 |
|
| 20 |
-
You can [use the diffusers library to load the model](https://huggingface.co/
|
| 21 |
|
| 22 |
To ensure that all optimizations are applied, use the pruna library to load the model using the following code:
|
| 23 |
|
|
@@ -25,7 +25,7 @@ To ensure that all optimizations are applied, use the pruna library to load the
|
|
| 25 |
from pruna import PrunaModel
|
| 26 |
|
| 27 |
loaded_model = PrunaModel.from_pretrained(
|
| 28 |
-
"
|
| 29 |
)
|
| 30 |
# we can then run inference using the methods supported by the base model
|
| 31 |
```
|
|
@@ -71,5 +71,5 @@ The compression configuration of the model is stored in the `smash_config.json`
|
|
| 71 |
[](https://twitter.com/PrunaAI)
|
| 72 |
[](https://github.com/PrunaAI)
|
| 73 |
[](https://www.linkedin.com/company/93832878/admin/feed/posts/?feedType=following)
|
| 74 |
-
[](https://discord.
|
| 75 |
[](https://www.reddit.com/r/PrunaAI/)
|
|
|
|
| 5 |
- safetensors
|
| 6 |
---
|
| 7 |
|
| 8 |
+
# Model Card for pruna-test/test-save-tiny-stable-diffusion-pipe-smashed
|
| 9 |
|
| 10 |
This model was created using the [pruna](https://github.com/PrunaAI/pruna) library. Pruna is a model optimization framework built for developers, enabling you to deliver more efficient models with minimal implementation overhead.
|
| 11 |
|
|
|
|
| 17 |
pip install pruna
|
| 18 |
```
|
| 19 |
|
| 20 |
+
You can [use the diffusers library to load the model](https://huggingface.co/pruna-test/test-save-tiny-stable-diffusion-pipe-smashed?library=diffusers) but this might not include all optimizations by default.
|
| 21 |
|
| 22 |
To ensure that all optimizations are applied, use the pruna library to load the model using the following code:
|
| 23 |
|
|
|
|
| 25 |
from pruna import PrunaModel
|
| 26 |
|
| 27 |
loaded_model = PrunaModel.from_pretrained(
|
| 28 |
+
"pruna-test/test-save-tiny-stable-diffusion-pipe-smashed"
|
| 29 |
)
|
| 30 |
# we can then run inference using the methods supported by the base model
|
| 31 |
```
|
|
|
|
| 71 |
[](https://twitter.com/PrunaAI)
|
| 72 |
[](https://github.com/PrunaAI)
|
| 73 |
[](https://www.linkedin.com/company/93832878/admin/feed/posts/?feedType=following)
|
| 74 |
+
[](https://discord.gg/JFQmtFKCjd)
|
| 75 |
[](https://www.reddit.com/r/PrunaAI/)
|
model_index.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"_class_name": "StableDiffusionPipeline",
|
| 3 |
-
"_diffusers_version": "0.
|
| 4 |
"_name_or_path": "hf-internal-testing/tiny-stable-diffusion-pipe",
|
| 5 |
"feature_extractor": [
|
| 6 |
"transformers",
|
|
|
|
| 1 |
{
|
| 2 |
"_class_name": "StableDiffusionPipeline",
|
| 3 |
+
"_diffusers_version": "0.34.0",
|
| 4 |
"_name_or_path": "hf-internal-testing/tiny-stable-diffusion-pipe",
|
| 5 |
"feature_extractor": [
|
| 6 |
"transformers",
|
safety_checker/config.json
CHANGED
|
@@ -27,7 +27,7 @@
|
|
| 27 |
"vocab_size": 99
|
| 28 |
},
|
| 29 |
"torch_dtype": "float32",
|
| 30 |
-
"transformers_version": "4.
|
| 31 |
"vision_config": {
|
| 32 |
"attention_dropout": 0.1,
|
| 33 |
"dropout": 0.1,
|
|
|
|
| 27 |
"vocab_size": 99
|
| 28 |
},
|
| 29 |
"torch_dtype": "float32",
|
| 30 |
+
"transformers_version": "4.53.2",
|
| 31 |
"vision_config": {
|
| 32 |
"attention_dropout": 0.1,
|
| 33 |
"dropout": 0.1,
|
scheduler/scheduler_config.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"_class_name": "DDIMScheduler",
|
| 3 |
-
"_diffusers_version": "0.
|
| 4 |
"beta_end": 0.012,
|
| 5 |
"beta_schedule": "scaled_linear",
|
| 6 |
"beta_start": 0.00085,
|
|
|
|
| 1 |
{
|
| 2 |
"_class_name": "DDIMScheduler",
|
| 3 |
+
"_diffusers_version": "0.34.0",
|
| 4 |
"beta_end": 0.012,
|
| 5 |
"beta_schedule": "scaled_linear",
|
| 6 |
"beta_start": 0.00085,
|
text_encoder/config.json
CHANGED
|
@@ -19,6 +19,6 @@
|
|
| 19 |
"pad_token_id": 1,
|
| 20 |
"projection_dim": 512,
|
| 21 |
"torch_dtype": "float32",
|
| 22 |
-
"transformers_version": "4.
|
| 23 |
"vocab_size": 1000
|
| 24 |
}
|
|
|
|
| 19 |
"pad_token_id": 1,
|
| 20 |
"projection_dim": 512,
|
| 21 |
"torch_dtype": "float32",
|
| 22 |
+
"transformers_version": "4.53.2",
|
| 23 |
"vocab_size": 1000
|
| 24 |
}
|
unet/config.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"_class_name": "UNet2DConditionModel",
|
| 3 |
-
"_diffusers_version": "0.
|
| 4 |
-
"_name_or_path": "/
|
| 5 |
"act_fn": "silu",
|
| 6 |
"addition_embed_type": null,
|
| 7 |
"addition_embed_type_num_heads": 64,
|
|
|
|
| 1 |
{
|
| 2 |
"_class_name": "UNet2DConditionModel",
|
| 3 |
+
"_diffusers_version": "0.34.0",
|
| 4 |
+
"_name_or_path": "/home/runner/.cache/huggingface/hub/models--hf-internal-testing--tiny-stable-diffusion-pipe/snapshots/3ee6c9f225f088ad5d35b624b6514b091e6a4849/unet",
|
| 5 |
"act_fn": "silu",
|
| 6 |
"addition_embed_type": null,
|
| 7 |
"addition_embed_type_num_heads": 64,
|
vae/config.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"_class_name": "AutoencoderKL",
|
| 3 |
-
"_diffusers_version": "0.
|
| 4 |
-
"_name_or_path": "/
|
| 5 |
"act_fn": "silu",
|
| 6 |
"block_out_channels": [
|
| 7 |
32,
|
|
|
|
| 1 |
{
|
| 2 |
"_class_name": "AutoencoderKL",
|
| 3 |
+
"_diffusers_version": "0.34.0",
|
| 4 |
+
"_name_or_path": "/home/runner/.cache/huggingface/hub/models--hf-internal-testing--tiny-stable-diffusion-pipe/snapshots/3ee6c9f225f088ad5d35b624b6514b091e6a4849/vae",
|
| 5 |
"act_fn": "silu",
|
| 6 |
"block_out_channels": [
|
| 7 |
32,
|