MCPcopy Create free account
hub / github.com/abetlen/llama-cpp-python / llama_get_embeddings_seq

Function llama_get_embeddings_seq

llama_cpp/llama_cpp.py:3267–3273  ·  view source on GitHub ↗

Get the embeddings for a sequence id Returns NULL if pooling_type is LLAMA_POOLING_TYPE_NONE shape: [n_embd] (1-dimensional)

(
    ctx: llama_context_p, seq_id: Union[llama_seq_id, int], /
)

Source from the content-addressed store, hash-verified

3265 ctypes.POINTER(ctypes.c_float),
3266)
3267def llama_get_embeddings_seq(
3268 ctx: llama_context_p, seq_id: Union[llama_seq_id, int], /
3269) -> CtypesArray[ctypes.c_float]:
3270 """Get the embeddings for a sequence id
3271 Returns NULL if pooling_type is LLAMA_POOLING_TYPE_NONE
3272 shape: [n_embd] (1-dimensional)"""
3273 ...
3274
3275
3276# // Get the backend sampled token for the ith token.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…