88 "log/slog"
99 "os"
1010 "path/filepath"
11- "slices"
1211 "strings"
1312
1413 "github.com/docker/model-runner/pkg/distribution/huggingface"
@@ -22,7 +21,6 @@ import (
2221 "github.com/docker/model-runner/pkg/distribution/registry"
2322 "github.com/docker/model-runner/pkg/distribution/tarball"
2423 "github.com/docker/model-runner/pkg/distribution/types"
25- "github.com/docker/model-runner/pkg/inference/platform"
2624 "github.com/docker/model-runner/pkg/internal/utils"
2725)
2826
@@ -774,13 +772,6 @@ func (c *Client) GetBundle(ref string) (types.ModelBundle, error) {
774772 return c .store .BundleForModel (normalizedRef )
775773}
776774
777- func GetSupportedFormats () []types.Format {
778- if platform .SupportsVLLM () {
779- return []types.Format {types .FormatGGUF , types .FormatSafetensors , types .FormatDiffusers }
780- }
781- return []types.Format {types .FormatGGUF , types .FormatDiffusers }
782- }
783-
784775func checkCompat (image types.ModelArtifact , log * slog.Logger , reference string , progressWriter io.Writer ) error {
785776 manifest , err := image .Manifest ()
786777 if err != nil {
@@ -797,14 +788,7 @@ func checkCompat(image types.ModelArtifact, log *slog.Logger, reference string,
797788 }
798789
799790 if config .GetFormat () == "" {
800- 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
791+ log .Warn ("Model format field is empty; unable to verify format compatibility" , "model" , utils .SanitizeForLog (reference ))
808792 }
809793
810794 return nil
0 commit comments