types.go 342 B

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