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'm looking for an example of how to use both tokens and embedding as input for llama_decode.
I want to get an embedding of some sentence, and then prompt the model with the embedding and a question to make it answer based on the embedding.
Example pseudo-code:
constauto embedding = get_embedding_for("The best thing is Math");
constauto response = prompt("Fact:", embedding, "\nExplain what the fact is");
I tried looking at the way the llava example embeds an image but I couldn't replicate it with textual (tokens) embedding.
Is it possible to do?
Or is using embedding like that unique for multimodal models?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm looking for an example of how to use both tokens and embedding as input for
llama_decode
.I want to get an embedding of some sentence, and then prompt the model with the embedding and a question to make it answer based on the embedding.
Example pseudo-code:
I tried looking at the way the llava example embeds an image but I couldn't replicate it with textual (tokens) embedding.
Is it possible to do?
Or is using embedding like that unique for multimodal models?
Beta Was this translation helpful? Give feedback.
All reactions