Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/chronos/boto_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import logging
import os
import re
import warnings
from pathlib import Path

import boto3
Expand Down Expand Up @@ -110,6 +111,12 @@ def cache_model_from_s3(

# Use CloudFront CDN for faster, cached downloads if available
if cloudfront_url:
warnings.warn(
f"Loading {s3_uri} from CloudFront is deprecated and will be removed in a future version. "
f'Please specify a HuggingFace model_id instead. For example: Chronos2Pipeline.from_pretrained("amazon/chronos-2")',
category=FutureWarning,
stacklevel=3,
)
try:
download_model_files_from_cloudfront(
cloudfront_url=cloudfront_url,
Expand Down