Skip to content
Back to skills

Model Export

ASecurity

"Save and export Unsloth checkpoints as LoRA adapters, merged

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

Works with

  • cli
  • api

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 model-export --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Model Export?

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

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

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-export
description: "Save and export Unsloth checkpoints as LoRA adapters, merged
  weights, GGUF files, Ollama Modelfiles, or Hugging Face Hub artifacts with
  safe path and tokenizer preflights."
disable-model-invocation: true
metadata:
  disco-role: operating
license: NOASSERTION
---

# Model Export

Use this sub-skill when the user needs to save or export an already trained Unsloth checkpoint: LoRA adapters, merged 16-bit weights, forced merged 4-bit weights, GGUF quantizations, Ollama Modelfiles, or Hub uploads.

## Route first

- Route training setup, loading base models, LoRA configuration, and trainer code to [core-training](../core-training/SKILL.md).
- Route CLI-wide syntax, dry-run config validation, aliases, and non-export commands to [cli-workflows](../cli-workflows/SKILL.md).
- Route Studio server startup, auth, browser/API runtime, log streaming transport, and UI connectivity to [studio-runtime](../studio-runtime/SKILL.md).
- Stay here for export method choice, checkpoint/output preflight, Python save calls, `unsloth export`, Studio export backend behavior, GGUF/Ollama conversion planning, and export failures.

## Read or run

- Read [references/api-reference.md](references/api-reference.md) for Python save APIs, CLI export arguments, Studio export backend contracts, format names, quantization names, and output artifacts.
- Read [references/workflows.md](references/workflows.md) for safe LoRA, merged, GGUF, Ollama, CLI, Studio, and Hugging Face Hub export workflows.
- Read [references/troubleshooting.md](references/troubleshooting.md) when diagnosing missing checkpoints, wrong export type, tokenizer preservation, path safety, GGUF tools, Hub credentials, memory/sharding, or Unicode subprocess output.
- Run [scripts/inspect_export_targets.py](scripts/inspect_export_targets.py) before heavy exports to validate checkpoint/output paths, tokenizer files, format choices, quantization names, and Hub flags without loading a model or converting files.

## Safe default workflow

1. Identify the source checkpoint and whether it is a PEFT/LoRA adapter, full/base model, or existing GGUF artifact.
2. Run the bundled preflight helper with `--checkpoint`, `--output`, and `--format`; use `--json` when another tool will parse the result.
3. Choose `lora` for adapter-only sharing, `merged-16bit` before downstream conversion, `merged-4bit` only as a final compact bitsandbytes export, or `gguf` for llama.cpp/Ollama-style inference.
4. Keep tokenizer files with every local export; GGUF export requires a tokenizer and may create a `Modelfile` when Unsloth can map the base model to an Ollama template.
5. For Hub uploads, require an explicit repo id, token source, and private/public decision; never print tokens or embed them in scripts, logs, or reusable artifacts.

Files in this skill

  • SKILL.md2.8 KB
  • references/api-reference.md8.8 KB
  • references/troubleshooting.md8.5 KB
  • references/workflows.md8.4 KB
  • scripts/inspect_export_targets.py24.3 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.