Menu

1 / 2

How do you run continued pretraining on an open LLM?

DEV Community: pytorch·Viswaretas Kotra·about 8 hours ago
#t5k5WuMn
#devtopytorch#devto#dev#model#nodus
Long article (2438 words) — no AI summary yet.
Reading 0:00
15s threshold

Continued pretraining is the same next-token training an open model started with, run on your own domain text: append an end-of-sequence token to every document, pack the text into fixed-length blocks, mix in 5 to 30% general text by tokens, and re-warm then re-decay the learning rate. On Nodus you launch the training script with nodus run , and Nodus restores your checkpoint directory on a new machine if the capacity under a multi-day run is reclaimed. The data pipeline is where most runs go wrong quietly, so test it on a CPU before you pay for a GPU.

If you are still deciding whether you need continued pretraining at all, start with continued pretraining vs fine-tuning . This post assumes you have decided and want the run to work.

How should you prepare and pack the text?

Keep one row per whole document, append the end-of-sequence (EOS) token yourself, and pack across document boundaries into blocks of your training length.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.