First-Generation General-Purpose LLM: Architecture and Training Practices
This article examines the architecture, data pipeline, and training practices behind a first-generation general-purpose large language model released in January 2024. It covers the dual-scale 7B and 67B dense Transformer design, the trade-offs between Multi-Head Attention and Grouped-Query Attention, a three-stage data curation pipeline, and the SFT plus DPO post-training alignment strategy. The discussion also includes bilingual evaluation results, the implications of open-weight release, and practical engineering takeaways for teams building or deploying similar models.
First-generation general-purpose large language models typically serve a foundational role: they validate the feasibility of architecture, data, and training workflows while establishing a reusable engineering baseline for subsequent model iterations. The first-generation general-purpose model released in January 2024 came in 7B and 67B parameter variants, with both base and chat versions distributed under open weights. Rather than stacking novel structures from scratch, the development strategy started by reproducing the mature dense Transformer route already proven in the industry, then improved overall capability through higher-quality bilingual Chinese-English training data and post-training alignment. The value of this approach is twofold: reproducing a mature architecture reduces risk in structural exploration, allowing the team to focus innovation on data governance, training stability, and alignment quality; open-weight release provides a starting point for downstream open platforms and ecosystem development.
Positioning and Research Strategy: Establish a Trusted Baseline, Then Pursue Data and Alignment Advantages
The first-generation model is positioned as a general-purpose language model rather than a task-specific one. The dual-scale 7B and 67B design covers two typical usage profiles: 7B suits rapid validation, edge deployment, and cost-sensitive scenarios; 67B targets higher-capacity, more complex language understanding and generation tasks. The base and chat models share the same underlying architecture but diverge in the post-training stage: the base model focuses on general language modeling capability, while the chat model acquires conversational interaction through instruction data and preference optimization. Choosing to reproduce a mature dense architecture at the outset is essentially about building a “trusted baseline”: only after confirming that training workflows, data pipelines, and evaluation systems are reproducible can subsequent data quality improvements and algorithmic refinements be meaningfully compared. The differentiation of this first-generation model comes not primarily from structural innovation but from cleaner, more balanced, higher-quality training set construction and a combined SFT + DPO post-training strategy.
Dual-Scale Dense Architecture and Attention Efficiency Trade-offs
Both scale variants retain the dense Transformer architecture. The 7B model uses Multi-Head Attention (MHA), while the 67B model uses Grouped-Query Attention (GQA) instead of MHA to reduce inference cost. MHA assigns an independent key-value head to each query head, offering strong expressiveness but incurring large key-value cache overhead during inference. GQA groups query heads to share key-value heads, preserving substantial query expressiveness while significantly reducing KV cache memory consumption and memory bandwidth pressure, thereby improving inference throughput in high-concurrency and long-context scenarios. For a 67B model, inference cost has a greater impact on deployment feasibility, making GQA a typical efficiency-first choice. For a 7B model, inference cost is relatively manageable, so retaining MHA simplifies implementation and maintains consistency with mature training workflows. This combination of “simpler for small models, efficiency-optimized for large models” illustrates how architectural selection must be weighed against deployment cost, training stability, and engineering complexity.
Pre-training Data Governance: A Three-Stage Pipeline as the Key to Performance Gains
The first-generation model was trained on 2 trillion Chinese-English bilingual tokens. Data construction proceeds through three stages: deduplication, filtering, and shuffling. The deduplication stage eliminated 89.8% of duplicate documents, indicating that the raw corpus contained a substantial volume of near-identical or fully duplicated content; without processing, duplicate samples amplify training bias, waste compute, and may induce memorization. The filtering stage removes low-quality, noisy, malformed, or inappropriate content to increase the proportion of effective tokens. The shuffling stage randomizes document order and source distribution to prevent the model from developing bias due to data sequencing or source clustering. The following illustrative pseudocode describes this pipeline:
raw_docs-> normalize_text()-> exact_dedup()-> near_dedup()-> quality_filter()-> language_balance()-> global_shuffle()-> tokenize_and_pack()
The core of this pipeline is not any single step but the coordination of “deduplicate—filter—shuffle”: deduplication improves data diversity, filtering improves data quality, and shuffling improves training distribution balance. The first-generation development achieved performance gains by building a better training set, confirming that under a mature architecture, data governance is often a more controllable and higher-return optimization direction.
Pre-training and Post-training: SFT + DPO Form a Complete Alignment Chain
The pre-training phase uses autoregressive language modeling as the objective, training the dense model on 2 trillion Chinese-English bilingual tokens to acquire general language representation, knowledge coverage, and generation capability. The post-training phase applies SFT and DPO algorithms: SFT performs supervised fine-tuning on high-quality instruction data, teaching the model to follow instructions and organize response formats; DPO directly optimizes the policy using preference pairs, avoiding the need for a separate reward model and complex reinforcement learning workflows, resulting in more stable training and a shorter engineering chain. The differentiation between base and chat models occurs precisely here: the base model retains general generation capability, while the chat model acquires conversational alignment through SFT and DPO. SFT handles “responding according to instructions,” and DPO handles “better matching human preferences”—together forming the complete chain from language modeling to conversational readiness.
Evaluation and Comparison: Bilingual Advantages Evident in Same-Scale Comparisons
Evaluation results show that the 67B model achieves significant advantages over same-scale 70B-level dense comparison models on both Chinese and English benchmarks. The significance of this conclusion goes beyond leading scores on individual metrics: it demonstrates that the combination of “mature architecture + higher-quality data + post-training alignment” delivers comprehensive gains in same-scale competition. Evaluation should cover knowledge QA, language understanding, reasoning, generation quality, and safety compliance, with Chinese and English performance examined separately to avoid focusing on a single language or a single task. For developers, the evaluation framework should align with actual business scenarios: if targeting Chinese QA, document summarization, or multi-turn dialogue, priority should go to Chinese instruction following and long-text stability; if targeting bilingual applications, cross-language capability balance and switching consistency require attention.
Open Weights and Engineering Takeaways: From Reproducibility to Deployability
The first-generation model was released with open weights and offered both base and chat variants, laying the foundation for subsequent open platform strategy and ecosystem building. Open weights enable researchers and enterprises to reproduce, audit, and conduct secondary development, and facilitate building general-purpose engineering capabilities around inference services, fine-tuning, evaluation, and monitoring. Several practical engineering lessons emerge: first, use the 7B scale to rapidly validate data pipelines and post-training recipes before scaling to 67B; second, large-model inference should prioritize evaluating designs such as GQA that reduce KV cache cost, combined with batching, quantization, and caching strategies to optimize throughput; third, data governance should be front-loaded—deduplication and filtering quality directly affect effective training efficiency; fourth, the SFT + DPO combination suits building a stable conversational alignment chain; fifth, bilingual Chinese-English evaluation should run throughout training and pre-launch validation. The series subsequently underwent multiple core version iterations, but the methodology established in the first generation—“reproduce the baseline, improve data quality, optimize architecture efficiency, align in post-training, build an open ecosystem”—remains an essential starting point for understanding general-purpose large language model development.
