> This page is for version 0.7.0 · 26.10.
> For other versions, use one of these documentation indexes:
> - Nightly (default): https://docs.nvidia.com/nemo/automodel/nightly/llms.txt
> - Latest: https://docs.nvidia.com/nemo/automodel/latest/llms.txt
> - 0.7.0 · 26.10: https://docs.nvidia.com/nemo/automodel/v0.7/llms.txt
> - 0.5.0 · 26.06: https://docs.nvidia.com/nemo/automodel/v0.5/llms.txt
> - 0.4.0 · 26.04: https://docs.nvidia.com/nemo/automodel/v0.4/llms.txt

> 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.

# Qwen2.5-0.5B

> Use NeMo AutoModel to fine-tune Qwen2.5-0.5B for LLM workflows with checked-in text generation recipes and documented distributed settings.

[Qwen2.5-0.5B](https://huggingface.co/Qwen/Qwen2.5-0.5B) has a checked-in NeMo AutoModel recipe for text generation.
The Hugging Face configuration declares the `Qwen2ForCausalLM` architecture.

## Fine-Tune Qwen2.5-0.5B

Follow the [installation instructions](/nemo/automodel/v0.7/get-started/installation), then run the recipe from the repository root:

```bash
automodel examples/llm_finetune/qwen/qwen2_5_0p5b_packed_cp2.yaml --nproc-per-node 2
```

## Choose a Workflow

| Goal                                         | Start Here                                                                                                                                         |
| -------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| Run the primary recipe for this model        | Use the [recipe configuration](https://github.com/NVIDIA-NeMo/Automodel/blob/r0.7.0/examples/llm_finetune/qwen/qwen2_5_0p5b_packed_cp2.yaml).      |
| Try another checked-in recipe for this model | Use the [alternate recipe](https://github.com/NVIDIA-NeMo/Automodel/blob/r0.7.0/examples/llm_finetune/qwen/qwen25_magi_prefix_tree_rollouts.yaml). |

### Configuration

| Setting  | Configuration                                                    |
| -------- | ---------------------------------------------------------------- |
| Hardware | -                                                                |
| Strategy | FSDP2; tp_size=1, pp_size=1, cp_size=2, ep_size=1                |
| Nodes    | 1                                                                |
| Features | Packed sequences (packed_sequence_size=1024), Transformer Engine |
| Advanced | bf16, attention=te, linear=torch                                 |

### More Recipes for This Model

* [`qwen25_magi_prefix_tree_rollouts.yaml`](https://github.com/NVIDIA-NeMo/Automodel/blob/r0.7.0/examples/llm_finetune/qwen/qwen25_magi_prefix_tree_rollouts.yaml)
* [`qwen2_5_0p5b_instruct_fineproofs_chat.yaml`](https://github.com/NVIDIA-NeMo/Automodel/blob/r0.7.0/examples/llm_finetune/qwen/qwen2_5_0p5b_instruct_fineproofs_chat.yaml)

## Model Reference

### Model Architecture

| Property     | Value              |
| ------------ | ------------------ |
| Task         | Text generation    |
| Architecture | `Qwen2ForCausalLM` |

### Available Models

* [`Qwen/Qwen2.5-0.5B`](https://huggingface.co/Qwen/Qwen2.5-0.5B)
* [`Qwen/Qwen2.5-0.5B-Instruct`](https://huggingface.co/Qwen/Qwen2.5-0.5B-Instruct)

## Related Resources

* [LLM fine-tuning guide](/nemo/automodel/v0.7/recipes-e2e-examples/sft-peft)