fix: remove deprecated VQModel/VQEncoderOutput shim past target version 0.31 - #14392
Open
lorenzozanee wants to merge 1 commit into
Open
fix: remove deprecated VQModel/VQEncoderOutput shim past target version 0.31#14392lorenzozanee wants to merge 1 commit into
lorenzozanee wants to merge 1 commit into
Conversation
Author
AI Self-Review: READYValidated against: Checks Run
Upstream-only CIJobs that require the upstream PR environment and cannot be verified locally:
No Blocking Findings
|
…on 0.31 Fixes huggingface#14365. The deprecation target (0.31) has passed; the shim now raises ValueError on every instantiation. Delete the shim and route the single remaining importer (PaellaVQModel) to the canonical autoencoders.vq_model path.
lorenzozanee
force-pushed
the
fix/vq-model-shim-removal
branch
from
August 5, 2026 12:38
8989ea2 to
55dd59d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Fixes #14365
Adds a regression test (5 assertions) verifying the shim is gone, the old import
path raises
ImportError, andVQModelremains accessible from the public API.Before submitting
self-reviewskill on the diff?documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag members/contributors who may be interested in your PR.