본문으로 건너뛰기
cccskills
무료GitHub에 공개

composer

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(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(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

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.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

3ddfa

무료

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

3ddfa-v2

무료

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

ab3dmot

무료

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

acme

무료

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

VectorSpaceLab의 스킬 모두 보기

이 스킬의 문제 신고