Machine learning, statistics, and model training. Open it without being asked when the work splits data, trains or evaluates a model, runs a statistical test, fits a Bayesian model, analyzes a table of data, decides whether to fine-tune or fine-tunes a language model or an embedding model, debugs GPU memory, reads evaluation logs, compresses a model's weights, or serves a model on GPUs.
$npx -y skills add MauroProto/mstack --skill ml --agent claude-code
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Ml?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/mauroproto-mstack)
---
name: ml
description: Machine learning, statistics, and model training. Open it without being asked when the work splits data, trains or evaluates a model, runs a statistical test, fits a Bayesian model, analyzes a table of data, decides whether to fine-tune or fine-tunes a language model or an embedding model, debugs GPU memory, reads evaluation logs, compresses a model's weights, or serves a model on GPUs.
---
# ml
Read `modules/experiment-rigor.md` before any work that trains a model and reports a number. Then read the one guide whose signal matches. Each guide is for one library, at the version in the table: check the installed version before you trust an API detail.
| Signal in the request or the repo | Read | Targets | Care |
|---|---|---|---|
| A question about a CSV, a spreadsheet, a query result, or logs: anomalies, a trend, a difference between groups | `modules/table-analysis.md` | any library | |
| A train, validation, and test split; cross-validation; an accuracy that looks too high | `guides/data-rigor-and-leakage/GUIDE.md` | any library | |
| A statistical test, an effect size, a power analysis, a comparison of groups | `guides/statistical-analysis/GUIDE.md` | Pingouin 0.7, SciPy 1.18, statsmodels 0.15 | Ask before creating the environment it describes. APA formatting only when the user wants it. |
| `import pymc`; a Bayesian model, priors, a hierarchical model | `guides/pymc-modeling/GUIDE.md` | PyMC 6, PyTensor 3 | |
| An existing posterior to check: divergences, R-hat, ESS, LOO, a posterior predictive check | `guides/arviz-diagnostics/GUIDE.md` | ArviZ 1 | |
| `skforecast`; backtesting a forecast, `TimeSeriesFold` | `guides/backtesting-configuration/GUIDE.md` | skforecast | |
| A CUDA out-of-memory error, a memory leak, or a snapshot from `torch.cuda.memory._dump_snapshot()` | `guides/analyze-memory-snapshot/GUIDE.md` | PyTorch | Loading a pickle runs the code inside it. The script opens one only with `TRUST_SNAPSHOT_PICKLE=1`: set it only for a snapshot this machine produced. |
| Training an embedding model, a reranker, SPLADE, or ColBERT with `sentence-transformers` | `guides/train-sentence-transformers/GUIDE.md` | sentence-transformers 5 and later | The templates push to the Hub only with `PUSH_TO_HUB=1` and report to Trackio only with `REPORT_TO_TRACKIO=1`. Set them, or start an HF Job, only when the user asks. |
| Whether to fine-tune at all, and SFT, DPO, or training with a checker | `modules/before-finetuning.md` | any library | Read it before the training guides below. |
| Fine-tuning a language model with TRL: `SFTTrainer`, `DPOTrainer`, `GRPOTrainer` | `guides/trl-training/GUIDE.md` | TRL | |
| Training with rewards (GRPO and similar) that misbehaves: flat reward, entropy collapse, log-probability drift, an evaluation gap | `guides/debug-rl-training/GUIDE.md` | any framework | Its metric names come from one stack. A diagnosis does not authorize a relaunch. |
| LoRA on a Mac with Apple Silicon, `mlx_lm.lora` | `guides/mlx-lm-lora/GUIDE.md` | mlx-lm | |
| Logging or reading training metrics with Trackio | `guides/huggingface-trackio/GUIDE.md` | Trackio | A Space is public by default. Log locally unless the user asks for a hosted dashboard. |
| An Inspect AI log, a `.eval` file | `guides/reading-logs/GUIDE.md` | inspect_ai 0.3 | |
| Making a model smaller: quantization to GGUF, GPTQ, AWQ, FP8, or 4-bit | `guides/model-compression/GUIDE.md` | llm-compressor, llama.cpp, Transformers | Its commands carry a date. Check each flag. |
| Serving an LLM on your own GPUs: the engine, vLLM in Docker or Kubernetes, VRAM and KV cache, a benchmark | `guides/inference-serving/GUIDE.md` | vLLM | Keep the endpoint private until the user decides who may reach it. |
## Not copied
These are named so that you can tell the user they exist. Install one only when the user asks.
- `yolo-training` (ultralytics/skills) is AGPL-3.0.
- `tidymodels` (tidymodels/skills) has no license file at the commit that was read.
- `data-designer` (NVIDIA-NeMo/DataDesigner) belongs to a library that collects telemetry by default. `NEMO_TELEMETRY_ENABLED=false` turns it off.
- `scikit-learn` (K-Dense-AI/scientific-agent-skills) is a general tutorial. For scikit-learn 1.8 and later, `penalty` in `LogisticRegression` is deprecated in favor of `l1_ratio`.
- `nemo-mbridge-recipe-recommender` ships inside NVIDIA-NeMo/Megatron-Bridge and works only in a checkout of it.
- `agent-driven-training` (modal-labs/modal-dojo) runs training on Modal. Its six diagnosis references are copied here as `debug-rl-training`.
- `wandb-autoresearch` (wandb/skills) needs another skill of that repository and a W&B Launch queue.
- `optuna-mcp` (optuna/optuna-mcp) is an MCP server for hyperparameter search, not a skill.
Each folder under `guides/` is a skill that someone else wrote, copied at the commit named in `guides/THIRD_PARTY.md`.