Skip to Content
Transformer実践ガイド ―画像・音声・時系列からエージェントまで
book

Transformer実践ガイド ―画像・音声・時系列からエージェントまで

by Nicole Koenigstein, 中山 光樹
October 2026
384 pages
6h 14m
Japanese
O'Reilly Japan, Inc.
Content preview from Transformer実践ガイド ―画像・音声・時系列からエージェントまで

11章Transformerモデルのデプロイ

ここまでで、さまざまなTransformerモデルの仕組みを見てきました。次は、それらのモデルを実際に活用してみましょう。vLLMやSGLangのようなツールを使えば、GCPやAWSなどの主要クラウドプラットフォーム上で、Transformerベースのモデルを比較的簡単にデプロイできます。そのため、本章ではクラウドへのデプロイ手順そのものは扱いません。代わりに、筆者が初めてTransformerベースのアプリケーションをデプロイしたときに頭を悩ませた論点を取り上げます。具体的には、コストとデータの制御、ランタイムエンジニアリング、キャッシュの挙動、アーキテクチャ固有の制約、インフラストラクチャ戦略です。

デプロイを設計上の判断として捉えると、最初に検討すべき選択肢の1つは、オープンモデルを使うか、クローズドモデルを使うかです。この選択は、純粋に技術的な問題ではありません。組織がコストを制御できるか、柔軟にスケールできるか、挙動を監査できるか、モデルをカスタマイズできるか、長期的な独立性を維持できるかに大きく影響します。

また、Transformerベースの生成モデルをデプロイすることは、単にオープンモデルを取得して.generateメソッドを呼び出すだけではありません。本番環境では、モデルは単体で動くのではなく、ルーティング、ストレージ、監視、ガードレール、インフラストラクチャを含む大きなシステムの一部として動作します。

さらに、オープンモデルを選択したとしても、それが必ずしもセルフホスティングを意味するわけではありません。多くのオープンモデルはマネージドAPIからも利用できます。そのため、マネージドAPIでさまざまな検証をした後、必要に応じてコスト効率やコンプライアンスを理由にセルフホスティングへ移行することもできます。 ...

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

Python Crash Course, 3rd Edition

Python Crash Course, 3rd Edition

Eric Matthes
The Hidden Cost of AI-Assisted Creativity

The Hidden Cost of AI-Assisted Creativity

Léonard Boussioux, Anil Doshi, Oliver Hauser, Kartik Hosanagar
Fundamentals of Data Engineering

Fundamentals of Data Engineering

Joe Reis, Matt Housley

Publisher Resources

ISBN: 9784814401833Publisher Website