mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-06 02:50:36 +00:00
gpt4all-backend: Add llmodel create and destroy functions (#554)
* Add llmodel create and destroy functions * Fix capitalization * Fix capitalization * Fix capitalization * Update CMakeLists.txt --------- Co-authored-by: kuvaus <kuvaus@users.noreply.github.com>
This commit is contained in:
@@ -95,6 +95,22 @@ llmodel_model llmodel_llama_create();
|
||||
*/
|
||||
void llmodel_llama_destroy(llmodel_model llama);
|
||||
|
||||
/**
|
||||
* Create a llmodel instance.
|
||||
* Recognises correct model type from file at model_path
|
||||
* @param model_path A string representing the path to the model file.
|
||||
* @return A pointer to the llmodel_model instance.
|
||||
*/
|
||||
llmodel_model llmodel_model_create(const char *model_path);
|
||||
|
||||
/**
|
||||
* Destroy a llmodel instance.
|
||||
* Recognises correct model type using type info
|
||||
* @param model a pointer to a llmodel_model instance.
|
||||
*/
|
||||
void llmodel_model_destroy(llmodel_model model);
|
||||
|
||||
|
||||
/**
|
||||
* Load a model from a file.
|
||||
* @param model A pointer to the llmodel_model instance.
|
||||
|
Reference in New Issue
Block a user