First-Generation Open-Source LLMs: Dual-Scale Architecture and Training Practices

    This article analyzes the architecture and training methodology of first-generation open-source large language models released in dual parameter scales. It covers the positioning of base and chat model variants, the engineering trade-offs between dense decoder architectures with MHA versus GQA attention, a three-stage data pipeline (deduplication, filtering, and shuffling) built on roughly 2 trillion bilingual tokens, the post-training alignment chain of SFT followed by DPO, and practical recommendations for open-source delivery and cloud-based deployment. Readers will gain a clear understanding of how these models connect pre-training, data governance, alignment, and open-source release into a complete engineering workflow.

    First-Generation Open-Source LLMs: Dual-Scale Architecture and Training Practices

    In early 2024, general-purpose large language models entered a phase of rapid iteration, and a wave of first-generation open-source releases gave developers reproducible, customizable language model foundations. These models typically ship both a base model and a chat model, offered in a smaller and a larger parameter tier to cover different compute budgets and business scenarios. Their technical value lies not only in isolated capabilities, but in connecting pre-training, data governance, post-training alignment, and open-source delivery into one complete engineering chain — a starting point for the model ecosystem and platform strategies that followed.

    1. Positioning and Release Format: Dual Tiers with Base and Chat Variants

    The core positioning of first-generation open-source LLMs is that of a “general-purpose language model foundation.” General-purpose means the model first acquires language understanding, knowledge retention, and generation capabilities through large-scale autoregressive pre-training, and is then adapted for instruction following and conversational scenarios through post-training. Releasing both base and chat models under an open-source license serves two distinct needs: base models suit researchers doing continued pre-training, domain adaptation, and algorithmic experimentation, while chat models are better suited for direct use in conversational applications, task-oriented assistants, and lightweight business validation.

    The dual parameter tier design is an engineering compromise. The smaller tier, around 7 billion parameters, keeps training and inference costs relatively manageable, works well on a single multi-GPU machine or mid-scale inference services, and supports rapid iteration and edge-side experimentation. The larger tier, around 67 billion parameters, offers greater capacity and generalization potential but demands more from memory, bandwidth, and parallelism strategies. Both tiers share largely the same data and training methodology while allowing differentiated design in components like the attention mechanism, striking a balance among cost, throughput, and capability. This “same technical路线, different scale delivery” approach lowers the barrier for developers to understand and migrate between tiers, and gives the open-source ecosystem a layered model matrix to adopt from.

    2. Architecture Choices: Dense Decoders and the MHA/GQA Trade-Off

    These models follow the industry’s mature dense Transformer decoder路线. The defining trait of a dense architecture is that every token’s forward pass activates all parameters, making training and inference behavior relatively predictable and easier to tune and evaluate in terms of capacity. Compared with sparse approaches such as Mixture-of-Experts, dense models are easier to reproduce and deploy at the first-generation stage, making them especially suitable as the foundational form of a general-purpose language model.

    The choice of attention mechanism reflects clear cost awareness. The smaller tier typically uses multi-head attention (MHA), which is simple to implement and broadly compatible with the ecosystem. The larger tier replaces MHA with grouped-query attention (GQA), where multiple query heads share a smaller number of key-value heads, significantly reducing KV cache footprint and memory bandwidth pressure during inference. For long contexts or high-concurrency serving, GQA often delivers better throughput while maintaining a good balance of expressiveness. An illustrative configuration:

    1. model:
    2. family: dense_decoder
    3. variants:
    4. small:
    5. attention: mha
    6. large:
    7. attention: gqa
    8. num_kv_heads: <fewer than query heads>
    9. training:
    10. pretrain_tokens: ~2T
    11. post_train:
    12. - sft
    13. - dpo

    It is worth emphasizing that GQA is not simply “reducing the number of heads” — it reorganizes how key-value heads are structured so that the inference cache becomes more compact. In practice, deployment tuning must also account for batch size, sequence length, tensor parallelism partitioning, and KV cache management strategy. End-to-end performance cannot be judged from the attention type alone.

    3. Data Engineering: A Three-Stage Pipeline of Deduplication, Filtering, and Shuffling

    The first-generation models were pre-trained on roughly 2 trillion tokens of Chinese-English bilingual data, built through a three-stage pipeline of deduplication, filtering, and shuffling. The deduplication stage removed about 89.8% of duplicate documents — a figure that shows how heavily duplicated the raw corpus was. Duplicate data not only wastes training compute but also amplifies specific phrasings and memorization risks, hurting generalization. In engineering practice, this typically combines document fingerprinting, near-duplicate detection, and paragraph-level similarity checks to remove large-scale mirrored and reposted content while preserving legitimately recurring structures.

    The filtering stage focuses on quality, language, safety, and usability. Common practices include heuristic rule-based filtering, language identification, length and symbol-ratio constraints, low-quality template detection, and sensitive content handling. The shuffling stage breaks up document ordering and source clustering, reducing sequence bias during training and making the data distribution within each batch more balanced. For bilingual Chinese-English corpora, additional control is needed over mixing ratios, sampling weights, and curriculum scheduling to prevent any single language or domain from dominating. High-quality data construction often yields more stable gains than simply scaling up parameter counts — a key reason these first-generation efforts started by reproducing mainstream technical approaches and then improved performance through better training sets.

    4. Training and Post-Training: The SFT and DPO Alignment Chain

    The pre-training stage uses autoregressive language modeling as its objective, teaching the model next-token prediction. The post-training stage typically begins with supervised fine-tuning (SFT), using instruction-response data to teach the model to follow task formats, followed by preference learning methods such as Direct Preference Optimization (DPO) to align model outputs with human preferences. DPO’s advantage is that it does not require training a separate reward model, keeping the pipeline relatively simple — well suited for quickly establishing conversational and instruction-following capabilities in a first-generation model. A typical pipeline can be abstracted as:

    1. Large-scale pre-training -> Supervised fine-tuning (SFT) -> Preference optimization (DPO) -> Evaluation and safety review

    Post-training data quality is equally critical. SFT data must cover task types, instruction diversity, and response styles; preference data requires clear positive-negative sample pairs, avoiding the amplification of annotation bias. After training, teams should combine automated benchmarks, manual spot checks, and scenario-based regression testing, focusing on factuality, instruction adherence, refusal boundaries, and multi-turn consistency. For open-source models, clear model cards, license terms, and usage restrictions should also be provided to help developers correctly understand capability boundaries.

    5. Open-Source Delivery and Platform Deployment Recommendations

    Releasing base and chat models under an open-source license lowers the barrier to reproduction and encourages secondary development and ecosystem building. For enterprises adopting such models, the first step is clarifying the scenario: continued pre-training for domain adaptation, or prompt engineering and lightweight fine-tuning on top of the chat model; low-latency high-concurrency serving, or stronger reasoning capability. The smaller tier fits cost-sensitive tasks and rapid validation; the larger tier fits complex generation and high-quality dialogue, but requires more thorough inference optimization.

    For cloud deployment, object storage can host corpora and model weights, container platforms can orchestrate training and inference services, and logging and monitoring/alerting services can safeguard stability. On the inference side, tuning can leverage quantization, batching, KV cache optimization, and structural properties such as GQA. Regardless of the platform chosen, organizations should establish mechanisms for data governance, evaluation baselines, security and compliance, and cost monitoring — avoiding the trap of focusing only on model parameters while neglecting end-to-end engineering capability. That is precisely the significance of first-generation open-source LLMs: they deliver not just models, but a general-purpose language model engineering paradigm that developers can understand, reproduce, and continue to evolve.