AGENT SKILL

sync-and-converters

Guide SwanLab local sync, offline run validation, crash-tolerant upload behavior, and TensorBoard/W&B/MLflow conversion.

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

01 前言 Front Matter

name
sync-and-converters
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Guide SwanLab local sync, offline run validation, crash-tolerant upload behavior, and TensorBoard/W&B/MLflow conversion.
disable-model-invocation
true

02 资源文件 3

03 SKILL.md 正文

SwanLab sync and converters

Use this sub-skill when the task is about uploading an existing SwanLab local/offline run, validating a run directory before upload, interpreting incomplete or legacy local records, or converting/synchronizing logs from TensorBoard, Weights & Biases, or MLflow into SwanLab.

Route here for

  • swanlab.sync(...) or the swanlab sync CLI.
  • Checking whether a local/offline run directory is readable and structurally plausible before cloud sync.
  • Explaining corrupted-record, missing-finish, crash-marked, duplicate-step, or old run-file-version behavior during sync.
  • Choosing among sync_wandb, sync_tensorboardX, sync_tensorboard_torch, sync_mlflow, WandbConverter, WandbLocalConverter, TFBConverter, MLFlowConverter, and the swanlab convert CLI.
  • Troubleshooting converter optional dependencies, monkey-patch ordering, source path confusion, or upload failures.

Route elsewhere

  • Creating the original SwanLab training run, logging scalars/config, or using finish: use the experiment-tracking sub-skill.
  • Login, API-key storage, default mode selection, and host configuration: use the settings-and-modes sub-skill.
  • Fetching/exporting cloud metadata with swanlab.Api or swanlab api: use the open-api-and-cli sub-skill.
  • Media object constructors and rich chart object details: use the media-and-custom-charts sub-skill.

Operating references

  1. Read references/sync-and-conversion.md for the sync/converter decision matrix, API and CLI shapes, local run expectations, and conversion path checklist.
  2. Read references/troubleshooting.md when a user reports authentication, run-directory, record-integrity, old-version, optional-dependency, path-selection, or network upload failures.
  3. Use scripts/check_sync_guards.py for no-network parser and path-guard assertions before trusting advice that depends on local sync/converter surfaces.

Safety defaults

  • Do not start a network upload unless the user explicitly asks to sync and has provided or confirmed credentials/host context.
  • Validate the directory first; for sync, the target is the run directory containing the SwanLab run record file, not a TensorBoard log root, W&B root, or MLflow tracking URI.
  • Treat missing finish records as a crash-tolerant sync case, not as proof that all metrics are complete.
  • Treat converter dependencies as optional until the selected converter path requires them.

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