Skip to content

Bump the MaxText pin to include subclass-preserving metrics - #3493

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_1032989379
Dec 1, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
test_1032989379

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Bump the MaxText pin to include subclass-preserving metrics

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.

@copybara-service copybara-service Bot changed the title 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 to include subclass-preserving metrics Nov 30, 2026
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
copybara-service Bot merged commit 3294298 into main Dec 1, 2026
3 checks passed
@copybara-service
copybara-service Bot deleted the test_1032989379 branch December 1, 2026 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants