Skip to content
Back to skills

Finetuning Quantization

ASecurity

"Route Qwen SFT, LoRA, Q-LoRA, DeepSpeed, adapter merge, and GPTQ

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
devopsnode

Security analysis

A100/100

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

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Finetuning Quantization?

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

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

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: finetuning-quantization
description: "Route Qwen SFT, LoRA, Q-LoRA, DeepSpeed, adapter merge, and GPTQ
  quantization workflows."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# Qwen Fine-Tuning and Quantization

Use this sub-skill when the user wants to prepare supervised fine-tuning data, run full-parameter fine-tuning, LoRA, Q-LoRA, merge adapters, or quantize a fine-tuned Qwen checkpoint with GPTQ.

## Safe start

- Use `scripts/validate_finetune_data.py` to validate the JSON training data shape before launching training.
- Use `scripts/build_finetune_command.py` to print a command plan without starting training or loading a model.
- Treat GPU, DeepSpeed, PEFT, and AutoGPTQ requirements as explicit prerequisites, not as implied by a Transformers import.

## Routes

| User request | Read |
| --- | --- |
| Training data shape, `finetune.py` arguments, masking, dataset loading, or file format issues | `references/data-format.md` |
| Full fine-tuning, LoRA, Q-LoRA, DeepSpeed, FSDP, multinode, and merge/save behavior | `references/finetuning-workflows.md` |
| GPTQ quantization, output conversion, model copy steps, or AutoGPTQ compatibility | `references/quantization.md` |
| GPU memory, ZeRO stages, precision, optional deps, checkpoint naming, or training failure modes | `references/deepspeed-and-hardware.md` |
| Validation, optional dependency, adapter, GPTQ, or data-format errors | `references/troubleshooting.md` |

## Boundaries

- For ordinary inference of the resulting checkpoint, use `../inference-model-loading/SKILL.md`.
- For serving the fine-tuned model, use `../serving-deployment/SKILL.md`.
- For function-calling training samples or ChatML/tokenizer details, use `../prompting-tool-use-tokenization/SKILL.md`.
- For evaluation scripts, use `../evaluation-reproduction/SKILL.md`.

## Operating rules

- Keep data validation separate from training. A valid JSON sample does not prove that training will fit in memory or that the chosen ZeRO stage is compatible.
- For Q-LoRA, the repository expects the Int4 chat checkpoint and fp16, not a BF16 base checkpoint.
- Do not recommend merging Q-LoRA adapters into a standalone model; that path is only documented for LoRA.
- Do not run `torchrun`, `deepspeed`, GPTQ quantization, or adapter merge as a smoke test unless the user explicitly wants the side effect.

Files in this skill

  • SKILL.md2.3 KB
  • references/data-format.md1.7 KB
  • references/deepspeed-and-hardware.md2 KB
  • references/finetuning-workflows.md2.7 KB
  • references/quantization.md1.4 KB
  • references/troubleshooting.md1.6 KB
  • scripts/build_finetune_command.py2.4 KB
  • scripts/validate_finetune_data.py2.2 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.