Skip to content
cccskills
FreePublished on GitHub

composer

Use MosaicML Composer for PyTorch training loops, speedup methods, loggers, checkpoints, distributed launch, profiling, and model export.

The English summary is being prepared. Showing the original description.

See how to install

Files included (36)

  • SKILL.md5.5 KB
  • references/installation-and-package-map.md3.8 KB
  • references/repo-provenance.md2.2 KB
  • references/repo-routing-metadata.json532 B
  • references/troubleshooting.md4.7 KB
  • scripts/check_import.py3.2 KB
  • scripts/run_smokes.py3.7 KB
  • sub-skills/distributed/references/launcher-and-ranks.md6.3 KB
  • sub-skills/distributed/references/parallelism-and-backends.md9.4 KB
  • sub-skills/distributed/references/troubleshooting.md8.9 KB
  • sub-skills/distributed/scripts/device_probe.py4.1 KB
  • sub-skills/distributed/scripts/launcher_help.py3.1 KB
  • sub-skills/distributed/SKILL.md5.3 KB
  • sub-skills/inference-export/references/export-and-inference.md6.4 KB
  • sub-skills/inference-export/references/huggingface-integration.md3.6 KB
  • sub-skills/inference-export/references/troubleshooting.md4.5 KB
  • sub-skills/inference-export/scripts/export_torchscript_smoke.py2.1 KB
  • sub-skills/inference-export/SKILL.md5.3 KB
  • sub-skills/methods/references/algorithm-catalog.md11.0 KB
  • sub-skills/methods/references/functional-api.md10.3 KB
  • sub-skills/methods/references/troubleshooting.md8.2 KB
  • sub-skills/methods/scripts/functional_smoke.py4.0 KB
  • sub-skills/methods/SKILL.md4.4 KB
  • sub-skills/observability/references/loggers-and-callbacks.md8.3 KB
  • sub-skills/observability/references/profiling-and-artifacts.md7.2 KB
  • sub-skills/observability/references/troubleshooting.md9.6 KB
  • sub-skills/observability/scripts/logger_smoke.py3.4 KB
  • sub-skills/observability/scripts/profiler_smoke.py3.9 KB
  • sub-skills/observability/SKILL.md5.8 KB
  • sub-skills/training/references/checkpointing-and-time.md7.6 KB
  • sub-skills/training/references/model-and-data-contracts.md8.1 KB
  • sub-skills/training/references/trainer-workflows.md7.5 KB
  • sub-skills/training/references/troubleshooting.md7.7 KB
  • sub-skills/training/scripts/checkpoint_smoke.py9.4 KB
  • sub-skills/training/scripts/train_smoke.py5.4 KB
  • sub-skills/training/SKILL.md8.1 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

MosaicML Composer Repo Skill

Use this repo skill when a task involves MosaicML Composer, the mosaicml Python distribution, or the importable composer package for PyTorch training engines, efficient training methods, callbacks/loggers, checkpoints, distributed launch, profiling, or model export.

Public install:

pip install mosaicml

Minimal import check:

python - <<'PY'
import composer
print(composer.__version__)
from composer import Trainer
print(Trainer)
PY

For optional integrations, read installation and package map before adding extras.

Route by task

  • Build, run, resume, or debug a training workflow: read training. This route owns Trainer, ComposerModel, ComposerClassifier, DataSpec, Evaluator, Time, State, manual checkpoint load, autoresume, and basic device/precision choices.
  • Add or debug Composer speedup methods: read methods. This route owns composer.algorithms, composer.functional, MixUp/CutMix/LabelSmoothing, model surgery, batch-key routing, and method recipe placement.
  • Make run state visible: read observability. This route owns loggers, monitoring callbacks, local/remote file upload, profiler traces, composer_collect_env, and observability troubleshooting.
  • Launch or reason about distributed/backend workflows: read distributed. This route owns the composer launcher, rank/world-size helpers, distributed samplers, get_device, FSDP/FSDP2/TP basics, and auto microbatching caveats.
  • Export models for inference: read inference-export. This route owns export_for_inference, ExportForInferenceCallback, TorchScript/ONNX validation, checkpoint-backed export, and optional HuggingFace/PEFT caveats.

Root references and scripts

  • Installation and package map: distribution/import names, optional extras, top-level namespaces, console entry points, and first checks.
  • Troubleshooting: cross-cutting install/import, backend, optional dependency, CLI, and package-surface failures.
  • Repo provenance: source commit, branch, package version, dirty-state baseline, and relative evidence paths.
  • Routing metadata: structured scenario placement for managed repo-skill import.
  • check_import.py: safe JSON import/backend probe for Composer and PyTorch.
  • run_smokes.py: runs bundled sub-skill smoke scripts with the current Python.

Fast operating workflow

  1. Verify installation with python scripts/check_import.py from this skill root.
  2. Pick the closest sub-skill route from the task wording and load only the references/scripts it names.
  3. Start with CPU/tiny-data scripts when debugging model, data, or API issues.
  4. Add optional extras only for the integration in use; do not install mosaicml[all] unless the task truly spans many optional backends.
  5. For GPU/distributed issues, run the distributed device_probe.py before launching training.
  6. For checkpoint/export issues, decide whether the task is about training-state resume or inference artifact export; route accordingly.
  7. Keep generated project code independent of this skill's source provenance and do not copy private machine paths into user scripts.

Composer concepts to recognize

  • Trainer is the high-level training loop that manages fit/eval/predict, checkpoint save/load, callbacks, algorithms, logging, precision, devices, and distributed integration.
  • ComposerModel is the model contract for batches; ComposerClassifier wraps simple (input, target) classification modules.
  • Algorithm classes integrate methods through Trainer events; composer.functional helpers are for custom loops or one-off model/batch mutation.
  • LoggerDestination subclasses receive metrics and uploaded files; callbacks and trace handlers generate many of those files.
  • The composer console entry point launches multi-process distributed jobs and configures rank environment variables.
  • export_for_inference and ExportForInferenceCallback produce TorchScript or ONNX artifacts after optional load/surgery/transform steps.

Avoid using this skill when

  • The task is ordinary PyTorch with no Composer APIs, errors, configs, or artifacts.
  • The user is actually using PyTorch Lightning, Accelerate, DeepSpeed, or another training framework without Composer.
  • The task is model-family-specific and only incidentally mentions a project that once used Composer.
  • The user asks to edit the Composer repository itself rather than operate the package; this skill is for package/runtime use, not maintainer development.

Verification posture

The generated skill favors CPU-safe, no-download workflows first and documents CUDA/distributed behavior with backend caveats. Optional CUDA was available during construction and a PyTorch CUDA smoke passed, but production-scale multi-rank training should still be verified in the user's target environment before relying on it.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Routes 3D ResNets PyTorch video action-recognition workflows across training, inference, and data preparation.

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill338Updated Sep 3, 2026

3ddfa

Free

Guide 3DDFA Python inference, geometry rendering, training/evaluation, and optional C++ ONNX workflows for 3D dense face alignment.

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill338Updated Sep 3, 2026

Routes 3DDFA_V2 face-alignment setup, still-image demos, video tracking, and ONNX benchmarking workflows.

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill338Updated Sep 3, 2026

Operate AB3DMOT 3D multi-object tracking workflows for KITTI and nuScenes data, tracking, evaluation, and visualization.

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill338Updated Sep 3, 2026

Use Hugging Face Accelerate for PyTorch training-loop migration, distributed launch/configuration, DeepSpeed/FSDP/TPU backend setup, big-model inference/offload, checkpointing, tracking, and troubleshooting.

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill338Updated Sep 3, 2026

acme

Free

Route Acme reinforcement-learning framework tasks across core loops, replay/data, JAX agents, and TensorFlow/Sonnet agents.

The English summary is being prepared. Showing the original description.

VectorSpaceLab/AREX-Skill338Updated Sep 3, 2026

See all skills by VectorSpaceLab

Report a problem with this skill