{
  "schema_version": "1.0",
  "publisher": "AI Release",
  "article": {
    "title": "LoRA fine-tuning on a single GPU: a step-by-step guide",
    "canonical_url": "https://ai-release.org/guides/lora-fayntyun-na-odnoy-videokarte_en.html",
    "language": "en",
    "article_type": "guide",
    "published_at": null,
    "updated_at": "2026-11-19T00:00:00+00:00"
  },
  "summary": "Learn to fine-tune LLMs with LoRA on a single consumer GPU: dataset, hyperparameters, and launching training.",
  "topics": [
    "LoRA",
    "LLM fine-tuning",
    "model fine-tuning"
  ],
  "entities": [
    {
      "id": "E1",
      "name": "LoRA",
      "type": "тема/инструмент",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E2",
      "name": "LLM fine-tuning",
      "type": "тема/инструмент",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E3",
      "name": "model fine-tuning",
      "type": "тема/инструмент",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E4",
      "name": "CUDA",
      "type": "платформа/технология",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E5",
      "name": "Python",
      "type": "платформа/технология",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E6",
      "name": "Qwen3.5-0.8B",
      "type": "продукт/модель",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E7",
      "name": "Gemini",
      "type": "тема/инструмент",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E8",
      "name": "Qwen",
      "type": "тема/инструмент",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    }
  ],
  "claims": [
    {
      "id": "AR-GUIDE-LORAFAYNTY-001",
      "statement": "One consumer GPU with at least 8 GB VRAM (LoRA trains only small adapter weights, so small models fit easily; Phi-4 14B needs more memory).",
      "claim_type": "guide_fact",
      "confidence": "not_assessed",
      "source_type": "заявление источника",
      "verification_status": "reported_unverified",
      "source_url": "https://ai-release.org/guides/lora-fayntyun-na-odnoy-videokarte_en.html",
      "article_anchor": "#requirements",
      "evidence_excerpt": "One consumer GPU with at least 8 GB VRAM (LoRA trains only small adapter weights, so small models fit easily; Phi-4 14B needs more memory)."
    },
    {
      "id": "AR-GUIDE-LORAFAYNTY-002",
      "statement": "Python 3.10+ installed, plus the transformers, peft (LoRA implementation library) and datasets packages.",
      "claim_type": "guide_fact",
      "confidence": "not_assessed",
      "source_type": "заявление источника",
      "verification_status": "reported_unverified",
      "source_url": "https://ai-release.org/guides/lora-fayntyun-na-odnoy-videokarte_en.html",
      "article_anchor": "#requirements",
      "evidence_excerpt": "Python 3.10+ installed, plus the transformers, peft (LoRA implementation library) and datasets packages."
    },
    {
      "id": "AR-GUIDE-LORAFAYNTY-003",
      "statement": "A base SLM: Qwen3.5-0.8B, Gemma 2–9B, Gemini Nano-1 (1.8B) / Nano-2 (3.25B), or Phi-4 14B.",
      "claim_type": "guide_fact",
      "confidence": "not_assessed",
      "source_type": "заявление источника",
      "verification_status": "reported_unverified",
      "source_url": "https://ai-release.org/guides/lora-fayntyun-na-odnoy-videokarte_en.html",
      "article_anchor": "#requirements",
      "evidence_excerpt": "A base SLM: Qwen3.5-0.8B, Gemma 2–9B, Gemini Nano-1 (1.8B) / Nano-2 (3.25B), or Phi-4 14B."
    },
    {
      "id": "AR-GUIDE-LORAFAYNTY-004",
      "statement": "Out of memory (error like \"CUDA out of memory\"). Symptom: training crashes on the first steps. Fix: switch to a smaller model (e.g. from Gemma 9B to Gemma 2B or Qwen3.5-0.8B), reduce batch size to 1, or lower LoRA rank…",
      "claim_type": "guide_fact",
      "confidence": "editorial_assessment",
      "source_type": "анализ AI Release",
      "verification_status": "editorial_analysis",
      "source_url": "https://ai-release.org/guides/lora-fayntyun-na-odnoy-videokarte_en.html",
      "article_anchor": "#problems",
      "evidence_excerpt": "Out of memory (error like \"CUDA out of memory\"). Symptom: training crashes on the first steps. Fix: switch to a smaller model (e.g. from Gemma 9B to Gemma 2B or Qwen3.5-0.8B), reduce batch size to 1, or lower LoRA rank…"
    },
    {
      "id": "AR-GUIDE-LORAFAYNTY-005",
      "statement": "Loss doesn't decrease. Symptom: loss stays flat after hundreds of steps. Fix: check the dataset format (each line must be valid JSON with instruction/output), increase learning rate slightly, and verify the adapter…",
      "claim_type": "guide_fact",
      "confidence": "editorial_assessment",
      "source_type": "анализ AI Release",
      "verification_status": "editorial_analysis",
      "source_url": "https://ai-release.org/guides/lora-fayntyun-na-odnoy-videokarte_en.html",
      "article_anchor": "#problems",
      "evidence_excerpt": "Loss doesn't decrease. Symptom: loss stays flat after hundreds of steps. Fix: check the dataset format (each line must be valid JSON with instruction/output), increase learning rate slightly, and verify the adapter…"
    }
  ],
  "relationships": [
    {
      "subject": "Guide",
      "predicate": "describes",
      "object": "LoRA fine-tuning on a single GPU: a step-by-step guide",
      "claim_id": "AR-GUIDE-LORAFAYNTY-001"
    }
  ],
  "questions_and_answers": [
    {
      "question": "What is this guide about?",
      "answer": "Learn to fine-tune LLMs with LoRA on a single consumer GPU: dataset, hyperparameters, and launching training.",
      "claim_ids": [
        "AR-GUIDE-LORAFAYNTY-001"
      ],
      "article_anchor": "#suschnost"
    },
    {
      "question": "What is required?",
      "answer": "One consumer GPU with at least 8 GB VRAM (LoRA trains only small adapter weights, so small models fit easily; Phi-4 14B needs more memory).; Python 3.10+ installed, plus the transformers, peft (LoRA implementation library) and datasets packages.; A base SLM: Qwen3.5-0.8B, Gemma 2–9B, Gemini Nano-1 (1.8B) / Nano-2…",
      "claim_ids": [
        "AR-GUIDE-LORAFAYNTY-003"
      ],
      "article_anchor": "#requirements"
    },
    {
      "question": "What can go wrong?",
      "answer": "Out of memory (error like \"CUDA out of memory\"). Symptom: training crashes on the first steps. Fix: switch to a smaller model (e.g. from Gemma 9B to Gemma 2B or Qwen3.5-0.8B), reduce batch size to 1, or lower LoRA rank from 16 to 8.",
      "claim_ids": [
        "AR-GUIDE-LORAFAYNTY-006"
      ],
      "article_anchor": "#problems"
    }
  ],
  "limitations": [
    "Out of memory (error like \"CUDA out of memory\"). Symptom: training crashes on the first steps. Fix: switch to a smaller model (e.g. from Gemma 9B to Gemma 2B or Qwen3.5-0.8B), reduce batch size to 1, or lower LoRA rank from 16 to 8.",
    "Loss doesn't decrease. Symptom: loss stays flat after hundreds of steps. Fix: check the dataset format (each line must be valid JSON with instruction/output), increase learning rate slightly, and verify the adapter actually targets the right modules — print_trainable_parameters() should show a non-zero trainable count.",
    "Model outputs gibberish after training. Symptom: fine-tuned model produces broken text. Fix: you likely trained too many epochs on too little data — retrain for 1–2 epochs instead, and re-check that the tokenizer used at inference matches the one used in training."
  ],
  "citation": {
    "preferred_citation": "AI Release. LoRA-файнтюн на одной видеокарте: пошаговый гайд. https://ai-release.org/guides/lora-fayntyun-na-odnoy-videokarte_en.html",
    "canonical_url": "https://ai-release.org/guides/lora-fayntyun-na-odnoy-videokarte_en.html",
    "publisher": "AI Release"
  }
}