Skip to content
Back to skills

Once For All

ASecurity

"Routes Once-for-All/OFA pretrained model loading, subnet

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
toolspythonbashbackend

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

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

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill once-for-all --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Once For All?

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

Security grade badge for Once For All
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-once-for-all/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-once-for-all)

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: once-for-all
description: "Routes Once-for-All/OFA pretrained model loading, subnet
  evaluation, and predictor-driven architecture-search workflows."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# Once-for-All

Use this skill for the public **Once-for-All (OFA)** package when the request is about pretrained supernets, specialized subnet evaluation, PyTorch Hub entry points, or predictor-driven architecture search.

## What this skill covers

- Load OFA supernets with `ofa.model_zoo.ofa_net`.
- Load specialized OFA models with `ofa.model_zoo.ofa_specialized`.
- Sample, freeze, and extract active subnets from the OFA supernets.
- Evaluate subnet or specialized-model behavior on ImageNet-style folders.
- Run the tutorial-style accuracy, FLOPs, latency, and evolutionary-search helpers.

## What this skill does not cover

- Distributed OFA training with Horovod/MPI.
- ImageNet-scale training runs or long fine-tuning jobs.
- Maintainer release automation.

## Install and smoke-check

Read `references/dependencies.md` before choosing extras. A practical baseline is:

```bash
pip install ofa torch torchvision filelock
pip install numpy gdown tqdm pyyaml matplotlib thop
```

If you are working from a source checkout, prefer a normal install over editable mode when modern packaging tools reject the repo's timestamped version string.

Minimal import smoke:

```bash
python - <<'PY'
from ofa.model_zoo import ofa_net
m = ofa_net('ofa_resnet50', pretrained=False)
print(type(m).__name__)
PY
```

For a broader install check, run `scripts/check_install.py`.

Specialized-model ids may still resolve small public config files even when you are not fetching pretrained weights.

## Route map

### `sub-skills/inference/`
Read this for model loading, subnet sampling, PyTorch Hub names, and ImageNet-style evaluation.

Typical user intents:
- "load an OFA supernet"
- "evaluate a specialized OFA model"
- "sample a subnet"
- "run `eval_ofa_net.py` or `eval_specialized_net.py`"
- "use the hubconf entry points"

### `sub-skills/search/`
Read this for accuracy predictors, FLOPs or latency tables, and evolutionary architecture search.

Typical user intents:
- "search for the best subnet"
- "use the accuracy predictor"
- "run the latency or FLOPs constrained tutorial"
- "build an OFA tradeoff curve"

## Cross-cutting references

- `references/repo-provenance.md` — snapshot of the source checkout used to generate this skill.
- `references/repo-routing-metadata.json` — router metadata consumed by `repo-skills-router`.
- `references/dependencies.md` — package groups and backend notes.
- `references/troubleshooting.md` — install, import, download, and dataset pitfalls.

## Cross-cutting script

- `scripts/check_install.py` — safe install smoke for the installed package and the core OFA helpers.

## How to choose this skill

Choose `once-for-all` when the user names OFA, `ofa_net`, `ofa_specialized`, `AccuracyPredictor`, `EvolutionFinder`, `eval_ofa_net.py`, `eval_specialized_net.py`, or the Once-for-All tutorial notebook.

Choose a more generic computer-vision skill only when the task is not OFA-specific.

Files in this skill

  • SKILL.md3.1 KB
  • references/dependencies.md1.2 KB
  • references/repo-provenance.md1.4 KB
  • references/repo-routing-metadata.json493 B
  • references/troubleshooting.md2 KB
  • scripts/check_install.py3.5 KB
  • sub-skills/inference/SKILL.md2.4 KB
  • sub-skills/inference/references/api-reference.md1.9 KB
  • sub-skills/inference/references/model-overview.md1.6 KB
  • sub-skills/inference/references/troubleshooting.md1.5 KB
  • sub-skills/inference/references/workflows.md2.1 KB
  • sub-skills/inference/scripts/evaluate_ofa.py5.1 KB
  • sub-skills/search/SKILL.md2.2 KB
  • sub-skills/search/references/api-reference.md2 KB
  • sub-skills/search/references/troubleshooting.md1.3 KB
  • sub-skills/search/references/workflows.md1.8 KB
  • sub-skills/search/scripts/tiny_search.py3.1 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.