types.go 342 Bytes
Newer Older
1
2
package gpu

3
type memInfo struct {
4
5
	TotalMemory uint64 `json:"total_memory,omitempty"`
	FreeMemory  uint64 `json:"free_memory,omitempty"`
6
7
8
9
10
11
}

// Beginning of an `ollama info` command
type GpuInfo struct {
	memInfo
	Library string `json:"library,omitempty"`
12
13
14

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