huggingface / huggingface/diffusers

Remove deprecated VQModel/VQEncoderOutput shim (past target version 0.31)

Open Beginner friendly
#14,365 3 comments 0 reactions 0 assignees View on GitHub
bug models needs-code-example
Dominant language
Python
Stars
34.5k
Forks
7.3k
Avg merge
3d 3h
Merged PRs (30d)
91

Description

src/diffusers/models/vq_model.py still contains the backward-compat shim for VQModel/VQEncoderOutput with deprecate(..., 0.31). Current version is 0.40.0.dev0, so this is well past its removal target. Happy to send a PR removing this file and its reference in the relevant __init__.py if maintainers are OK with it. Let me know if this is still wanted or already being handled elsewhere.

Contributor guide

Open the contributing guide

Research direction

Start in src/diffusers/models/vq_model.py and inspect the VQModel/VQEncoderOutput deprecation shim targeting version 0.31. Then locate its reference in the relevant __init__.py and remove both pieces; done means the obsolete shim and reference are gone without breaking the surrounding model imports.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.