Skip to content

Commit 1e5411d

Browse files
authored
Update py_openvino_genai.pyi
1 parent 4d3ff30 commit 1e5411d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/python/openvino_genai/py_openvino_genai.pyi

+6
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ class Adapter:
2121
Immutable LoRA Adapter that carries the adaptation matrices and serves as unique adapter identifier.
2222
path (os.PathLike): Path to adapter file in safetensors format.
2323
"""
24+
@typing.overload
25+
def __init__(self, safetensor: openvino._pyopenvino.Tensor) -> None:
26+
"""
27+
Immutable LoRA Adapter that carries the adaptation matrices and serves as unique adapter identifier.
28+
safetensor (ov.Tensor): Pre-read LoRA Adapter safetensor.
29+
"""
2430
class AdapterConfig:
2531
"""
2632
Adapter config that defines a combination of LoRA adapters with blending parameters.

0 commit comments

Comments
 (0)