First-Generation Open-Source General LLM Technical Route: Architecture, Data Governance, Training, and Evaluation
This article reviews the technical route of a first-generation open-source general-purpose large language model released in January 2024 in 7B and 67B parameter sizes, with both base and chat variants. It explains the dense decoder-only architecture and scale trade-offs, a three-stage Chinese-English pretraining data pipeline with deduplication, filtering, and shuffling, pretraining and post-training with SFT and DPO, evaluation interpretation, and reusable engineering lessons.
The technical route of a first-generation open-source general-purpose large language model is usually not a single model-structure innovation, but a systems engineering effort spanning data governance, pretraining, post-training, and an evaluation loop. The first-generation model was officially released in January 2024, includes two parameter sizes, 7B and 67B, offers both base and chat model forms, and was released as open source. As the first generation of a general-purpose language model series, its significance lies not only in parameter-scale coverage but also in establishing the starting point for later open-source ecosystem and open platform strategies. The related technical report was published on January 5, 2024, providing a relatively complete reference for understanding its design trade-offs.
From a research-and-development background perspective, the initial model’s approach has typical engineering value: first reproduce the technical route of mainstream open-source dense models at the time, build a runnable training and evaluation pipeline, and then improve performance by constructing a higher-quality Chinese-English bilingual training set. This path emphasizes “reproduce first, optimize second,” avoiding blind pursuit of structural innovation while infrastructure, data quality, and evaluation systems are not yet stable. For enterprises or teams, this strategy is closer to a practical method for large-model R&D: use a mature architecture to reduce uncertainty and focus main efforts on data governance, training stability, and post-training alignment.
Overall Architecture and Scale Choices
The first-generation model adopts a dense decoder-only architecture and provides two sizes, 7B and 67B. The defining feature of a dense architecture is that every token activates all parameters during inference; model behavior is relatively direct, and training and deployment pipelines are easier to standardize. The 7B size is suitable for validation, fine-tuning, and inference in resource-constrained scenarios; the 67B size targets general tasks with a higher capability ceiling. Releasing base and chat models at both sizes means the same technical foundation can cover continued pretraining, instruction fine-tuning, dialogue applications, and other needs.
Behind the scale choice is a trade-off between capability and cost. The 7B model uses multi-head attention (MHA), which is intuitive and convenient for reproduction and debugging; the 67B model uses grouped-query attention (GQA) instead of standard MHA to reduce KV cache overhead and memory bandwidth pressure during inference. The core idea of GQA is to let multiple query heads share fewer key-value heads, thereby reducing key-value cache size while preserving more query expressiveness. For large-parameter models, inference cost often depends not only on FLOPs but also on memory capacity, memory bandwidth, and batching efficiency, so GQA is an important engineering optimization for serving inference.
Pretraining Data Governance: A Three-Stage Pipeline
The model uses about 2 trillion tokens of Chinese-English bilingual pretraining data. Data construction is divided into three stages: deduplication, filtering, and shuffling. The deduplication stage removes about 89.8% of duplicate documents, a ratio indicating that duplicate content accounts for a high share of the raw corpus. Duplicate documents amplify certain patterns, lead to model memorization, reduce training efficiency, and may increase evaluation contamination risk. Therefore, deduplication is not simple cleanup; it is a key step that affects the effective utilization of training tokens.
The filtering stage usually covers dimensions such as quality, safety, language ratio, length, noise, and degree of templating. High-quality data should have information density, coherence, and diversity; low-quality data includes garbled text, navigation text, repeated templates, and content with overly strong machine-generated traces. In a Chinese-English bilingual setting, language identification and ratio also need attention to avoid one language dominating excessively. The shuffling stage globally disperses data to reduce order bias, so the model encounters content from different sources, topics, and languages more evenly during training.
The pipeline can be summarized with the following pseudocode:
def build_pretrain_corpus(raw_docs, cfg):docs = normalize(raw_docs)docs = dedup(docs, mode="exact+near", threshold=cfg.dedup_threshold)docs = quality_filter(docs, rules=cfg.quality_rules)docs = balance_language(docs, zh_ratio=cfg.zh_ratio)docs = global_shuffle(docs, seed=cfg.seed)return docs
The key to this pipeline is not any single rule, but stage order and observability: deduplication first reduces wasted computation in later filtering; filtering then raises the proportion of effective tokens; final shuffling ensures an unbiased training order. In engineering practice, teams should also log the retention rate, language distribution, length distribution, and topic distribution at each stage to locate data quality regressions.
Pretraining and Post-Training: From Capability Formation to Preference Alignment
The pretraining stage uses autoregressive language modeling as its core objective, learning general language ability, knowledge associations, and basic reasoning patterns through large-scale Chinese-English bilingual tokens. The 2 trillion token scale means both high data coverage and many training steps, placing requirements on distributed training, mixed precision, gradient accumulation, checkpoint recovery, and loss monitoring. The first-generation model emphasizes improving performance through a better training set, indicating that under the same architecture, data quality and ratio often bring more stable gains than simply increasing parameters.
The post-training stage uses SFT and DPO algorithms. SFT uses high-quality instruction data to teach the base model task formats, response style, and basic instruction-following ability; DPO uses preference-pair data to directly optimize the policy so the model is more likely to generate preferred responses. The combination means: SFT solves “can answer according to instructions,” while DPO further solves “among multiple acceptable answers, better matches human preferences.” In engineering practice, post-training data needs controlled diversity, difficulty distribution, and safety, avoiding adaptation to only a small number of templates.
Evaluation Methods and Result Interpretation
The technical report shows that the 67B model achieved an advantage in Chinese-English bilingual evaluation compared with an open-source baseline of about 70B parameters. When interpreting this result, one should also consider evaluation-set composition, prompt templates, decoding parameters, and the comparison baseline. An advantage on a single leaderboard cannot be directly extrapolated into an absolute lead across all business scenarios; a more reasonable approach is to build task-oriented layered evaluation covering knowledge question answering, reading comprehension, code understanding, mathematical reasoning, long-text processing, and safety refusal.
Several reusable lessons can be drawn from the first-generation model’s technical route: first, reproducing a mature route is an effective starting point for reducing R&D risk; second, deduplication and quality filtering determine the effective token ratio; third, attention optimization should be evaluated together with inference cost; fourth, SFT and DPO need to be linked with an evaluation loop; fifth, open-source release helps form a verifiable and reproducible ecosystem foundation. For subsequent model iterations, these lessons have more long-term value than a single evaluation result.
