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
- 参考文档references/evaluation-and-benchmarks.md8.6 KB
- 参考文档references/maintenance-workflows.md9.0 KB
- 参考文档references/troubleshooting.md7.4 KB
- 脚本scripts/check_repo_dev_commands.py14.1 KB
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, andMetricCallback. - Choosing between
make format,make format-check,make lint,make type-check,make static-checks,make test-fast,make test,make test-distributed, andmake 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, andpython -m pytestare required. - Generated notebook freshness after
examples/changes, docs build checks afterdocs/sourcechanges, 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: usecli-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
- Identify whether the user is evaluating model outputs or maintaining the repository.
- Read the nearest bundled reference:
- For repository-maintenance planning, use the bundled dry-run helper. It prints commands and never executes them:
python scripts/check_repo_dev_commands.py --helppython scripts/check_repo_dev_commands.py lightly/utils/benchmarking/knn.py tests/utils/benchmarking/test_knn.py
- Keep checks scoped first. Escalate to
make all-checksonly when the user needs pre-PR confidence or the change crosses many surfaces.
Common safe patterns
- Representation evaluation: use
knn_predictfor tensor-level KNN,KNNClassifierfor Lightning validation over train/validation dataloaders,LinearClassifierto freeze a backbone,FinetuneClassifierto update backbone plus head, andOnlineLinearClassifierinside a parent LightningModule. - Metrics capture: attach
MetricCallbackto a LightningTrainerwhen the task needs per-epoch scalar logs collected fromtrainer.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-notebooksand 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
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.
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.
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.
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.
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.
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).