Skip to content
Back to skills

Model Tools

ASecurity

"Operate AutoTrain Advanced utility commands for LLM adapter

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

Works with

  • cli

Security analysis

A100/100

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

Scanned September 8, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Model Tools?

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

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

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: model-tools
description: "Operate AutoTrain Advanced utility commands for LLM adapter
  merging and Kohya LoRA conversion."
disable-model-invocation: true
metadata:
  disco-role: operating
  parent-skill: autotrain-advanced
license: Apache 2.0
---

# AutoTrain model tools

Use this sub-skill for `autotrain tools` commands and standalone model-artifact utilities.

## Supported commands

```bash
autotrain tools merge-llm-adapter --help
autotrain tools convert_to_kohya --help
```

Tool workflows:

- `merge-llm-adapter` loads a base causal LM, loads a PEFT adapter, merges it, then saves locally and/or pushes to Hub.
- `convert_to_kohya` converts a safetensors LoRA state dict through PEFT format into Kohya format.

## Bundled helper scripts

- `scripts/merge_llm_adapter.py` — source-derived standalone wrapper for the merge function.
- `scripts/convert_to_kohya.py` — source-derived standalone wrapper for Kohya conversion.

Use the package CLI when the installed `autotrain` command is available; use the bundled scripts when a future agent needs a clear self-contained copy of the core tool logic.

## Command templates

```bash
autotrain tools merge-llm-adapter \
  --base-model-path base/model-or-path \
  --adapter-path adapter/model-or-path \
  --output-folder merged-model \
  --token "$HF_TOKEN"
```

```bash
autotrain tools convert_to_kohya \
  --input-path adapter_model.safetensors \
  --output-path adapter_kohya.safetensors
```

## Safety notes

- Adapter merge loads model weights and can consume significant CPU/GPU memory.
- Merge requires either `--output-folder` or `--push-to-hub`.
- Private models/adapters require a valid token.
- Kohya conversion expects a safetensors LoRA state dict, not a full model directory.

## References

- `references/workflows.md` — exact inputs/outputs and script/CLI mapping.
- `references/troubleshooting.md` — load, memory, token, output, and conversion failures.

Files in this skill

  • SKILL.md1.9 KB
  • references/troubleshooting.md2 KB
  • references/workflows.md2.1 KB
  • scripts/convert_to_kohya.py1.2 KB
  • scripts/merge_llm_adapter.py2.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.