resolveGPU normalizes a user-provided GPU string.
(raw string)
| 164 | |
| 165 | // resolveGPU normalizes a user-provided GPU string. |
| 166 | func resolveGPU(raw string) (string, bool) { |
| 167 | raw = strings.ToLower(raw) |
| 168 | gpuMap := map[string]string{"a6000": "a6000", "a100": "a100xl", "h100": "h100"} |
| 169 | canonical, ok := gpuMap[raw] |
| 170 | if !ok { |
| 171 | return "", false |
| 172 | } |
| 173 | return canonical, true |
| 174 | } |
| 175 | |
| 176 | // trySkipCurrentStep is the core hybrid-mode method. It loops forward through |
| 177 | // steps, auto-filling each one from presets if the preset value is valid given |