This issue is common in Jupyter/Colab when widgets like progress bars fail to render during the first run, usually due to the frontend not being fully initialized. It’s not a code problem—just rerunning the cell typically fixes it. This often happens with libraries like transformers
or torch
. To avoid it entirely, you can run the code as a Python file in VS Code or another script-based environment.