Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
backend: Don't return an error on Close
Jesse Gross7e13f568dc63
diff --git a/ml/backend.go b/ml/backend.goindex 855ca245e..2bf3e8540 100644--- a/ml/backend.go+++ b/ml/backend.go@@ -50,7 +50,7 @@ type Context interface {Forward(Tensor)Compute(Tensor) Tensor- Close() error+ Close()}type Tensor interface {diff --git a/ml/backend/ggml/ggml.go b/ml/backend/ggml/ggml.goindex 8274f3ebb..d34fef3a6 100644--- a/ml/backend/ggml/ggml.go+++ b/ml/backend/ggml/ggml.go@@ -306,10 +306,9 @@ func (c Context) FromIntSlice(s []int32, shape ...int) (ml.Tensor, error) {return fromSlice(c, s, shape, C.GGML_TYPE_I32)}-func (c *Context) Close() error {+func (c *Context) Close() {C.ggml_backend_sched_free(c.sched)C.ggml_free(c.ctx)- return nil}type Tensor struct {