You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to get the "token_embeddings" from a bge-base-en-v1.5 model, and converting it to numpy.ndarray but it was not functioning as expected.
Have a look at the screenshot below 👇
As a workaround, I was using .cpu().numpy() which was working.
Env:
sentence-transformers 3.3.1
Thanks! 😊
The text was updated successfully, but these errors were encountered:
bhavnicksm
changed the title
convert_to_numpy=True not working with output_as="token_embeddings"; returns torch.Tensor typeconvert_to_numpy=True not working with output_value="token_embeddings"; returns torch.Tensor type
Jan 22, 2025
Hey ST Team! 👋
I was trying to get the "token_embeddings" from a
bge-base-en-v1.5
model, and converting it tonumpy.ndarray
but it was not functioning as expected.Have a look at the screenshot below 👇
As a workaround, I was using
.cpu().numpy()
which was working.Env:
Thanks! 😊
The text was updated successfully, but these errors were encountered: