[Bugfix] Skip gs:// model paths for speculator detection (#27846)

Signed-off-by: Peter Schuurman <psch@google.com>
This commit is contained in:
pwschuurman
2025-11-03 06:31:03 -08:00
committed by GitHub
parent 294c805f1d
commit f7d2946e99
3 changed files with 39 additions and 5 deletions

View File

@@ -19,6 +19,14 @@ def is_s3(model_or_path: str) -> bool:
return model_or_path.lower().startswith("s3://")
def is_gcs(model_or_path: str) -> bool:
return model_or_path.lower().startswith("gs://")
def is_cloud_storage(model_or_path: str) -> bool:
return is_s3(model_or_path) or is_gcs(model_or_path)
def check_gguf_file(model: str | PathLike) -> bool:
"""Check if the file is a GGUF model."""
model = Path(model)