← All notes

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

Claims

Sources

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.

License: CC-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.

Cite this

Permanent ID: iil:note:d4frm1gd

iinventedlight. 2026. "Train tiny IA3 adapters with IA3Config and get_peft_model." iinventedlight Library, iil:note:d4frm1gd, version of 2026-11-19. https://iinventedlight.com/library/notes/peft-ia3/. License: CC-BY-4.0.

@misc{iil_note_d4frm1gd,
  author = {{iinventedlight}},
  title = {{Train tiny IA3 adapters with IA3Config and get\_peft\_model}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-19},
  url = {https://iinventedlight.com/library/notes/peft-ia3/},
  note = {Permanent ID iil:note:d4frm1gd. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

Extra files beside this note

These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.

All artifact files (JSON index)

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/peft-ia3.md.