Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4084aab

Browse files
committed
fix: set default pooling type to unspecified
1 parent d318cc8 commit 4084aab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama_cpp/llama.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def __init__(
7979
n_threads: Optional[int] = None,
8080
n_threads_batch: Optional[int] = None,
8181
rope_scaling_type: Optional[int] = llama_cpp.LLAMA_ROPE_SCALING_TYPE_UNSPECIFIED,
82-
pooling_type: int = llama_cpp.LLAMA_POOLING_TYPE_MEAN,
82+
pooling_type: int = llama_cpp.LLAMA_POOLING_TYPE_UNSPECIFIED,
8383
rope_freq_base: float = 0.0,
8484
rope_freq_scale: float = 0.0,
8585
yarn_ext_factor: float = -1.0,

0 commit comments

Comments
 (0)