Skip to Content
AWSではじめる生成AI ―RAGアプリケーション開発から、基盤モデルの微調整、マルチモーダルAI活用までを試して学ぶ
book

AWSではじめる生成AI ―RAGアプリケーション開発から、基盤モデルの微調整、マルチモーダルAI活用までを試して学ぶ

by Chris Fregly, Antje Barth, Shelbee Eigenbrode, 久富木 隆一, 本橋 和貴, 久保 隆宏
July 2024
Intermediate to advanced
352 pages
5h 19m
Japanese
O'Reilly Japan, Inc.
Content preview from AWSではじめる生成AI ―RAGアプリケーション開発から、基盤モデルの微調整、マルチモーダルAI活用までを試して学ぶ

5章微調整と評価

4章では、大規模言語モデルの性能向上につながる様々なテクニックを学びました。また、分散コンピューティング用複数インスタンス全体へ、大規模モデルの開発作業をスケールするために、分散データ並列(DDP)や完全シャード化データ並列(FSDP)といった効率的な分散コンピューティング戦略について学びました。これらのテクニックは、大規模基盤モデルでゼロから事前学習を行う際に不可欠ですが、それに加えて、微調整(fine-tuning)と呼ばれるプロセスにおいても、基盤モデルを独自のデータセットやユースケースに適合させる場合に役立ちます。

この章では、「指示による微調整」と呼ばれる微調整テクニックを深く掘り下げます。指示については、2章でのプロンプトエンジニアリングに関する考察で既に学びました。指示とは、「この会話を要約しなさい」や「パーソナライズされたマーケティングメールを生成しなさい」等のタスクを実行させるための、モデルへの命令です。基盤モデルを指示によって微調整する場合、汎用的な生成AIとして機能する能力を基盤モデルに維持させるには、様々な異なるタスクにわたる複数の指示を、混在させた状態でモデルに提示することが重要です。

この章では、多様なタスクにわたり、指示による微調整の効果を計測するのに役立つ様々な評価用のメトリクス(metrics:指標)とベンチマーク(benchmark:比較基準)について学びます。ベースライン†1となる評価メトリクスを複数設定し、微調整の前後でモデルが生成した出力を比較することを推奨します。そうしたフィードバックループは、モデルの開発と調整を行う反復的な段階ではとても重要です。

[†1] 訳注:ベースライン(baseline)は、実験の効果を計測するために実験後のデータと比較する基準として用いる、実験の影響が及んでいないデータ。 ...

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

ベタープログラマ ―優れたプログラマになるための38の考え方とテクニック

ベタープログラマ ―優れたプログラマになるための38の考え方とテクニック

Pete Goodliffe, 柴田 芳樹

Publisher Resources

ISBN: 9784814400720Publisher Website