Post-Training or a New Base Model? A Decision Framework for LLM Selection

    When choosing a large language model, developers often face the same question: should you keep post-training on an existing base model, or invest in training a larger base model from scratch? This article explains the technical logic behind both paths, compares their costs and risks, examines terminal-based agent scenarios where both converge, and provides a practical checklist and decision framework to guide your selection.

    Post-Training or a New Base Model? A Decision Framework for LLM Selection

    Large language models evolve quickly, and developers frequently face the same question during model selection: should you continue post-training on an existing base model, or invest resources in training a new base model with more parameters? The two paths have different cost structures and preconditions, and choosing the wrong one can waste significant compute and time. This article avoids vendor marketing claims and focuses purely on technical logic: the characteristics of both paths, the terminal agent scenarios they both target, and the questions you should answer before committing.

    1. The Technical Logic of Each Path

    Path One: Deep Post-Training

    The premise of this path is that the existing base model already has sufficient language understanding and knowledge coverage. Under this premise, pre-training builds the capability foundation, while post-training—through task distributions, reward signals, and evaluation criteria—guides the model to apply its existing capabilities to target tasks. Post-training largely determines the ceiling for task performance, but that ceiling is still bounded by the base model’s capacity and data quality. If the base model itself is weak, post-training has limited room to improve.

    This path typically involves three key investment areas.

    First, lengthening task chains. Traditional instruction tuning focuses on single-turn Q&A or short-step tasks. During post-training, you can train the model on multi-step engineering tasks with dependencies—for example, understanding a requirement, modifying multiple files, then running tests and fixing failures. Teams can measure training coverage by task steps, dependency depth, and the number of environments involved; raw data volume is only one reference point.

    Second, expanding environment diversity. Real development scenarios include terminal commands, reading and writing code repositories, search engines, code interpreters, and build tools. If the training environment only covers one or two of these, the model is prone to errors when it encounters other tools. Broader environment coverage generally produces more stable cross-tool collaboration, but it requires more sophisticated environment setup and reward design.

    Third, sustained reinforcement learning investment. Compute during post-training is mainly consumed by large-scale sampling, execution feedback, and policy updates. Through repeated trial and error, the model gradually finds more effective solution paths. The cost of this training comes primarily from inference sampling and environment execution, not just parameter updates. Teams should include both parts when estimating budgets.

    Path Two: Training a Very Large New Base Model from Scratch

    Some vendors have released models with parameter counts at the trillion scale, but their counting methods are inconsistent. When reading related materials, confirm three numbers: total parameters, activated parameters, and training token count. In mixture-of-experts architectures, total parameters often differ greatly from the parameters actually activated per inference, so you cannot judge inference cost from total parameters alone. When comparing models, all three numbers must use the same counting standard.

    The motivation behind this path is that when improvements from an existing base model plateau, larger parameter scale and more data may unlock new capabilities. Such models typically incorporate large volumes of high-quality code, technical documentation, and engineering logs during pre-training, giving them a stronger foundation in code understanding, multilingual support, and logical reasoning.

    2. Cost-Benefit Comparison

    The table below compares the two paths across key dimensions. The descriptions are qualitative judgments; actual numbers depend on team size, hardware, and task type, and should be measured in your own environment.

    Dimension Deep Post-Training Very Large New Base Model
    Upfront investment Mainly environment setup, reward design, and evaluation set construction; can be phased in Large-scale data cleaning, pre-training, and training stability debugging; requires long-term, concentrated investment
    Iteration cycle Can proceed by training rounds; fast iteration once environments are ready Long retraining cycles and high adjustment costs
    Inference cost Inherits the existing base model’s scale; relatively easy to estimate Higher memory and compute requirements; estimate based on activated parameters and target concurrency
    Capability ceiling Bounded by base model capacity; suited to improving utilization of existing capabilities May break through the current base model’s limits, but results must be validated on your own tasks
    Main risks Easy to overfit the training environment; performance degrades on unfamiliar projects Large investment and long cycle; heavy losses if training fails or underperforms
    Preconditions Base model mostly meets needs, with definable task gaps Clear capability gaps that post-training cannot close, plus sufficient budget and data

    For most companies without a clearly identified capability gap, training a very large base model in-house offers poor return on investment. If a team only needs general Q&A or light customization, the usual answer is to pick a suitable off-the-shelf model and apply lightweight adaptation.

    3. Terminal Agents: The Shared Battleground

    Although the two paths differ in training methodology, they share a common goal for capability delivery: coding ability and agent performance in terminal environments. Developers are no longer satisfied with a model completing a few lines of code in an editor. They want the model to act like an engineer—reading requirements in the command line, modifying code, running tests, and fixing errors.

    Each path has its own strengths for these tasks. Deep post-training lets a team design training tasks around a specific toolchain, making the model familiar with the target repository’s directory structure, build process, and test commands. However, if the training environment does not cover certain tools, the model’s performance on those tools will degrade noticeably. A new base model benefits from broader pre-training data and may produce reasonable judgments with minimal prompting on some tasks—but whether those judgments are reliably reproducible must be verified with your own task set.

    Regardless of which path you choose, the boundaries of terminal agents must be clear. An agent with command execution permissions can accidentally delete files, modify configurations, or access resources it should not touch. Any agent running in a terminal should therefore operate with restricted permissions in an isolated environment, never connected directly to production systems.

    4. Selection Checklist and Decision Framework

    Before making a decision, work through the following checklist.

    • Is there a quantifiable capability gap—for example, a task category whose pass rate falls below the acceptance threshold?
    • What is the existing base model’s baseline performance on internal tasks? Has it been measured?
    • Does the training environment cover the target toolchain, including the terminal, code repository, build tools, and test frameworks?
    • Can you build an evaluation set that is isolated from training data and close to real business scenarios?
    • Can the team sustain the compute cost of sampling and environment execution over the long term?
    • Based on target concurrency, is the inference cost acceptable? Was the estimate based on activated parameters?
    • Do training and evaluation data contain personal information or internal credentials, and have de-identification and compliance reviews been completed?
    • If performance regresses, are there version rollback and canary release plans in place?

    Based on your answers, you can apply the following decision framework.

    First, if there is a clear capability gap, evaluation confirms the existing base model cannot close it through post-training, and budget and data are sufficient, then evaluating a new base model is reasonable.

    Second, if the base model mostly meets your needs, prioritize deep post-training, directing investment toward longer task chains, broader environment coverage, and a stronger evaluation system.

    Third, if you only need general capabilities or light customization, in-house training is usually unnecessary—choose an off-the-shelf model and adapt it.

    5. Validation and Safety Before Deployment

    Validation can proceed in the following order.

    1. Establish a baseline. Run your internal task set on the unmodified base model, recording pass rates, average steps, and major failure types.
    2. Isolate the evaluation set. Split training and evaluation data by project or time period to prevent data leakage from inflating evaluation results.
    3. Test by environment. Test each tool category individually first, then multi-tool combined scenarios.
    4. Run multiple times and use statistics. Run the same task multiple times and record the variance; do not draw conclusions from a single run.
    5. Roll out gradually. Start on low-risk repositories or read-only tasks, then expand scope after stability is confirmed.

    Key safety measures include the following.

    • Least privilege: The agent can only access the directories required for its task and uses an approved command list.
    • Sandboxed execution: Commands run in isolated containers or virtual machines, never touching production environments directly.
    • Credential management: Secrets are stored in a dedicated secrets management service, never written into prompts, code, or logs.
    • Rollback plan: All file modifications are version-controlled, and critical operations require human confirmation before execution.
    • Data de-identification: Personal information and internal credentials are removed from training and evaluation data in advance.
    • Consistent evaluation standards: The same metric uses the same definition, test set, and run parameters, ensuring valid comparisons across versions.

    The key to model selection is understanding your own gap first, then choosing the corresponding path. Until there is evidence that the base model has reached its ceiling, solidifying post-training and the evaluation system is usually the safer starting point.