From 50891dd87347787dd5f44f55162b86dfe33f47eb Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Thu, 30 Oct 2025 05:41:06 -0700 Subject: [PATCH] Update import_fixes.py --- unsloth/import_fixes.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/unsloth/import_fixes.py b/unsloth/import_fixes.py index 27582b0b01..49cc0c40e9 100644 --- a/unsloth/import_fixes.py +++ b/unsloth/import_fixes.py @@ -157,16 +157,8 @@ def patch_ipykernel_hf_xet(): "#### Unsloth: To re-enable progress bars, please upgrade to `ipykernel>=7.1.0` or wait for a fix to\n"\ "https://github.com/huggingface/xet-core/issues/526" ) - # from huggingface_hub.utils import disable_progress_bars - # disable_progress_bars() - - # Force text bars for anyone doing `from tqdm.auto/notebook import tqdm` - from tqdm import std as _tstd - import tqdm.auto as _tauto, tqdm.notebook as _tnb - _tauto.tqdm = _tstd.tqdm - _tauto.trange = _tstd.trange - _tnb.tqdm = _tstd.tqdm - _tnb.trange = _tstd.trange + from huggingface_hub.utils import disable_progress_bars + disable_progress_bars() pass def patch_trackio():