download

Contents

download#

stable_pretraining.data.download(url, dest_folder, backend='filesystem', cache_dir='~/.stable_pretraining/', progress_bar=True, _progress_dict=None, _task_id=None)[source]#

Download a file from a URL with progress tracking.

Parameters:
  • url – URL to download from

  • dest_folder – Destination folder for the download

  • backend – Storage backend type

  • cache_dir – Cache directory path

  • progress_bar – Whether to show progress bar

  • _progress_dict – Internal dictionary for progress tracking

  • _task_id – Internal task ID for bulk downloads

Returns:

Path to the downloaded file or None if download failed