ERNIE-4.5-21B-A3B-PT

View as Markdown

ERNIE-4.5-21B-A3B-PT has a checked-in NeMo AutoModel recipe for text generation. The Hugging Face configuration declares the Ernie4_5_MoeForCausalLM architecture.

Fine-Tune ERNIE-4.5-21B-A3B-PT

Follow the installation instructions, then run the recipe from the repository root:

automodel examples/llm_finetune/ernie4_5/ernie4_5_21b_a3b_hellaswag.yaml --nproc-per-node 8

Choose a Workflow

GoalStart Here
Run the primary recipe for this modelUse the recipe configuration.
Prepare your environmentFollow the installation instructions.

Configuration

SettingConfiguration
Hardware-
StrategyFSDP2; tp_size=1, pp_size=1, cp_size=1, ep_size=8
Nodes-
FeaturesCheckpointing (enabled=true), Activation checkpointing (activation_checkpointing=true), Transformer Engine, DeepEP (dispatcher=deepep)
Advancedbfloat16, attention=te, linear=torch, experts=torch_mm, dispatcher=deepep

Model Reference

Model Architecture

PropertyValue
TaskText generation
ArchitectureErnie4_5_MoeForCausalLM

Available Models