Files
ollama/ml/backend2.go
Michael Yang 2d7e8e82ab tmp
2025-04-02 16:58:04 -07:00

26 lines
273 B
Go

package ml
import (
"context"
"github.com/ollama/ollama/fs"
)
type Device int
const (
CPU Device = iota
GPU
)
type Backend2 interface {
Close()
NewContext() Context
Scheduler() Scheduler
Get(fs.TensorReader, Device) Tensor
LoadAll(context.Context) error
}