项目
在 GitHub 查看
YeonwooSung/llm-architecture-from-scratch
关于
使用 PyTorch 从头实现 LLM 架构
人工智能与机器学习实测星标增长
- 24小时
- 0
- 7天
- -3
- 15天
- -7
- 1个月
- -216
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文LLM architecture from scratch
Implementing LLM architectures from scratch for deep understanding of modern LLM architectures.
Implemented
| Model | Model Size | Modality | Normalization | Positional Encoding | Attention | Mixture of Experts |
|---|---|---|---|---|---|---|
| GPT-2 XL | 1.5B | Text | LayerNorm | Learned Absolute | Multi-Head Self-Attention (causal) | ❌ |
| Llama3-8B | 8B | Text | RMSNorm | RoPE | Grouped-Query Attention (causal) | ❌ |
| Llama 3.2-3B | 3B | Text | RMSNorm | RoPE | Grouped-Query Attention (causal) | ❌ |
| OlMo 2 7B | 7B | Text | RMSNorm | RoPE | Grouped-Query Attention (causal) | ❌ |
| Phi-4 | 14B | Text | RMSNorm | RoPE | Grouped-Query Attention (causal) | ❌ |
| DeepSeek v3 | 671B | Text | RMSNorm | RoPE | Multi-head Latent Attention | ✅ |
| Gemma 3 | 27B | Text + Image | RMSNorm | RoPE | Sliding window + GQA | ❌ |
| xLSTM | 7B | Text | RMSNorm | RoPE | mLSTM | ❌ |
| Mistral 3.1 Small | 24B | Text + Image | RMSNorm | RoPE | Sliding window + GQA | ❌ |
| Llama 4 Maverick | 400B | Text | RMSNorm | RoPE + NoPE | GQA | ✅ |
| Qwen3 | 32B | Text | RMSNorm | RoPE | Grouped-Query Attention (causal) | ❌ |
| Qwen3 (235B-A22B) | 235B A22B | Text | RMSNorm | RoPE | Grouped-Query Attention (causal) | ✅ |
| SmolLM3 | 3B | Text | RMSNorm | RoPE + NoPE | Grouped-Query Attention (causal) | ❌ |
| Kimi K2 | 1T | Text | RMSNorm | RoPE | Multi-head Latent Attention | ✅ |
| GPT OSS | 120B | Text | RMSNorm | YaRN RoPE | Grouped-Query Attention (causal) | ✅ |
| GLM 4.5 | 355B | Text | RMSNorm | RoPE | Grouped-Query Attention (causal) | ✅ |
| Grok 2.5 | 270B | Text | RMSNorm | RoPE | Grouped-Query Attention (causal) | ✅ |
| MiniMax M2 (230B) | 230B | Text | RMSNorm | RoPE | Grouped-Query Attention (causal) | ✅ |
| Qwen3 Next | 80B-A3B | Text | RMSNorm | RoPE | Grouped-Query Attention (causal) | ✅ |
| Ouro Thinking | 2.6B | Text | RMSNorm | RoPE | Grouped-Query Attention (causal) | ❌ |
| OLMo3 | 32B | Text | RMSNorm | RoPE | Grouped-Query Attention (causal) | ❌ |
| DeepSeek v3.2 | 671B | Text | RMSNorm | YaRN RoPE | Multi-head Latent Attention + DeepSeek Sparse Attention | ✅ |
| Mistral Large 3 | 673B-A41B | Text | RMSNorm | YaRN RoPE | Multi-head Latent Attention (causal) | ✅ |
In progress
- Nemotron 3 Nano (30B-A3B)
- Xiaomi MiMo-V2-Flash (309B)
- GLM-4.7 (355B)
- Arcee AI Trinity Large (400B)
- Kimi K2.5 (1T)
- LongCat-Flash-Lite (68.5B-A3B)
探索相关项目
加载中…