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

Function NewCreateModelWithPresets

tui/create.go:122–127  ·  view source on GitHub ↗

NewCreateModelWithPresets creates a createModel with pre-filled values from CLI flags.

(client *api.Client, specs *utils.SpecStore, presets *CreatePresets)

Source from the content-addressed store, hash-verified

120
121// NewCreateModelWithPresets creates a createModel with pre-filled values from CLI flags.
122func NewCreateModelWithPresets(client *api.Client, specs *utils.SpecStore, presets *CreatePresets) createModel {
123 m := NewCreateModel(client, specs)
124 m.presets = presets
125 m.trySkipCurrentStep()
126 return m
127}
128
129func defaultCreateDiskSizeForGPUCount(numGPUs int) int {
130 if numGPUs <= 0 {

Callers 1

RunCreateHybridFunction · 0.85

Calls 2

NewCreateModelFunction · 0.85
trySkipCurrentStepMethod · 0.45

Tested by

no test coverage detected