Skip to content

Quiet non-actionable startup warnings & status in progress bar - #1628

Open
dxqb wants to merge 6 commits into
Nerogar:masterfrom
dxqb:quiet-startup-warnings
Open

Quiet non-actionable startup warnings & status in progress bar#1628
dxqb wants to merge 6 commits into
Nerogar:masterfrom
dxqb:quiet-startup-warnings

Conversation

@dxqb

@dxqb dxqb commented Jul 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

Suppress a handful of specific, noisy-but-harmless messages emitted while launching the UI and starting training:

  • diffusers/transformers logger.warning() lines (Modular Diffusers experimental notice, unexpected-config-attributes, unrecognized loss_type) via filters on the exact emitting loggers
  • huggingface_hub local_dir_use_symlinks deprecation and the torch.compile inductor performance notes via warnings/logger filters
  • Qt gnome portal dbus errors via QT_LOGGING_RULES
  • tensorboard subprocess banner/notices by discarding its stdout/stderr

Each filter targets one specific message, so other warnings from the same libraries still come through.

Test plan

  • pre-commit run --all-files passes
  • Launched the affected UI or script and exercised the change
  • Tested with at least one real preset / config when relevant (note which: ____)

AI assistance

  • AI-assisted — I have read every line in this diff and can defend each change

Suppress a handful of specific, noisy-but-harmless messages emitted while
launching the UI and starting training:

- diffusers/transformers logger.warning() lines (Modular Diffusers experimental
  notice, unexpected-config-attributes, unrecognized loss_type) via filters on
  the exact emitting loggers
- huggingface_hub local_dir_use_symlinks deprecation and the torch.compile
  inductor performance notes via warnings/logger filters
- Qt gnome portal dbus errors via QT_LOGGING_RULES
- tensorboard subprocess banner/notices by discarding its stdout/stderr

Each filter targets one specific message, so other warnings from the same
libraries still come through.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dxqb dxqb added the preview merged in the preview branch label Jul 24, 2026
dxqb and others added 2 commits August 9, 2026 18:55
# Conflicts:
#	modules/util/ui/pyside6_util.py
A cold torch.compile cache announces every frame it compiles, which scrolls the
progress bar off the screen. There is no knowable total to build a real progress
bar from, so the announcement goes into the postfix of the innermost running bar
instead, and is cleared again by that bar's next redraw or by its close.

tqdm keeps its bars in an unordered WeakSet, so which of the nested bars is the
innermost one cannot be recovered from it. modules/util/tqdm_util.py subclasses
tqdm to track that itself and adds show_status() next to tqdm.write(); every
tqdm import in the repo now comes from there. Bars owned by mgds are outside
this and still draw as before.

Also gates the warning filters on OT_DEBUG_WARNINGS, so setting it brings every
suppressed message back, and silences the diffusers attention-backend
experimental notice.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@dxqb dxqb changed the title Quiet non-actionable startup warnings Quiet non-actionable startup warnings & status in progress bar Aug 9, 2026
@dxqb

dxqb commented Aug 9, 2026

Copy link
Copy Markdown
Collaborator Author

now also shows the torch.compile progress in the tqdm bar, to avoid message flooding

dxqb and others added 3 commits August 20, 2026 02:00
Upstream diffusers removed the warning itself, so the filter has nothing
left to match. It still fires on the diffusers commit pinned in
requirements-global.txt, which predates that removal, until the pin is
bumped.

Also picks up master, which had landed the profiler-steps and mxfp8
changes this branch was still showing as removals.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Advances the merge base so the diff shows only this branch's own work
again, instead of the commits that have since landed upstream.
Brings the branch up to master's tip, so the diff no longer reverts the
commits that have landed upstream since.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

preview merged in the preview branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant