evaluation-maintenance
Use LightlySSL evaluation utilities and choose safe repository maintenance checks for tests, docs, notebooks, and CI variants.
- License 许可
- MIT
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
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 资源文件 3
- 参考文档references/evaluation-and-benchmarks.md8.6 KB
- 参考文档references/maintenance-workflows.md9.0 KB
- 参考文档references/troubleshooting.md7.4 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
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.