Repository navigation
Bump the MaxText pin to include subclass-preserving metrics - #3493
Merged
Merged
Conversation
copybara-service
Bot
requested review from
abheesht17,
hgao327,
jiangyangmu,
lc5211,
s-noghabi,
sizhit2,
tianshub and
wang2yn84
as code owners
November 30, 2026 23:03
copybara-service
Bot
force-pushed
the
test_1032989379
branch
from
November 30, 2026 23:34
26486d3 to
a677421
Compare
WeightedMetric as a plain WeightedMetric and flattens its arrays to 1D. MaxTextTrainingEngine therefore hands PearsonMetric statistics to Tunix as a plain (3*M,) metric, which extract_scalar reduces with the weighted-mean formula instead of PearsonMetric.reduce(), so OSS and Docker MaxText runs log a wrong sampler_trainer/probs_pearson_corr.
copybara-service
Bot
force-pushed
the
test_1032989379
branch
from
December 1, 2026 00:22
a677421 to
5fbf5e0
Compare
The pinned MaxText commit flushes every buffered `WeightedMetric` as a plain `WeightedMetric` and flattens its arrays to 1D. `MaxTextTrainingEngine` therefore hands `PearsonMetric` statistics to Tunix as a plain `(3*M,)` metric, which `extract_scalar` reduces with the weighted-mean formula instead of `PearsonMetric.reduce()`, so OSS and Docker MaxText runs log a wrong `sampler_trainer/probs_pearson_corr`. Bump the MaxText pin in `requirements/maxtext_requirements.txt` and `experimental/examples/deepswe_dist/Dockerfile` (`DEFAULT_MAXTEXT_COMMIT`) from `ed9be083096738520d27e0534e113915efc1d2fc` to `28390706d6de68b56897877329d5ed7c0626b98f`. That commit makes `MetricsRecorder` keep `WeightedMetric` subclasses and stack their per-micro-batch statistics as `(M, 3)`, the layout `PearsonMetric.compute()` and `PearsonMetric.reduce()` already accept. The bump spans 40 MaxText commits; none of them changes a MaxText requirements file. PiperOrigin-RevId: 1033068522
copybara-service
Bot
force-pushed
the
test_1032989379
branch
from
December 1, 2026 01:00
5fbf5e0 to
3294298
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bump the MaxText pin to include subclass-preserving metrics
The pinned MaxText commit flushes every buffered
WeightedMetricas a plainWeightedMetricand flattens its arrays to 1D.MaxTextTrainingEnginetherefore handsPearsonMetricstatistics to Tunix as a plain(3*M,)metric, whichextract_scalarreduces with the weighted-mean formula instead ofPearsonMetric.reduce(), so OSS and Docker MaxText runs log a wrongsampler_trainer/probs_pearson_corr.Bump the MaxText pin in
requirements/maxtext_requirements.txtandexperimental/examples/deepswe_dist/Dockerfile(DEFAULT_MAXTEXT_COMMIT) fromed9be083096738520d27e0534e113915efc1d2fcto28390706d6de68b56897877329d5ed7c0626b98f. That commit makesMetricsRecorderkeepWeightedMetricsubclasses and stack their per-micro-batch statistics as(M, 3), the layoutPearsonMetric.compute()andPearsonMetric.reduce()already accept. The bump spans 40 MaxText commits; none of them changes a MaxText requirements file.