{
  "id": "peft-quantization-table",
  "kind": "table",
  "slug": "peft-quantization",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/peft-quantization/",
  "title": "Train a PEFT adapter on a bitsandbytes-quantized model",
  "columns": [
    "name",
    "source",
    "detail"
  ],
  "rows": [
    {
      "name": "load_in_4bit",
      "source": "Hugging Face PEFT docs",
      "detail": "Quantize the model to 4-bits when you load it"
    },
    {
      "name": "bnb_4bit_quant_type",
      "source": "Hugging Face PEFT docs",
      "detail": "nf4 data type"
    },
    {
      "name": "bnb_4bit_use_double_quant",
      "source": "Hugging Face PEFT docs",
      "detail": "Nested quantization scheme"
    },
    {
      "name": "prepare_model_for_kbit_training",
      "source": "Hugging Face PEFT docs",
      "detail": "Preprocess the quantized model for training"
    },
    {
      "name": "get_peft_model",
      "source": "Hugging Face PEFT docs",
      "detail": "Create a trainable PeftModel"
    }
  ],
  "related_slugs": [
    "hf-transformers-quantization-overview",
    "2305-14314-qlora",
    "2106-09685-lora"
  ],
  "license": "CC-BY-4.0",
  "source_license": "Apache-2.0 (Hugging Face PEFT docs); Apache-2.0 (huggingface/peft (GitHub)); prose restates cited source lines in own words",
  "as_of": "2026-11-19",
  "status": "deep-draft-20261119",
  "note": "Restated from the note's GREEN sources; check those sources before relying on a value."
}