← All works
Novel-Writing Agent and Model Fine-Tuning
Fine-tuning Qwen3-14B on a novel I wrote, and designing a plan → write → review writing agent.
Sole author
- Hugging Face
- Qwen3-14B
- LoRA
- SFT
- A100 cloud server
- Python
Background
The goal was a model whose style is close to my own and that can continue a story from a chapter plan. Fine-tuning on a small dataset easily memorises the source text and mixes up characters.
What the system does
- Writing model: continues the story from a scene card
- Agent flow: chapter plan → scene execution → independent review
- The review checks entity names, repeated content and changes in character state
My work
- Data: split the text of 14 chapters into 42 scene evidence cards, with training, validation and test sets separated by chapter so that test chapters never enter training.
- Training: took Qwen3-14B from Hugging Face and ran LoRA SFT on an A100 cloud server.
- Comparing approaches: v3 had one adapter learn writing, planning, reviewing and JSON output together; v4 learned writing only.
- Agent design: every scene carries character state, and the review step is independent of the writing step and points out which requirement was not met.
Problems and fixes
Several roles in one adapter. v3 produced repetitive output and crossed character lines, which shows the roles need separate training. v4 learned writing only, but with each sample repeated 5 times over 3 epochs it still overfitted the small dataset: the prose sounded machine-written and did not follow the chapter cards.
Results
- Neither v3 nor v4 met the quality bar; both are kept as failed baselines.
- The full LoRA fine-tuning process, from data preparation through training to evaluation, has been run end to end.
Retrospective
- Data splitting matters more than hyperparameters. The plan for v5 is 80–120 complete scene samples, 1–1.5 epochs and a lower learning rate.