xiaohongshu
xiaohongshu
fine-tuning-data-generator
Generates comprehensive synthetic fine-tuning datasets in ChatML format (JSONL) for use with Unsloth, Axolotl, and similar training frameworks. Gathers requirements, creates datasets with diverse examples, validates quality, and provides framework integration guidance.
Full skill instructions
This skill generates high-quality synthetic training data in ChatML format for fine-tuning language models using frameworks like Unsloth, Axolotl, or similar tools.
| Need | Resource |
|---|---|
| Planning my dataset - requirements, strategy, quality checklist | resources/dataset-strategy.md |
| How to create diverse examples - variation techniques, multi-turn patterns, format-specific guidance | resources/generation-techniques.md |
| ChatML format details - structure, specification, common issues, framework compatibility | resources/chatml-format.md |
| Example datasets - inspiration across domains, multi-turn samples, edge cases | resources/examples.md |
| Validating quality - validation workflow, analyzing datasets, troubleshooting | resources/quality-validation.md |
| Training & deployment - framework setup, hyperparameters, optimization, deployment | resources/framework-integration.md |
Start with these essential clarifying questions:
Task Definition:
Quality & Diversity:
Dataset Composition:
See resources/dataset-strategy.md for detailed question templates.
Present a plan covering:
Get user approval before generating.
Create examples following these quality standards:
Key Principles:
Diversity Techniques:
See resources/generation-techniques.md for detailed techniques, domain-specific guidance, and batch generation workflow.
Run validation tools and checks:
# Validate JSON formatting and structure
python scripts/validate_chatml.py training_data.jsonl
# Analyze dataset statistics and diversity
python scripts/analyze_dataset.py training_data.jsonl
# Export statistics
python scripts/analyze_dataset.py training_data.jsonl --export stats.json
Quality Checklist:
See resources/quality-validation.md for validation details, troubleshooting, and documentation templates.
Prepare for training with your framework of choice:
Output Files:
training_data.jsonl - Main training setvalidation_data.jsonl - Optional validation setdataset_info.txt - Metadata and statisticsFramework Setup:
type: chat_template and chat_template: chatmlapply_chat_template() methodSee resources/framework-integration.md for setup code, hyperparameters, deployment options, and best practices.
Each training example is a JSON object with a messages array:
{"messages": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "How do I reverse a string in Python?"}, {"role": "assistant", "content": "Use slicing: `text[::-1]`"}]}
Roles:
system: Sets assistant behavior (optional but recommended)user: User's input/queryassistant: Model's expected responseMulti-turn: Add additional user/assistant message pairs for conversations.
See resources/chatml-format.md for detailed specification, validation, common issues, and framework-specific notes.
scripts/Validates ChatML format JSONL files:
python scripts/validate_chatml.py training_data.jsonl
python scripts/validate_chatml.py training_data.jsonl --verbose
Checks:
Provides comprehensive statistics and analysis:
python scripts/analyze_dataset.py training_data.jsonl
python scripts/analyze_dataset.py training_data.jsonl --export stats.json
Provides:
For datasets 500+ examples:
| Task Complexity | Recommended Size | Notes |
|---|---|---|
| Simple tasks | 100-500 | Well-defined, limited variation |
| Medium tasks | 500-2,000 | Multiple scenarios, moderate complexity |
| Complex tasks | 2,000-10,000+ | Many edge cases, high variability |
| Domain adaptation | 1,000-5,000 | Specialized knowledge required |
resources/dataset-strategy.md - Requirements gathering, planning, quality checklistsresources/generation-techniques.md - Diversity techniques, domain-specific guidance, batch workflowsresources/chatml-format.md - Format details, validation, framework notesresources/examples.md - Diverse domain examples, multi-turn patternsresources/quality-validation.md - Validation workflow, analysis, troubleshootingresources/framework-integration.md - Setup for Unsloth, Axolotl, HuggingFace; deployment optionsVersion: 2.0 | Updated: 2024 | Pattern: Modular Orchestration
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience