> This page is for version Nightly (default).
> 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.

# LFM3-1.7B

> Use NeMo AutoModel to fine-tune LFM3-1.7B for LLM workflows with a checked-in text generation recipe and documented distributed settings.

[LFM3-1.7B](https://huggingface.co/LiquidAI/LFM3-1.7B) has a checked-in NeMo AutoModel recipe for text generation.
The Hugging Face configuration declares the `Lfm3ForCausalLM` architecture: gated short convolutions interleaved with full and sliding-window grouped-query attention.

## Fine-Tune LFM3-1.7B

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

```bash
automodel examples/llm_finetune/lfm3/lfm3_1p7b_squad.yaml --nproc-per-node 8
```

## Choose a Workflow

| Goal                                  | Start Here                                                                                                                          |
| ------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| Run the primary recipe for this model | Use the [recipe configuration](https://github.com/NVIDIA-NeMo/Automodel/blob/main/examples/llm_finetune/lfm3/lfm3_1p7b_squad.yaml). |

### Configuration

| Setting  | Configuration               |
| -------- | --------------------------- |
| Hardware | -                           |
| Strategy | FSDP2; tp_size=1, cp_size=1 |
| Nodes    | -                           |
| Features | -                           |
| Advanced | -                           |

> **Note**
>
> NeMo AutoModel runs its own `Lfm3ForCausalLM`, so the checkpoint loads without remote code on the pinned Transformers release. Full-attention layers rotate half of each attention head, as the released weights were trained. Transformers 5.23.0 reads the released `config.json` as a full rotation, which changes its outputs on long inputs. Checkpoints exported by NeMo AutoModel record the rotation as `proportional` and load correctly in both.

## Model Reference

### Model Architecture

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

### Available Models

* [`LiquidAI/LFM3-1.7B`](https://huggingface.co/LiquidAI/LFM3-1.7B)

## Related Resources

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