labml
Guides labml experiment tracking, helper training, remote execution, and app-server workflows.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- labml
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Guides labml experiment tracking, helper training, remote execution, and app-server workflows.
- disable-model-invocation
- true
02 资源文件 6
- 参考文档references/package-map.md3.2 KB
- 参考文档references/repo-provenance.md2.2 KB
- 参考文档references/repo-routing-metadata.json398 B
- 参考文档references/troubleshooting.md4.3 KB
- 参考文档references/workflows.md2.8 KB
- 脚本scripts/check_labml_stack.py6.7 KB
03 SKILL.md 正文
LabML
Use this skill for the LabML repository family: experiment tracking, logging, configuration, monitoring, helper training loops, remote job orchestration, and the LabML monitoring app.
Start here
- Read
references/package-map.mdto choose the right distribution or install set. - Read
references/workflows.mdwhen you need a quick workflow map across the four major subskills. - Read
references/troubleshooting.mdwhen imports, configs, remote jobs, GPU monitoring, or the app server fail. - Read
references/repo-provenance.mdwhen checking whether this skill matches the current checkout or before refreshing it. - Run
scripts/check_labml_stack.pyfor a quick read-only package and backend health check.
Install
Choose distributions and focused extras from references/package-map.md rather
than installing every package. The common distribution set is:
pip install labml labml-helpers labml-remote labml-app
For the helper remote-dataset surface, install its direct-import extra:
pip install 'labml-helpers[remote-dataset]'
The remote-dataset extra covers matplotlib, urllib3, fastapi, and
uvicorn imported by labml_helpers.datasets.remote; labml-helpers[plotting]
covers the direct matplotlib plotting import. These are focused direct
dependencies, not a complete transitive closure or a claim that every workflow
is ready. Training and monitoring examples may additionally need torch,
torchvision, psutil, and py3nvml.
The app server additionally needs a running MongoDB service, settings, and packaged static frontend assets. If the app backend imports but the server entrypoint fails, read the server sub-skill troubleshooting notes.
Route map
tracking — sub-skills/tracking/SKILL.md
Use this route for:
experiment,tracker,logger,monit,lab,manage, andAppAPI..labml.yamlconfiguration files, run metadata, git metadata, and hardware monitoring from the client package.labmlCLI commands such ascapture,launch,monitor,service, and the client-sideapp-serverlauncher.- Experiment logging recipes, dynamic configs, and framework integration notes for PyTorch, Lightning, Keras, FastAI, and analytics examples.
helpers — sub-skills/helpers/SKILL.md
Use this route for:
labml_helperstraining-loop utilities, metrics, datasets,DeviceConfigs,OptimizerConfigs,SeedConfigs, and theModulewrapper.MNISTConfigs,CIFAR10Configs,TrainingLoopConfigs,TrainValidConfigs,SimpleTrainValidConfigs, and the remote dataset helpers.- Small supervised-training recipes, metric wiring, device selection, and dataset-serving patterns.
remote — sub-skills/remote/SKILL.md
Use this route for:
labml_remoteproject bootstrap,.remote/configs.yaml, rsync-based sync, job management, and distributed PyTorch launch helpers.- Remote server setup, package refresh, command execution, and job tailing.
- SSH, key, exclude-list, and remote-environment troubleshooting.
server — sub-skills/server/SKILL.md
Use this route for:
labml_appserver startup, REST analysis endpoints, metrics views, custom metrics, data stores, and route registration.- MongoDB-backed app runtime, app settings, analysis registries, and the web UI.
- Server-side deployment, reverse proxy, and runtime troubleshooting.
What not here
- Do not use this root skill for general PyTorch model design or package-wide
training helpers; route those to
helpers. - Do not use it for SSH orchestration or remote job management details; route
those to
remote. - Do not use it for the monitoring app's backend or deployment details; route
those to
server. - Do not depend on the original repository checkout at runtime; all reusable
guidance is bundled under
references/orscripts/.
Quick chooser
- If the user says "track an experiment", "log metrics", "use labml config",
"monitor hardware", or "use AppAPI", start with
tracking. - If the user says "train with helpers", "DeviceConfigs", "TrainValidConfigs",
"optimizer configs", or "remote dataset", start with
helpers. - If the user says "set up remote training", "labml_remote", "job-run", or
"helper-torch-launch", start with
remote. - If the user says "start the app server", "labml_app", "analysis endpoint",
"custom metric", or "MongoDB-backed UI", start with
server.
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).