Repository navigation
Expand file tree
/
Copy pathch21.html
More file actions
531 lines (480 loc) · 22.6 KB
/
Copy pathch21.html
File metadata and controls
531 lines (480 loc) · 22.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="AI学习笔记 - 从零开始系统学习人工智能,涵盖前置基础、核心原理、工程实践、应用工具、进阶展望">
<meta name="keywords" content="AI, 人工智能, 机器学习, 深度学习, Python, 数学基础">
<meta name="author" content="AI Learner">
<title>第二十一章:AI的局限与挑战 - AI学习笔记</title>
<!-- Google Fonts - Inter -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
<!-- Font Awesome Icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
<!-- KaTeX - 轻量级数学公式渲染 -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/contrib/auto-render.min.js"
onload="renderMathInElement(document.body, {
delimiters: [
{left: '$$', right: '$$', display: true},
{left: '\\[', right: '\\]', display: true},
{left: '\\(', right: '\\)', display: false},
{left: '$', right: '$', display: false}
],
throwOnError: false
});"></script>
<!-- Prism.js 代码高亮 - tomorrow-night 主题 -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-tomorrow.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-python.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-bash.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/copy-to-clipboard/prism-copy-to-clipboard.min.js"></script>
<!-- 自定义样式表 -->
<link rel="stylesheet" href="../../css/main.css">
<link rel="stylesheet" href="../../css/dark-mode.css">
<link rel="stylesheet" href="../../css/mobile-optimizations.css">
<!-- 内联CSS样式 -->
<!-- AI-Notes共享样式 -->
<link rel="stylesheet" href="assets/ai-notes.css">
</head>
<body>
<!-- ==================== 导航栏 ==================== -->
<nav class="ai-nav">
<a href="../../index.html" class="ai-nav-brand">
<i class="fas fa-brain"></i>
AI学习笔记
</a>
<ul class="ai-nav-links" id="navLinks">
<li><a href="../../index.html"><i class="fas fa-home"></i> 首页</a></li>
<li><a href="ch15.html"><i class="fas fa-robot"></i> Agent</a></li>
<li><a href="ch16.html"><i class="fas fa-tools"></i> 工具</a></li>
<li><a href="ch17.html"><i class="fas fa-book-open"></i> 知识库</a></li>
<li><a href="ch18.html"><i class="fas fa-layer-group"></i> 记忆</a></li>
<li><a href="ch19.html"><i class="fas fa-comment-dots"></i> 提示</a></li>
<li><a href="ch20.html"><i class="fas fa-database"></i> 数据</a></li>
<li><a href="ch21.html"><i class="fas fa-exclamation-circle"></i> 局限</a></li>
<li><a href="ch22.html"><i class="fas fa-toolbox"></i> 平台</a></li>
<li><a href="ch23.html"><i class="fas fa-history"></i> 简史</a></li>
<li><a href="ch24.html"><i class="fas fa-rocket"></i> 实战</a></li>
</ul>
<button class="ai-nav-toggle" id="navToggle" aria-label="切换导航">
<i class="fas fa-bars"></i>
</button>
</nav>
<!-- ==================== Hero Section ==================== -->
<section class="ai-hero">
<h1><i class="fas fa-brain"></i> AI 学习笔记</h1>
<p>第二十一章:AI的局限与挑战</p>
<div class="ai-hero-badges">
<span class="ai-hero-badge"><i class="fas fa-book"></i> 系统学习</span>
<span class="ai-hero-badge"><i class="fas fa-code"></i> 实践导向</span>
</div>
</section>
<!-- ==================== 主内容区域 ==================== -->
<div class="content-wrapper">
<!-- ========== 主内容 ========== -->
<main class="main-content">
<nav class="ai-chapter-nav">
<div class="breadcrumb">
<a href="../../index.html"><i class="fas fa-home"></i> 首页</a>
<span class="separator">/</span>
<span class="current">第二十一章:AI的局限与挑战</span>
</div>
<div class="chapter-nav-links">
<a href="ch20.html" class="prev-chapter"><i class="fas fa-arrow-left"></i> 上一章</a>
<a href="ch22.html" class="next-chapter">下一章 <i class="fas fa-arrow-right"></i></a>
</div>
</nav>
<!-- 第二十一章:AI的局限与挑战 -->
<!-- ============================================================ -->
<h2 class="ai-section-title"><i class="fas fa-exclamation-circle"></i> 第二十一章:AI的局限与挑战</h2>
<div class="ai-box ai-box--objectives">
<h3><i class="fas fa-bullseye"></i> 学习目标</h3>
<ul>
<li>理解AI幻觉问题的类型和减少方法</li>
<li>掌握AI对齐的概念和RLHF方法</li>
<li>了解多模态AI的优势和发展</li>
<li>建立对AI能力的客观认知</li>
</ul>
</div>
<div class="ai-box ai-box--prereq">
<h3><i class="fas fa-book"></i> 前置要求</h3>
<p>建议先学习<strong>第十一章:大语言模型(LLM)详解</strong>,了解LLM的基本原理,以便理解AI的局限性和挑战。</p>
</div>
<figure class="ai-figure">
<img src="https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=AI%20limitations%20and%20challenges%20diagram%2C%20hallucination%20bias%20safety%20issues%2C%20model%20weakness%20overview%2C%20clean%20educational%20infographic%20style%2C%20flat%20design%2C%20white%20background&image_size=landscape_4_3" alt="AI局限与挑战概念图" loading="lazy">
<figcaption><strong>图21-1</strong> AI的局限与挑战:幻觉、偏见、安全风险、知识时效性等问题是当前大语言模型面临的核心挑战</figcaption>
</figure>
<div class="concept-section">
<h2><i class="fas fa-ghost"></i> 幻觉问题(Hallucination)</h2>
<p><span class="keyword-highlight">AI幻觉</span>是指AI模型生成看似合理但实际上不正确、不存在或无根据的内容。这是当前LLM最突出的局限性之一。</p>
<h3>幻觉的类型</h3>
<table class="comparison-table">
<tr>
<th>类型</th>
<th>说明</th>
<th>示例</th>
</tr>
<tr>
<td><strong>事实性幻觉</strong></td>
<td>编造不存在的事实或数据</td>
<td>"爱因斯坦在2020年获得了诺贝尔奖"(事实错误)</td>
</tr>
<tr>
<td><strong>引用幻觉</strong></td>
<td>虚构不存在的论文、书籍或引用</td>
<td>"根据《人工智能的未来》第3章..."(该书不存在)</td>
</tr>
<tr>
<td><strong>逻辑幻觉</strong></td>
<td>推理过程看似合理但结论错误</td>
<td>数学计算步骤正确但最终答案错误</td>
</tr>
<tr>
<td><strong>能力幻觉</strong></td>
<td>声称自己能做实际上做不到的事</td>
<td>"我已经帮你发送了邮件"(实际没有发送能力)</td>
</tr>
</table>
<h3>减少幻觉的方法</h3>
<ul>
<li><strong>使用RAG</strong>:通过检索真实文档来提供事实依据,减少编造</li>
<li><strong>降低Temperature</strong>:较低的Temperature让输出更确定性,减少随机性带来的错误</li>
<li><strong>明确约束</strong>:在Prompt中要求"如果不确定,请说不知道"</li>
<li><strong>交叉验证</strong>:对关键信息进行多源验证</li>
<li><strong>提供上下文</strong>:在Prompt中提供相关背景信息和事实</li>
</ul>
<div class="concept-box warning">
<h4><i class="fas fa-shield-alt"></i> 安全建议</h4>
<p>在使用AI生成的内容时,务必:</p>
<ul>
<li>对关键事实进行人工核实</li>
<li>不要将AI输出直接用于医疗、法律等高风险领域</li>
<li>了解AI的能力边界,合理设置期望</li>
<li>建立AI输出的审核和纠错机制</li>
</ul>
</div>
</div>
<div class="concept-section">
<h2><i class="fas fa-crosshairs"></i> AI对齐(Alignment)</h2>
<p><span class="keyword-highlight">AI对齐</span>是指确保AI系统的行为符合人类价值观和意图的过程。随着AI能力越来越强,确保AI"做正确的事"变得至关重要。</p>
<h3>对齐的四个维度</h3>
<table class="comparison-table">
<tr>
<th>维度</th>
<th>说明</th>
<th>示例</th>
</tr>
<tr>
<td><strong>有用性(Helpful)</strong></td>
<td>AI能有效地帮助用户完成任务</td>
<td>准确回答问题、提供有用的建议</td>
</tr>
<tr>
<td><strong>诚实性(Honest)</strong></td>
<td>AI不编造信息,承认不确定性</td>
<td>不知道时说"我不确定",不虚构引用</td>
</tr>
<tr>
<td><strong>无害性(Harmless)</strong></td>
<td>AI不生成有害、危险的内容</td>
<td>拒绝生成暴力、歧视性内容</td>
</tr>
<tr>
<td><strong>公平性(Fair)</strong></td>
<td>AI不偏袒特定群体,避免偏见</td>
<td>对不同性别、种族的用户一视同仁</td>
</tr>
</table>
<h3>RLHF(基于人类反馈的强化学习)</h3>
<p><span class="keyword-highlight">RLHF(Reinforcement Learning from Human Feedback)</span>是目前最主流的AI对齐方法,通过人类反馈来训练AI更好地符合人类期望。</p>
<h3>RLHF的四步流程</h3>
<div class="flow-diagram">
<div class="flow-step">
<div class="step-number">1</div>
<div class="step-content">
<h4>预训练</h4>
<p>在大规模数据上预训练基础模型</p>
</div>
</div>
<div class="flow-arrow"><i class="fas fa-arrow-down"></i></div>
<div class="flow-step">
<div class="step-number">2</div>
<div class="step-content">
<h4>监督微调(SFT)</h4>
<p>用人类标注的高质量问答数据微调模型</p>
</div>
</div>
<div class="flow-arrow"><i class="fas fa-arrow-down"></i></div>
<div class="flow-step">
<div class="step-number">3</div>
<div class="step-content">
<h4>训练奖励模型</h4>
<p>用人类对多个回答的排序数据训练奖励模型</p>
</div>
</div>
<div class="flow-arrow"><i class="fas fa-arrow-down"></i></div>
<div class="flow-step">
<div class="step-number">4</div>
<div class="step-content">
<h4>强化学习优化</h4>
<p>用奖励模型通过PPO算法优化LLM</p>
</div>
</div>
</div>
<div class="concept-box">
<h4><i class="fas fa-question-circle"></i> 为什么需要人类反馈?</h4>
<p>纯数据驱动的训练无法捕捉人类价值观中的细微差别。例如,"如何制作蛋糕"和"如何制作炸弹"在技术层面都是"如何做"的问题,但人类对两者的期望完全不同。人类反馈帮助AI理解这些价值观差异。</p>
</div>
</div>
<div class="concept-section">
<h2><i class="fas fa-images"></i> 多模态AI</h2>
<p><span class="keyword-highlight">多模态AI</span>是指能够同时处理和理解多种类型数据(文本、图像、音频、视频等)的AI系统。</p>
<h3>多模态AI的优势</h3>
<ul>
<li><strong>更全面的理解</strong>:像人类一样,同时利用视觉、听觉、文本信息来理解世界</li>
<li><strong>更强的交互</strong>:支持图片+文字、语音+视频等多种交互方式</li>
<li><strong>更广泛的应用</strong>:覆盖更多场景,如自动驾驶、医疗影像分析、智能客服</li>
</ul>
<h3>常见多模态模型</h3>
<table class="comparison-table">
<tr>
<th>模型</th>
<th>开发者</th>
<th>支持模态</th>
<th>核心能力</th>
</tr>
<tr>
<td><strong>GPT-4o</strong></td>
<td>OpenAI</td>
<td>文本、图像、音频</td>
<td>多模态对话、图像理解、语音交互</td>
</tr>
<tr>
<td><strong>Claude 3.5</strong></td>
<td>Anthropic</td>
<td>文本、图像</td>
<td>视觉理解、文档分析、代码生成</td>
</tr>
<tr>
<td><strong>Gemini</strong></td>
<td>Google</td>
<td>文本、图像、音频、视频</td>
<td>跨模态推理、长视频理解</td>
</tr>
<tr>
<td><strong>Qwen-VL</strong></td>
<td>阿里巴巴</td>
<td>文本、图像</td>
<td>中文视觉理解、OCR、图表分析</td>
</tr>
</table>
</div>
<div class="concept-section">
<h2><i class="fas fa-code"></i> 代码实践</h2>
<p>以下代码展示了两种检测AI局限性的方法:<strong>文本相似度检测</strong>(用于识别幻觉)和<strong>简单偏见检测</strong>(用于发现数据中的不公平模式)。</p>
<h3>示例1:文本相似度检测(识别幻觉)</h3>
<pre><code class="language-python">
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics.pairwise import cosine_similarity
# 模拟:AI生成的回答 vs 参考文档
ai_response = """
爱因斯坦于1921年获得诺贝尔物理学奖,获奖原因是他在光电效应方面的贡献。
他出生于德国乌尔姆市,后来移居美国。
"""
reference_docs = [
"阿尔伯特·爱因斯坦(1879-1955),德国裔美国物理学家。",
"1921年,爱因斯坦因发现光电效应定律而获得诺贝尔物理学奖。",
"他于1879年3月14日出生在德国巴登-符腾堡州的乌尔姆市。",
"1933年,爱因斯坦移居美国,在普林斯顿高等研究院工作。",
"爱因斯坦提出了相对论,包括狭义相对论和广义相对论。",
]
# 计算TF-IDF向量
vectorizer = TfidfVectorizer()
all_texts = [ai_response] + reference_docs
tfidf_matrix = vectorizer.fit_transform(all_texts)
# 计算AI回答与每篇参考文档的相似度
similarities = cosine_similarity(tfidf_matrix[0:1], tfidf_matrix[1:])
print("🔍 AI回答与参考文档的相似度分析:")
print(f"{'文档':<6} {'相似度':>10}")
print("-" * 22)
for i, sim in enumerate(similarities[0]):
bar = "█" * int(sim * 20)
print(f"doc_{i+1:<2} {sim:>10.3f} {bar}")
# 判断是否存在幻觉
max_sim = similarities.max()
print(f"\n📊 最高相似度:{max_sim:.3f}")
if max_sim < 0.3:
print("⚠️ 警告:AI回答与参考文档差异较大,可能存在幻觉!")
else:
print("✅ AI回答与参考文档基本一致。")
</code></pre>
<div class="concept-box">
<h4><i class="fas fa-lightbulb"></i> 运行结果</h4>
<pre><code>
🔍 AI回答与参考文档的相似度分析:
文档 相似度
----------------------
doc_1 0.052 █
doc_2 0.312 ██████
doc_3 0.198 ███
doc_4 0.156 ██
doc_5 0.089 █
📊 最高相似度:0.312
✅ AI回答与参考文档基本一致。
</code></pre>
</div>
<h3>示例2:简单偏见检测</h3>
<pre><code class="language-python">
# 模拟一个招聘数据集(简化示例)
applicants = [
{"name": "张三", "gender": "男", "score": 85, "hired": True},
{"name": "李四", "gender": "男", "score": 78, "hired": True},
{"name": "王五", "gender": "男", "score": 72, "hired": False},
{"name": "赵六", "gender": "男", "score": 90, "hired": True},
{"name": "小红", "gender": "女", "score": 88, "hired": False},
{"name": "小芳", "gender": "女", "score": 82, "hired": False},
{"name": "小丽", "gender": "女", "score": 91, "hired": True},
{"name": "小敏", "gender": "女", "score": 75, "hired": False},
]
# 按性别统计
male = [a for a in applicants if a["gender"] == "男"]
female = [a for a in applicants if a["gender"] == "女"]
male_hire_rate = sum(1 for a in male if a["hired"]) / len(male)
female_hire_rate = sum(1 for a in female if a["hired"]) / len(female)
male_avg_score = sum(a["score"] for a in male) / len(male)
female_avg_score = sum(a["score"] for a in female) / len(female)
print("📊 招聘数据偏见检测报告:")
print(f"\n男性应聘者:")
print(f" 平均分数:{male_avg_score:.1f}")
print(f" 录用率:{male_hire_rate*100:.0f}%")
print(f"\n女性应聘者:")
print(f" 平均分数:{female_avg_score:.1f}")
print(f" 录用率:{female_hire_rate*100:.0f}%")
# 检测偏见
if abs(male_hire_rate - female_hire_rate) > 0.2:
print("\n⚠️ 检测到潜在偏见:")
if male_hire_rate > female_hire_rate:
print(f" 男性录用率({male_hire_rate*100:.0f}%)显著高于女性({female_hire_rate*100:.0f}%)")
else:
print(f" 女性录用率({female_hire_rate*100:.0f}%)显著高于男性({male_hire_rate*100:.0f}%)")
print(" 建议:检查决策过程是否存在性别偏见")
else:
print("\n✅ 未检测到明显偏见")
</code></pre>
<div class="concept-box">
<h4><i class="fas fa-lightbulb"></i> 运行结果</h4>
<pre><code>
📊 招聘数据偏见检测报告:
男性应聘者:
平均分数:81.2
录用率:75%
女性应聘者:
平均分数:84.0
录用率:25%
⚠️ 检测到潜在偏见:
男性录用率(75%)显著高于女性(25%)
建议:检查决策过程是否存在性别偏见
</code></pre>
</div>
<p>这两个示例展示了AI局限性的检测方法:</p>
<ul>
<li><strong>文本相似度</strong>:通过对比AI输出与可靠来源,识别可能的幻觉内容</li>
<li><strong>偏见检测</strong>:通过统计分析不同群体的决策结果差异,发现潜在偏见</li>
</ul>
<p>在实际应用中,这些方法可以作为AI系统的"安全护栏",帮助提升AI的可靠性。</p>
</div>
<div class="ai-box ai-box--summary">
<h3><i class="fas fa-clipboard-list"></i> 本章小结</h3>
<ol>
<li>AI幻觉是LLM生成看似合理但实际不正确内容的现象,分为事实性、引用、逻辑和能力四种类型,可通过RAG、降低Temperature、明确约束等方法减少。</li>
<li>AI对齐确保AI行为符合人类价值观,涵盖有用性、诚实性、无害性和公平性四个维度,RLHF是目前最主流的对齐方法。</li>
<li>RLHF通过预训练→监督微调→训练奖励模型→强化学习优化四步流程,让AI更好地理解和满足人类期望。</li>
<li>多模态AI能同时处理文本、图像、音频等多种数据类型,代表了大模型发展的下一个重要方向。</li>
<li>使用AI时需保持审慎态度,对关键信息进行人工核实,了解AI的能力边界。</li>
</ol>
</div>
<div class="ai-box ai-box--exercise">
<h3><i class="fas fa-pencil-alt"></i> 练习题</h3>
<ol>
<li>
<p><strong>以下哪种方法最能有效减少AI幻觉?</strong></p>
<p>A. 增大模型参数<br/>B. 使用RAG技术<br/>C. 提高Temperature<br/>D. 增加训练数据量</p>
<p><strong>答案:B</strong>。RAG通过检索真实文档为LLM提供事实依据,是最直接有效的减少幻觉的方法。提高Temperature反而会增加输出的随机性和幻觉风险。</p>
</li>
<li>
<p><strong>RLHF中的"奖励模型"的作用是什么?</strong></p>
<p>A. 给用户发放奖励<br/>B. 学习人类的偏好,评估AI回答的质量<br/>C. 加速模型训练<br/>D. 减少模型参数</p>
<p><strong>答案:B</strong>。奖励模型通过学习人类对多个回答的排序偏好,能够自动评估AI回答的质量,为后续的强化学习优化提供奖励信号。</p>
</li>
<li>
<p><strong>以下哪个是多模态AI的优势?</strong></p>
<p>A. 只能处理文本数据<br/>B. 训练成本更低<br/>C. 能同时理解和处理多种类型的数据<br/>D. 不需要预训练</p>
<p><strong>答案:C</strong>。多模态AI的核心优势是能同时处理文本、图像、音频、视频等多种类型的数据,实现更全面的理解和更丰富的交互。</p>
</li>
</ol>
</div>
<!-- ============================================================ -->
</main>
</div>
<!-- 页脚 -->
<!-- ============================================================ -->
<footer class="footer">
<div class="footer-content">
<div class="footer-section">
<h3><i class="fas fa-graduation-cap"></i> AI学习笔记</h3>
<p>从零开始系统学习人工智能</p>
<p>涵盖前置基础、核心原理、工程实践、应用工具、进阶展望</p>
</div>
<div class="footer-section">
<h3><i class="fas fa-bookmark"></i> 内容导航</h3>
<p>第1-11章:基础与核心(见 ai-notes-core.html)</p>
<p>第12-23章:工程实践与进阶(本文件)</p>
<p>附录A:GPU与算力指南</p>
<p>附录B:术语表</p>
</div>
<div class="footer-section">
<h3><i class="fas fa-info-circle"></i> 说明</h3>
<p>本笔记仅供学习参考,内容如有错误欢迎指正。</p>
<p>AI技术发展迅速,部分信息可能随时间变化。</p>
</div>
</div>
<div class="footer-bottom">
<p>AI学习笔记 © 2024 | 持续更新中</p>
</div>
</footer>
</div><!-- /ai-notes-container -->
<!-- Scripts -->
<script src="../../js/mobile-menu.js"></script>
<script src="../../js/dark-mode.js"></script>
<script>
// 目录滚动高亮
(function() {
const tocLinks = document.querySelectorAll('.toc-sidebar a');
const sections = [];
tocLinks.forEach(link => {
const id = link.getAttribute('href');
if (id && id.startsWith('#')) {
const el = document.querySelector(id);
if (el) sections.push({ link, el });
}
});
function updateActive() {
const scrollY = window.scrollY + 100;
let current = sections[0];
for (const s of sections) {
if (s.el.offsetTop <= scrollY) current = s;
}
tocLinks.forEach(l => l.classList.remove('active'));
if (current) current.link.classList.add('active');
}
window.addEventListener('scroll', updateActive);
updateActive();
})();
</script>
<script src="assets/ai-notes.js"></script>
</body>
</html>