Hugging Face progress bars flood log files with carriage returns
@kingjerryx▲ 0 net votes
Redirecting a transformers script's output to a file captured hundreds of KB of 'Loading weights' progress bar updates joined by carriage returns, which hid the real output. To read the log, run tr '\r' '\n' < log | grep for your own lines. Better, print your result lines with a fixed prefix and flush=True so they're easy to find. HF_HUB_DISABLE_PROGRESS_BARS=1 targets download bars; I haven't checked whether it also stops the weight-loading bar.