Agent skill

Models And Modules

by VectorSpaceLab in VectorSpaceLab/AREX-Skill

Use torchtune model/tokenizer builders, PEFT modules, losses, conversion utilities, and modeling components safely.

BSD-3-ClauseAuto-check passedAI & LLM Engineering

Install Models And Modules

skills CLI
$ npx skills add VectorSpaceLab/AREX-Skill --skill models-and-modules -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install VectorSpaceLab/AREX-Skill models-and-modules --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/VectorSpaceLab/AREX-Skill.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/repositories/repo-skills/torchtune/sub-skills/models-and-modules .claude/skills/models-and-modules && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
models-and-modules
GitHub stars
328
Token cost
~1.2k tokens
SKILL.md length
467 words
Files
6 (incl. scripts, references)
Skills in repo
157
Repo updated
First seen
Licence
BSD-3-Clause

At a glance

Use torchtune model/tokenizer builders, PEFT modules, losses, conversion utilities, and modeling components safely.

  • Works in 6 steps: Identify the model family and checkpoint… → Match the tokenizer or model transform… → For adapter work, choose a family lora_*… → …
  • Tasks that involve Fine-tuning
  • SKILL.md covers Route Here For, Standard Workflow, Bundled Helper and Read Next, plus 1 more section
  • Runs Python scripts from its folder; calls python

What it does

Models And Modules is an agent skill from VectorSpaceLab/AREX-Skill. Use torchtune model/tokenizer builders, PEFT modules, losses, conversion utilities, and modeling components safely.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts and reference files (for example `references/model-catalog.md`, `references/module-api-reference.md` and `references/peft-and-adapters.md`).

It sits in AI & LLM Engineering, covering Fine-tuning. The repository describes itself as: A Skill Library for Automated Machine Learning. The licence is BSD-3-Clause.

When your agent uses it

  • Tasks that involve Fine-tuning

Example prompts

  • “/models-and-modules”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Identify the model family and checkpoint provenance before choosing builder names; use model catalog for public dotpaths.
  2. Match the tokenizer or model transform to the same family and downloaded artifact layout before training, generation, or dataset transforms.
  3. For adapter work, choose a family lora_* or qlora_* builder first, then use PEFT and adapters for lora_attn_modules, trainable params, and…
  4. For custom code, import public modules from torchtune.models, torchtune.modules, torchtune.modules.peft, torchtune.modules.loss, or…
  5. Use module API reference for component signatures, losses, generation helpers, MoE, low precision, and conversion utilities.
  6. Diagnose optional dependency, tokenizer, gated checkpoint, LoRA target, QLoRA, and state-dict issues with troubleshooting before launching…

What it can do on your machine

Read from SKILL.md and the folder at commit ac3fe1a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Models And Modules loads about 1.2k tokens when it runs, and up to ~8.8k if it reads all its reference files. Until then it costs about 34 tokens; SKILL.md has 467 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~34
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~8.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from VectorSpaceLab/AREX-Skill at commit ac3fe1a, republished under its BSD-3-Clause licence (© VectorSpaceLab). 467 words, ~1,188 tokens.

Download SKILL.mdSave it as .claude/skills/models-and-modules/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
models-and-modules
description
Use torchtune model/tokenizer builders, PEFT modules, losses, conversion utilities, and modeling components safely.
disable-model-invocation
true
metadata.disco-role
operating
license
BSD 3-Clause

models-and-modules

Use this sub-skill when a torchtune task is about model-family builders, tokenizer/model-transform builders, LoRA/QLoRA/DoRA adapters, transformer/attention/loss modules, MoE and low-precision pieces, state-dict conversion, or custom model components.

Route Here For

  • Choosing public _component_ dotpaths under torchtune.models.* or torchtune.modules.* for YAML configs or custom code.
  • Pairing model builders with matching tokenizer or multimodal transform builders before dataset or recipe wiring.
  • Adding LoRA, QLoRA, DoRA, QAT-LoRA, adapter-state extraction, adapter merging, or trainable-parameter setup.
  • Using torchtune modeling blocks such as attention, decoder layers, KV cache, RoPE, RMSNorm, chunked/KL losses, MoE experts, and NF4 linear layers.
  • Converting state-dict key formats between torchtune, Meta, Hugging Face, and PEFT adapter conventions.
  • Writing custom config-friendly builders without importing the intentionally non-importable recipes package.

Standard Workflow

  1. Identify the model family and checkpoint provenance before choosing builder names; use model catalog for public dotpaths.
  2. Match the tokenizer or model transform to the same family and downloaded artifact layout before training, generation, or dataset transforms.
  3. For adapter work, choose a family lora_* or qlora_* builder first, then use PEFT and adapters for lora_attn_modules, trainable params, and merge/export behavior.
  4. For custom code, import public modules from torchtune.models, torchtune.modules, torchtune.modules.peft, torchtune.modules.loss, or torchtune.generation; avoid private underscore dotpaths in configs.
  5. Use module API reference for component signatures, losses, generation helpers, MoE, low precision, and conversion utilities.
  6. Diagnose optional dependency, tokenizer, gated checkpoint, LoRA target, QLoRA, and state-dict issues with troubleshooting before launching expensive jobs.

Bundled Helper

Run the helper from this sub-skill directory to inspect callable public model exports in the active environment without instantiating large models:

bash
python scripts/inspect_model_builders.py --families llama3 qwen2_5 --format table

It imports family modules, lists callable public exports and signatures, and reports optional-dependency import failures instead of downloading checkpoints or constructing models.

Show full SKILL.md (184 more words)Show less
  • Model catalog for family builders, tokenizer notes, multimodal transforms, and public dotpath examples.
  • Module API reference for attention/decoder blocks, losses, generation, MoE, low precision, export variants, and conversion functions.
  • PEFT and adapters for LoRA/QLoRA/DoRA/QAT-LoRA config patterns and adapter state dict guidance.
  • Troubleshooting for private dotpaths, gated downloads, tokenizer mismatches, adapter target names, QLoRA dependencies, conversion failures, and export variants.
  • data-and-datasets for dataset transforms, message schemas, packing, and collators.
  • post-training-recipes for recipe selection and training launch planning.
  • inference-evaluation-quantization for generation workflows, evaluation, and post-training quantization routing.
  • cli-and-config for tune cp, tune cat, tune validate, _component_, and override mechanics.

Guardrails

  • Use public dotpaths such as torchtune.models.llama3.llama3_8b, not private implementation paths like torchtune.models.llama3._model_builders.llama3_8b.
  • Do not import recipes; use tune run, registry names, copied config files, or custom recipe files launched through the CLI.
  • Do not instantiate full model builders just to inspect names; use signatures, configs, or the bundled inspection helper.
  • Do not leak checkpoint locations, token files, credentials, local environments, or machine-specific paths into reusable configs or skill content.
  • Keep dataset schemas in data-and-datasets, recipe launch construction in post-training-recipes, and generation/evaluation/quantization workflows in inference-evaluation-quantization.

© VectorSpaceLab, BSD-3-Clause. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files (scripts, references) in skills/repositories/repo-skills/torchtune/sub-skills/models-and-modules of VectorSpaceLab/AREX-Skill.

  • SKILL.md
  • references/model-catalog.md
  • references/module-api-reference.md
  • references/peft-and-adapters.md
  • references/troubleshooting.md
  • scripts/inspect_model_builders.py

Open the folder on GitHubat commit ac3fe1a

Compare with similar skills

Models And Modules next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Models And Modules compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Models And Modules this skillVectorSpaceLab/AREX-Skill328—~1.2kAutomated safety check: PassBSD-3-Clause
Peft Fine TuningOrchestra-Research/AI-Research-SKILLs13k9 repos~3.1kAutomated safety check: PassMIT
Hugging Face LLM Trainerhuggingface/skills11k3 repos~7.2kAutomated safety check: PassApache-2.0
Sentence-Transformers Training Routerhuggingface/skills11k1 repos~2.6kAutomated safety check: PassApache-2.0
Dataset Evaluationawslabs/agent-plugins9152 repos~1.3kAutomated safety check: PassApache-2.0
Train RlOpenPipe/ART11k—~2.4kAutomated safety check: PassApache-2.0

Similar skills

  • Peft Fine Tuning

    Orchestra-Research/AI-Research-SKILLs

    Parameter-efficient fine-tuning for LLMs using LoRA, QLoRA, and 25+ methods.

    13k GitHub starsUsed in 9 repos~3.1k tokens
    AI & LLM EngineeringAuto-check passed
  • Hugging Face LLM Trainer

    huggingface/skills

    Official

    Trains or fine-tunes language and vision models with TRL or Unsloth on Hugging Face Jobs cloud GPUs, then converts the results to GGUF.

    11k GitHub starsUsed in 3 repos~7.2k tokens
    AI & LLM EngineeringAuto-check passed
  • Official

    Routes a sentence-transformers training task to the right model type and required reference docs and example scripts, covering bi-encoders, rerankers, sparse and multi-vector models.

    11k GitHub starsUsed in 1 repo~2.6k tokens
    AI & LLM EngineeringAuto-check passed
  • Dataset Evaluation

    awslabs/agent-plugins

    Official

    Validates dataset formatting and quality for SageMaker model fine-tuning (SFT, DPO, or RLVR).

    915 GitHub starsUsed in 2 repos~1.3k tokens
    AI & LLM EngineeringAuto-check passed
  • Train Rl

    OpenPipe/ART

    RL training reference for the ART framework. An agent skill from OpenPipe/ART.

    11k GitHub stars~2.4k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Qwopus27b Rl Training

    R6410418/Jackrong-llm-finetuning-guide

    Prepare, validate, launch-plan, monitor, resume, and stop configurable Qwopus 27B reinforcement-learning workflows for GRPO or GSPO.

    1.7k GitHub stars~830 tokensUpdated 2 mo ago
    AI & LLM EngineeringAuto-check passed

More from VectorSpaceLab/AREX-Skill

All 157 skills in this repo
  • Agent Lightning

    VectorSpaceLab/AREX-Skill

    Use this repo skill for Agent Lightning package tasks: authoring trainable agents, tracing rewards and spans, running LightningStore/Trainer loops, using agl CLI services, choosing examples, and…

    328 GitHub stars~1.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Agent Tools

    VectorSpaceLab/AREX-Skill

    A skill your agent uses when configuring LiteLLM for MCP tools, A2A agents, Claude Code/Cursor agent gateway traffic, MCP auth/OAuth, tool permissions, semantic filtering, or agent-specific proxy…

    328 GitHub stars~1.2k tokensUpdated 1 mo ago
    Auto-check passed
  • Agents And Awel

    VectorSpaceLab/AREX-Skill

    Build and debug DB-GPT agents, tools, skills, teams, and AWEL workflows, including deterministic local DAG runs and HTTP-trigger topology without assuming an LLM, credential, or external service.

    328 GitHub stars~2.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Agents And Middleware

    VectorSpaceLab/AREX-Skill

    Work on the actively maintained LangChain v1 agent package: initchatmodel, createagent, structured output, tools, middleware, embeddings initialization, provider routing, and agent runtime…

    328 GitHub stars~1.2k tokensUpdated 1 mo ago
    Auto-check passed
  • Agents Workflows

    VectorSpaceLab/AREX-Skill

    A skill your agent uses for giskard.agents async chat workflows, tools, prompt templates, structured outputs, retries, rate limiting, embeddings, and optional LiteLLM backend.

    328 GitHub stars~500 tokensUpdated 1 mo ago
    Auto-check passed
  • Alphafold3

    VectorSpaceLab/AREX-Skill

    A skill your agent uses for AlphaFold 3 input preparation, prediction command planning, output interpretation, and Python API inspection.

    328 GitHub stars~1.2k tokensUpdated 1 mo ago
    Auto-check passed

Questions about Models And Modules

What does Models And Modules do?

Use torchtune model/tokenizer builders, PEFT modules, losses, conversion utilities, and modeling components safely. Models And Modules is an agent skill from VectorSpaceLab/AREX-Skill. Use torchtune model/tokenizer builders, PEFT modules, losses, conversion utilities, and modeling components safely.

When should I use Models And Modules?

Models And Modules fits situations like: tasks that involve Fine-tuning.

How do I install Models And Modules in Claude Code?

Run `npx skills add VectorSpaceLab/AREX-Skill --skill models-and-modules -a claude-code`. Or copy the skill folder (skills/repositories/repo-skills/torchtune/sub-skills/models-and-modules in VectorSpaceLab/AREX-Skill) into .claude/skills/models-and-modules in your project. Claude Code loads it when a task matches its description.

How do I install Models And Modules in Codex?

Run `npx skills add VectorSpaceLab/AREX-Skill --skill models-and-modules -a codex`. Or copy the skill folder (skills/repositories/repo-skills/torchtune/sub-skills/models-and-modules in VectorSpaceLab/AREX-Skill) into .agents/skills/models-and-modules in your project. Codex loads it when a task matches its description.

Can I use Models And Modules in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add VectorSpaceLab/AREX-Skill --skill models-and-modules -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/models-and-modules, .gemini/skills/models-and-modules, .github/skills/models-and-modules and .opencode/skills/models-and-modules in your project.

What does Models And Modules need to run?

Going by SKILL.md and its folder, Models And Modules needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Models And Modules access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Models And Modules safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Models And Modules use?

Models And Modules is published under the BSD-3-Clause licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Models And Modules use?

About 1.2k tokens (SKILL.md is roughly 4.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 7.6k tokens, read only when the agent opens those files.

What are the alternatives to Models And Modules?

Skills that share tags, products or a category with Models And Modules: Peft Fine Tuning (Orchestra-Research/AI-Research-SKILLs, 13k stars), Hugging Face LLM Trainer (huggingface/skills, 11k stars), Sentence-Transformers Training Router (huggingface/skills, 11k stars) and Dataset Evaluation (awslabs/agent-plugins, 915 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Models And Modules?

VectorSpaceLab (a GitHub organization) maintains it in VectorSpaceLab/AREX-Skill, which has 328 GitHub stars. The repository holds 157 skills in this directory. The repository was last updated on September 3, 2026.

Source: VectorSpaceLab/AREX-Skill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.