/ai-and-data:ai-ml-landscapefrom ai-and-data
Comprehensive practitioner reference for the 2025-2026 AI/ML landscape: model selection and routing, open-weight vs hosted API trade-offs, RAG and agent patterns, inference serving (vLLM/SGLang), fine-tuning, benchmark interpretation, and AI governance.
Ships in ai-and-data. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Inference cost collapse: >280-fold reduction from $20.00 to $0.07 per million tokens between Nov 2022 and Oct 2024 (GPT-3.5-equivalent quality, per Stanford HAI). This makes capability cheap and engineering discipline the binding constraint.
No single model dominates. The top model leads by only ~2.7% (Stanford HAI AI Index, March 2026). The leading closed-weight model's edge over the top open-weight model on Chatbot Arena narrowed from 8.04% (Jan 2024) to 1.70% (Feb 2025).
Key practitioner principle: Build behind an abstraction layer (LiteLLM/OpenRouter) to avoid lock-in. Model names and rankings shift weekly.
| Factor | Hosted API | Open Weights |
|---|---|---|
| Peak capability, zero ops | ✓ | |
| Privacy, air-gap, data residency | ✓ | |
| Fine-tuning control | ✓ | |
| Predictable cost at sustained high QPS | ✓ | |
| Fastest to start | ✓ |
Open-weight options: DeepSeek-V4 (MIT-licensed, 1M context, 1.6T/49B active MoE), Qwen3, Meta Llama 4, Mistral, IBM Granite 4.0.
Threshold to self-host: sustained high QPS where API spend exceeds fully-loaded GPU fleet cost, or a hard data-residency requirement.
Start with hosted frontier behind an abstraction layer. Default to strong mid-tier (Claude Sonnet-class, GPT-4.1-mini-class, Gemini Flash-class); escalate to top-tier only for hard tasks.
Implement model routing once volume justifies it. A cheap classifier sends easy queries to small/cheap models with confidence-gated escalation. RouteLLM (UC Berkeley/Anyscale/Canva, ICLR 2025) achieved 95% of GPT-4 quality using only ~26% of GPT-4 calls, with up to 85% cost reduction on MT-Bench.
Move to open weights self-hosted on vLLM/SGLang when privacy, air-gap, predictable cost at scale, or fine-tuning control becomes the binding constraint.
Prompting → RAG → Fine-tuning (in that order)
The o1/o3/R1 paradigm: spending more inference compute on chain-of-thought "thinking tokens" is a complementary scaling axis to parameters/data.
Process Reward Models (PRMs): score intermediate reasoning steps; outperform outcome-only rewards on math (GenPRM: 1.5B model beats GPT-4o on ProcessBench via test-time scaling).
GRPO (Group Relative Policy Optimization): critic-free, group-relative RL with verifiable rewards (RLVR). Dominant post-training method for reasoning. Spawned variants DAPO, Dr. GRPO, GSPO, GMPO.
When reasoning tokens are worth it: genuine multi-step reasoning (math, code generation, legal analysis). Wasteful when wired into pipelines expecting short outputs.
Gradient-boosted trees remain state-of-the-art on most tabular problems. Deep learning requires more tuning and rarely wins on tabular without genuine unstructured signal.
2025 challenger: TabPFN (transformer tabular foundation model, published in Nature) beats GBDTs on small/medium single tables. XGBoost still wins on large tables.
Practitioner default: GBDT-first (LightGBM → CatBoost → XGBoost depending on data characteristics). Only reach for deep learning with genuine unstructured signal or very large data.
Linear algebra: tensors are batched multidimensional arrays; matmul/dot products implement every linear layer and attention score; SVD underpins PCA and low-rank adaptation (LoRA literally learns low-rank ΔW). Norms drive regularization (L1 sparsity/Lasso, L2 weight decay/Ridge) and gradient clipping.
Probability: KL/JS/Wasserstein divergences anchor VAEs, GANs, and distribution matching. Cross-entropy is the default classification loss (= MLE under a categorical model). Bias–variance is operationalized by regularization and ensembling.
Optimization: backprop = reverse-mode autodiff applying chain rule over the computational graph. Deep loss landscapes are non-convex but navigable — saddle points (not bad local minima) dominate, and SGD noise helps escape them. AdamW is the safe default; cosine annealing with linear warmup is the standard LR schedule. First-order methods dominate because Hessian-based methods don't scale to billions of parameters.
Calibration matters in production. Temperature scaling (post-hoc, single-parameter) for neural nets; isotonic/Platt for others. Brier score and reliability diagrams for diagnosis.
Enable very deep networks by giving gradients an identity path.
Architecture types:
Attention components:
Mixture of Experts (MoE): dominant frontier-scaling lever. Sparse gating + routing + load balancing. DeepSeek-V3 activates 37B of 671B params per token. Mixtral, DeepSeek-MoE, Qwen3-MoE all use this architecture.
| Format | Use case | Notes |
|---|---|---|
| AWQ | Best throughput in vLLM; INT4 weight-only | <2% degradation on most tasks; noticeable on math/code/reasoning |
| GPTQ | Best throughput in vLLM | Similar trade-offs to AWQ |
| GGUF | llama.cpp/Ollama; CPU+GPU offload | Q4_K_M–Q6_K near-BF16 quality |
| FP8 W8A8 | Near-lossless on Hopper/Blackwell | Production preferred when hardware supports it |
Rule: avoid INT4 for math/code/reasoning-critical paths.
| Engine | Strength |
|---|---|
| vLLM | PagedAttention; broadest model/hardware support; V1 architecture |
| SGLang | RadixAttention; ~29% higher H100 throughput; up to 6.4× on prefix-heavy RAG/chat |
| TensorRT-LLM | Maximum NVIDIA throughput |
| Ollama/llama.cpp | Local deployment; CPU offload |
Continuous batching + disaggregated prefill/decode (separate compute-bound prefill and bandwidth-bound decode pools) are the 2026 production patterns.
Speculative decoding (draft+verify, Medusa/EAGLE): 2–4× latency wins losslessly.
The contamination problem is severe. A single model can swing 17–35 points between SWE-bench Verified and the standardized-scaffold Pro leaderboard — scaffold and harness move scores more than model swaps.
Key benchmarks:
Decision rule for benchmarks:
Production default (2026): hybrid search (BM25 + dense via RRF) + cross-encoder reranking + parent-child chunking.
Anthropic Contextual Retrieval (Sept 2024): prepend LLM-generated chunk summary before embedding/indexing.
RAG vs fine-tuning vs long-context:
Model Context Protocol (MCP): Anthropic, Nov 2024; donated to Linux Foundation Dec 2025; adopted by OpenAI, Google, Microsoft, Amazon. "USB-C for AI tools." Over 97M monthly SDK downloads and 10,000 active servers at donation time.
Production failure modes: runaway loops, unbounded retries, silent context truncation. Iteration limits, cost ceilings, and termination conditions are mandatory, not polish.
Single-agent suffices for ~80% of cases. Multi-agent adds cost and non-determinism.
Framework selection:
| Chip | Key spec | Notes |
|---|---|---|
| NVIDIA H100/H200 (Hopper) | 80GB/141GB HBM3 | Current production standard |
| B200/GB200 (Blackwell) | 192GB HBM3e at 8TB/s | ~2.5–3× H100 training; GB200 NVL72 trained Llama 3.1 405B in ~10 min on 5,120 GPUs (MLPerf) |
| AMD MI300X/MI325X/MI355X | 192–288GB HBM3 | More memory; CUDA/ROCm moat keeps NVIDIA at ~80%+ share |
| Google TPU v5/v6e | — | JAX/XLA affinity |
| Groq LPU | — | Deterministic high-throughput inference |
| Date | What takes effect |
|---|---|
| Aug 1, 2024 | In force |
| Feb 2, 2025 | Prohibited practices + AI literacy obligations |
| Aug 2, 2025 | GPAI (General Purpose AI) obligations |
| Aug 2, 2026 | GPAI enforcement powers and fines; high-risk system obligations |
| Aug 2, 2027 | Legacy-GPAI compliance deadline |
Fines: up to €35M or 7% of global turnover (prohibited practices) — higher ceiling than GDPR. The voluntary GPAI Code of Practice offers a "presumption of conformity" safe harbor.
Action: If you touch EU users, classify your system now against the AI Act risk tiers. If you fine-tune a GPAI model substantially, you may become a "provider" with heavier obligations.
Demographic parity vs equalized odds vs individual fairness are mutually incompatible (impossibility theorems). Tools: Fairlearn, AI Fairness 360.
Differential privacy, federated learning, and defenses against membership-inference/model-inversion/poisoning attacks.
NIST AI RMF (Govern/Map/Measure/Manage) is the US reference standard.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
4 skills in this plugin
/data-engineeringProduction data engineering reference covering ELT/ETL patterns, dbt project structure, orchestration (Airflow/Dagster/Prefect), Python data stack (pandas/Polars/DuckDB/Spark), cloud warehouses (Snowflake/BigQuery/Azure Fabric), lakehouse formats (Iceberg/Delta/Hudi), CDC with Debezium, SCD2, data quality, feature stores, and ML productionization with MLflow. Use when answering questions about data pipelines, SQL optimization, warehouse cost control, Python data tools, gradient boosting, A/B testing, or modern data stack architecture./llm-cost-optimizationProduction reference for LLM token economics, cost optimization, and prompt engineering on Azure. Covers tokenization and pricing asymmetry, prompt caching (Azure/Anthropic/Google), model routing and cascades, PTU vs PAYG break-even, Azure APIM AI gateway, semantic caching, context window engineering, prompt/context compression (LLMLingua, LongLLMLingua, RECOMP, Selective Context, extractive compression), caveman/telegraphic prompting, token-lean serialization formats (TOON/Markdown/YAML vs JSON/XML), output control (Concise CoT, Chain-of-Draft), fine-tuning for cost, Batch API, structured outputs, conversation history management, and Azure-specific deployment patterns. Use when optimizing LLM spend, compressing prompts or context, choosing a compression library, picking token-lean formats, reducing output verbosity, designing cost-efficient AI architectures, troubleshooting token costs, engineering prompts for performance, or sizing Azure OpenAI deployments./rag-and-agentsProduction reference for RAG (Retrieval-Augmented Generation) and AI agent development covering document parsing, chunking strategies (parent-child, contextual retrieval), embedding models, vector databases, hybrid search with reranking, GraphRAG, RAGAS evaluation, agent frameworks (LangGraph, CrewAI, Microsoft Agent Framework, Foundry Agent Service), MCP, multi-agent patterns, computer use, and Azure-native RAG (Azure AI Search, Foundry IQ). Use when designing or debugging RAG pipelines, choosing vector databases, building agent systems, evaluating retrieval quality, or architecting Azure AI Search solutions.npx claudepluginhub the-vibey-project/vibey --plugin ai-and-data2 plugins ship this exact skill · first indexed Aug 12, 2026