types.go 394 B

123456789101112131415
  1. package gpu
  2. type memInfo struct {
  3. TotalMemory uint64 `json:"total_memory,omitempty"`
  4. FreeMemory uint64 `json:"free_memory,omitempty"`
  5. DeviceCount uint32 `json:"device_count,omitempty"`
  6. }
  7. // Beginning of an `ollama info` command
  8. type GpuInfo struct {
  9. memInfo
  10. Library string `json:"library,omitempty"`
  11. // TODO add other useful attributes about the card here for discovery information
  12. }