pavel-esir
commited on
Commit
•
435d470
1
Parent(s):
4361cc9
Add max_length
Browse files
README.md
CHANGED
@@ -84,7 +84,7 @@ import openvino_genai as ov_genai
|
|
84 |
|
85 |
device = "CPU"
|
86 |
pipe = ov_genai.LLMPipeline(model_path, device)
|
87 |
-
print(pipe.generate("What is OpenVINO?"))
|
88 |
```
|
89 |
|
90 |
More GenAI usage examples can be found in OpenVINO GenAI library [docs](https://github.com/openvinotoolkit/openvino.genai/blob/master/src/README.md) and [samples](https://github.com/openvinotoolkit/openvino.genai?tab=readme-ov-file#openvino-genai-samples)
|
|
|
84 |
|
85 |
device = "CPU"
|
86 |
pipe = ov_genai.LLMPipeline(model_path, device)
|
87 |
+
print(pipe.generate("What is OpenVINO?", max_length=200))
|
88 |
```
|
89 |
|
90 |
More GenAI usage examples can be found in OpenVINO GenAI library [docs](https://github.com/openvinotoolkit/openvino.genai/blob/master/src/README.md) and [samples](https://github.com/openvinotoolkit/openvino.genai?tab=readme-ov-file#openvino-genai-samples)
|