mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-08-01 07:42:40 +00:00
replit: free metal context
This commit is contained in:
parent
3599663a22
commit
137bc2c367
@ -904,6 +904,11 @@ int32_t Replit::threadCount() const
|
||||
|
||||
Replit::~Replit()
|
||||
{
|
||||
#ifdef GGML_USE_METAL
|
||||
if (d_ptr->model->ctx_metal) {
|
||||
ggml_metal_free(d_ptr->model->ctx_metal);
|
||||
}
|
||||
#endif
|
||||
if(d_ptr->model->ctx) {
|
||||
ggml_free(d_ptr->model->ctx);
|
||||
d_ptr->model->ctx = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user