Skip to content

Commit 1ab1ead

Browse files
committed
fix(client): remove unsupported model format checks for Safetensors
1 parent b244c89 commit 1ab1ead

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

pkg/distribution/distribution/client.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -409,15 +409,5 @@ func checkCompat(image types.ModelArtifact) error {
409409
return fmt.Errorf("config type %q is unsupported: %w", manifest.Config.MediaType, ErrUnsupportedMediaType)
410410
}
411411

412-
// Check if the model format is supported
413-
config, err := image.Config()
414-
if err != nil {
415-
return fmt.Errorf("reading model config: %w", err)
416-
}
417-
418-
if config.Format == types.FormatSafetensors {
419-
return ErrUnsupportedFormat
420-
}
421-
422412
return nil
423413
}

0 commit comments

Comments
 (0)