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
- 参考文档references/framework-recipes.md13.6 KB
- 参考文档references/optional-dependencies.md8.5 KB
- 参考文档references/tensorboard-and-conversion.md5.1 KB
- 参考文档references/troubleshooting.md7.8 KB
- 脚本scripts/aim_integration_snippets.py14.0 KB
- 脚本scripts/tensorboard_sync_template.py6.8 KB
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.tracklogging. - 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: usetracking-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
- 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.
- Do not run training examples by default. Prefer static callback insertion, parser/help checks, import diagnostics, and direct
Run.trackfallbacks. - 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.
- Prefer adapter source signatures over stale example parameter names. Some adapters use
experiment, while others useexperiment_name. - 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.pyprints self-contained integration skeletons and can run optional dependency diagnostics without importing heavy frameworks by default.scripts/tensorboard_sync_template.pyvalidates TensorBoard log directories and prints or explicitly executes a safeaim convert tensorboardcommand; it can also print a live-sync code template.
Quick response pattern
- Identify the framework and whether the user wants a native adapter or direct SDK fallback.
- Check optional dependencies with the bundled snippets script or a minimal import probe.
- Use the relevant recipe, keeping
repo,experimentorexperiment_name,step,epoch, andcontextexplicit. - If training or service execution is requested, ask for permission and constraints before running it.
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).