Integrate Flash Attention into transformer models to reduce processing time and GPU memory use for long sequences. Covers PyTorch integration, advanced attention options, and benchmarks that compare speed, memory use, and output accuracy.
- Speeding up transformer training on long sequences
- Reducing GPU memory use during attention
- Adding Flash Attention to a PyTorch model
davila7/claude-code-templates☆ 32.8KUpdated Oct 22, 2026
Use SAELens to train and analyze sparse autoencoders, which separate neural network activity into features that may represent recognizable concepts. Explore pretrained features, evaluate reconstruction quality, and investigate how individual features influence language model outputs.
- Exploring features with a pretrained SAE
- Training and evaluating a custom SAE
- Studying overlapping concepts in model activity
davila7/claude-code-templates☆ 32.8KUpdated Oct 22, 2026
Build image-based conversations with LLaVA, an AI model that combines image understanding with language. Covers setup, model selection, image descriptions, follow-up questions, and memory-saving options for running models on a GPU.
- Building a chatbot that answers questions about images
- Generating image descriptions and captions
- Exploring a scene through follow-up questions
davila7/claude-code-templates☆ 32.8KUpdated Oct 22, 2026
Guides experiments that inspect and change internal model values using nnsight. Covers local PyTorch models and remote experiments through NDIF, including replacing intermediate values to test how particular layers affect a model’s predictions.
- Inspecting layer outputs and attention patterns
- Replacing internal values to compare predictions
- Running large-model experiments through NDIF
davila7/claude-code-templates☆ 32.8KUpdated Oct 22, 2026
Use W&B to record machine learning experiments, visualize training, and compare results. The skill also covers automated searches for training settings and version tracking for datasets and models, helping teams share experiments and trace their inputs.
- Logging training metrics and viewing progress in real time
- Comparing experiments with different training settings
- Searching automatically for better training settings
davila7/claude-code-templates☆ 32.8KUpdated Oct 22, 2026
Use TensorBoard to visualize training loss and accuracy, compare experiments, and inspect model structure. Includes PyTorch and TensorFlow logging examples for examining weight distributions, predictions, and performance bottlenecks during machine learning training.
- Comparing loss and accuracy across training runs
- Inspecting weight and gradient distributions
- Exploring embeddings in two or three dimensions
davila7/claude-code-templates☆ 32.8KUpdated Oct 22, 2026
Design and implement machine learning systems for production use. Cover data preparation, training, prediction services, model comparisons, monitoring, and retraining, with attention to reliability, response time, resource costs, and both technical and business evaluation metrics.
- Designing a real-time recommendation service
- Comparing model versions with A/B testing
- Detecting changes in data and model performance
davila7/claude-code-templates☆ 32.8KUpdated Oct 22, 2026
Integrate the Gemini API on Agent Platform using the Google Gen AI SDK. Guidance covers authentication, text and multimedia tasks, structured JSON responses, live voice interactions, context caching, and batch prediction across five programming languages.
- Adding document and multimedia understanding to an application
- Generating JSON that matches a defined schema
- Building live voice and video interactions
davila7/claude-code-templates☆ 32.8KUpdated Oct 22, 2026
Fine-tune large language models with LoRA and QLoRA while limiting GPU memory use. Guides training settings and adapter management, using small sets of task-specific weights that can be saved, switched, or merged into a base model.
- Fine-tuning an LLM with limited GPU memory
- Choosing LoRA settings and training layers
- Switching task-specific adapters on one base model
davila7/claude-code-templates☆ 32.8KUpdated Oct 22, 2026
Build image captioning, visual question answering, and text-based image search with BLIP-2. The skill explains model selection, batch processing, and memory-saving settings, with Python examples for connecting image understanding to language models.
- Generating captions for multiple images
- Building a question-answering system for images
- Searching an image collection with text
davila7/claude-code-templates☆ 32.8KUpdated Oct 22, 2026
Run language models locally with llama.cpp on CPUs, Apple Silicon, or AMD and Intel GPUs. The skill guides model setup, memory-saving GGUF format choices, interactive chat, and serving models through an OpenAI-compatible API.
- Running a language model on a CPU-only computer
- Setting up local chat on an Apple Silicon Mac
- Choosing model quantization to fit available memory
davila7/claude-code-templates☆ 32.8KUpdated Oct 22, 2026
Configure LLM inference and serving on NVIDIA GPUs with TensorRT-LLM. Covers quantization, which reduces numerical precision, batching requests during generation, and distributing models across GPUs to improve processing capacity and response times.
- Setting up an LLM server on NVIDIA GPUs
- Configuring FP8 or INT4 quantization
- Distributing large models across multiple GPUs
davila7/claude-code-templates☆ 32.8KUpdated Oct 22, 2026
Design LLM applications using patterns for answers grounded in documents, agents that use tools, and prompt testing. Implementation examples also cover monitoring response quality, latency, costs, and failures during operation.
- Building an assistant that answers from internal documents
- Choosing an architecture for an agent that uses tools
- Comparing and versioning prompts
davila7/claude-code-templates☆ 32.8KUpdated Oct 22, 2026
Use SAM to identify object regions in images from points, boxes, or existing masks. The skill provides implementation examples for transparent cutouts, automatic mask generation, annotation tools, and model selection based on available resources.
- Extracting objects with transparent backgrounds
- Building annotation tools with point or box selection
- Generating object masks automatically
davila7/claude-code-templates☆ 32.8KUpdated Oct 22, 2026
Investigate why a PyTorch model behaves a certain way by changing its internal values with pyvene. The skill guides experiments that swap or remove activations, train interventions, compare outputs, and save or share intervention configurations.
- Locating model components that affect an output
- Swapping activations to test behavioral hypotheses
- Training interventions to investigate causal structure
davila7/claude-code-templates☆ 32.8KUpdated Oct 22, 2026
Evaluate LLM application quality using automated scores, human reviews, and another language model as a judge. Compare models or prompts, establish baseline results, and detect quality drops through repeatable tests and statistical comparisons.
- Comparing models and prompts
- Checking quality before deployment
- Evaluating search quality in RAG applications
davila7/claude-code-templates☆ 32.8KUpdated Oct 22, 2026
Investigate how transformer language models produce predictions with TransformerLens. This skill guides inspection of intermediate values and attention patterns, plus experiments that replace internal values to test their effects and identify components involved in model behavior.
- Inspecting attention patterns and intermediate values
- Testing output changes by replacing internal activations
- Analyzing attention head contributions to predictions
davila7/claude-code-templates☆ 32.8KUpdated Oct 22, 2026
Set up Langfuse to record LLM application activity, costs, and response times. Manage prompt versions, organize evaluation datasets, and compare results to investigate failures and guide improvements using recorded evidence.
- Investigating failures in LLM applications
- Comparing prompt versions and evaluation scores
- Monitoring LLM costs and response times
davila7/claude-code-templates☆ 32.8KUpdated Oct 22, 2026
Guides the use of RWKV, a language model architecture that carries information forward in a compact state. Covers streaming text generation, long document processing, fine-tuning, and memory comparisons with Transformers.
- Build streaming text generation
- Process long documents in chunks
- Compare memory needs with Transformers
davila7/claude-code-templates☆ 32.8KUpdated Oct 22, 2026
Get guidance on adapting large language models with Axolotl. Covers YAML configuration files, LoRA and QLoRA methods for training fewer parameters, distributed training settings, dataset formats, and debugging training code.
- Write YAML settings for model fine-tuning
- Explore training with LoRA or QLoRA
- Configure training across multiple GPUs
davila7/claude-code-templates☆ 32.8KUpdated Oct 22, 2026
Evaluate language models with over 100 benchmark tests covering knowledge, math, coding, safety, and image understanding. Configure runs on Docker, Slurm computing clusters, or cloud infrastructure, compare models, and export results.
- Compare models using the same benchmark tests
- Run large evaluations on a Slurm cluster
- Evaluate safety and image understanding
davila7/claude-code-templates☆ 32.8KUpdated Oct 22, 2026
Helps adapt LLMs to specific tasks with LLaMA-Factory, including training through a web interface and memory-saving methods such as QLoRA. Provides documentation references for learning features, implementing workflows, and investigating code problems.
- Exploring LLM fine-tuning through a web interface
- Checking LoRA and QLoRA training options
- Investigating LLaMA-Factory implementation problems
davila7/claude-code-templates☆ 32.8KUpdated Oct 22, 2026
Use LitGPT to explore language model implementations and train models on custom data. Covers pretrained model loading, LoRA fine-tuning that updates a small set of parameters, pretraining, and preparing trained models for deployment.
- Studying language model architecture through readable code
- Fine-tuning a model on custom instruction data
- Configuring LoRA training for a single GPU
davila7/claude-code-templates☆ 32.8KUpdated Oct 22, 2026
Configure large language model pretraining with torchtitan across multiple GPUs. Covers ways to split training work, launch jobs on computing clusters, enable Float8 numerical processing, and save or resume training through distributed checkpoints.
- Pretraining Llama 3.1 8B on eight GPUs
- Configuring multi-node training with SLURM
- Enabling Float8 training on H100 GPUs
davila7/claude-code-templates☆ 32.8KUpdated Oct 22, 2026