katuni4ka pavel-esir commited on
Commit
d01e8d8
1 Parent(s): 4361cc9

Add max_length (#1)

Browse files

- Add max_length (435d4709aa68167f830cf5c856ca92bebf402f97)


Co-authored-by: Pavel Esir <[email protected]>

Files changed (1) hide show
  1. README.md +1 -1
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)