Skip to content

Conversation

@McPatate
Copy link
Member

No description provided.

@McPatate McPatate requested a review from remi-or November 13, 2025 16:24
Copy link
Collaborator

@remi-or remi-or left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a few comments, otherwise looks good!

try:
from tqdm.contrib.logging import logging_redirect_tqdm

with logging_redirect_tqdm([logger]):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to decrease indentation level, we put the two context managers on the same line

Copy link
Member Author

@McPatate McPatate Nov 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

>:(

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@McPatate McPatate changed the title feat(cb): use context manager in \generate_batch\ feat(cb): use context manager in generate_batch Nov 13, 2025
Base automatically changed from cb-prefix-sharing to main November 17, 2025 12:20
@remi-or
Copy link
Collaborator

remi-or commented Nov 19, 2025

Diff is weird, I think you need to rebase. Then I can approve!

@McPatate McPatate force-pushed the feat/use_context_manager_in_generate_batch branch from 54764a8 to 239f094 Compare November 19, 2025 14:22
@McPatate
Copy link
Member Author

Diff is weird, I think you need to rebase. Then I can approve!

quizz time: what command did I use to rebase without any conflict?

Copy link
Collaborator

@remi-or remi-or left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@McPatate McPatate force-pushed the feat/use_context_manager_in_generate_batch branch 2 times, most recently from 69351e4 to 180b53c Compare November 28, 2025 18:05
@McPatate McPatate force-pushed the feat/use_context_manager_in_generate_batch branch from 180b53c to 7827090 Compare December 1, 2025 15:27
@McPatate McPatate enabled auto-merge (squash) December 1, 2025 15:27
@ArthurZucker ArthurZucker disabled auto-merge December 1, 2025 16:08
@ArthurZucker ArthurZucker merged commit eb399a9 into main Dec 1, 2025
20 of 24 checks passed
@ArthurZucker ArthurZucker deleted the feat/use_context_manager_in_generate_batch branch December 1, 2025 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants