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
- 参考文档references/sync-and-conversion.md13.0 KB
- 参考文档references/troubleshooting.md9.7 KB
- 脚本scripts/check_sync_guards.py13.9 KB
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 theswanlab syncCLI.- 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 theswanlab convertCLI. - 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.Apiorswanlab 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
- Read references/sync-and-conversion.md for the sync/converter decision matrix, API and CLI shapes, local run expectations, and conversion path checklist.
- Read references/troubleshooting.md when a user reports authentication, run-directory, record-integrity, old-version, optional-dependency, path-selection, or network upload failures.
- 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
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).