Training an LLM using books? Yeah, it’s doable but messy. Footnotes and weird formatting are the worst.
I ended up using pdftotext for PDFs and then wrote a custom script to strip out footnotes. For chunking, I went with paragraphs—keeps things digestible for the model.
Pro tip: Mix in some web data to avoid overfitting. Otherwise, your model might start sounding like Dickens lol.
I ended up using pdftotext for PDFs and then wrote a custom script to strip out footnotes. For chunking, I went with paragraphs—keeps things digestible for the model.
Pro tip: Mix in some web data to avoid overfitting. Otherwise, your model might start sounding like Dickens lol.
