-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Why llama model doesn't support input_emmbedings, what's the consideration here? #419
Comments
The embedding exists in mlc-llm/mlc_llm/relax_model/llama.py Lines 436 to 438 in e366975
|
yes,i see. And actually many llm model can accept both input_ids & input_emmbedings. So that developers can customize the input emmbeding by prompt tuning, which can enhance the performance of the model under specific domain. |
Maybe related to #408 ? |
Hi, now llama model supports input embeddings in the prefilling stage. Currently we have exposed the API |
❓ General Questions
In llama.py, Model LlamaForCausalLM#forward() doesn't support input_emmbedings, what's the consideration here?
The text was updated successfully, but these errors were encountered: