Skip to content

Fix for visual-question-answering example#2318

Merged
regisss merged 1 commit into
huggingface:mainfrom
ugolowic:visual-question-answering-fix
Oct 22, 2025
Merged

Fix for visual-question-answering example#2318
regisss merged 1 commit into
huggingface:mainfrom
ugolowic:visual-question-answering-fix

Conversation

@ugolowic
Copy link
Copy Markdown
Collaborator

After transformers upgrade, Gaudi Pipelines need to have _default_generation_config attribute set to load GaudiGenerationConfig instead of GenerationConfig. This PR sets the attribute in modeling_utils

It also simplifies the previous solution: #2266

Signed-off-by: Urszula <urszula.golowicz@intel.com>
@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

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.

Copy link
Copy Markdown
Collaborator

@regisss regisss left a comment

Choose a reason for hiding this comment

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

LGTM

@regisss regisss merged commit 20c2159 into huggingface:main Oct 22, 2025
2 of 5 checks passed
astachowiczhabana pushed a commit that referenced this pull request Oct 22, 2025
Signed-off-by: Urszula <urszula.golowicz@intel.com>
gplutop7 pushed a commit to HabanaAI/optimum-habana-fork that referenced this pull request Nov 6, 2025
…face#790)

Signed-off-by: Urszula <urszula.golowicz@intel.com>
Co-authored-by: Urszula Golowicz <urszula.golowicz@intel.com>
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.

3 participants