Skip to content
Back to skills

Core Api

ASecurity

Routes LibMTL's Trainer, shared configuration, and built-in API surface.

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
toolsgoawsapi

Works with

  • cli
  • api

Security analysis

A100/100

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

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill core-api --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Core Api?

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

Security grade badge for Core Api
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-core-api-arex-skill/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-core-api-arex-skill)

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: core-api
description: "Routes LibMTL's Trainer, shared configuration, and built-in API surface."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# core-api

Use this sub-skill when the task is about the shared LibMTL API rather than a
specific benchmark dataset.

## Covers

- `LibMTL.Trainer` construction and runtime behavior.
- `LibMTL.config.LibMTL_args` and `prepare_args`.
- Built-in losses, metrics, architectures, weightings, and backbone builders.
- The shared utility helpers in `LibMTL.utils`.
- Direct inspection of the API surface before writing a custom benchmark or a
  new method.

## Does not cover

- Dataset-specific file layouts or benchmark commands.
- New-task adaptation recipes; use `customization` for that.
- NYUv2/Cityscapes, Office-31/Office-Home, QM9, or PAWS-X details.

## When to use this sub-skill

Choose this route when the user asks things like:

- "How do I instantiate `Trainer` correctly?"
- "Which weighting and architecture names are supported?"
- "What does `prepare_args` return?"
- "How do the built-in backbones and utilities fit together?"
- "Why did a direct `Trainer` call fail even though the docs looked correct?"

## Read next

- `../../references/api-reference.md` for the verified signature and exported
  classes.
- `../../references/configuration.md` for shared CLI and method flags.
- `../../references/troubleshooting.md` for configuration and runtime failures.

## Workflow

1. Confirm whether the user is passing string names or class objects.
2. Confirm whether `prepare_args` is being used. If not, check that both
   `weight_args` and `arch_args` are supplied.
3. Confirm the runtime has CUDA. The trainer's default device is `cuda:0`.
4. Check the requested weighting and architecture names against the exported
   module lists.
5. If the request is to validate the install rather than solve a dataset task,
   run `scripts/check_core_api.py`.

## Common gotchas

- `Trainer` resolves weighting and architecture names internally. Pass strings
  such as `"EW"` and `"HPS"`.
- The supported optimizer/scheduler combinations in the current code are
  narrower than the parser help suggests; `adam`/`sgd` and `step` are the safe
  choices.
- `resnet18` and `resnet_dilated` return feature maps. They are not end-to-end
  classifiers.
- `MOML`, `FORUM`, and `AutoLambda` are treated as bilevel methods and use the
  trainer's special path.

## Exit criteria

Leave this sub-skill when you can answer, from the bundled files alone:

- which object to import,
- which string names to pass,
- which kwargs must be present,
- and what failures mean the configuration is wrong versus the environment is
  incomplete.

Files in this skill

  • SKILL.md2.7 KB
  • references/troubleshooting.md1.5 KB
  • references/workflows.md2.1 KB
  • scripts/check_core_api.py1.8 KB

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.