Skip to Content
AIエンジニアリング ―基盤モデルを用いたAIアプリケーション開発の基礎と実践
book

AIエンジニアリング ―基盤モデルを用いたAIアプリケーション開発の基礎と実践

by Chip Huyen, 加賀谷 諒, 菅野 憲也
November 2025
Intermediate to advanced
544 pages
9h
Japanese
O'Reilly Japan, Inc.
Content preview from AIエンジニアリング ―基盤モデルを用いたAIアプリケーション開発の基礎と実践

7章ファインチューニング

ファインチューニングとは、モデル全体または一部を追加で学習し、特定のタスクに適応させるプロセスです。5章6章では、モデルに指示、コンテキスト、ツールを与えて適応させるプロンプトベースの手法について説明しましたが、ファインチューニングでは、モデルの重みを調整することで適応させます。

ファインチューニングにより、モデルのさまざまな側面を強化できます。コーディングや医療分野の質問応答といったドメイン固有の能力を向上させたり、安全性を高めたりできます。しかし、最も多く利用される目的は指示追従能力の向上であり、特に特定の出力スタイルやフォーマットを確実に遵守させるために使われます。

ファインチューニングは、ニーズに合ったモデルを作るのに役立ちますが、多額の初期投資が必要です。私がよく聞かれる質問に、「いつファインチューニングを行い、いつRAGを使うべきか」があります。この章では、ファインチューニングの概要を述べた後、実施すべき理由とそうでない理由、そして他の手法との使い分けを判断するシンプルなフレームワークについて説明します。

プロンプトベースの手法と比較して、ファインチューニングははるかに多くのメモリを必要とします。現在の基盤モデルの規模では、単純なファインチューニングであっても単一のGPUで利用可能なメモリ量を上回ることも珍しくありません。このため、ファインチューニングは高コストで実行も困難です。この章で繰り返し述べるように、メモリ要件の削減は多くのファインチューニング技術が開発される主な動機となっています。この章では、これらの技術を理解する上で重要な、モデルのメモリフットプリントに影響を与える要因を概説するセクションを設けています。

メモリ効率の良いアプローチとしてファインチューニング分野で主流となっているアプローチが、PEFT(parameter-efficient ...

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

行動を変えるデザイン ―心理学と行動経済学をプロダクトデザインに活用する

行動を変えるデザイン ―心理学と行動経済学をプロダクトデザインに活用する

Stephen Wendel, 武山 政直, 相島 雅樹, 反中 望, 松村 草也
生成AI時代の価値のつくりかた ―実践者のマインド、スキル、データ、ユースケース

生成AI時代の価値のつくりかた ―実践者のマインド、スキル、データ、ユースケース

Rob Thomas, Paul Zikopoulos, Kate Soule, 本多 真二郎, オライリー・ジャパン編集部

Publisher Resources

ISBN: 9784814401383Publisher Website