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