Skip to content

refactor autoencoder_magvit tests - #13834

Merged
sayakpaul merged 3 commits into
huggingface:mainfrom
akshan-main:tests-refactor-autoencoder-magvit
Jun 3, 2026
Merged

refactor autoencoder_magvit tests#13834
sayakpaul merged 3 commits into
huggingface:mainfrom
akshan-main:tests-refactor-autoencoder-magvit

Conversation

@akshan-main

@akshan-mainakshan-main commented May 29, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Part of the ongoing modeling-test migration (following #13369 and #13153). Migrates the AutoencoderKLMagvit test suite to the mixin-based structure (Config + ModelTesterMixin / TrainingTesterMixin / MemoryTesterMixin / NewAutoencoderTesterMixin).

Before submitting

Who can review?

@sayakpaul@DN6

@github-actionsgithub-actionsBot added tests size/M PR with diff < 200 LOC labels May 29, 2026

@DN6DN6 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@akshan-main Any idea what's going on with the test failures?

@akshan-main

Copy link
Copy Markdown
ContributorAuthor

this shouldn't fail. Previous PR failed because of a ruff check

@akshan-main
akshan-main requested a review from DN6June 1, 2026 19:21
Comment on lines +105 to +107
@pytest.mark.skip("Unsupported test.")
def test_forward_with_norm_groups(self):
pass
super().test_forward_with_norm_groups()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

(nit): we are skipping anyway, so pass is also fine

@sayakpaul
sayakpaul merged commit 5385b2a into huggingface:mainJun 3, 2026
12 of 13 checks passed
@sayakpaul

Copy link
Copy Markdown
Member

Failing tests are unrelated.

DN6 pushed a commit that referenced this pull request Jul 1, 2026
* refactor autoencoder_magvit tests
* remove unused base_precision
---------
Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/MPR with diff < 200 LOCtests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@akshan-main@sayakpaul@DN6