MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / StorageRange

Method StorageRange

utils/spec_store.go:172–178  ·  view source on GitHub ↗

StorageRange returns the min/max storage for a configuration.

(gpuType string, numGPUs int)

Source from the content-addressed store, hash-verified

170
171// StorageRange returns the min/max storage for a configuration.
172func (s *SpecStore) StorageRange(gpuType string, numGPUs int) (int, int) {
173 spec := s.Lookup(gpuType, numGPUs)
174 if spec == nil {
175 return 100, 1000
176 }
177 return spec.StorageGB.Min, spec.StorageGB.Max
178}
179
180// NormalizeGPUType maps user-friendly GPU names to canonical names,
181// validated against available specs.

Callers 8

TestStorageRangeFunction · 0.80
trySkipCurrentStepMethod · 0.80
handleEnterMethod · 0.80
defaultDiskSizeGBMethod · 0.80
trySkipCurrentStepMethod · 0.80
handleEnterMethod · 0.80
validateCreateConfigFunction · 0.80

Calls 1

LookupMethod · 0.95

Tested by 1

TestStorageRangeFunction · 0.64