Jingya HF staff commited on
Commit
f1b728e
1 Parent(s): 6a1b895

Create stable-diffusion.json

Browse files

Config for populating sd model cache

inference-cache-config/stable-diffusion.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "runwayml/stable-diffusion-v1-5": [
3
+ { "inference_type": "stable-diffusion", "task": "stable-diffusion", "batch_size": 1, "height": 512, "width": 512, "num_images_per_prompt": 1, "auto_cast": "matmul", "auto_cast_type": "bf16" },
4
+ { "inference_type": "stable-diffusion", "task": "stable-diffusion", "batch_size": 1, "height": 768, "width": 768, "num_images_per_prompt": 1, "auto_cast": "matmul", "auto_cast_type": "bf16" }
5
+ ],
6
+ "stabilityai/stable-diffusion-2-1": [
7
+ { "inference_type": "stable-diffusion", "task": "stable-diffusion", "batch_size": 1, "height": 512, "width": 512, "num_images_per_prompt": 1, "auto_cast": "matmul", "auto_cast_type": "bf16" },
8
+ { "inference_type": "stable-diffusion", "task": "stable-diffusion", "batch_size": 1, "height": 768, "width": 768, "num_images_per_prompt": 1, "auto_cast": "matmul", "auto_cast_type": "bf16" }
9
+ ],
10
+ "stabilityai/stable-diffusion-xl-base-1.0": [
11
+ { "inference_type": "stable-diffusion", "task": "stable-diffusion-xl", "batch_size": 1, "height": 768, "width": 768, "num_images_per_prompt": 1, "auto_cast": "matmul", "auto_cast_type": "bf16" },
12
+ { "inference_type": "stable-diffusion", "task": "stable-diffusion-xl", "batch_size": 1, "height": 1024, "width": 1024, "num_images_per_prompt": 1, "auto_cast": "matmul", "auto_cast_type": "bf16" }
13
+ ],
14
+ "stabilityai/stable-diffusion-xl-refiner-1.0": [
15
+ { "inference_type": "stable-diffusion", "task": "stable-diffusion-xl", "batch_size": 1, "height": 768, "width": 768, "num_images_per_prompt": 1, "auto_cast": "matmul", "auto_cast_type": "bf16" },
16
+ { "inference_type": "stable-diffusion", "task": "stable-diffusion-xl", "batch_size": 1, "height": 1024, "width": 1024, "num_images_per_prompt": 1, "auto_cast": "matmul", "auto_cast_type": "bf16" }
17
+ ],
18
+ "stabilityai/sdxl-turbo": [
19
+ { "inference_type": "stable-diffusion", "task": "stable-diffusion-xl", "batch_size": 1, "height": 768, "width": 768, "num_images_per_prompt": 1, "auto_cast": "matmul", "auto_cast_type": "bf16" },
20
+ { "inference_type": "stable-diffusion", "task": "stable-diffusion-xl", "batch_size": 1, "height": 1024, "width": 1024, "num_images_per_prompt": 1, "auto_cast": "matmul", "auto_cast_type": "bf16" }
21
+ ]
22
+ }