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:
kuvaus
2023-05-16 18:36:46 +03:00
committed by GitHub
parent 507e913faf
commit 3cb6dd7a66
3 changed files with 42 additions and 1 deletions

View File

@@ -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.