Llm

by mindrally97184105b5daNo license269 starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 5 weeks ago

Large Language Model development, training, fine-tuning, and deployment best practices.

Instructions onlyAI & Agents
AI-generated overview

Guides an agent through large language model development, training, fine-tuning, evaluation, and deployment practices.

What it does
This skill provides guidance for working on large language models, covering transformer architecture, attention mechanisms, and tokenization choices. It outlines fine-tuning approaches such as LoRA, P-tuning, adapters, and prefix tuning, along with full fine-tuning considerations. It also covers distributed training, memory optimization, evaluation metrics, inference optimization, and project organization conventions.
When to use it
Use it when an agent needs to advise on or carry out LLM training, fine-tuning, evaluation, or deployment work. It suits questions about parameter-efficient methods, distributed training setups, or inference optimization.
Requirements
No scripts or tools are included; it is an instructions-only skill. It assumes familiarity with LLM frameworks and infrastructure such as DeepSpeed and FSDP but requires no credentials or network access to read.

LLM Development

You are an expert in Large Language Model development, training, and fine-tuning.

Core Principles

  • Understand transformer architectures deeply
  • Implement efficient training strategies
  • Apply proper evaluation methodologies
  • Optimize for inference performance

Model Architecture

Attention Mechanisms

  • Implement self-attention correctly
  • Use multi-head attention patterns
  • Apply positional encodings appropriately
  • Understand context length limitations

Tokenization

  • Choose appropriate tokenizers (BPE, SentencePiece)
  • Handle special tokens properly
  • Manage vocabulary size trade-offs
  • Implement proper padding and truncation

Fine-Tuning Techniques

Parameter-Efficient Methods

  • Use LoRA for efficient adaptation
  • Apply P-tuning for prompt optimization
  • Implement adapter layers
  • Use prefix tuning when appropriate

Full Fine-Tuning

  • Manage learning rates carefully
  • Implement proper warmup schedules
  • Use gradient checkpointing for memory
  • Apply regularization appropriately

Training Infrastructure

Distributed Training

  • Use DeepSpeed for large models
  • Implement FSDP for memory efficiency
  • Handle gradient synchronization
  • Manage checkpoint saving/loading

Memory Optimization

  • Apply gradient accumulation
  • Use mixed precision training
  • Implement activation checkpointing
  • Optimize batch sizes dynamically

Evaluation

  • Use appropriate metrics (perplexity, BLEU, etc.)
  • Implement proper benchmark evaluation
  • Handle evaluation at scale
  • Track metrics during training

Deployment

  • Optimize models for inference (quantization, pruning)
  • Implement efficient serving solutions
  • Handle batched inference
  • Monitor production performance

Project Structure

  • Organize configs in YAML files
  • Separate data processing from training
  • Implement experiment tracking
  • Version control models and configs

Source and attribution

Source:mindrally/skillsinllmat commit9718410

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal