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

Method getCurrentGPUCursorPosition

tui/modify.go:492–501  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

490}
491
492func (m modifyModel) getCurrentGPUCursorPosition() int {
493 currentGPU := strings.ToLower(m.currentInstance.GPUType)
494 gpuOptions := m.specs.GPUOptions()
495 for i, gpu := range gpuOptions {
496 if gpu == currentGPU {
497 return i
498 }
499 }
500 return 0
501}
502
503func (m modifyModel) formatGPUType(gpuType string) string {
504 return utils.FormatGPUType(gpuType)

Callers 2

NewModifyModelFunction · 0.95
initModifyStepMethod · 0.95

Calls 1

GPUOptionsMethod · 0.80

Tested by

no test coverage detected