> 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-7B-Instruct

> Use Qwen2.5-7B-Instruct with NeMo AutoModel for language model fine-tuning, with documented checkpoints, runnable recipes, setup guidance, and model reference details.

[Qwen2.5](https://huggingface.co/Qwen/Qwen2.5-7B-Instruct) is Qwen's latest series of large language models for text generation. The Qwen2.5-7B-Instruct checkpoint uses the `Qwen2ForCausalLM` architecture and supports long-context extension through YaRN.

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 Qwen2.5-7B-Instruct

From the repository root, run:

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

## Choose a Workflow

| Goal                                               | Start Here                                                                                                                           |
| -------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| Supervised fine-tuning (SFT) - Qwen2.5 7B on SQuAD | Use [qwen2\_5\_7b\_squad.yaml](https://github.com/NVIDIA-NeMo/Automodel/blob/main/examples/llm_finetune/qwen/qwen2_5_7b_squad.yaml). |

## Model Reference

### Model Architecture

| Property                  | Value                               |
| ------------------------- | ----------------------------------- |
| Task                      | Text Generation                     |
| Architecture              | `Qwen2ForCausalLM`                  |
| Parameters                | 7B                                  |
| Hugging Face Organization | [Qwen](https://huggingface.co/Qwen) |

### Available Models

| Model               | HF ID                                                                         |
| ------------------- | ----------------------------------------------------------------------------- |
| Qwen2.5 7B Instruct | [`Qwen/Qwen2.5-7B-Instruct`](https://huggingface.co/Qwen/Qwen2.5-7B-Instruct) |
| Qwen2.5 7B Base     | [`Qwen/Qwen2.5-7B`](https://huggingface.co/Qwen/Qwen2.5-7B)                   |

## Related Resources

* [LLM Fine-Tuning Guide](/recipes-e2e-examples/sft-peft)