community: update openvino doc with streaming support (#21519)

Co-authored-by: Chester Curme <chester.curme@gmail.com>
This commit is contained in:
Ethan Yang
2024-05-16 23:54:45 +08:00
committed by GitHub
parent 7022260bc5
commit e44b448ec3
2 changed files with 37 additions and 1 deletions

View File

@@ -212,7 +212,7 @@ class HuggingFacePipeline(BaseLLM):
cuda_device_count,
)
if device is not None and device_map is not None and backend == "openvino":
logger.warning("Please set device for OpenVINO through: " "'model_kwargs'")
logger.warning("Please set device for OpenVINO through: `model_kwargs`")
if "trust_remote_code" in _model_kwargs:
_model_kwargs = {
k: v for k, v in _model_kwargs.items() if k != "trust_remote_code"