diff --git a/gpustack/utils/hub.py b/gpustack/utils/hub.py index 4e2581f..32b7db6 100644 --- a/gpustack/utils/hub.py +++ b/gpustack/utils/hub.py @@ -49,6 +49,9 @@ def calculate_file_size( selected_files = [] extra_files = [] + if not filename: + return sum(f.size for f in files if getattr(f, 'size', None) is not None) + for sibling in files: if sibling.size is None: continue