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
aigame & webllm
Search
oggata
February 24, 2025
Technology
100
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
aigame & webllm
oggata
February 24, 2025
More Decks by oggata
See All by oggata
セルから世界へ ------Life Gameからパックマン、そしてWorld Modelまでの世界生成シミュレーション入門
oggata
0
440
MESAワールドモデルとマルチエージェントによる人間行動シミュレーション :仮想から現実世界への架け橋
oggata
0
44
ecological_niche_reward_function_v3
oggata
0
21
NextGen Chore
oggata
0
23
MESA_MINI_DINOv2_Pipeline
oggata
0
19
Self-Introduction
oggata
0
46
Gaming & PhisicalAI
oggata
0
80
savanna_sim.py
oggata
0
15
Beyond LLM:世界モデルが切り拓くフィジカルAIの時代
oggata
0
55
Other Decks in Technology
See All in Technology
Active Record Connection Adaptersにおける長年の課題に再び取り組む
yahonda
0
150
OptunaHub: ブラックボックス最適化のためのプラットフォーム
pfn
PRO
0
140
触りたくないデータに、どう触るか AI時代のRBACアクセスガバナンス
ivry_presentationmaterials
0
260
V8のArray.prototype.flatを最大約20倍速くするまでと、巨大OSSへの大規模コミットの道のり
riyaamemiya
0
290
Kiro Crewをはじめよう
kizawa2020
1
160
実体験から学ぶ分析エージェントの開発と運⽤
recruitengineers
PRO
8
2.4k
Post AI時代のリファクタリング実践記 / Refactoring in the post AI era
kaminashi
1
230
QA4AI 2026-Oct 生成AI時代の品質保証
tokuty
1
860
"優秀な誰か"の下位互換にならないために
yut0naga1_fa
1
1.8k
Gemini Intelligence 入門 ― AppFunctions と Gemini Nano
takuroabe
0
250
今さら理解するウェブフォントver.2026
takanorip
3
770
How to Design Configuration for Rails Applications
willnet
1
780
Featured
See All Featured
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
2
6.3k
The Pragmatic Product Professional
lauravandoore
37
7.5k
SEO for Brand Visibility & Recognition
aleyda
0
4.8k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
77k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
630
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
2
950
Context Engineering - Making Every Token Count
addyosmani
9
1.2k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
410
Utilizing Notion as your number one productivity tool
mfonobong
4
620
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
310
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
540
Transcript
AIGAME X WEBLLM AIGAME X WEBLLM Play
RETRO AGENT SDK RETRO AGENT SDK https://oggata.github.io/retro-agent-sdk
AI X GAME AI X GAME
バズったら、 OPENAIの料金が 高くなる… バズったら、 OPENAIの料金が 高くなる…
マインクラフトで前方に 100x100x100のサイズでコン クーとの構造物を作るコマンド は? /fill ~ ~ ~ ~100 ~100
~100 concrete LOCAL LLM? LOCAL LLM?
MACHINE LEARNING COMPILATION(MLC) MACHINE LEARNING COMPILATION(MLC) https://www.cmu.edu/flame/research/2024/machine-learning-compilation-for-large-language-models.html CLI / Server
mlc_llm serve Android MLC JVM iOS MLC Swift Web browser WebLLM webgpu + wasm ios android os AMD / Nvidia model-lib model compilation platform native runtime model weight mlc weight conversion pre-converted weight original model weight
WEB LLM CHAT WEB LLM CHAT 新鮮なココナッツミルクを使ったカレーのレシピを紹介しよう: 材料 ココナッツオイル 大さじ2ニンニクのみじん切り
大さじ2おろし ショウガ 大さじ2玉ねぎ(みじん切り)小1/2個青唐辛子 (種を取り除き、みじん切り) 2~3本ココナッツミルク(または アーモンドミルク、ココナッツミルク) 大さじ2~3塩 適量コリ アンダー、パセリ、コリアンダーなどのフレッシュハーブ 作り方 小鍋または中くらいの大きさの鍋にココナッツオイルを入れ、 よくかき混ぜながら中弱火で溶かす。 にんにく、しょうが、玉ねぎのみじん切りを加え、香りが出るま で2~3分炒める。 みじん切りにした青唐辛子を加え、1~2分炒める。 すりおろしたココナッツミルクを加え、炒めた材料を加える。 カレーを沸騰させたら弱火にし、鍋にふたをして、途中で混 ぜながら、とろみが少しついてココナッツミルクが泡立ち始 めるまで約10~12分煮る。 必要に応じて塩を加える。 お好みでフレッシュハーブを加え、さらに1~2分煮る。 温かいうちにご飯や麺と一緒に食べる。お好みでフレッシュ ライムジュースを添える。 フレッシュココナッツミルクとフレッシュハーブで作るカレーをお 楽しみください。
セキュリティ、プ ライバシー保護 オフライン利用 レスポンス時間 短縮 コスト削減 特定業務への カスタマイズ エッジデバイス の活用
WHY LOCAL LLM ? WHY LOCAL LLM ?
import {ChatCompletionMessageParam, CreateMLCEngine, MLCEngine} from '@mlc-ai/web-llm'; const model = 'Llama-3.2-3B-Instruct-q4f32_1-MLC';
this.engine = await CreateMLCEngine(model, { initProgressCallback: ({progress}) => this.progress.set(progress) }); this.ready.set(true); await this.engine!.resetChat(); const systemPrompt = ` The user will ask questions about their todo list. Here's the user's todo list: ${this.todos().map(todo => `* ${todo.text} (${todo.done ? 'done' : 'not done'})`).join('\n')}`; const messages: ChatCompletionMessageParam[] = [ {role: "system", content: systemPrompt}, {role: "user", content: userPrompt} ]; const chunks = await this.engine!.chat.completions.create({messages, stream: true}); let reply = ''; for await (const chunk of chunks) { reply += chunk.choices[0]?.delta.content ?? ''; this.reply.set(reply);
LET’S TRY AIGAME X WEBLLM LET’S TRY AIGAME X WEBLLM