AGENT SKILL

framework-integrations

Use Aim framework callback integrations, direct tracking fallbacks, and TensorBoard conversion while respecting optional dependency boundaries.

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

01 前言 Front Matter

name
framework-integrations
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Use Aim framework callback integrations, direct tracking fallbacks, and TensorBoard conversion while respecting optional dependency boundaries.
disable-model-invocation
true

02 资源文件 6

03 SKILL.md 正文

Aim framework integrations

Use this sub-skill when the user needs Aim logging through ML-framework callbacks, loggers, or TensorBoard event conversion/sync. Keep the response focused on integration glue and optional dependency boundaries.

Route here

  • Adding Aim to PyTorch loops, PyTorch Ignite, PyTorch Lightning or Lightning, Hugging Face Trainer, Keras, TensorFlow Keras, XGBoost, CatBoost, LightGBM, Optuna, fastai, Paddle, MXNet, Prophet, stable-baselines3, ACME, or Keras Tuner workflows.
  • Diagnosing optional adapter imports or choosing between installing a framework adapter and using direct Run.track logging.
  • Migrating or syncing TensorBoard event logs into Aim without rerunning training.
  • Turning framework-specific metric naming into Aim names, steps, epochs, and contexts.

Route elsewhere

  • Core Aim SDK data model, Run, Repo, sequence queries, supported Aim object types, and query language: use tracking-sdk.
  • General CLI, UI/server, remote tracking service, storage/run maintenance, and non-TensorBoard conversion command operation: use cli-and-services.
  • Frontend implementation, release engineering, Docker builds, or large training-example execution: out of scope for this operating skill.

Operating rules

  1. Treat all framework integrations as optional except direct SDK use. Do not assume that PyTorch, TensorFlow, Lightning, Transformers, gradient boosting libraries, RL libraries, or TensorBoard tooling are installed.
  2. Do not run training examples by default. Prefer static callback insertion, parser/help checks, import diagnostics, and direct Run.track fallbacks.
  3. If an adapter import fails, first identify the missing package, then choose one of two safe paths: install/check the optional dependency only if the user wants that framework callback, or use direct Aim SDK tracking in the training loop.
  4. Prefer adapter source signatures over stale example parameter names. Some adapters use experiment, while others use experiment_name.
  5. For TensorBoard migrations, validate the log directory, make the target Aim repository explicit, and use offline conversion unless the user specifically wants live sync.

What to read

  • references/framework-recipes.md — callback/logger templates and direct fallback patterns.
  • references/optional-dependencies.md — optional package probes, adapter import behavior, and installation boundaries.
  • references/tensorboard-and-conversion.md — TensorBoard conversion and live sync workflows.
  • references/troubleshooting.md — import failures, parameter mismatches, context issues, TensorBoard cache/dependency failures, and side-effect boundaries.

Bundled scripts

  • scripts/aim_integration_snippets.py prints self-contained integration skeletons and can run optional dependency diagnostics without importing heavy frameworks by default.
  • scripts/tensorboard_sync_template.py validates TensorBoard log directories and prints or explicitly executes a safe aim convert tensorboard command; it can also print a live-sync code template.

Quick response pattern

  1. Identify the framework and whether the user wants a native adapter or direct SDK fallback.
  2. Check optional dependencies with the bundled snippets script or a minimal import probe.
  3. Use the relevant recipe, keeping repo, experiment or experiment_name, step, epoch, and context explicit.
  4. If training or service execution is requested, ask for permission and constraints before running it.

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