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.