book-sft-pipeline

Create supervised fine-tuning datasets from ePub books and train LoRA style-transfer models.

Updated Feb 4, 2026
One-click install
npx skills add https://github.com/jaydubya818/Dental_Agent --skill book-sft-pipeline-jaydubya818
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: book-sft-pipeline
Source: https://github.com/jaydubya818/Dental_Agent/tree/main/.claude/examples/book-sft-pipeline
Command: npx skills add https://github.com/jaydubya818/Dental_Agent --skill book-sft-pipeline-jaydubya818

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill automates the creation of supervised fine-tuning datasets from books and trains language models to mimic specific authorial styles, overcoming the challenges of manual data preparation and model overfitting.

Core Features & Use Cases

  • End-to-End Pipeline: From ePub ingestion to style-transfer model training.
  • Intelligent Segmentation: Splits long texts into semantically coherent chunks (150-400 words).
  • Diverse Instruction Generation: Uses multiple prompt templates and system prompts to ensure style learning over content memorization.
  • Use Case: Train a model to write poetry in the style of Emily Dickinson or prose in the style of Ernest Hemingway.

Quick Start

Use the book-sft-pipeline skill to train a model in the style of Gertrude Stein using the provided ePub file.

Frequently Asked Questions about book-sft-pipeline

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a supervised fine-tuning dataset from an ePub for author style transfer?

You can create a supervised fine-tuning dataset from an ePub by extracting text, segmenting it into semantically coherent chunks, and generating diverse synthetic instructions. This pipeline handles ePub ingestion, intelligent segmentation, and Tinker-compatible dataset construction automatically.

How do I train an LLM to mimic a specific author's writing style?

To train an LLM to mimic an author's style, you use a multi-stage pipeline that generates diverse instruction-response pairs from source books and applies LoRA training. This approach ensures the model learns stylistic patterns rather than memorizing content.

What is the best way to prevent content memorization during LoRA style transfer training?

The best way to prevent content memorization during LoRA style transfer training is to use diverse synthetic instruction generation with multiple prompt templates and system prompts. This variation forces the model to learn the underlying style instead of repeating specific text.

Can I use my own ePub files for LLM training with this text segmentation approach?

Yes, you can use your own ePub files for LLM training. The pipeline includes text extraction from ePubs and intelligent segmentation that splits long texts into semantically coherent chunks of 150-400 words suitable for fine-tuning.

Does this fine-tuning pipeline support Tinker-compatible dataset construction?

Yes, the fine-tuning pipeline explicitly supports Tinker-compatible dataset construction. It processes extracted book text through segmentation and synthetic instruction generation to produce datasets ready for Tinker training environments.

What are the limitations of using synthetic instruction generation for author emulation?

A limitation of using synthetic instruction generation for author emulation is that the quality depends on the original ePub text and the diversity of prompt templates. Overfitting can still occur if the source material lacks stylistic variety across the segmented chunks.