feat: 完整中文翻译 maths-cs-ai-compendium(数学·计算机科学·AI 知识大全)

翻译自英文原版 maths-cs-ai-compendium,共 20 章全部完成。

第01章 向量 | 第02章 矩阵 | 第03章 微积分
第04章 统计学 | 第05章 概率论 | 第06章 机器学习
第07章 计算语言学 | 第08章 计算机视觉 | 第09章 音频与语音
第10章 多模态学习 | 第11章 自主系统 | 第12章 图神经网络
第13章 计算与操作系统 | 第14章 数据结构与算法
第15章 生产级软件工程 | 第16章 SIMD与GPU编程
第17章 AI推理 | 第18章 ML系统设计
第19章 应用人工智能 | 第20章 前沿人工智能

翻译说明:
- 所有数学公式 $...$ / $$...$$、代码块、图片引用完整保留
- mkdocs.yml 配置中文导航 + language: zh
- README.md 已翻译为中文(兼 docs/index.md)
- docs/ 目录包含指向各章文件的 symlink
- 约 29,000 行中文内容,排除 .cache/ 构建缓存
This commit is contained in:
2026-05-03 10:23:20 +08:00
commit 2536c937e3
400 changed files with 49040 additions and 0 deletions
+48
View File
@@ -0,0 +1,48 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 230" width="700" height="230">
<text x="350" y="22" text-anchor="middle" font-family="Arial, sans-serif" font-size="14" font-weight="bold" fill="#333">Attention Patterns: Full vs Sliding Window vs Sparse</text>
<!-- Full attention -->
<text x="120" y="48" text-anchor="middle" font-family="Arial, sans-serif" font-size="11" font-weight="bold" fill="#e74c3c">Full Attention</text>
<text x="120" y="62" text-anchor="middle" font-family="Arial, sans-serif" font-size="9" fill="#e74c3c">O(n²)</text>
<rect x="40" y="70" width="160" height="120" rx="4" fill="#eee" stroke="#ccc" stroke-width="1"/>
<!-- Lower triangle filled (causal mask) -->
<polygon points="40,70 200,190 40,190" fill="#e74c3c" fill-opacity="0.25"/>
<text x="100" y="160" text-anchor="middle" font-family="Arial, sans-serif" font-size="8" fill="#e74c3c">every token attends</text>
<text x="100" y="172" text-anchor="middle" font-family="Arial, sans-serif" font-size="8" fill="#e74c3c">to all previous</text>
<text x="40" y="205" font-family="Arial, sans-serif" font-size="8" fill="#666">queries →</text>
<text x="35" y="80" font-family="Arial, sans-serif" font-size="8" fill="#666" transform="rotate(-90, 35, 80)">keys →</text>
<!-- Sliding window -->
<text x="350" y="48" text-anchor="middle" font-family="Arial, sans-serif" font-size="11" font-weight="bold" fill="#3498db">Sliding Window</text>
<text x="350" y="62" text-anchor="middle" font-family="Arial, sans-serif" font-size="9" fill="#3498db">O(n·w)</text>
<rect x="270" y="70" width="160" height="120" rx="4" fill="#eee" stroke="#ccc" stroke-width="1"/>
<!-- Diagonal band -->
<polygon points="270,70 320,70 430,153 430,190 380,190 270,107" fill="#3498db" fill-opacity="0.25"/>
<!-- Clip to box -->
<rect x="270" y="70" width="160" height="120" rx="4" fill="none" stroke="#ccc" stroke-width="1"/>
<text x="350" y="160" text-anchor="middle" font-family="Arial, sans-serif" font-size="8" fill="#3498db">each token attends</text>
<text x="350" y="172" text-anchor="middle" font-family="Arial, sans-serif" font-size="8" fill="#3498db">to w previous only</text>
<!-- Local + Global -->
<text x="580" y="48" text-anchor="middle" font-family="Arial, sans-serif" font-size="11" font-weight="bold" fill="#27ae60">Local + Global</text>
<text x="580" y="62" text-anchor="middle" font-family="Arial, sans-serif" font-size="9" fill="#27ae60">O(n·w + n·g)</text>
<rect x="500" y="70" width="160" height="120" rx="4" fill="#eee" stroke="#ccc" stroke-width="1"/>
<!-- Diagonal band (local) -->
<polygon points="500,70 540,70 660,148 660,190 620,190 500,107" fill="#27ae60" fill-opacity="0.2"/>
<!-- Global columns (every 4th token attends to all) -->
<rect x="530" y="70" width="6" height="120" fill="#f39c12" fill-opacity="0.3"/>
<rect x="570" y="70" width="6" height="120" fill="#f39c12" fill-opacity="0.3"/>
<rect x="610" y="70" width="6" height="120" fill="#f39c12" fill-opacity="0.3"/>
<rect x="650" y="70" width="6" height="120" fill="#f39c12" fill-opacity="0.3"/>
<!-- Global rows -->
<rect x="500" y="90" width="160" height="5" fill="#f39c12" fill-opacity="0.3"/>
<rect x="500" y="120" width="160" height="5" fill="#f39c12" fill-opacity="0.3"/>
<rect x="500" y="150" width="160" height="5" fill="#f39c12" fill-opacity="0.3"/>
<rect x="500" y="70" width="160" height="120" rx="4" fill="none" stroke="#ccc" stroke-width="1"/>
<text x="580" y="205" text-anchor="middle" font-family="Arial, sans-serif" font-size="8" fill="#27ae60">local window + global tokens</text>
<text x="580" y="217" text-anchor="middle" font-family="Arial, sans-serif" font-size="8" fill="#f39c12">(yellow = global attention)</text>
</svg>

After

Width:  |  Height:  |  Size: 3.7 KiB