
What It Actually Takes to Train Your Own Open Weights Model
Training your own open weights model can cost millions of H100 hours or a few hundred thousand dollars, depending on scope. A true base model needs 15 trillion tokens and millions of H100 hours.
A domain-adapted checkpoint from a released base can produce useful results for a few hundred thousand dollars.
The range between those two numbers is where most of the real decisions live. Choosing between RAG, LoRA, continued pretraining, and full-parameter fine-tuning is less about model performance and more about how often your corpus changes, how private your data has to be, and how much GPU budget you can actually defend.
Below is the decision tree, the token math, the recipe choices, and the economics as they stand at the end of 2026.
The Three Recipes and What Each Actually Buys You
There are four honest options for adapting an open weights model to your domain, and they differ by an order of magnitude in cost. Retrieval-augmented generation attaches your corpus to a frozen model at inference and solves most document question-answer problems. Parameter-efficient fine-tuning (LoRA, QLoRA) teaches the model a specific tone, format, or small skill by training a few million adapter weights. Continued pretraining runs the full model forward and backward on tens of billions of new tokens to shift its distribution. Full fine-tuning updates every weight on a curated instruction set, usually followed by preference optimization.
QLoRA changed the entry price. The 2023 paper showed that fine-tuning a 65-billion parameter model dropped from over 780 GB of GPU memory to under 48 GB without degrading quality against a 16-bit baseline. That is the reason most buyers never leave LoRA territory. Continued pretraining is the recipe worth considering only when your corpus contains vocabulary, structure, or reasoning patterns the base model has never seen enough of: clinical notes, legal filings in a non-English jurisdiction, a proprietary CAD format, decades of maintenance logs. Everything else is cheaper as retrieval.
If you are still deciding between retrieval and training, our write-up on private AI vs proprietary AI walks the per-token math that usually settles it.
Token Budgets and the Chinchilla Rule
DeepMind's 2022 scaling work put a number on how much data a base model needs: roughly 20 training tokens per parameter, with the 70B Chinchilla model itself trained on 1.4T tokens. Meta then blew past that ratio deliberately. Llama 3 8B and 70B were both trained on over 15 trillion tokens, a dataset seven times larger than Llama 2's and containing four times more code, using a cumulative 7.7 million H100 GPU hours on custom 24K-GPU clusters. The result is a base model deeply overtrained relative to Chinchilla-optimal, which is exactly why continued pretraining on top of it works: you are nudging a very well-fed model, not feeding a starving one.
For continued pretraining, a defensible rule is 1 to 5 billion high-quality domain tokens mixed with 5 to 15% of a general corpus to prevent catastrophic forgetting. Drop below 500 million domain tokens and you are usually better off with LoRA; go past 50 billion and you are rebuilding the base model for real, with the budget to match. Data mix ratios matter more than most teams admit. A 70/20/10 split of domain / general web / code is a reasonable starting point for most enterprise corpora; shift it toward code if your downstream tasks involve structured output.

Picking Your Base Model
The choice of base is a licensing and architecture decision before it is a quality decision. Llama 3.x gives you the most predictable fine-tuning behavior and the largest ecosystem of recipes. Qwen 2.5 is the strongest multilingual option and consistently tops code benchmarks among openly licensed models. Mistral and its Mixtral variants are worth considering when inference cost at scale matters: Mixtral 8x7B has 46.7B total parameters but only activates 12.9B per token, matching or beating Llama 2 70B on most benchmarks with roughly five times fewer active parameters at inference.
Architecture choice cascades into your serving stack. A dense 70B model on two H100s has predictable latency. A sparse mixture-of-experts model with the same quality on one H100 has unpredictable routing patterns and needs a server that handles expert parallelism. If your deployment is running on-prem on a fixed GPU count, that matters more than three points on MMLU.
The Recipe: Full Fine-Tune, DPO, or Continued Pretraining
A full post-training pipeline on an open weights model has three stages, and most teams skip one or two. Continued pretraining shifts the base distribution. Supervised fine-tuning on 10,000 to 200,000 instruction pairs teaches format and task behavior. Preference optimization then aligns the model to what your reviewers actually prefer. The 2023 Stanford Direct Preference Optimization paper removed the explicit reward model and reinforcement-learning loop from RLHF, matching or exceeding PPO on sentiment, summarization, and dialogue. In practice DPO is the default now because it trains in hours on commodity clusters instead of days.
The failure mode across all three stages is the same: thin, noisy data. A 200k-row preference set with 30% label disagreement will produce a worse model than a 20k-row set that two reviewers agreed on. Spend the budget on labeling before you spend it on GPUs. For a narrower classification problem, the economics almost always favor a small specialized model over a fine-tuned 70B.
GPU Hours and Where the Money Goes
A concrete 2026 budget for continued pretraining of a 7B to 8B model on 10 billion domain tokens lands around 15,000 to 25,000 H100 hours, or roughly $45,000 to $75,000 at spot pricing on a reserved cluster. Add 2,000 to 5,000 hours for SFT and DPO. Evaluation, which is where projects quietly overrun, typically runs another 10 to 20% on top of compute.
Infrastructure cost is the smaller line item. Senior ML engineering time to curate the data, write the training recipe, set up checkpointing, and run the evals usually dominates the first six months. A realistic internal estimate is 2 to 3 senior engineers for 4 to 6 months per model generation, before you serve a single token in production. Teams routinely underestimate this because the model card for the base checkpoint makes training look like a configured job.
When the Economics Finally Work
Training your own open weights model pencils out in a narrow set of cases. Regulated domains where sending data to a hosted API is off the table. Vocabularies the base model demonstrably misses, measured on your own eval set, not vendor marketing. Inference volumes high enough that running an owned model on your own GPUs beats per-token API pricing. Multi-tenant products where a fine-tuned base plus per-tenant LoRA adapters gives each customer a plausible "their" model without a separate training run.
Outside those cases, RAG against a hosted frontier model is usually the honest answer, and a dedicated engineering team can stand one up in a fraction of the time and budget. The training path is real work, and it is worth it when the alternative is sending regulated data off-premises or paying per-token fees that scale with your success.
Where to Go From Here
Three situations and one next step each. If you are evaluating open weights because your data cannot leave your network, start with a QLoRA fine-tune on a Llama 3.x or Qwen 2.5 base and measure against a realistic eval set before committing to continued pretraining. If your retrieval system is already in place and failing on vocabulary or reasoning the base model has not seen, continued pretraining on 1 to 5 billion domain tokens is the right next investment. If you are pitching this internally and need the budget approved, run a two-week spike with a single engineer and a rented 8xH100 node to produce real numbers your CFO can argue with, rather than vendor estimates.
