본문으로 건너뛰기
cccskills
무료GitHub에 공개

fine-tuning-llms

Fine-tune large language models — data curation, SFT, parameter-efficient methods (LoRA), evaluation, and avoiding common training failures. Use when a base model needs task-specific behavior or domain knowledge.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md3.9 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Fine-Tuning LLMs

Fine-tuning adapts a pretrained model to your task, domain, or style. Done well, it's the highest-leverage way to get reliable specialized behavior; done poorly, it's an expensive way to degrade a good model. The data matters more than the hyperparameters.

Overview

The pipeline: curate high-quality demonstrations of desired behavior, choose the tuning method (full fine-tuning for maximum adaptation, LoRA/QLoRA for efficiency), train with careful hyperparameters, and evaluate against the base model on task-specific benchmarks. Most fine-tuning projects fail on data quality, not on training mechanics — a thousand excellent examples beat a million mediocre ones.

When to use

  • The base model doesn't follow your domain's conventions, format, or style reliably.
  • You need consistent structured outputs or specialized reasoning patterns.
  • Prompting alone can't achieve the reliability you need.
  • Adapting to proprietary knowledge or terminology (paired with retrieval for facts).

Core concepts

  • SFT (supervised fine-tuning): training on input/output demonstrations of desired behavior. Teaches format, style, and task patterns — not new facts (that's what retrieval is for).
  • Data quality: diverse, correct, well-formatted examples in the target distribution. Deduplicate, filter for quality, and match the length/style of real usage.
  • LoRA/QLoRA: training low-rank adapters instead of all weights — 1% of parameters, near-full-tuning quality for most tasks, runnable on single GPUs. The default choice.
  • Hyperparameters: learning rate (small — you're adjusting, not training from scratch), epochs (few — overfitting is the main risk), batch size, warmup. Start from known-good configs for your model size.
  • Evaluation: task-specific benchmarks plus general capability checks (did tuning break general abilities?). Compare against the base model and against a prompt-only baseline.
  • Catastrophic forgetting: aggressive tuning erases general capabilities. Mitigate with small learning rates, few epochs, and mixed-in general data.

Practical workflow

  1. Define the target behavior precisely with examples; build an eval set before training anything.
  2. Curate the dataset: quality over quantity, deduplicated, in the target distribution. Inspect samples manually.
  3. Start with LoRA: known-good hyperparameters for your model size, 1–3 epochs.
  4. Evaluate: task benchmark vs. base model vs. prompt-only baseline; check general capabilities didn't regress.
  5. Iterate on data first (add failure-mode examples), hyperparameters second.
  6. Version everything: dataset hash, config, base model, eval scores. Reproducibility is non-negotiable.
Fine-tune checklist:
[ ] Eval set built BEFORE training
[ ] Dataset inspected manually; deduplicated
[ ] Started with LoRA + known-good hyperparams
[ ] Compared: tuned vs base vs prompt-only
[ ] General capability regression checked
[ ] Data/config/model versioned

Common pitfalls

  • Bad data, tuned confidently: noisy or misformatted training data teaches the model your mistakes. Curate ruthlessly.
  • Too many epochs: overfitting to the training set's quirks. Few epochs, watch validation.
  • No prompt-only baseline: fine-tuning when better prompting would've sufficed. Always compare.
  • Forgetting check skipped: the tuned model aces your task and fails at everything else. Test general abilities.
  • Teaching facts via SFT: fine-tuning memorizes poorly and hallucinates confidently. Use retrieval for knowledge, tuning for behavior.
  • Unversioned runs: "the good model" with no record of data or config. Version everything or lose reproducibility.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Master 1Password: vaults, Watchtower, passkeys, SSH agent, CLI, and family/team administration. Use when getting full value from 1Password personally or administering it for others.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aicodedecode/awesome-muse-skills282026년 10월 10일 업데이트

Create 3D visuals with modeling, texturing, lighting, rendering, and optimization for web and product.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aicodedecode/awesome-muse-skills282026년 10월 10일 업데이트

Create 3D web experiences: scene setup, models, materials, lighting, animation, scroll-driven scenes, and performance budgets. Use when adding 3D to websites beyond basic demos.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aicodedecode/awesome-muse-skills282026년 10월 10일 업데이트

Writing abstracts that get papers read — structured content, the 5-sentence core, and journal-specific constraints.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aicodedecode/awesome-muse-skills282026년 10월 10일 업데이트

Learn effectively from courses and academies: choosing programs, studying actively, and converting courses into skills. Use when investing time/money in structured learning.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aicodedecode/awesome-muse-skills282026년 10월 10일 업데이트

Audit designs for accessibility with WCAG checklists covering color, type, focus, motion, and content.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aicodedecode/awesome-muse-skills282026년 10월 10일 업데이트

aicodedecode의 스킬 모두 보기

이 스킬의 문제 신고