Skip to Content
実践 LLMアプリケーション開発 ―プロトタイプを脱却し、実用的な実装に迫るための包括的な手引き
book

実践 LLMアプリケーション開発 ―プロトタイプを脱却し、実用的な実装に迫るための包括的な手引き

by Suhas Pai, 金本 勝吉, オライリー・ジャパン編集部
September 2025
Beginner to intermediate
400 pages
6h 4m
Japanese
O'Reilly Japan, Inc.
Content preview from 実践 LLMアプリケーション開発 ―プロトタイプを脱却し、実用的な実装に迫るための包括的な手引き

4章アーキテクチャと学習目的

 2章と3章では、言語モデルを構成するための基盤となる、訓練データセット、語彙、そしてトークナイザーについて説明してきました。ここからは、モデル本体そのものに注目し、その構造や訓練方法を学ぶことで、LLMの全体像を完成させていきます。

 この章では、言語モデルの構成要素と構造について掘り下げます。現代の言語モデルの大半はTransformerアーキテクチャに基づいて構築されており、その主要な構成要素の理解が不可欠です。ここでは、Transformerのアーキテクチャを構成する各要素を詳しく解説しながら、混合エキスパート(Mixture of Experts:MoE)モデルなど、最近登場した注目すべき派生についても紹介します。さらに、次のトークン予測(Next Token Prediction)といった、言語モデルにおいて広く使われている学習目的(Learning Objective)についても取り上げます。そして、章の最後では、これまでに紹介してきた概念を総合的に活用して、言語モデルをゼロから事前学習する方法を紹介し、これまでの3つの章の概念をまとめます。

4.1 予備知識

 現代の言語モデルはほぼすべて、「ニューロン(Neuron)」と呼ばれる処理単位によって構成されるニューラルネットワークに基づいています。今日のニューラルネットワークは、人間の脳の動作とはほとんど似ていませんが、その概念や用語の多くは神経科学から着想を得たものです。

 ニューラルネットワーク内のニューロンは、特定の構成に従って相互に接続されており、それぞれの接続にはその接続の強さを示す「重み(Weight)」※1が付与されています。それらのニューロンが果たす役割と、どのように相互接続されているかにより、モデルの「アーキテクチャ(Architecture)」を定義します。 ...

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

実践 AIエージェント開発 ―マルチエージェントシステムの設計と実装

実践 AIエージェント開発 ―マルチエージェントシステムの設計と実装

Michael Albada, 鈴木 駿, 高山 洪銘, 山下 正浩
実践 パケット解析 第3版 ―Wiresharkを使ったトラブルシューティング

実践 パケット解析 第3版 ―Wiresharkを使ったトラブルシューティング

Chris Sanders, 髙橋 基信, 宮本 久仁男, 岡 真由美
直感 生成AI ―ハンズオンで動かして学ぶ拡散モデル入門

直感 生成AI ―ハンズオンで動かして学ぶ拡散モデル入門

Omar Sanseviero, Pedro Cuenca, Apolinário Passos, Jonathan Whitaker, 江川 崇

Publisher Resources

ISBN: 9784814401314Publisher Website