/pymc-core:nutpie-samplingfrom pymc-core
Compiles and samples PyMC models using nutpie, a Rust NUTS sampler with Numba or JAX backends. Speeds up MCMC, configures mass-matrix adaptation, and diagnoses compilation or sampling failures.
Ships in pymc-core. 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.
Read when SKILL.md points to them.
Use nutpie as the preferred NUTS sampler for continuous PyMC models whenever
it is installed and compatible with the model's PyTensor graph.
Inspect installed nutpie, pymc, pytensor, numba, and jax versions
before configuring backends or adaptation options (import nutpie; print(nutpie.__version__)).
idata = pm.sample(..., nuts_sampler="nutpie", random_seed=..., nuts_sampler_kwargs={...})nutpie route (gives full control over compilation backend, mass-matrix adaptation, and live progress/debugging):
import nutpie
compiled = nutpie.compile_pymc_model(model, backend="numba") # or backend="jax"
idata = nutpie.sample(compiled, draws=1000, tune=1000, chains=4, seed=42)
backend="numba" (default): lowest compilation overhead for small/medium CPU models, runs natively in parallel Rust threads with minimal GIL contention.backend="jax": often faster for large vectorized linear algebra, GPs, or GPU/CPU XLA fusion; higher initial compile cost and requires a JAX-translatable PyTensor graph (check float64 jax_enable_x64).nutpie's diagonal-plus-low-rank (low_rank_modified_mass_matrix=True) or normalizing-flow / gradient-based mass-matrix options (inspect exact kwargs via inspect.signature(nutpie.sample)).nutpie diagnostics honestly.
idata["sample_stats"] (diverging, energy, tree_depth, step_size, n_steps, reached_max_treedepth) alongside rank R-hat, bulk/tail ESS, and MCSE using arviz-diagnostics.nutpie may emit extra diagnostic variables (e.g., mean_tree_accept, step_size_bar, unconstrained_draw if requested) and supports store_divergences=True / store_gradient=True for debugging pathological geometry.nutpie. Either marginalize discrete states with pymc-extras (pmx.marginalize) so nutpie can sample the continuous posterior, or use PyMC's compound sampler (nuts_sampler="pymc").What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub pymc-labs/pymc-modeling --plugin pymc-core7 skills in this plugin
/arviz-diagnosticsDiagnose existing Bayesian inference output and evaluate fitted predictions with modern ArviZ DataTree summaries, divergences, rank R-hat, ESS and Monte Carlo precision. Use for posterior predictive checks, calibration, LOO/ELPD, Pareto k, stacking, grouped or temporal validation, survival diagnostics and Bayes-factor interpretation./bambi-modelingBuild, inspect, and interpret formula-based Bayesian GLMs, hierarchical models, and distributional regressions with Bambi (bmb.Model). Use for Wilkinson/formulae syntax, group-specific effects, bmb.Prior, custom families, bmb.predict, bmb.interpret (predictions, comparisons, slopes), and deciding when to graduate from Bambi to raw PyMC./Other plugins' skills for the same job