bridge.training.flex_dispatcher_backend#
Module Contents#
Functions#
Configure the requested dispatcher without inspecting the local GPU. |
|
Validate the final backend on the training GPU without changing the config. |
Data#
API#
- bridge.training.flex_dispatcher_backend.logger: logging.Logger#
‘getLogger(…)’
- bridge.training.flex_dispatcher_backend.apply_flex_dispatcher_backend(
- model_config: megatron.core.transformer.TransformerConfig,
- moe_flex_dispatcher_backend: str | None = None,
Configure the requested dispatcher without inspecting the local GPU.
Recipe construction may run on a different host from training, and child recipes may replace a parent’s backend. Validate hardware support with
validate_flex_dispatcher_backendafter all recipe and user overrides. An unsupported backend is never replaced with another dispatcher.- Parameters:
model_config – Model configuration to update in place.
moe_flex_dispatcher_backend –
deepep,hybridep, orncclepto select flex dispatch;Noneexplicitly selects alltoall.
- Raises:
ValueError – If the backend name is not recognized.
- bridge.training.flex_dispatcher_backend.validate_flex_dispatcher_backend(
- model_config: megatron.core.transformer.TransformerConfig,
Validate the final backend on the training GPU without changing the config.
- Raises:
ValueError – If flex has no recognized backend or the GPU is unsupported.