模型架构
模型架构实用指南
生成模型架构
了解文本、嵌入、图像、视频、音频和多模态产品背后的实际结构,再根据目标选择骨干网络、表示方式、生成器和系统封装。
22 个架构系列 · 5 个分组 · 每个系列一个页面
关键区别
能力不等于架构
“聊天”“图像”和“多模态”描述的是交互界面;仅解码器、状态空间、DiT 和 MoE 描述内部计算;RAG 与工具使用描述模型外围的运行时系统。一个生产系统完全可能同时拥有这三类标签。
= 聊天能力
+ 仅解码器骨干网络
+ 检索与重排序
+ 类型化工具控制器
+ 策略与人工升级
编写架构档案
- 1能力: 输入、输出、用户任务与所需证据
- 2表示: 词元、向量、像素、编解码器代码或连续潜变量
- 3骨干网络: 编码器、解码器、序列到序列、注意力、SSM 或混合结构
- 4容量: 稠密或专家路由;总参数与激活参数
- 5生成: 自回归、扩散/流、对抗式或确定性
- 6系统: 检索、工具、验证器、权限、监控与人工参与
浏览全部 22 个系列
每个系列都有独立页面,介绍训练、推理、优势、权衡和选择指南。
Product capabilities
What the product accepts and returns. These are deployment shapes, not mutually exclusive neural architectures.
Text & chat language models
Generate text one token at a time, usually with a causal decoder trained for next-token prediction and then adapted to follow instructions.
Embedding models
Map text, images, audio, users, or items into vectors whose geometry is trained to preserve a useful notion of similarity.
Image generation & editing
Synthesize or transform pixels, most often through a text or image conditioner, a latent generator, and an image decoder.
Video generation
Generate spatial and temporal structure together using frame, patch, or latent video representations with cross-frame computation.
Audio, speech & music models
A family of task-specific pipelines: speech recognition, speech synthesis, audio understanding, voice conversion, sound generation, and music generation are not one architecture.
Core backbones
How information moves through the trainable network. A deployed model may combine several of these choices.
Encoder-only Transformers
Let every input token attend to tokens on both sides, producing contextual representations rather than an open-ended generation loop.
Decoder-only Transformers
Use a causal mask so each position sees only earlier tokens, matching the left-to-right generation process used by most general-purpose chat models.
Encoder–decoder Transformers
Encode an input bidirectionally, then generate an output causally while cross-attending to the encoded source.
Mixture of Experts (MoE)
Replace selected dense sublayers with many expert networks and a learned router that activates only a small subset for each token.
State-space & recurrent models
Update a compact state as tokens arrive instead of retaining an explicit attention relationship between every pair of positions.
Representation & generation
How images, audio, video, and other high-dimensional outputs are represented, learned, and sampled.
Autoencoders, VAEs & learned tokenizers
Learn an encoder that compresses data and a decoder that reconstructs it; variational and quantized variants shape the latent space for sampling or downstream generation.
Generative Adversarial Networks (GANs)
Train a generator to fool a discriminator while the discriminator learns to distinguish generated samples from training data.
Normalizing flows
Transform a simple distribution into a complex data distribution through a sequence of invertible mappings with tractable Jacobians.
Diffusion & score-based generation
Learn to reverse a gradual noising process, producing data by repeatedly transforming noise toward a sample.
Latent diffusion
Run diffusion in an autoencoder’s lower-dimensional latent space, then decode the generated representation back to pixels or another signal.
Diffusion Transformers (DiT)
Use a Transformer over noisy image or video patches as the denoising network inside a diffusion or flow-based generative process.
Autoregressive visual & audio models
Convert images, video, or audio into discrete codes and predict those codes in an ordering, often with a causal Transformer.
Modality interfaces
How vision, text, audio, and other modalities are encoded, aligned, fused, or connected to a generator.
Vision encoders
Transform pixels into feature maps, patch tokens, or pooled vectors that downstream classifiers, retrievers, decoders, or multimodal models can consume.
Contrastive & dual encoders
Encode two inputs independently (such as a query and document or image and caption) and train matching pairs to land near each other.
Multimodal fusion models
Connect modality-specific encoders and generators through projection, cross-attention, shared token spaces, or combinations of these mechanisms.
AI system architectures
Runtime structures around a model that add knowledge, tools, control, and verifiable behavior.
Retrieval-augmented & hybrid systems
Retrieve evidence at request time and provide it to a generator, classifier, or agent instead of relying only on model parameters.
Tool-using & reasoning systems
Place a model inside a controller that can plan, call typed tools, inspect results, revise, verify, stop, and hand control to a person.