Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix broken link for GenerationConfig #1819

Merged
merged 1 commit into from
Mar 5, 2025

Conversation

xin3he
Copy link
Contributor

@xin3he xin3he commented Mar 5, 2025

Importing lm_eval stuffs will break the link between transformers.generation.GenerationConfig andtransformers.GenerationConfig.

You can reproduce it with code below.

from lm_eval import evaluator, utils
from optimum.habana.transformers.modeling_utils import adapt_transformers_to_gaudi
adapt_transformers_to_gaudi()
import transformers
print('=======', transformers.GenerationConfig)
print('=======', transformers.generation.GenerationConfig)

Signed-off-by: Xin He <xinhe3@habana.ai>
@xin3he xin3he requested a review from regisss as a code owner March 5, 2025 08:42
@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.

@regisss regisss merged commit cd68dd6 into huggingface:main Mar 5, 2025
3 of 4 checks passed
regisss pushed a commit that referenced this pull request Mar 5, 2025
Signed-off-by: Xin He <xinhe3@habana.ai>
Co-authored-by: Xin He <xinhe3@habana.ai>
regisss added a commit that referenced this pull request Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants