Skip to content

Move loss_fn into model definition in DS3 PP example#329

Merged
xmfan merged 1 commit intomainfrom
xmfan/stack/27
Mar 4, 2026
Merged

Move loss_fn into model definition in DS3 PP example#329
xmfan merged 1 commit intomainfrom
xmfan/stack/27

Conversation

@xmfan
Copy link
Copy Markdown
Member

@xmfan xmfan commented Mar 2, 2026

Stacked PRs:


Move loss_fn into model definition in DS3 PP example

Forgot to migrate this file. Was hidden behind the other CI failure
now fixed in #327.

Same approach as #324 for example_pp_graph_passes.py: wrap the last
stage in a ModelWithLoss module instead of passing loss_fn to
AutoParallelPP, which no longer supports it.

Authored with Claude.

Same approach as #324 for example_pp_graph_passes.py: wrap the last
stage in a ModelWithLoss module instead of passing loss_fn to
AutoParallelPP, which no longer supports it.

Authored with Claude.

stack-info: PR: #329, branch: xmfan/stack/27
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Mar 2, 2026
@xmfan xmfan requested a review from sanketpurandare March 2, 2026 22:30
Copy link
Copy Markdown
Contributor

@sanketpurandare sanketpurandare left a comment

Choose a reason for hiding this comment

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

LGTM!

@xmfan xmfan merged commit 28c3c33 into main Mar 4, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants