Skip to Content
图解大模型 : 生成式AI 原理与实战
book

图解大模型 : 生成式AI 原理与实战

by Jay Alammar, Maarten Grootendorst
May 2025
Intermediate to advanced
382 pages
10h 33m
Chinese
Posts & Telecom Press
Content preview from 图解大模型 : 生成式AI 原理与实战
24
1
开发一个系统,找出主题相同的工单问题
这是(无监督的)分类任务,没有预定义的标签。我们可以利用仅编码器模型来执行分
类本身,并使用仅解码器模型来标记主题(参见第
5
)。
构建一个用于检索和查看相关文档的系统
语言模型系统的一大重要特性是能够整合外部信息资源。使用语义搜索,我们可以构建
系统,让
LLM
轻松访问和查找信息(参见第
8
章)。还可以通过创建或微调自定义嵌
入模型来改进系统(参见第
12
章 )。
构建一个能利用外部资源(如工具和文档)的 LLM 聊天机器人
这一应用是多种技术的组合,展示了如何通过外部组件来发挥
LLM
的真正潜力。提
示工程(参见第
6
)、
RAG
(参见第
8
章)和微调
LLM
(参见第
12
章)等方法都是
LLM
拼图的一部分。
构建一个能够根据冰箱中的食材图片生成食谱的 LLM
这是一个多模态任务,
LLM
需要输入图像并对所看到的图像进行推理(参见第
9
)。
LLM
正在被扩展到视觉等其他模态,这带来了各种有趣的用例。
创建
LLM
应用是极具吸引力的,因为在一定程度上,这些应用的能力仅仅受限于你的想
象力。随着这些模型变得更加准确,我们将能够把模型应用于各种创新的场景,例如角色
扮演和编写儿童读物,这将十分有趣。
1.6
 开发和使用负责任的
LLM
LLM
的广泛应用已经带来深远的影响,且这种影响很可能越来越显著。在我们探索
LLM
人难以置信的能力时,我们应该牢记它们的社会和伦理影响。以下是几个需要考虑的关键点。
偏见和公平性
LLM
在训练时使用了大量可能包含偏见的数据。模型可能会从这些偏见中学习 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

大模型应用开发极简入门 : 基于GPT-4 和ChatGPT(第2版)

大模型应用开发极简入门 : 基于GPT-4 和ChatGPT(第2版)

Olivier Caelen, Marie-Alice Blete
生成式人工智能可视化

生成式人工智能可视化

Priyanka Vergadia, Valliappa Lakshmanan

Publisher Resources

ISBN: 9787115670830