setfit
setfit copied to clipboard
[Minor] tqdm disabling doesn't work
Thanks for shipping v1.0 @tomaarsen.
I found a small issue, it seems like setfit.logging.disable_progress_bar()
doesn't work. I believe it's because this import:
https://github.com/huggingface/setfit/blob/107ca56c8cf6f2d3e79e2519d7e5ec24a95ccc56/src/setfit/modeling.py#L28
Should instead be importing the tqdm
from setfit.logging
like:
from .logging import tqdm
so that it can use EmptyTqdm
when progress bars are disabled.
This import may also need updating:
https://github.com/huggingface/setfit/blob/107ca56c8cf6f2d3e79e2519d7e5ec24a95ccc56/src/setfit/trainer.py#L20
Hello!
Thanks for raising this. SetFit bases it's progressbars on show_progress_bars
in TrainingArguments
as well as several other methods (predict
, predict_proba
). Ideally, both should work, but I don't have the bandwidth to look into that right now I'm afraid.
- Tom Aarsen