Skip to content

Commit 5a635f4

Browse files
committed
fix(minor): Fix type hint for older versions of python
1 parent 51dce74 commit 5a635f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llama_cpp/llama.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ def __init__(
9292
embedding: bool = False,
9393
offload_kqv: bool = True,
9494
flash_attn: bool = False,
95-
op_offloat: bool | None = None,
96-
swa_full: bool | None = None,
95+
op_offloat: Optional[bool] = None,
96+
swa_full: Optional[bool] = None,
9797
# Sampling Params
9898
no_perf: bool = False,
9999
last_n_tokens_size: int = 64,

0 commit comments

Comments
 (0)