Replies: 1 comment
|
Not through Generation in llama.cpp starts from token ids. The model looks up What you can do for research:
If the project is "perturb the prompt embedding and generate," use a non-GGUF path. If it is "GGUF only," you are looking at a small C extension, not a flag on |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Is there a way to use an embedding as input to generate text?
I'm working on a research project for which I would like to obtain the embedding of a prompt using
Llama.embed(), modify it in some way, and then use this modified embedding to generate further text.As I understand it, the embedding is just the state of the last hidden layer of the network. So in theory this should be possible to do.
I'm currently using
mistral-7b-openorca.Q4_K_M.All reactions