Skip to content
Back to skills

Training Engine

ASecurity

"Assemble TorchDrug models and tasks into core.Engine training,

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
devops

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill training-engine --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Training Engine?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Training Engine
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-training-engine/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-training-engine)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: training-engine
description: "Assemble TorchDrug models and tasks into core.Engine training,
  evaluation, prediction, checkpoint, config serialization, logging,
  CPU/GPU/distributed settings, and safe smoke tests."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# Training Engine

Use this sub-skill when a user needs to turn an already chosen TorchDrug dataset, model, and task into an executable training or inference loop with `torchdrug.core.Engine`.

## When To Use

- Build a `core.Engine(task, train_set, valid_set, test_set, optimizer, ...)` training harness.
- Explain `train()`, `evaluate()`, direct `task.predict()`, checkpoint save/load, and JSON config round-trips.
- Choose CPU, single-GPU, distributed GPU, `batch_size`, `num_worker`, `gradient_interval`, logger, optimizer, or scheduler settings.
- Debug Engine, `Task`, `Configurable`, registry, optimizer, checkpoint, device, or logger failures.
- Add a no-dataset smoke check for `core.Configurable` serialization.

## Route Elsewhere

- Molecular property, pretraining, generation, retrosynthesis, and molecule dataset recipes belong in the `molecular-workflows` sub-skill.
- Knowledge graph completion datasets, negative sampling, filtered ranking, and KGE models belong in the `knowledge-graphs` sub-skill.
- Protein contact, structure, and sequence workflows belong in the `protein-workflows` sub-skill.
- Custom layer/model internals, representation model outputs, and extension patterns belong in the `layers-and-extensions` sub-skill.
- Graph, molecule, packed batch, or data container manipulation belongs in the data-focused sub-skills.

## References

- [Engine workflows](references/engine-workflows.md) covers Engine construction, training/evaluation/prediction, CPU/GPU/distributed choices, logging, scheduler, checkpoint, and config patterns.
- [Task contract](references/task-contract.md) covers the `Task` lifecycle, `predict`, `target`, `forward`, `evaluate`, `preprocess`, and custom integration points.
- [Troubleshooting](references/troubleshooting.md) covers split shapes, missing optimizer params, device and `gpus` errors, W&B setup, registry/config failures, and checkpoint mismatch recovery.

## Bundled Smoke Test

Run `scripts/smoke_config_roundtrip.py` from any environment that can import TorchDrug to verify that registered configurable models round-trip without datasets, network access, or training.

Files in this skill

  • SKILL.md2.4 KB
  • references/engine-workflows.md7.8 KB
  • references/task-contract.md6.4 KB
  • references/troubleshooting.md6.7 KB
  • scripts/smoke_config_roundtrip.py775 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.