AGENT SKILL

evaluation-maintenance

Use LightlySSL evaluation utilities and choose safe repository maintenance checks for tests, docs, notebooks, and CI variants.

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

01 前言 Front Matter

name
evaluation-maintenance
license
MIT
metadata
{ "disco-role": "operating" }
description
Use LightlySSL evaluation utilities and choose safe repository maintenance checks for tests, docs, notebooks, and CI variants.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

evaluation-maintenance

Use this sub-skill when a task asks how to evaluate LightlySSL representations, wire benchmarking callbacks/classifiers, or maintain the LightlySSL repository with scoped tests, static checks, docs builds, generated notebooks, and dependency-variant awareness.

For a fresh public package environment, start with pip install lightly. Add lightly[timm] only for TIMM / MAE / ViT-style optional modules, and lightly[video] only for video/PyAV data workflows. Repository-development checks need the project's development dependencies; use the maintenance reference before selecting broad commands.

Route here for

  • KNN feature-bank evaluation, linear evaluation, finetuning evaluation, online classifiers, BenchmarkModule, and MetricCallback.
  • Choosing between make format, make format-check, make lint, make type-check, make static-checks, make test-fast, make test, make test-distributed, and make all-checks.
  • Planning targeted pytest commands for changed Lightly source, tests, examples, docs, benchmarking utilities, or dependency metadata.
  • Slow-test and DDP marker behavior, including when --runslow, USE_PYTEST_POOL=1, and python -m pytest are required.
  • Generated notebook freshness after examples/ changes, docs build checks after docs/source changes, CI dependency variants, and contributor/PR constraints.
  • Benchmark caveats for dataset-scale or accelerator-dependent workflows.

Route elsewhere

  • End-to-end SSL training recipes, custom training loops, trainer configuration, and distributed training recipes: use training-workflows.
  • lightly-ssl-train, lightly-embed, lightly-magic, lightly-crop, input data layout, and embedding CSV operations: use cli-data-embedding.
  • Low-level transforms, losses, model heads/modules, datasets, collates, memory banks, tensor shapes, TIMM modules, or video dataset APIs: use ssl-building-blocks.
  • PyPI release, package publishing, notifications, or credentialed maintainer operations: treat as out of scope unless a human maintainer explicitly owns the release process.

First actions

  1. Identify whether the user is evaluating model outputs or maintaining the repository.
  2. Read the nearest bundled reference:
  3. For repository-maintenance planning, use the bundled dry-run helper. It prints commands and never executes them:
    • python scripts/check_repo_dev_commands.py --help
    • python scripts/check_repo_dev_commands.py lightly/utils/benchmarking/knn.py tests/utils/benchmarking/test_knn.py
  4. Keep checks scoped first. Escalate to make all-checks only when the user needs pre-PR confidence or the change crosses many surfaces.

Common safe patterns

  • Representation evaluation: use knn_predict for tensor-level KNN, KNNClassifier for Lightning validation over train/validation dataloaders, LinearClassifier to freeze a backbone, FinetuneClassifier to update backbone plus head, and OnlineLinearClassifier inside a parent LightningModule.
  • Metrics capture: attach MetricCallback to a Lightning Trainer when the task needs per-epoch scalar logs collected from trainer.callback_metrics.
  • Source change: run formatting/static checks plus the most relevant targeted pytest subtree before broader suites.
  • Example change: regenerate notebooks with make generate-example-notebooks and include the tracked notebook diff in the change.
  • Docs change: build docs locally with the lightweight no-plot target before PR handoff.
  • Distributed tests: only run DDP-marked tests when the environment supports multiprocessing; use USE_PYTEST_POOL=1 python -m pytest tests --runslow -m DDP.

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