writing-skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
litgptUse LitGPT to run local LLM inference, chat, finetuning, pretraining, checkpoint conversion, evaluation, and LitServe deployment with safe checks and workflow routing.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this skill when a user asks about LitGPT, the litgpt CLI, the litgpt Python package, local LLM generation, finetuning, pretraining, checkpoint conversion, evaluation, or serving. This root skill routes tasks to focused sub-skills and keeps long workflows self-contained.
Public installation patterns:
pip install litgpt
pip install 'litgpt[extra]'
Use the base package for core CLI/API inspection and local checkpoint workflows. Use litgpt[extra] only when the user needs optional surfaces such as evaluation harness support, LitServe, dataset helpers, logging integrations, quantization, or tokenizer/model conversion extras.
Run the bundled environment check before relying on optional routes:
python scripts/check_litgpt_environment.py --json
Minimal import check:
from litgpt import Config, GPT, LLM, Tokenizer
print(Config.from_name("pythia-14m").name)
sub-skills/inference-chat/: local generation, chat REPLs, Python LLM.load / LLM.generate, prompt styles, sampling, quantized inference, sequential/tensor-parallel generation, and offline generation planning.sub-skills/training-data/: finetune_lora, QLoRA, full finetuning, adapter/adapter_v2, pretraining, continued pretraining, JSON/JSONL SFT data, built-in data modules, config recipes, training args, resume/logging, and OOM-safe command construction.sub-skills/checkpoint-conversion/: download, validate, HF-to-LitGPT conversion, LitGPT-to-HF conversion, pretrained checkpoint export, LoRA merge, model config lookup, tokenizer/config layout, and checkpoint directory classification.sub-skills/evaluation-serving/: evaluate, LM Evaluation Harness task planning, result files, serve, LitServe simple/streaming/OpenAI-compatible endpoints, curl examples, and optional dependency checks.sub-skills/checkpoint-conversion/ for litgpt download and format decisions.sub-skills/inference-chat/ after a checkpoint layout check.sub-skills/training-data/, then return to checkpoint conversion for LoRA merge or to inference/evaluation for downstream use.lm_eval, HTTP endpoints, OpenAI-compatible requests, or streaming APIs, start with sub-skills/evaluation-serving/.references/capability-map.md: workflow-to-sub-skill routing, optional dependency ownership, and safe native verification candidates.references/troubleshooting.md: cross-cutting install/import, optional dependency, hardware, download, CLI config, data, checkpoint, and path failures.references/repo-provenance.md: source repository snapshot and refresh baseline for detecting stale skill content.references/repo-routing-metadata.json: structured routing metadata consumed by DisCo import tooling.scripts/check_litgpt_environment.py: safe environment and optional dependency probe. It imports metadata and optional packages only; it does not download models, load weights, train, evaluate, or start a server.--print_config, tiny fixtures, and dry planning before running GPU/model workflows.lm_eval, LitServe, Thunder, XLA, or logger integrations are installed. Check optional dependencies first.