transformers
b6482bc4 - [distributed] Test sequence parallelism end to end

Commit
6 hours ago
[distributed] Test sequence parallelism end to end A model sharded with `DistributedConfig(sp_size=N)` reproduces, step by step, the run of the same weights on the full sequences: same loss, same logits on this rank's slice, same gradients. The tests cover the plan, the refusals, packing, padding, `inputs_embeds`, sliding windows, a registered attention style, saving, and HSDP composed with `sp_size`.
Author
Committer
Parents
Loading