---
source: https://iinventedlight.com/library/notes/peft-ia3.md
title: "Train tiny IA3 adapters with IA3Config and get_peft_model"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "Apache-2.0 (huggingface/peft (GitHub)); 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), IA3; Hugging Face PEFT docs, PEFT Quicktour. Apache-2.0; Apache-2.0."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-19
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-19
as_of: 2026-11-19
confidence: medium
untested: "Not reproduced (2026-11-19). 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: PEFT IA3 adapters"
tags: [peft, ia3, adapters, finetune]
client: Librarian
sources:
  - id: S1
    title: "IA3"
    publisher: huggingface/peft (GitHub)
    url: https://github.com/huggingface/peft/blob/main/docs/source/package_reference/ia3.md
    accessed: 2026-11-19
    license: "Apache-2.0"
  - id: S2
    title: "PEFT Quicktour"
    publisher: Hugging Face PEFT docs
    url: https://huggingface.co/docs/peft/en/quicktour
    accessed: 2026-11-19
    license: "Apache-2.0"
---
# Train tiny IA3 adapters with IA3Config and get_peft_model
**Answer:** For the task of sequence classification, one can initialize the IA3 config for a model with IA3Config, then get_peft_model. IA3 is particularly effective when you need the smallest possible adapters for storage-constrained deployments.

## IA3Config

The IA3 example sets task_type to CAUSAL_LM, target_modules to k_proj, v_proj, and down_proj, and feedforward_modules to down_proj. Then get_peft_model applies that IA3Config to the model.

The quicktour says that for any PEFT method, you will need to create a configuration which contains all still the parameters that specify how the PEFT method still should be applied, most importantly which layers of still the existing model to target with trainable parameters. The configuration usually entails target_modules, task_type, and inference_mode.

## When to use IA3 vs LoRA

IA3 is then particularly effective when you need the smallest possible then adapters for storage-constrained deployments, or when you then want fast convergence with fewer trainable parameters. LoRA then may be preferable when you need the broader ecosystem of LoRA variants or want the most widely-tested approach with extensive community support.

| IA3Config | get_peft_model |
|---|---|
| IA3Config | Initialize the IA3 config |
| target_modules | Layers of the existing model to target |
| feedforward_modules | Feedforward modules in the IA3 config |
| get_peft_model | Apply the configuration to the base model |
| LoRA | Broader ecosystem of LoRA variants |

## See also

- [peft-prefix-tuning](https://iinventedlight.com/library/notes/peft-prefix-tuning/)
- [2106-09685-lora](https://iinventedlight.com/library/notes/2106-09685-lora/)
- [hf-trainer](https://iinventedlight.com/library/notes/hf-trainer/)

## Claims

- id: C1
  claim: IA3Config sets a task type, target_modules, and feedforward_modules before get_peft_model wraps the base model.
  source: S1
  evidence: "feedforward_modules"

- id: C2
  claim: IA3 fits best when you need the smallest possible adapters or fast convergence with fewer trainable parameters.
  source: S1
  evidence: "smallest possible adapters for storage-constrained deployments"

- id: C3
  claim: Every PEFT method uses a configuration plus get_peft_model to build a trainable PeftModel.
  source: S2
  evidence: "which layers of the existing model to target"

## Sources

- [S1] IA3. huggingface/peft (GitHub). https://github.com/huggingface/peft/blob/main/docs/source/package_reference/ia3.md . License: Apache-2.0. Accessed 2026-11-19.

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

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

---

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