Skip to content

suppress non-error content from stderr #14

Description

@owencking

New Feature Summary

As a user of the app, I would like to see content in stderr if (but only if) there is an error condition that does not occur on every run. The basic reason for this is that I log and inspect errors so that I can re-run or otherwise fix any runs that don't succeed.

However, right now, every run produces stderr content along these lines:

`torch_dtype` is deprecated! Use `dtype` instead!

Loading checkpoint shards:   0%|          | 0/2 [00:00<?, ?it/s]
Loading checkpoint shards:  50%|█████     | 1/2 [00:00<00:00,  1.79it/s]
Loading checkpoint shards: 100%|██████████| 2/2 [00:00<00:00,  2.13it/s]
Loading checkpoint shards: 100%|██████████| 2/2 [00:00<00:00,  2.07it/s]

  0%|          | 0/2 [00:00<?, ?it/s]
 50%|█████     | 1/2 [00:11<00:11, 11.87s/it]
100%|██████████| 2/2 [00:22<00:00, 11.07s/it]
100%|██████████| 2/2 [00:22<00:00, 11.19s/it]

Because this content occurs with every successful run, it is not super helpful.

However, sometimes, the output looks like this:

`torch_dtype` is deprecated! Use `dtype` instead!

Loading checkpoint shards:   0%|          | 0/2 [00:00<?, ?it/s]
Loading checkpoint shards:  50%|█████     | 1/2 [00:00<00:00,  2.07it/s]
Loading checkpoint shards: 100%|██████████| 2/2 [00:00<00:00,  2.46it/s]
Loading checkpoint shards: 100%|██████████| 2/2 [00:00<00:00,  2.39it/s]
2026-03-08 11:55:50 http://apps.clams.ai/smolvlm2-captioner/v0.5 WARNING  133506257382272 No timeframes found matching label_mapping

In this case, the last line is extremely helpful and informative

Would it be possible to keep lines like that one, but suppress the other non-error content?

Related

No response

Alternatives

We could also allow the user to choose the level of error messages to output to stderr.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions