Any way to limit upload speeds?
hf_transfer is SO efficient that it actually completely clogs my bandwidth and makes me unable to maintain SSH connections.. Is there any way we can add a cap on up/download speeds? I know probably a niche request..
Try playing around w/ the max_files parameter. max_files controls the # of concurrent downloads, so reducing that should reduce bandwidth.
Lmk if that works for you and feel free to close the issue if so :)
thank you i'll give that a shot! Is it possible to pass this parameter when using huggingface-cli with the HF_HUB_ENABLE_HF_TRANSFER=1 environment variable?
There is a constant in huggingface_hub called HF_TRANSFER_CONCURRENCY. I think the only way would be to monkey patch it before calling the upload/download function.