davidberenstein1957 commited on
Commit
1c00e33
·
verified ·
1 Parent(s): 5c01cef

Add files using upload-large-folder tool

Browse files
README.md CHANGED
@@ -1,7 +1,8 @@
1
  ---
2
  library_name: diffusers
3
  tags:
4
- - src-ai
 
5
  ---
6
 
7
  # Model Card for PrunaAI/test-save-tiny-stable-diffusion-pipe-smashed-pro
@@ -13,7 +14,7 @@ This model was created using the [pruna](https://github.com/PrunaAI/pruna) libra
13
  First things first, you need to install the pruna library:
14
 
15
  ```bash
16
- pip install src
17
  ```
18
 
19
  You can [use the diffusers library to load the model](https://huggingface.co/PrunaAI/test-save-tiny-stable-diffusion-pipe-smashed-pro?library=diffusers) but this might not include all optimizations by default.
@@ -21,14 +22,17 @@ You can [use the diffusers library to load the model](https://huggingface.co/Pru
21
  To ensure that all optimizations are applied, use the pruna library to load the model using the following code:
22
 
23
  ```python
24
- from src import PrunaProModel
25
 
26
- loaded_model = PrunaProModel.from_hub(
27
  "PrunaAI/test-save-tiny-stable-diffusion-pipe-smashed-pro"
28
  )
 
29
  ```
30
 
31
- After loading the model, you can use the inference methods of the original model. Take a look at the [documentation](https://pruna.readthedocs.io/en/latest/index.html) for more usage information.
 
 
32
 
33
  ## Smash Configuration
34
 
@@ -43,6 +47,7 @@ The compression configuration of the model is stored in the `smash_config.json`
43
  "distributer": null,
44
  "enhancer": null,
45
  "factorizer": null,
 
46
  "pruner": null,
47
  "quantizer": null,
48
  "recoverer": null,
@@ -58,6 +63,7 @@ The compression configuration of the model is stored in the `smash_config.json`
58
  "pruner": null,
59
  "quantizer": null,
60
  "distiller": null,
 
61
  "cacher": null,
62
  "recoverer": null,
63
  "distributer": null,
@@ -74,4 +80,4 @@ The compression configuration of the model is stored in the `smash_config.json`
74
  [![GitHub](https://img.shields.io/github/followers/PrunaAI?label=Follow%20%40PrunaAI&style=social)](https://github.com/PrunaAI)
75
  [![LinkedIn](https://img.shields.io/badge/LinkedIn-Connect-blue)](https://www.linkedin.com/company/93832878/admin/feed/posts/?feedType=following)
76
  [![Discord](https://img.shields.io/badge/Discord-Join%20Us-blue?style=social&logo=discord)](https://discord.com/invite/rskEr4BZJx)
77
- [![Reddit](https://img.shields.io/reddit/subreddit-subscribers/PrunaAI?style=social)](https://www.reddit.com/r/PrunaAI/)
 
1
  ---
2
  library_name: diffusers
3
  tags:
4
+ - pruna_pro-ai
5
+ - safetensors
6
  ---
7
 
8
  # Model Card for PrunaAI/test-save-tiny-stable-diffusion-pipe-smashed-pro
 
14
  First things first, you need to install the pruna library:
15
 
16
  ```bash
17
+ pip install pruna_pro
18
  ```
19
 
20
  You can [use the diffusers library to load the model](https://huggingface.co/PrunaAI/test-save-tiny-stable-diffusion-pipe-smashed-pro?library=diffusers) but this might not include all optimizations by default.
 
22
  To ensure that all optimizations are applied, use the pruna library to load the model using the following code:
23
 
24
  ```python
25
+ from pruna_pro import PrunaProModel
26
 
27
+ loaded_model = PrunaProModel.from_pretrained(
28
  "PrunaAI/test-save-tiny-stable-diffusion-pipe-smashed-pro"
29
  )
30
+ # we can then run inference using the methods supported by the base model
31
  ```
32
 
33
+
34
+ For inference, you can use the inference methods of the original model like shown in [the original model card](https://huggingface.co/hf-internal-testing/tiny-stable-diffusion-pipe?library=diffusers).
35
+ Alternatively, you can visit [the Pruna documentation](https://docs.pruna.ai/en/stable/) for more information.
36
 
37
  ## Smash Configuration
38
 
 
47
  "distributer": null,
48
  "enhancer": null,
49
  "factorizer": null,
50
+ "kernel": null,
51
  "pruner": null,
52
  "quantizer": null,
53
  "recoverer": null,
 
63
  "pruner": null,
64
  "quantizer": null,
65
  "distiller": null,
66
+ "kernel": null,
67
  "cacher": null,
68
  "recoverer": null,
69
  "distributer": null,
 
80
  [![GitHub](https://img.shields.io/github/followers/PrunaAI?label=Follow%20%40PrunaAI&style=social)](https://github.com/PrunaAI)
81
  [![LinkedIn](https://img.shields.io/badge/LinkedIn-Connect-blue)](https://www.linkedin.com/company/93832878/admin/feed/posts/?feedType=following)
82
  [![Discord](https://img.shields.io/badge/Discord-Join%20Us-blue?style=social&logo=discord)](https://discord.com/invite/rskEr4BZJx)
83
+ [![Reddit](https://img.shields.io/reddit/subreddit-subscribers/PrunaAI?style=social)](https://www.reddit.com/r/PrunaAI/)
safety_checker/config.json CHANGED
@@ -1,4 +1,5 @@
1
  {
 
2
  "architectures": [
3
  "StableDiffusionSafetyChecker"
4
  ],
@@ -12,40 +13,28 @@
12
  "dropout": 0.1,
13
  "eos_token_id": 2,
14
  "gradient_checkpointing": false,
15
- "hidden_act": "quick_gelu",
16
  "hidden_size": 32,
17
- "initializer_factor": 1.0,
18
- "initializer_range": 0.02,
19
  "intermediate_size": 37,
20
- "layer_norm_eps": 1e-05,
21
  "max_position_embeddings": 512,
22
  "model_type": "clip_text_model",
23
  "num_attention_heads": 4,
24
  "num_hidden_layers": 5,
25
- "projection_dim": 512,
26
- "torch_dtype": "float32",
27
  "vocab_size": 99
28
  },
29
  "torch_dtype": "float32",
30
- "transformers_version": "4.53.3",
31
  "vision_config": {
 
32
  "attention_dropout": 0.1,
33
  "dropout": 0.1,
34
  "gradient_checkpointing": false,
35
- "hidden_act": "quick_gelu",
36
  "hidden_size": 32,
37
  "image_size": 30,
38
- "initializer_factor": 1.0,
39
- "initializer_range": 0.02,
40
  "intermediate_size": 37,
41
- "layer_norm_eps": 1e-05,
42
  "model_type": "clip_vision_model",
43
  "num_attention_heads": 4,
44
- "num_channels": 3,
45
  "num_hidden_layers": 5,
46
- "patch_size": 2,
47
- "projection_dim": 512,
48
- "torch_dtype": "float32"
49
  },
50
  "vocab_size": 1000
51
  }
 
1
  {
2
+ "_name_or_path": "/Users/davidberenstein/.cache/huggingface/hub/models--hf-internal-testing--tiny-stable-diffusion-pipe/snapshots/3ee6c9f225f088ad5d35b624b6514b091e6a4849/safety_checker",
3
  "architectures": [
4
  "StableDiffusionSafetyChecker"
5
  ],
 
13
  "dropout": 0.1,
14
  "eos_token_id": 2,
15
  "gradient_checkpointing": false,
 
16
  "hidden_size": 32,
 
 
17
  "intermediate_size": 37,
 
18
  "max_position_embeddings": 512,
19
  "model_type": "clip_text_model",
20
  "num_attention_heads": 4,
21
  "num_hidden_layers": 5,
 
 
22
  "vocab_size": 99
23
  },
24
  "torch_dtype": "float32",
25
+ "transformers_version": "4.48.0",
26
  "vision_config": {
27
+ "_attn_implementation_autoset": true,
28
  "attention_dropout": 0.1,
29
  "dropout": 0.1,
30
  "gradient_checkpointing": false,
 
31
  "hidden_size": 32,
32
  "image_size": 30,
 
 
33
  "intermediate_size": 37,
 
34
  "model_type": "clip_vision_model",
35
  "num_attention_heads": 4,
 
36
  "num_hidden_layers": 5,
37
+ "patch_size": 2
 
 
38
  },
39
  "vocab_size": 1000
40
  }
smash_config.json CHANGED
@@ -6,6 +6,7 @@
6
  "distributer": null,
7
  "enhancer": null,
8
  "factorizer": null,
 
9
  "pruner": null,
10
  "quantizer": null,
11
  "recoverer": null,
@@ -21,6 +22,7 @@
21
  "pruner": null,
22
  "quantizer": null,
23
  "distiller": null,
 
24
  "cacher": null,
25
  "recoverer": null,
26
  "distributer": null,
 
6
  "distributer": null,
7
  "enhancer": null,
8
  "factorizer": null,
9
+ "kernel": null,
10
  "pruner": null,
11
  "quantizer": null,
12
  "recoverer": null,
 
22
  "pruner": null,
23
  "quantizer": null,
24
  "distiller": null,
25
+ "kernel": null,
26
  "cacher": null,
27
  "recoverer": null,
28
  "distributer": null,
text_encoder/config.json CHANGED
@@ -1,4 +1,5 @@
1
  {
 
2
  "architectures": [
3
  "CLIPTextModel"
4
  ],
@@ -19,6 +20,6 @@
19
  "pad_token_id": 1,
20
  "projection_dim": 512,
21
  "torch_dtype": "float32",
22
- "transformers_version": "4.53.3",
23
  "vocab_size": 1000
24
  }
 
1
  {
2
+ "_name_or_path": "/Users/davidberenstein/.cache/huggingface/hub/models--hf-internal-testing--tiny-stable-diffusion-pipe/snapshots/3ee6c9f225f088ad5d35b624b6514b091e6a4849/text_encoder",
3
  "architectures": [
4
  "CLIPTextModel"
5
  ],
 
20
  "pad_token_id": 1,
21
  "projection_dim": 512,
22
  "torch_dtype": "float32",
23
+ "transformers_version": "4.48.0",
24
  "vocab_size": 1000
25
  }
unet/config.json CHANGED
@@ -1,7 +1,7 @@
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,
 
1
  {
2
  "_class_name": "UNet2DConditionModel",
3
  "_diffusers_version": "0.34.0",
4
+ "_name_or_path": "/Users/davidberenstein/.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.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,
 
1
  {
2
  "_class_name": "AutoencoderKL",
3
  "_diffusers_version": "0.34.0",
4
+ "_name_or_path": "/Users/davidberenstein/.cache/huggingface/hub/models--hf-internal-testing--tiny-stable-diffusion-pipe/snapshots/3ee6c9f225f088ad5d35b624b6514b091e6a4849/vae",
5
  "act_fn": "silu",
6
  "block_out_channels": [
7
  32,