-
Notifications
You must be signed in to change notification settings - Fork 12k
common : use common_ prefix for common library functions #9805
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
Conversation
09ee5f9
to
4f7e4b5
Compare
There are probably other functions that should be renamed as well - this was just a quick pass over |
Yes, this is a good change. |
Should I also rename the |
Yes, along with the structs and enums (e.g. |
13b4249
to
3c0b862
Compare
1f1d6f4
to
6ea0304
Compare
common/common.h
Outdated
struct common_init_result common_init_from_common_params(common_params & params); | ||
|
||
struct llama_model_params llama_model_params_from_gpt_params (const gpt_params & params); | ||
struct llama_context_params llama_context_params_from_gpt_params (const gpt_params & params); | ||
struct llama_model_params common_model_params_from_common_params (const common_params & params); | ||
struct llama_context_params common_context_params_from_common_params(const common_params & params); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These functions may need better names now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
common_init_from_common_params
-> common_init_from_params
Maybe:
common_model_params_from_common_params
-> common_model_params_to_llama
common_context_params_from_common_params
-> common_context_params_to_llama
* common : use common_ prefix for common library functions --------- Co-authored-by: Georgi Gerganov <[email protected]>
* common : use common_ prefix for common library functions --------- Co-authored-by: Georgi Gerganov <[email protected]>
* common : use common_ prefix for common library functions --------- Co-authored-by: Georgi Gerganov <[email protected]>
Prefix common library functions with
common_
instead ofllama_
to make it clear that these functions do not belong to the base API.