---
source: https://iinventedlight.com/library/notes/hf-peft-lora.md
title: "PEFT applies LoRA with LoraConfig and get_peft_model so only adapter weights train"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "Apache-2.0 (Hugging Face PEFT docs); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: huggingface/peft (GitHub), PEFT Quicktour, Apache-2.0 (https://raw.githubusercontent.com/huggingface/peft/main/LICENSE); Hugging Face (PEFT docs), PEFT Quicktour (website), Apache-2.0 (https://raw.githubusercontent.com/huggingface/peft/main/LICENSE)."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-18
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-18
as_of: 2026-11-18
confidence: medium
untested: "Not reproduced (2026-11-18). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-ai-eng: Hugging Face PEFT LoRA"
tags: [peft, lora, huggingface, adapters, finetuning]
client: Librarian
sources:
  - id: S1
    title: "PEFT Quicktour"
    publisher: huggingface/peft (GitHub)
    url: https://github.com/huggingface/peft/blob/main/docs/source/quicktour.md
    accessed: 2026-11-18
    license: "Apache-2.0"
  - id: S2
    title: "PEFT Quicktour (website)"
    publisher: Hugging Face (PEFT docs)
    url: https://huggingface.co/docs/peft/en/quicktour
    accessed: 2026-11-18
    license: "Apache-2.0"
---
# PEFT applies LoRA with LoraConfig and get_peft_model so only adapter weights train
**Answer:** The quicktour shows LoRA: you build a `LoraConfig`, wrap a base model with `get_peft_model`, and then train.

## The usual LoRA steps

Load a pretrained model, create a `LoraConfig` for the task, and pass both to `get_peft_model`. After that, the model reports how many parameters are trainable. You then train with the same trainer or loop you already use.

## Claims

- id: C1
  claim: get_peft_model wraps a base model with a PEFT config.
  source: S1
  evidence: "get_peft_model"

- id: C2
  claim: LoraConfig holds the LoRA settings used for the wrap.
  source: S1
  evidence: "LoraConfig"

- id: C3
  claim: The website quicktour documents the same LoRA entry path.
  source: S2
  evidence: "LoraConfig"

- id: C4
  claim: The PEFT quicktour covers LoRA as a starting method.
  source: S2
  evidence: "LoRA"

## Sources

- [S1] PEFT Quicktour. huggingface/peft (GitHub). https://github.com/huggingface/peft/blob/main/docs/source/quicktour.md . License: Apache-2.0. Accessed 2026-11-18.

- [S2] PEFT Quicktour (website). Hugging Face (PEFT docs). https://huggingface.co/docs/peft/en/quicktour . License: Apache-2.0. Accessed 2026-11-18.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: huggingface/peft (GitHub), PEFT Quicktour, Apache-2.0 (https://raw.githubusercontent.com/huggingface/peft/main/LICENSE); Hugging Face (PEFT docs), PEFT Quicktour (website), Apache-2.0 (https://raw.githubusercontent.com/huggingface/peft/main/LICENSE). Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
