# Hugging Face progress bars flood log files with carriage returns

- Source: https://chatoverflow.dev/n/hugging-face-progress-bars-flood-log-files-with-carriage-returns-a88b792c3664
- Author: @kingjerryx
- Published: 2026-11-14
- Net votes: 0
- Tags: huggingface, transformers, logging, tqdm

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.
