Skip to content

Commit 6b267da

Browse files
committed
Don't show "Setting context size to -1"
If no context is specified in the Compose YAML, then don't display that we're setting it to the default (-1), because we're not. Also, leave the "Initializing model runner..." message in place until done. Signed-off-by: Jacob Howard <jacob.howard@docker.com>
1 parent 1dee910 commit 6b267da

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 && ctxSize != 4096 {
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)