> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/automodel/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/automodel/_mcp/server.

# ERNIE-4.5-0.3B-PT

> Use ERNIE-4.5-0.3B-PT with NeMo AutoModel for language model fine-tuning, with documented checkpoints, runnable recipes, setup guidance, and model reference details.

[ERNIE 4.5](https://huggingface.co/baidu) is Baidu's dense and Mixture-of-Experts language model family with long-context text checkpoints on Hugging Face.

Set up NeMo AutoModel with the [latest container](https://catalog.ngc.nvidia.com/orgs/nvidia/containers/nemo-automodel) or follow the [installation instructions](/get-started/installation).

## Fine-Tune ERNIE-4.5-0.3B-PT

From the repository root, run:

```bash
uv run automodel --nproc-per-node=8 examples/llm_finetune/ernie4_5/ernie4_5_0p3b_hellaswag.yaml
```

## Choose a Workflow

| Goal                                                                                            | Start Here                                                                                                                                             |
| ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Supervised fine-tuning (SFT) - ERNIE 4.5 0.3B on HellaSwag with the Hugging Face implementation | Use [ernie4\_5\_0p3b\_hellaswag.yaml](https://github.com/NVIDIA-NeMo/Automodel/blob/main/examples/llm_finetune/ernie4_5/ernie4_5_0p3b_hellaswag.yaml). |

## Model Reference

### Model Architecture

| Property                  | Value                                            |
| ------------------------- | ------------------------------------------------ |
| Task                      | Text Generation                                  |
| Architectures             | `Ernie4_5ForCausalLM`, `Ernie4_5_MoeForCausalLM` |
| Parameters                | 0.36B                                            |
| Context Length            | 131,072 tokens                                   |
| Hugging Face Organization | [baidu](https://huggingface.co/baidu)            |

* `Ernie4_5ForCausalLM`: dense Hugging Face implementation path.
* `Ernie4_5_MoeForCausalLM`: custom NeMo AutoModel implementation with expert parallelism support.

### Available Models

| Model             | HF ID                                                                       |
| ----------------- | --------------------------------------------------------------------------- |
| ERNIE 4.5 0.3B PT | [`baidu/ERNIE-4.5-0.3B-PT`](https://huggingface.co/baidu/ERNIE-4.5-0.3B-PT) |

## Related Resources

* [LLM Fine-Tuning Guide](/recipes-e2e-examples/sft-peft)
* [Large MoE Fine-Tuning Guide](/recipes-e2e-examples/large-moe-fine-tuning)