Skip to main content
Run any Skill in Manus
with one click

ml-data-prep

Stars0
Forks0
UpdatedMay 22, 2026 at 02:18

Prepare SFT/chat datasets for training: convert between alpaca / sharegpt / openai-messages formats, check data quality, and verify tokenization & packing correctness — the framework-neutral data layer that serves any downstream trainer. Catches the silent failures that don't error but quietly hurt the model: empty/duplicate/malformed samples, answers truncated at max_len, wrong label masking (training on the prompt), missing EOS (model won't stop), double-BOS, and packing without a block-diagonal mask (cross-document contamination). Use when the user mentions: dataset format conversion, alpaca, sharegpt, openai messages / jsonl, data quality, dedup, length distribution, truncation, chat template, tokenize, packing, padding, label mask, loss mask, attention mask, preparing data for SFT/fine-tuning, LLaMA-Factory / axolotl / trl data format. Triggers: "数据格式", "格式转换", "alpaca", "sharegpt", "messages", "数据质量", "去重", "截断", "chat template", "packing", "label mask", "tokenize", "数据清洗", "微调数据", "训练数据准备".

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

File Explorer
12 files
SKILL.md
readonly