技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
data-preparation【数据与研究】Validate and prepare XTuner SFT, MLLM, pretraining, and RL JSONL data, tokenizer/chat-template configuration, caching, packing, and local conversion workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is about XTuner V1 dataset records, JSONL validation, tokenizer/chat-template selection, dataset caching, packing, or safe local data conversion before training.
messages or dialogs.media_root, and class_name="VLMJsonlDataset".prompt, data_source, and reward_model.ground_truth.DatasetConfig, DataloaderConfig, OpenaiTokenizeFunctionConfig, and FTDPTokenizeFnConfig fields.cache_dir, cache_tag) and packing choices (pack_level, preset pack/sampler files).question/answer files into XTuner RL JSONL without network access.python ./scripts/validate_xtuner_jsonl.py ./data/openai_sft.jsonl --mode sft
python ./scripts/validate_xtuner_jsonl.py ./data/mllm.jsonl --mode mllm --media-root ./media
python ./scripts/convert_gsm8k_jsonl.py --input-dir ./gsm8k_raw --out-dir ./gsm8k_xtuner
python ./scripts/validate_xtuner_jsonl.py ./gsm8k_xtuner/train.jsonl --mode rl
The bundled scripts use only the Python standard library. They do not import XTuner, a tokenizer, PyTorch, image libraries, or any original repository checkout.
references/data-formats.md: SFT, MLLM, pretraining, RL/GSM8K JSONL schemas and config snippets.references/tokenization-and-packing.md: chat templates, tokenization configs, cache invalidation, and packing/sampler options.references/troubleshooting.md: failure signatures and fixes for JSONL, media, truncation, cache, preset packing, and RL reward fields.media_root and fail fast on missing files.--max-length output as an approximation only; real truncation depends on the selected tokenizer and chat template.pack_level="preset", ensure both pack_config_path and sampler_config_path are set before handing off to training.reward_model.ground_truth is required for GSM8K-style rule reward; do not hand off RL data with missing or empty ground truth.