AGENT SKILL

zoo

Foolbox model-zoo guidance for loading local or remote Foolbox-compatible repositories, implementing foolbox_model.py create() contracts, fetching weights, and diagnosing networked model-loader failures.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
zoo
license
MIT
metadata
{ "disco-role": "operating" }
description
Foolbox model-zoo guidance for loading local or remote Foolbox-compatible repositories, implementing foolbox_model.py create() contracts, fetching weights, and diagnosing networked model-loader failures.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

Foolbox model zoo

Use this route when a task mentions foolbox.zoo, get_model, foolbox_model.py, ModelLoader, shared model repositories, downloaded model weights, or a GitCloneError. Read references/api-reference.md for signatures and references/workflows.md for local and remote procedures.

Command, cache, and approval paths

The checker command in the workflow reference is relative to the generated Foolbox skill root, not a native Foolbox checkout and not the caller's current directory. From any cwd, set the root and change into it first:

# Replace this non-executable placeholder with the absolute directory containing the root SKILL.md.
export SKILL_ROOT=/path/to/installed/skills/disco/foolbox
cd "$SKILL_ROOT"

Use the actual skill-root path when it differs from this installation, or use an absolute script path. Local checker output is temporary and does not write model zoo data into the skill. get_model() clones into Foolbox's cache and fetch_weights() writes downloads/extractions there (typically under ~/.foolbox_zoo), not beside these documents; record and inspect the returned path before cleanup. Plot or report files belong in an explicit absolute output directory such as "$SKILL_ROOT/outputs/", never in source/reference assets.

The local checker is offline. A zoo clone or weights download/extraction is networked and may execute untrusted code or consume substantial disk; obtain explicit approval immediately before zoo.get_model(...) or zoo.fetch_weights(...), even if a cache entry exists. Do not treat cache presence as approval.

Choose a safe route

  • Local repository: prefer a local fixture or a user-owned repository, inspect its foolbox_model.py, and validate create() without network. Run scripts/check_local_zoo_model.py.
  • Remote repository: fb.zoo.get_model(url, module_name='foolbox_model', overwrite=False, **kwargs) clones into Foolbox's cache and imports the module. This executes remote code and may install/use framework dependencies; obtain approval before cloning.
  • Weights only: fb.zoo.fetch_weights(uri, unzip=False) downloads to a Foolbox cache; unzip=True extracts ZIP or tar.gz archives. Treat this as a networked, potentially large operation and verify checksums/provenance outside the normal smoke path.

A compatible model module must expose create(**kwargs) and return a Foolbox Model wrapper. The default module name is foolbox_model. Keep model loading separate from attack benchmarking so a failed clone or weight download does not look like an attack failure.

Use references/troubleshooting.md for module imports, invalid URLs, missing create(), return types, cache/overwrite, network failures, and archive extraction. Do not run remote examples from the original repository as part of a routine offline verification.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351