Skip to content
Back to skills

Advanced Operations

ASecurity

"Advanced scvi-tools operations: Ray/autotune, MLflow, optional

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
developmentdebuggingapi

Works with

  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill advanced-operations --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Advanced Operations?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Advanced Operations
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-advanced-operations/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-advanced-operations)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: advanced-operations
description: "Advanced scvi-tools operations: Ray/autotune, MLflow, optional
  extras, developer extension surfaces, custom modules, Pyro internals,
  distributions, constraints, and neural building blocks."
disable-model-invocation: true
metadata:
  disco-role: operating
license: BSD 3-Clause
---

# advanced-operations

Use this sub-skill when the task involves scvi-tools internals or infrastructure beyond standard data setup, model fitting, latent extraction, or downstream biology workflows.

## Route here for

- Hyperparameter tuning through `scvi.autotune.run_autotune`, `AutotuneExperiment`, Ray Tune schedulers/searchers, HyperOpt, and scib-metrics tuning.
- Optional dependency decisions for `scvi-tools[autotune]`, `scvi-tools[mlflow]`, `scvi-tools[hub]`, `scvi-tools[parallel]`, `scvi-tools[interpretability]`, `scvi-tools[diagvi]`, RAPIDS, custom dataloaders, and hardware extras.
- MLflow experiment logging through `scvi.settings.mlflow_set_tracking_uri`, `scvi.settings.mlflow_set_experiment`, `scvi.utils.mlflow_logger`, `mlflow_log_artifact`, `mlflow_log_table`, and `mlflow_log_text`.
- Developer extensions using `scvi.model.base.BaseModelClass`, `scvi.module.base.BaseModuleClass`, `LossOutput`, `PyroBaseModuleClass`, `auto_move_data`, `scvi.nn`, and `scvi.distributions`.
- Debugging invalid custom module tensor shapes, distribution parameters, Pyro plate annotations, missing optional extras, Ray initialization, and MLflow artifact limits.

## Do not use this for

- Routine `setup_anndata`, registry-field choices, or AnnData/MuData preparation; use the data setup sub-skill.
- Standard model selection, `SCVI`/`SCANVI`/`TOTALVI` constructor choices, or basic train/query APIs; use core model and training sub-skills.
- Multimodal/spatial user workflows unless the question is about implementing or debugging the underlying module internals.

## References

- For autotune, optional extras, Ray, HyperOpt, scib-metrics, and MLflow, read [references/autotune-and-extras.md](references/autotune-and-extras.md).
- For custom model/module development, Pyro, distributions, constraints, and neural network components, read [references/developer-extension.md](references/developer-extension.md).
- For advanced failure triage, read [references/troubleshooting.md](references/troubleshooting.md).

## Quick checks before acting

- Confirm optional extras are installed before importing `scvi.autotune` or MLflow utilities; default installs may not include Ray, HyperOpt, scib-metrics, muon, or MLflow.
- Validate a model class has already registered data with its setup method before passing AnnData/MuData into `run_autotune`.
- For custom modules, test one minibatch through `module.forward(tensors, compute_loss=True)` and assert returned `inference_outputs`, `generative_outputs`, and `LossOutput` shapes before training.
- For distribution debugging, instantiate with `validate_args=True`, check positive parameters (`mu`, `theta`, `scale`, `rate`, `concentration`), and verify broadcasting across minibatch and feature axes.

Files in this skill

  • SKILL.md3 KB
  • references/autotune-and-extras.md6.4 KB
  • references/developer-extension.md7.4 KB
  • references/troubleshooting.md6.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.