Book SFT Pipeline

0•

Automates the conversion of books into high-quality SFT datasets for training AI models in specific authorial styles.

This skill provides a comprehensive end-to-end framework for converting literary works into Supervised Fine-Tuning (SFT) datasets, specifically optimized for capturing authorial voice and prose style. It guides users through raw ePub extraction, semantically-aware text segmentation, and the generation of diverse instruction sets to prevent model memorization. Ideal for training small models (8B or less) using LoRA techniques, the pipeline ensures high-fidelity style transfer while maintaining originality and avoiding verbatim leakage through rigorous validation patterns.

Key Features

01Diverse instruction generation using 15+ prompt templates
020 GitHub stars
03Clean ePub-to-text extraction preserving paragraph-level structure
04Comprehensive validation suite for style transfer and originality
05Intelligent text segmentation with semantic boundary detection
06Automated dataset construction in JSONL format for LoRA training

Use Cases

01Training an AI model to replicate a specific author's prose or narrative voice
02Building high-quality creative writing datasets from public domain literature
03Fine-tuning small language models for niche literary and stylistic tasks