katuni4ka pavel-esir commited on
Commit
bac693a
·
verified ·
1 Parent(s): 254573c

Add max_length (#1)

Browse files

- Add max_length (e763cf898d64dc650f39a27769ee44bbd0cf4979)


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

Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -73,7 +73,7 @@ import openvino_genai as ov_genai
73
 
74
  device = "CPU"
75
  pipe = ov_genai.LLMPipeline(model_path, device)
76
- print(pipe.generate("What is OpenVINO?"))
77
  ```
78
 
79
  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)
 
73
 
74
  device = "CPU"
75
  pipe = ov_genai.LLMPipeline(model_path, device)
76
+ print(pipe.generate("What is OpenVINO?", max_length=200))
77
  ```
78
 
79
  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)