transformers
a4b51337 - [distributed] `ALL_CP_STYLES` registry, inline the softmax layer types

Commit
9 hours ago
[distributed] `ALL_CP_STYLES` registry, inline the softmax layer types The context parallel styles live in their own registry, `ALL_CP_STYLES`, like `ALL_FSDP_STYLES`, instead of `ALL_PARALLEL_STYLES` plus a filter on their class. `apply_context_parallelism` reads it, and another attention algorithm is added to it under its own name. The layer types that `ModelContextParallel.check` accepts are inlined in the check.
Author
Parents
Loading