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], /
)
| 3265 | ctypes.POINTER(ctypes.c_float), |
| 3266 | ) |
| 3267 | def 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. |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…