Architecture, Capabilities, and Selection Guide for General-Purpose LLM Series
This article explains how to evaluate a general-purpose LLM series across three dimensions: pretraining architecture, version and deployment cost, and evaluation setup. It covers autoregressive blank infilling, parameter tiers, GQA and MoE, practical tests for long-context, coding, and reasoning, multimodal and agent extensions, domestic AI chip compatibility, and a five-step selection checklist with VRAM estimation, quantization, LoRA settings, throughput measurement, and rollback planning.
Introduction
Large language models have become an underlying capability for many software products. A single general-purpose LLM series often includes a full product line, from lightweight open-source versions to high-performance versions. When selecting a model, readers need to separate three things: architecture design determines what a model is good at, version differences determine deployment cost, and evaluation setup determines what leaderboard scores can actually show. This article organizes the series along these three lines and provides an actionable selection process.
Key Takeaways
- Architecturally, some versions in the series use an autoregressive blank infilling pretraining objective. Whether later versions continue to use it should be confirmed against the official model card.
- In terms of versions, parameter scales range from the billion level to the hundred-billion level, and VRAM requirements vary widely.
- For capabilities, long-context, coding, and reasoning performance should be validated with your own task sets. Public leaderboards can only serve as references.
- For deployment, domestic AI chip compatibility must be checked item by item, including chip model, framework version, and operator coverage.
1. Pretraining Architecture: How the Blank Infilling Objective Works
Autoregressive blank infilling is a training objective. During training, the system randomly masks a contiguous span of text, and the model generates the masked part one token at a time from left to right. Compared with a causal language model that only predicts the next token, this objective lets the model use both the preceding and following context during generation. Compared with a pure masked model, it preserves autoregressive decoding, so the generation workflow is largely consistent with common chat model interfaces.
The training process usually mixes two types of tasks. One is ordinary autoregressive continuation, which ensures fluent generation. The other is span infilling, which trains the model to use surrounding context for local inference. The ratio of the two tasks affects model performance on continuation and understanding tasks, and the specific settings are generally described in technical reports. Readers should rely on the original paper or model card and should not treat one generation’s training objective as a universal feature of the entire series.
2. Version Comparison: Parameter Scale Determines the Deployment Threshold
Versions in the series can be divided into three categories by parameter scale. The table below shows typical uses and resource requirements for each category. Specific values should follow the official documentation for the corresponding version.
| Category | Parameter Scale | Typical Use | Deployment Notes |
|---|---|---|---|
| Lightweight | About 1B to 10B | Edge devices, real-time chat, prototype validation | Can use quantization compression; runs on a single consumer-grade GPU |
| Medium | About 10B to 70B | General Q&A, coding assistance, document processing | Usually requires one or more professional GPUs |
| Large | Tens of billions to hundreds of billions | Complex reasoning, long-document analysis, high-quality generation | Requires multi-GPU parallelism or a cloud cluster |
Structural differences between versions are also worth noting. Grouped-query attention (GQA) lets multiple query heads share key-value heads, reducing key-value cache usage during inference. Mixture-of-experts (MoE) models activate only part of the expert sub-networks at a time, so total parameter count is large but computation per pass is smaller. Both designs change the cost curve, but whether a specific version adopts either one needs to be confirmed in the model card.
3. Capability Evaluation: How to Test Long Context, Coding, and Reasoning
There is a common misconception about long-context capability: a long nominal context window does not mean every part of the content can be used effectively. Readers can run a targeted test. Insert a known fact at different positions in a long document, then ask about that fact and record answer accuracy by position. If accuracy drops明显 in the middle, the effective usable length is shorter than the nominal value.
Coding capability can be measured by pass rate. Prepare a set of problems with unit tests, have the model generate code and run the tests, then calculate the pass rate for a single generation or the proportion of multiple samples where at least one passes. This method is more reproducible than manual scoring. Repository-level tasks also require checking whether cross-file references are correct.
Reasoning capability is sensitive to prompting. When comparing two versions, keep sampling temperature, number of few-shot examples, and whether chain-of-thought prompting is used consistent. With the same set of problems, different settings can produce very different scores. Therefore, any leaderboard number should include the version number, test date, evaluation settings, and original link. Missing any of these makes it difficult to reproduce.
4. Multimodal and Agent Extensions
Multimodal versions generally consist of a vision encoder and a language decoder. Images are first encoded into a set of visual features, then fed into the language model together with text. This structure is suitable for chart interpretation, document recognition, and interface understanding. The main limits come from input resolution and frame rate. Small text, dense tables, and details in long videos are easily lost, so real samples should be used to test failure rates before launch.
Agent capabilities depend on tool calling. The model generates tool requests based on the task, an external program executes them, and the results are returned to the model for further reasoning. Common failures include choosing the wrong tool, malformed parameters, and repeatedly calling the same interface in a loop. During deployment, set maximum step counts and timeouts, log every call, and keep human confirmation for write operations.
5. Domestic AI Chips and Ecosystem Compatibility
Support for domestic AI chips in the series needs to be verified under specific conditions. Readers should record the following information: chip model, driver and framework versions, operator library coverage, batch size, sequence length, and comparison baseline. Only throughput and latency measured under the same conditions can be used for comparison. If an operator is missing, confirm whether there is a fallback to a general implementation and what performance loss the fallback introduces.
Data security is a major reason for private deployment. Local or private cloud deployment can reduce data exposure, but access control, audit logs, and input/output masking are still required. Quantized deployment introduces accuracy loss, so results before and after quantization should be compared on your own business data.
The scale of the open-source ecosystem should also be based on verifiable data. Download counts, star counts, and community activity change over time, so citations should note the statistics platform, measurement scope, and cutoff date.
6. Selection Checklist
Selection can be completed in five steps.
Step 1: Estimate VRAM. Model weight usage is approximately equal to parameter count multiplied by bytes per parameter. FP16 uses 2 bytes per parameter, INT8 uses 1 byte, and INT4 uses 0.5 bytes. For a 7B model, FP16 weights require about 14 GB, and INT4 requires about 3.5 GB. Inference also needs room for key-value cache and framework overhead, usually an additional 20% to 50%.
Step 2: Choose a quantization method. INT8 usually has smaller accuracy loss, while INT4 saves more VRAM but requires testing output quality. After quantization, the model must be re-evaluated on your own validation set.
Step 3: Design fine-tuning parameters. When using LoRA, rank r often starts at 8 or 16, and the scaling factor alpha is often set to one to two times r. The number of trainable parameters is approximately 2 × r × the matrix dimension. The adapted modules are usually the query projection and value projection of attention layers.
Step 4: Measure throughput and latency. Record time to first token, tokens generated per second, and concurrency limit, with input length and output length fixed.
Step 5: Plan rollback. When launching a new version, keep the old version’s service endpoint and switch traffic gradually through a small canary percentage. If quality drops or error rates rise, you can quickly switch back to the old version.
| Check Item | Acceptance Criteria | Check Method |
|---|---|---|
| VRAM | Peak usage below 80% of available device VRAM | Estimate by formula, then measure |
| Quality | Core task metrics not lower than baseline | Compare on a self-built test set |
| Latency | Meets business requirements for first token and full response | Stress test under fixed load |
| Compliance | Data does not leave the domain; logs are auditable | Review deployment architecture and log configuration |
