Skip to content

Commit

Permalink
fix: Remove duplicate pooling_type definition and add misisng n_vocab…
Browse files Browse the repository at this point in the history
… definition in bindings
  • Loading branch information
abetlen committed Apr 26, 2024
1 parent f6ed21f commit 173ebc7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions llama_cpp/llama_cpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1189,12 +1189,6 @@ def llama_rope_type(model: llama_model_p, /) -> int:
...


# LLAMA_API enum llama_pooling_type llama_pooling_type(const struct llama_model * model);
@ctypes_function("llama_pooling_type", [llama_model_p_ctypes], ctypes.c_int)
def llama_pooling_type(model: llama_model_p, /) -> int:
...


# LLAMA_API int32_t llama_n_vocab (const struct llama_model * model);
@ctypes_function("llama_n_vocab", [llama_model_p_ctypes], ctypes.c_int32)
def llama_n_vocab(model: llama_model_p, /) -> int:
Expand Down

0 comments on commit 173ebc7

Please sign in to comment.