ERNIE 4.5
ERNIE 4.5 is Baidu’s dense and Mixture-of-Experts language model family with long-context text checkpoints on Hugging Face.
Available Models
- ERNIE-4.5-0.3B-PT: dense text checkpoint with 0.36B parameters.
- ERNIE-4.5-21B-A3B-PT: text MoE checkpoint with 21B total parameters and 3B activated parameters per token.
Architectures
Ernie4_5ForCausalLM: dense Hugging Face implementation path.Ernie4_5_MoeForCausalLM: custom NeMo AutoModel implementation with expert parallelism support.
Example HF Models
Example Recipes
Try with NeMo AutoModel
1. Install (full instructions):
2. Clone the repo to get the example recipes:
3. Run a dense recipe from inside the repo:
4. Run the MoE recipe from inside the repo:
Run with Docker
1. Pull the container and mount a checkpoint directory:
2. Navigate to the AutoModel directory:
3. Run the recipe:
See the LLM Fine-Tuning Guide and the Large MoE Fine-Tuning Guide.