SKILL

model-architecture-litgpt

Implements and trains LLMs using Lightning AI's LitGPT with 20+ pretrained architectures (Llama, Gemma, Phi, Qwen, Mistral). Use when need clean model implementations, educational understanding of architectures, or production fine-tuning with LoRA/QLoRA. Single-file implementations, no abstraction layers.

Target: Learning & research. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original text

Topics in the source

  • LitGPT - Clean LLM Implementations
  • Quick start
  • Common workflows
  • Workflow 1: Fine-tune on custom dataset
  • Workflow 2: LoRA fine-tuning on single GPU
  • Workflow 3: Pretrain from scratch
  • Workflow 4: Convert and deploy model
  • When to use vs alternatives

LitGPT provides 20+ pretrained LLM implementations with clean, readable code and production-ready training workflows. Installation: Load and use any model: List available models: Copy this checklist: Step 1: Download pretrained model Models are saved to checkpoints/ directory. Step 2: Prepare dataset LitGPT supports multiple formats: Alpaca format (instruction-response): Save as data/mydataset.json. Step 3: Configure training Step 4: Run fine-tuning Training saves checkpoints to out/finetune/ automatically. Monitor training: Most memory-efficient option. Step 1: Choose base model For limited GPU memory (12-16GB): Phi-2 (2.7B) - Best quality/size tradeoff Llama 3 1B - Smallest, fastest Gemma 2B - Good reasoning Step 2: Configure LoRA parameters LoRA rank guide: r=8: Lightweight, 2-4MB adapters r=16: Standard, good quality r=32: High capacity, use for complex tasks r=64: Maximum quality, 4× larger adapters Step 3: Train with LoRA Step 4: Merge LoRA weights (optional) Merge LoRA adapters into base model for deployment: Now use merged model: Train new model on your domain data. Step 1: Prepare pretraining dataset LitGPT expects tokenized data. Use preparedataset.py: Step 2: Configure m

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
davila7/claude-code-templates
Source file
cli-tool/components/skills/ai-research/model-architecture-litgpt/SKILL.md
Fixed revision
21be197f100a12b8d0dd9a211cc244c8179f84d3
Read the complete original documentation ↗

Requirements

  • Only the author’s Skill metadata is included. Read the full instructions to check dependencies, licensing and conditions of use.

A small first task

先阅读原作者说明,再决定是否在自己的 AI 工具中使用。

Instructions for your AI tool

Author documentation is not live verification by this site. Without evidence, we do not mark a resource as compatible, safe or free.

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: davila7/claude-code-templates · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T14:01:43.232Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.