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 try to transform a string into input llama2-specific and llama3-specific input in the function completion_to_prompt()
Is there a way to pass parameter model_option as a input? or else, I should use a global variable to let the function know which model is using?
As the completion_to_prompt function only accepts the completion and an optional system_prompt as parameters like completion_to_prompt in llama_index.llms.llama_cpp.llama_utils, you can specify the model type by using a global variable.
I try to transform a string into input llama2-specific and llama3-specific input in the function
completion_to_prompt()
Is there a way to pass parameter model_option as a input? or else, I should use a global variable to let the function know which model is using?
Refer to:
https://llama.meta.com/docs/model-cards-and-prompt-formats/meta-llama-3/
https://llama.meta.com/docs/model-cards-and-prompt-formats/meta-llama-2/
The text was updated successfully, but these errors were encountered: