计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
once-for-all【效率与协作】Routes Once-for-All/OFA pretrained model loading, subnet evaluation, and predictor-driven architecture-search workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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.
ofa.model_zoo.ofa_net.ofa.model_zoo.ofa_specialized.Read references/dependencies.md before choosing extras. A practical baseline is:
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:
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.
sub-skills/inference/Read this for model loading, subnet sampling, PyTorch Hub names, and ImageNet-style evaluation.
Typical user intents:
eval_ofa_net.py or eval_specialized_net.py"sub-skills/search/Read this for accuracy predictors, FLOPs or latency tables, and evolutionary architecture search.
Typical user intents:
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.scripts/check_install.py — safe install smoke for the installed package and the core OFA helpers.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.