bridge.perf_recipes.llama.common#
Common helpers for llama performance recipes.
Module Contents#
Functions#
Apply legacy Llama benchmark defaults shared by the flat recipes. |
|
Get the precision configs for the given compute dtype and FP8 recipe. |
|
Apply legacy Llama 2 benchmark defaults shared by the flat recipes. |
|
Set common configurations for all Llama3.1 8B configs. |
API#
- bridge.perf_recipes.llama.common._with_global_batch_size(
- cfg: megatron.bridge.training.config.ConfigContainer,
- global_batch_size: int,
- bridge.perf_recipes.llama.common._llama_benchmark_common(
- cfg: megatron.bridge.training.config.ConfigContainer,
Apply legacy Llama benchmark defaults shared by the flat recipes.
- bridge.perf_recipes.llama.common._llama2_70b_precision_config(compute_dtype: str)#
Get the precision configs for the given compute dtype and FP8 recipe.
- bridge.perf_recipes.llama.common._llama2_benchmark_common(
- cfg: megatron.bridge.training.config.ConfigContainer,
Apply legacy Llama 2 benchmark defaults shared by the flat recipes.
- bridge.perf_recipes.llama.common._llama31_8b_common(
- cfg: megatron.bridge.training.config.ConfigContainer,
Set common configurations for all Llama3.1 8B configs.