Skip to content

[tests] component manager tests - #13961

Merged
yiyixuxu merged 9 commits into
mainfrom
component-manager-tests
Jul 24, 2026
Merged

[tests] component manager tests#13961
yiyixuxu merged 9 commits into
mainfrom
component-manager-tests

Conversation

@sayakpaul

@sayakpaulsayakpaul commented Jun 15, 2026

Copy link
Copy Markdown
Member

What does this PR do?

Adds tests for the component manager in modular pipelines.

  • Correctness-related checks (offloading effectivity, component eviction, etc.). These tests are in ComponentsManagerTesterMixin.
  • Checks when the component manager is used in actual modular pipelines. These are in ModularPipelineOffloadTesterMixin. I have only used it in the Flux pipeline tests to keep things minimal.

Notes:

We're mocking the available memory and free memory in the tests and checking against those simulations. So, in many cases we don't actually need a real GPU or a GPU with a certain amount of memory.

In the next PR, I want to introduce the maximum_total_models_size flag (and related tests).

@github-actionsgithub-actionsBot added tests size/L PR with diff > 200 LOC labels Jun 15, 2026
@sayakpaul
sayakpaul marked this pull request as ready for review June 16, 2026 06:18
@sayakpaul
sayakpaul requested a review from yiyixuxuJune 16, 2026 06:38
@github-actions

Copy link
Copy Markdown
Contributor

Hi @sayakpaul, thanks for the PR! It does not appear to link an issue it fixes. If this PR addresses an existing issue, please add a closing keyword (e.g. Fixes #1234) to the PR description so the issue is linked. See the contribution guide for more details. If this PR intentionally does not fix a tracked issue, a maintainer can add the no-issue-needed label to silence this reminder.

@yiyixuxuyiyixuxu 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.

thanks!

@yiyixuxu
yiyixuxu merged commit 9f492ca into mainJul 24, 2026
18 checks passed
@sayakpaul
sayakpaul deleted the component-manager-tests branch July 27, 2026 06:00
yiyixuxu added a commit that referenced this pull request Jul 31, 2026
Back to the version introduced in #13961, adapted only for this PR's renames
(memory_reserve_margin -> memory_reserve, _patch_free_memory ->
_patch_memory_stats). Also comment the Z-Image card specs with why each card
behaves the way it does.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/LPR with diff > 200 LOCtests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@sayakpaul@yiyixuxu