Skip to content

Commit

Permalink
DOCS: unify package name usage across snippets in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-lavrenov committed Jan 9, 2025
1 parent 2c6d67e commit 5c43fea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ optimum-cli export openvino --model "TinyLlama/TinyLlama-1.1B-Chat-v1.0" --weigh
### Run generation using LLMPipeline API in Python

```python
import openvino_genai as ov_genai
import openvino_genai
#Will run model on CPU, GPU or NPU are possible options
pipe = ov_genai.LLMPipeline("./TinyLlama-1.1B-Chat-v1.0/", "CPU")
pipe = openvino_genai.LLMPipeline("./TinyLlama-1.1B-Chat-v1.0/", "CPU")
print(pipe.generate("The Sun is yellow because", max_new_tokens=100))
```

Expand Down Expand Up @@ -128,11 +128,11 @@ curl -O "https://storage.openvinotoolkit.org/test_data/images/dog.jpg"
```python
import numpy as np
import openvino as ov
import openvino_genai as ov_genai
import openvino_genai
from PIL import Image

# Choose GPU instead of CPU in the line below to run the model on Intel integrated or discrete GPU
pipe = ov_genai.VLMPipeline("./InternVL2-1B", "CPU")
pipe = openvino_genai.VLMPipeline("./InternVL2-1B", "CPU")
pipe.start_chat()

image = Image.open("dog.jpg")
Expand Down

0 comments on commit 5c43fea

Please sign in to comment.