types.go 358 Bytes
Newer Older
1
2
3
4
5
package gpu

// Beginning of an `ollama info` command
type GpuInfo struct {
	Driver      string `json:"driver,omitempty"`
6
	Library     string `json:"library,omitempty"`
7
8
9
10
11
	TotalMemory uint64 `json:"total_memory,omitempty"`
	FreeMemory  uint64 `json:"free_memory,omitempty"`

	// TODO add other useful attributes about the card here for discovery information
}