Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3a23829

Browse filesBrowse files
iamlemecabetlen
andauthored
Remove duplicate definition of llama_get_embeddings_seq
Co-authored-by: Andrei <abetlen@gmail.com>
1 parent 4073532 commit 3a23829
Copy full SHA for 3a23829

File tree

Expand file treeCollapse file tree

1 file changed

+0
-16
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-16
lines changed

‎llama_cpp/llama_cpp.py

Copy file name to clipboardExpand all lines: llama_cpp/llama_cpp.py
-16Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1803,22 +1803,6 @@ def llama_get_embeddings_ith(
18031803
...
18041804

18051805

1806-
# // Get the embeddings for sequence seq_id
1807-
# // shape: [n_embd] (1-dimensional)
1808-
# LLAMA_API float * llama_get_embeddings_seq(struct llama_context * ctx, llama_seq_id seq_id);
1809-
@ctypes_function(
1810-
"llama_get_embeddings_seq",
1811-
[llama_context_p_ctypes, ctypes.c_int32],
1812-
ctypes.POINTER(ctypes.c_float),
1813-
)
1814-
def llama_get_embeddings_seq(
1815-
ctx: llama_context_p, i: Union[ctypes.c_int32, int], /
1816-
) -> CtypesArray[ctypes.c_float]:
1817-
"""Get the embeddings for sequence seq_id
1818-
shape: [n_embd] (1-dimensional)"""
1819-
...
1820-
1821-
18221806
# // Get the embeddings for a sequence id
18231807
# // Returns NULL if pooling_type is LLAMA_POOLING_TYPE_NONE
18241808
# // shape: [n_embd] (1-dimensional)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.