Skip to content

Commit abf2f6a

Browse files
committed
Remove vLLM x86_64 NVIDIA platform warning from pull compat check
1 parent 2ccfcab commit abf2f6a

3 files changed

Lines changed: 0 additions & 23 deletions

File tree

pkg/distribution/distribution/client.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"log/slog"
99
"os"
1010
"path/filepath"
11-
"slices"
1211
"strings"
1312

1413
"github.com/docker/model-runner/pkg/distribution/huggingface"
@@ -798,13 +797,6 @@ func checkCompat(image types.ModelArtifact, log *slog.Logger, reference string,
798797

799798
if config.GetFormat() == "" {
800799
log.Warn("Model format field is empty for , unable to verify format compatibility", "model", utils.SanitizeForLog(reference))
801-
} else if !slices.Contains(GetSupportedFormats(), config.GetFormat()) {
802-
// Write warning but continue with pull
803-
log.Warn(warnUnsupportedFormat)
804-
if err := progress.WriteWarning(progressWriter, warnUnsupportedFormat, oci.ModePull); err != nil {
805-
log.Warn("Failed to write warning message", "error", err)
806-
}
807-
// Don't return an error - allow the pull to continue
808800
}
809801

810802
return nil

pkg/distribution/distribution/client_test.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import (
2424
"github.com/docker/model-runner/pkg/distribution/oci/remote"
2525
mdregistry "github.com/docker/model-runner/pkg/distribution/registry"
2626
"github.com/docker/model-runner/pkg/distribution/registry/testregistry"
27-
"github.com/docker/model-runner/pkg/inference/platform"
2827
)
2928

3029
var (
@@ -434,25 +433,13 @@ func TestClientPullModel(t *testing.T) {
434433
t.Fatalf("Failed to create test client: %v", err)
435434
}
436435

437-
// Try to pull the safetensors model with a progress writer to capture warnings
438436
var progressBuf bytes.Buffer
439437
err = testClient.PullModel(t.Context(), testTag, &progressBuf)
440438

441-
// Pull should succeed on all platforms now (with a warning on non-Linux)
442439
if err != nil {
443440
t.Fatalf("Expected no error, got: %v", err)
444441
}
445442

446-
if !platform.SupportsVLLM() {
447-
// On non-Linux, verify that a warning was written
448-
progressOutput := progressBuf.String()
449-
if !strings.Contains(progressOutput, `"type":"warning"`) {
450-
t.Fatalf("Expected warning message on non-Linux platforms, got output: %s", progressOutput)
451-
}
452-
if !strings.Contains(progressOutput, warnUnsupportedFormat) {
453-
t.Fatalf("Expected warning about safetensors format, got output: %s", progressOutput)
454-
}
455-
}
456443
})
457444

458445
t.Run("pull with JSON progress messages", func(t *testing.T) {

pkg/distribution/distribution/errors.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,3 @@ var (
1818
)
1919
ErrConflict = errors.New("resource conflict")
2020
)
21-
22-
const warnUnsupportedFormat = "vLLM backend currently only implemented for x86_64 NVIDIA platforms"

0 commit comments

Comments
 (0)