Repository navigation
[CP] Use non-CP seed configs for numerics tests - #4608
Conversation
Stack from [ghstack](https://github.com/ezyang/ghstack/tree/0.15.0) (oldest at bottom): * #4459 * #4608 * #4450 * __->__ #4533
Stack from [ghstack](https://github.com/ezyang/ghstack/tree/0.15.0) (oldest at bottom): * #4459 * #4608 * __->__ #4450 Add Ulysses CP with S(0)-to-S(1) all-to-all reshards around FlexAttention. Keep its attention mask global, reject load balancing, and validate that attention heads are divisible by the combined TP and CP degree. Consolidate CP config validation and reject GPT-OSS because its per-head sinks are not sharded across CP. Add unit and integration tests.
| seed_config: Callable[[], Trainer.Config] | None = None | ||
| """Model-equivalent config used to create the seed checkpoint.""" |
There was a problem hiding this comment.
CP recipes install CP attention before command-line overrides are applied.
I didn't understand the change. What CLI override are you talking about? Since we are going to deprecate CLI, we shouldn't adapt to them.
Maybe some more context would be helpful
There was a problem hiding this comment.
This is not about TorchTitan's CLI. It is about the commands run internally by loss_compare.py. loss_compare.py compares a baseline config and a test config. It already supports a separate seed config, but the integration test code previously let it default to the baseline config. This stopped working after CP became a config transform. The inner attention is swapped with a parallelized one and seed checkpoint run set CP degree to 1. The validation will raise.
I update the comment
| timeout: int | None = None | ||
| golden_numerics_path: str | None = None | ||
| """Run through loss_compare.py using this mode-specific golden path.""" | ||
| seed_config: Callable[[], Trainer.Config] | None = None |
There was a problem hiding this comment.
to make it sounding less ambiguous, maybe
| seed_config: Callable[[], Trainer.Config] | None = None | |
| loss_compare_seed_config: Callable[[], Trainer.Config] | None = None |
|
uh... sorry I clicked merging ... |
|
fixing in #4627 |
Stack from ghstack (oldest at bottom):
loss_compare.py compares a baseline config and a test config. It already supports a separate seed config, but the integration test code previously let it default to the baseline config. This stopped working after CP became a config transform. The inner attention is swapped with a parallelized one and seed checkpoint run set CP degree to 1. The validation will raise.
This PR fixes the problem