transformers
Fix `GenerationMixin.generate` compatibility with pytorch profiler
#31935
Merged

Fix `GenerationMixin.generate` compatibility with pytorch profiler #31935

fxmarty
fxmarty use torch.compiler.is_compiling() when possible
f3f03f3d
fxmarty fxmarty requested a review from gante gante 1 year ago
gante
gante approved these changes on 2024-07-12
gante gante requested a review from amyeroberts amyeroberts 1 year ago
amyeroberts
amyeroberts commented on 2024-07-12
amyeroberts
amyeroberts approved these changes on 2024-07-12
HuggingFaceDocBuilderDev
gante gante merged 8480fda6 into main 1 year ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone