Skip to content
Back to skills

Libmtl

ASecurity

"Routes LibMTL installation, core APIs, customization, and

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
testingpythonawsapi

Works with

  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

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

Scanned September 8, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Libmtl?

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

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

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: libmtl
description: "Routes LibMTL installation, core APIs, customization, and
  benchmark workflows."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# LibMTL

Use this skill for the LibMTL package, its shared training engine, and the
benchmark examples that ship with the repository.

## First checks

- Read [`references/repo-provenance.md`](references/repo-provenance.md) when you need to confirm whether this
  skill matches the current checkout or before asking for a refresh.
- Use the repository's own install flow first:
  `pip install -r requirements.txt && pip install -e .`
- Then run the bundled install smoke check:
  `python -I scripts/check_install.py`
- LibMTL's benchmark workflows assume a CUDA-capable PyTorch environment.
  `LibMTL.Trainer` hard-codes `cuda:0`, so there is no CPU fallback for the
  training examples.
- Each benchmark sub-skill bundles the launch pattern and validation helpers
  for its workflow. Several older docs and tests in the source checkout use
  outdated benchmark names; rely on the current sub-skill guidance and bundled
  scripts instead.

## Route map

- `sub-skills/core-api/` — install/import details, `Trainer`, shared config,
  built-in losses/metrics/models/architectures/weightings, and direct API
  usage.
- `sub-skills/customization/` — adding a new dataset, new task dictionary,
  new loss or metric, new architecture, or new weighting strategy.
- `sub-skills/vision-benchmarks/` — NYUv2 and Cityscapes scene understanding
  workflows, including DeepLabV3+, SegNet+MTAN, and the shared vision helpers.
- `sub-skills/office-benchmarks/` — Office-31 and Office-Home multi-input
  image classification workflows with a bundled self-contained runtime package.
- `sub-skills/qm9/` — QM9 graph regression with torch-geometric and
  `random_split.t`.
- `sub-skills/paws-x/` — PAWS-X / XTREME multilingual sentence classification,
  cache generation, and preprocessing caveats.

## What this root skill covers

- Shared installation and import verification.
- Which public modules exist and how to choose them.
- Which sub-skill owns a dataset- or workflow-specific question.
- Cross-cutting runtime pitfalls such as CUDA-only training, stale docs/tests,
  or configuration flags that are accepted by help output but not fully wired.

## When to stay at the root

Use the root when the request is only about:

- the package name, version, or install command;
- whether LibMTL can be imported in the current environment;
- which sub-skill to use;
- the repo provenance or staleness check;
- a cross-cutting troubleshooting question that is not tied to one benchmark.

## When to open a sub-skill

Open the matching sub-skill if the request mentions any of these signals:

- `Trainer`, `prepare_args`, `weight_args`, `arch_args`, `rep_grad`, or
  `multi_input` → `core-api`.
- new dataset, new metric/loss, new architecture, or new weighting strategy →
  `customization`.
- NYUv2, Cityscapes, semantic segmentation, depth, surface normals, DeepLab,
  ASPP, SegNet, or MTAN → `vision-benchmarks`.
- Office-31, Office-Home, domain adaptation, or multi-input image
  classification → `office-benchmarks`.
- QM9, `torch_geometric`, `NNConv`, `Set2Set`, or molecular regression →
  `qm9`.
- PAWS-X, XTREME, `bert-base-multilingual-cased`, cached features, or the raw
  TSV preprocess scripts → `paws-x`.

## Shared guidance

- Pass `weighting` and `architecture` as string names such as `"EW"` and
  `"HPS"`; the trainer resolves them internally.
- If you instantiate `Trainer` manually, include both `weight_args={}` and
  `arch_args={}` unless you already ran `prepare_args`.
- `prepare_args` currently wires `optim=adam|sgd` and `scheduler=step`.
  `adagrad`, `rmsprop`, `cos`, and `exp` appear in the parser/help text but are
  not fully populated by the current implementation.
- Vision and PAWS-X example scripts may download pretrained backbones or model
  weights on first run; that is expected and should be called out when a user
  is offline.

## Read next

- `references/api-reference.md` for the verified Python API surface.
- `references/configuration.md` for shared CLI flags and method-specific
  options.
- `references/troubleshooting.md` for cross-cutting install, import, and
  runtime failures.

Files in this skill

  • SKILL.md4.2 KB
  • references/api-reference.md4 KB
  • references/configuration.md2.7 KB
  • references/repo-provenance.md1.7 KB
  • references/repo-routing-metadata.json337 B
  • references/troubleshooting.md2.8 KB
  • scripts/check_install.py1.8 KB
  • sub-skills/core-api/SKILL.md2.7 KB
  • sub-skills/core-api/references/troubleshooting.md1.5 KB
  • sub-skills/core-api/references/workflows.md2.1 KB
  • sub-skills/core-api/scripts/check_core_api.py1.8 KB
  • sub-skills/customization/SKILL.md2.4 KB
  • sub-skills/customization/references/troubleshooting.md1.9 KB
  • sub-skills/customization/references/workflows.md3.5 KB
  • sub-skills/office-benchmarks/SKILL.md2.7 KB
  • sub-skills/office-benchmarks/references/data-layouts.md1.1 KB
  • sub-skills/office-benchmarks/references/data_txt/office-31/amazon_test.txt23.7 KB
  • sub-skills/office-benchmarks/references/data_txt/office-31/amazon_train.txt68.2 KB
  • sub-skills/office-benchmarks/references/data_txt/office-31/amazon_val.txt22.4 KB
  • sub-skills/office-benchmarks/references/data_txt/office-31/dslr_test.txt4.7 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.