Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[tests] fix anyflow tests layerwise casting#13863

Merged
sayakpaul merged 1 commit into
fix-anyflow-testsfrom
fix-anyflow-tests-layerwise-casting
Jun 4, 2026
Merged

[tests] fix anyflow tests layerwise casting#13863
sayakpaul merged 1 commit into
fix-anyflow-testsfrom
fix-anyflow-tests-layerwise-casting

Conversation

@dg845

@dg845 dg845 commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

What does this PR do?

This PR is a follow up to #13855 which tries to fix the AnyFlow FAR causal transformer layerwise casting tests completely. See #13855 (comment) for an explanation of the main fix. This PR also includes removing the Flex Attention training CPU skips following #13855 (comment).

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.

@sayakpaul

@dg845 dg845 requested a review from sayakpaul June 4, 2026 08:02
@github-actions github-actions Bot added models tests size/S PR with diff < 50 LOC labels Jun 4, 2026
@dg845 dg845 mentioned this pull request Jun 4, 2026

@sayakpaul sayakpaul left a comment

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.

Approving, assuming you have run those tests locally (since they don't run on CPU)/

@dg845

dg845 commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator Author

Yeah, I have run the tests locally:

>>> pytest tests/models/transformers/test_models_transformer_anyflow_far.py
...
tests/models/transformers/test_models_transformer_anyflow_far.py .............sss.....................ssss...ss...            [100%]
...

and they are passing (I get 40 passed tests, 9 skipped, 0 failed tests).

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

@sayakpaul sayakpaul merged commit 618c62a into fix-anyflow-tests Jun 4, 2026
7 checks passed
sayakpaul added a commit that referenced this pull request Jun 4, 2026
* fix anyflow tests

* [tests] fix anyflow tests layerwise casting (#13863)

Fix AnyFlow FAR causal transformer training layerwise / mixed precision tests

---------

Co-authored-by: dg845 <[email protected]>
@dg845 dg845 deleted the fix-anyflow-tests-layerwise-casting branch June 5, 2026 04:27
DN6 pushed a commit that referenced this pull request Jul 1, 2026
* fix anyflow tests

* [tests] fix anyflow tests layerwise casting (#13863)

Fix AnyFlow FAR causal transformer training layerwise / mixed precision tests

---------

Co-authored-by: dg845 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

models size/S PR with diff < 50 LOC tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants