Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
20260930_Gemma4_Hands-on
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
tsho
September 30, 2026
Technology
270
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
20260930_Gemma4_Hands-on
tsho
September 30, 2026
More Decks by tsho
See All by tsho
Benchmarking Vector Databases: pgvector vs. LanceDB
tsho
0
180
Google IO 2026で進化をとげた Google AI Studio
tsho
0
38
20260321_エンベディングってなに?RAGってなに?エンベディングの説明とGemini Embedding 2 の紹介
tsho
0
300
AI Agentにおける評価指標とAgent GPA
tsho
1
600
Scale SciPy with jax.shard_map - jax.shard_mapで SciPy をスケール
tsho
0
180
Developer Advocate / Community Managerなるには?
tsho
0
890
25/04/12 - Build with AI Hands-on Appendix
tsho
1
110
Unit testしてますか?
tsho
1
700
Other Decks in Technology
See All in Technology
WasmをRustにする
sansantech
PRO
0
300
Metadata - Section 1: HTML Basics
mohab1
0
130
野蛮なアジャイル [サイボウズ発!]組織の常識を覆した反骨のスクラム実践記 / Barbaric Agile - Enterprise Agile Study Group
ama_ch
0
110
hackers_champloo_2026_tidb
makocchi
0
170
QA4AI 2026-Oct 生成AI時代の品質保証
tokuty
1
900
エンタメ企業のM&Aを支えるデータ基盤 ― 統合から店舗のリアルタイム分析まで / Data Engineering Summit 2026
genda
0
210
How to Design Configuration for Rails Applications
willnet
1
860
日本語に強いオープンな大規模言語モデル「LLM-jp」
odashi
5
1.2k
sue445's proposals 2026
sue445
0
110
フロントエンドカンファレンス関西2026 - 速すぎるUIに、待ち時間を
teamlab
PRO
0
200
Persisting Massive Data with Rails ~Designing for 60 billion rows, and fighting the bottlenecks~ Railsで挑む大量データ永続化 〜600億件を永続化するための設計とボトルネックとの戦い〜
occhi
0
740
オントロジーって 結局なにもの? AI エージェントに「意味」を渡す知識設計の話
greenmidori
0
240
Featured
See All Featured
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
570
The SEO Collaboration Effect
kristinabergwall1
1
590
Building a Scalable Design System with Sketch
lauravandoore
464
34k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3.1k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
600
BBQ
matthewcrist
90
10k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
330
The Pragmatic Product Professional
lauravandoore
37
7.5k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.6k
The Invisible Side of Design
smashingmag
301
52k
Transcript
Gemma 4 でローカルLLMハンズオン in 大阪 DevFest Meetup #3
tsho / 田中 翔 (Sho Tanaka) - Lead Developer Advocate
@ Snowflake - ex-Google gTech Ads, ML/Data MLOps community 運営 Google Developer Expert, AI/ML. TPU Builder OSS conf 登壇 (AI/ML/Data) (一部予定) - Devoox, SciPy Conf, PyCon Gr, TW, Apache Code over Community etc Linkedin.com/in/tsho
ローカルLLMとは?
ローカル LLMとは? ローカルLLMとは、LLMのモデル本体や重みを自分のPC・サーバーなどに保 存し、クラウドAPIへプロンプトを送信せず、手元のマシン上で推論(文章生成 など)を実行できるLLMのこと Source: xxxxx
ローカル LLM の定義比較 用語 重みの公開 学習データ・コード 商用利用・用途制限 原則公開 データ情報・完全な学 習
/ 推論コード等が 必要 原則として任意目的 で利用可能(ライセン ス条件あり) Open Weight Model 公開 非公開または一部公 開が多い モデルごとに異なる。 商用利用や用途制限 があり得る Open Data 付き Open Weight Model 原則公開 学習データは公開、 ソースは非公開 Open Source Model モデルによる 一部引用: ローカルLLMでどこまでコードが書けるか -LLM基礎知識
昨今のローカル LLM 需要急増の背景 1 (個人的な感想 ) 引用 https://news.yahoo.co.jp/expert/article s/d32796504b93fb1c462ad699724f70 6aed402cfb
昨今のローカル LLM 需要急増の背景 2 (個人的な感想 ) 引用 https://www.cnbc.com/2026/07/07/chinese-ai-models-costs-us-openai-anthro pic.html
まとめ:ローカル LLM のメリット コスト管理 セキュリティ 減価償却 vs 従量課金
/定額 ・学習データに使われない 設備投資による計画的な減価償却と、 従量課金リスクの回避・コスト予測可 能性の向上。 フロンティアモデルも flagをoffにすれ ば使われない....認識.... ・情報が外にでない オンプレミス/ローカル環境内で機密 データの処理が完全に完結。 Source: xxxxx
サービング方法
ローカル LLMの入手元 モデルの配布元としてはHugging faceが最も有名。Github, それぞれの公式 ページからダウンロード可能。 3大クラウド、それ以外のSnowflakeをはじめとしたプラットフォームでもREST APIとして可能だがそれも従量課金となる Source: xxxxx
ローカル LLMのサービング 高スループット・プロダクション型 ローカル・デスクトップ手軽実行型 サーバー運用・複数APIリクエストの高速処理向け PCローカル環境・手軽な動作確認・UI操作向け ▪ vLLM ▪ llama.cpp
・PagedAttention技術によりKVキャッシュを効率化 ・高い連続バッチ処理能力と圧倒的な推論速度 ・大規模プロダクション環境の標準的選択肢 ▪ SGLang ・複雑なLLMプログラム・プロンプトの高速実行 ・RadixAttentionによる複数呼び出し間のキャッシュ共 有 ・構造化出力 (JSON等) やエージェント処理に最適化 Source: Local LLM Serving Tools Comparison Source: xxxxx ・C/C++による軽量実装。GGUF量子化モデルを CPU/GPUで高速実行 ▪ Ollama ・llama.cppを内蔵し、CLIでDocker感覚でモデルを簡単 管理・REST API提供 ▪ LM Studio ・GUI付きデスクトップアプリ。検索・DL・チャット・ローカル サーバー化が完結
Gemma 4
Gemma4 4 モデルサイズ E2B, E4B, 26B, 31B 256K トークン 最大コンテキスト長
📱 Edge Models (E2B / E4B) Apache 2.0 商用利用可能なオープンライセンス Gemini 3 と共通の研究・技術を基盤に開発 💻 Workstation Models (26B / 31B) • オンデバイス最適化: スマホやIoT機器で効率的な実行に 最適化 • 高い推論性能: ローカル環境で高度な推論能力を発揮 • 効率的アーキテクチャ: MoE (26B A4B) & Dense (31B) • マルチモーダル: テキスト、画像、音声入力に対応。出力 はテキスト • 高度な理解力: 画像・動画理解とコード生成:可変解像度 の画像と動画フレームに対応 • 新技術: PLEによるパラメータ効率化と、 KVキャッシュ共有 によるメモリ削減 • コンテキスト: 256Kトークン対応 • コンテキスト: 128Kトークン対応 🚀 主要機能と拡張機能 🧠 思考モード (Thinking) 🛠 エージェント & ツール利用 🌐 多言語 & コーディング 回答前に段階的な推論を行い、複雑な問題に対応 Native Function Callingサポートで自律型エージェ ントの構築に対応 140以上の言語で事前学習。コード生成・修正に対応 し、コーディング性能も向上
ハンズオン
ハンズオン part 1 - 初心者編 gemma4-handson-colab.ipynb Source: xxxxx
ハンズオン part 2 - 中級者以上 https://github.com/tsho/gemma4-local-handson Source: xxxxx
Thank you DevFest Meetup #3
参考
参考 ローカルLLMでどこまでコードが書けるか -LLM基礎知識 / How much code can be written
on a local LLM - fundamental knowledge Speaker Deck Source: xxxxx