Skip to content

Commit 3d8fa44

Browse files
authored
Merge pull request docker#96 from docker/ctx-status
Don't show "Setting context size to -1"
2 parents 1dee910 + 1e1469f commit 3d8fa44

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

cmd/cli/commands/compose.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,6 @@ func newUpCommand() *cobra.Command {
4141
}
4242

4343
sendInfo("Initializing model runner...")
44-
if ctxSize != 4096 {
45-
sendInfo(fmt.Sprintf("Setting context size to %d", ctxSize))
46-
}
47-
if rawRuntimeFlags != "" {
48-
sendInfo("Setting raw runtime flags to " + rawRuntimeFlags)
49-
}
50-
5144
kind := modelRunner.EngineKind()
5245
standalone, err := ensureStandaloneRunnerAvailable(cmd.Context(), nil)
5346
if err != nil {
@@ -63,6 +56,13 @@ func newUpCommand() *cobra.Command {
6356
return err
6457
}
6558

59+
if ctxSize > 0 {
60+
sendInfo(fmt.Sprintf("Setting context size to %d", ctxSize))
61+
}
62+
if rawRuntimeFlags != "" {
63+
sendInfo("Setting raw runtime flags to " + rawRuntimeFlags)
64+
}
65+
6666
for _, model := range models {
6767
if err := desktopClient.ConfigureBackend(scheduling.ConfigureRequest{
6868
Model: model,

0 commit comments

Comments
 (0)