yujiepan commited on
Commit
dc1ca42
·
1 Parent(s): c6f881b

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +31 -0
README.md ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: diffusers
3
+ base_model: runwayml/stable-diffusion-v1-5
4
+ tags:
5
+ - text-to-image
6
+ license: creativeml-openrail-m
7
+ inference: true
8
+ ---
9
+
10
+ ## yujiepan/dreamshaper-8-lcm-openvino-w8a8
11
+
12
+ This model:
13
+ 1. applies [latent-consistency/lcm-lora-sdv1-5](https://huggingface.co/latent-consistency/lcm-lora-sdv1-5)
14
+ on base model [Lykon/dreamshaper-8](https://huggingface.co/Lykon/dreamshaper-8);
15
+ 2. conducts W8A8 post-training quantization on unet model;
16
+ 3. converts other models (text encoder & vae) in FP16;
17
+ 5. and is finally converted as OpenVINO model.
18
+
19
+ #### Usage
20
+
21
+ ```python
22
+ from optimum.intel.openvino.modeling_diffusion import OVStableDiffusionPipeline
23
+ pipeline = OVStableDiffusionPipeline.from_pretrained(
24
+ 'yujiepan/dreamshaper-8-lcm-openvino-w8a8',
25
+ device='CPU',
26
+ )
27
+ prompt = 'cute dog typing at a laptop, 4k, details'
28
+ images = pipeline(prompt=prompt, num_inference_steps=8, guidance_scale=1.0).images
29
+ ```
30
+
31
+ ![output image](./assets/cute-dog-typing-at-a-laptop-4k-details.png)