bridge.perf_recipes.llama.common#

Common helpers for llama performance recipes.

Module Contents#

Functions#

_with_global_batch_size

_llama_benchmark_common

Apply legacy Llama benchmark defaults shared by the flat recipes.

_llama2_70b_precision_config

Get the precision configs for the given compute dtype and FP8 recipe.

_llama2_benchmark_common

Apply legacy Llama 2 benchmark defaults shared by the flat recipes.

_llama31_8b_common

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,
) → megatron.bridge.training.config.ConfigContainer#
bridge.perf_recipes.llama.common._llama_benchmark_common(
cfg: megatron.bridge.training.config.ConfigContainer,
) → None#

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,
) → None#

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,
) → None#

Set common configurations for all Llama3.1 8B configs.