katuni4ka commited on
Commit
9e26347
1 Parent(s): 5c6ef46

Update model card

Browse files
Files changed (1) hide show
  1. README.md +12 -12
README.md CHANGED
@@ -2,7 +2,7 @@
2
  license: mit
3
  ---
4
 
5
- # LCM_Dreamshaper_v7-fp16-ov
6
 
7
  * Model creator: [SimianLuo](https://huggingface.co/SimianLuo)
8
  * Original model: [SimianLuo/LCM_Dreamshaper_v7](https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7)
@@ -39,21 +39,21 @@ pip install optimum[openvino]
39
  2. Run model inference:
40
 
41
  ```
42
- from transformers import AutoTokenizer
43
- from optimum.intel.openvino import OVModelForCausalLM
44
 
45
- model_id = "OpenVINO/LCM_Dreamshaper_v7-fp16-ov"
46
- tokenizer = AutoTokenizer.from_pretrained(model_id)
47
- model = OVModelForCausalLM.from_pretrained(model_id)
48
 
49
- inputs = tokenizer("What is OpenVINO?", return_tensors="pt")
50
-
51
- outputs = model.generate(**inputs, max_length=200)
52
- text = tokenizer.batch_decode(outputs)[0]
53
- print(text)
54
  ```
55
 
56
- For more examples and possible optimizations, refer to the [OpenVINO Large Language Model Inference Guide](https://docs.openvino.ai/2024/learn-openvino/llm_inference_guide.html).
 
 
 
 
 
57
 
58
  ## Legal information
59
 
 
2
  license: mit
3
  ---
4
 
5
+ # LCM_Dreamshaper_v7-int8-ov
6
 
7
  * Model creator: [SimianLuo](https://huggingface.co/SimianLuo)
8
  * Original model: [SimianLuo/LCM_Dreamshaper_v7](https://huggingface.co/SimianLuo/LCM_Dreamshaper_v7)
 
39
  2. Run model inference:
40
 
41
  ```
42
+ from optimum.intel.openvino import OVStableDiffusionPipeline
 
43
 
44
+ model_id = "OpenVINO/LCM_Dreamshaper_v7-int8-ov"
45
+ pipeline = OVStableDiffusionPipeline.from_pretrained(model_id)
 
46
 
47
+ prompt = "sailing ship in storm by Rembrandt"
48
+ images = pipeline(prompt, num_inference_steps=4).images
 
 
 
49
  ```
50
 
51
+ ## Usage examples
52
+
53
+ * [OpenVINO notebooks](https://github.com/openvinotoolkit/openvino_notebooks):
54
+ - [Latent Consistency Model using Optimum-Intel OpenVINO](https://github.com/openvinotoolkit/openvino_notebooks/blob/latest/notebooks/latent-consistency-models-image-generation/latent-consistency-models-optimum-demo.ipynb)
55
+ * [OpenVINO GenAI](https://github.com/openvinotoolkit/openvino.genai):
56
+ - [C++ image generation pipeline](https://github.com/openvinotoolkit/openvino.genai/tree/master/image_generation/lcm_dreamshaper_v7/cpp)
57
 
58
  ## Legal information
59