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
420
MESAワールドモデルとマルチエージェントによる人間行動シミュレーション :仮想から現実世界への架け橋
oggata
0
37
ecological_niche_reward_function_v3
oggata
0
20
NextGen Chore
oggata
0
21
MESA_MINI_DINOv2_Pipeline
oggata
0
18
Self-Introduction
oggata
0
44
Gaming & PhisicalAI
oggata
0
78
savanna_sim.py
oggata
0
13
Beyond LLM:世界モデルが切り拓くフィジカルAIの時代
oggata
0
52
Other Decks in Technology
See All in Technology
フルカイテン株式会社 エンジニア向け採用資料
fullkaiten
0
12k
.NET WebAssemblyで実現するクライアントサイドAI推論:NuGetからViteまで、2つのエコシステムを繋ぐビルド戦略
yamachu
1
480
CLIライブラリ開発を支える技術
htnabe
0
150
Making AI Agents Safe and Fast- Jev, Obsidian, and the Meta-Harness
x5gtrn
PRO
0
110
AIエージェントの権限管理 3: Agentic RAG の Fine grained access control 編
ren8k
0
200
aws-iot-platform-architecture-use-cases.pdf
ma2shita
0
520
AI coding 整合正規方法
philipz
0
490
あけおめLINE 傾向とその対策
nasa9084
0
270
Vibe Coding で作ったプロダクトをどう安全に動かすか / How to Safely Run Products Built with Vibe Coding
glidenote
0
490
Oracle Cloud Infrastructure(OCI):Onboarding Session(はじめてのOCI/Oracle Supportご利⽤ガイド)
oracle4engineer
PRO
2
20k
AIエージェントの一手は 誰も見ていない - Falco拡張OSS「Prempti」とeBPFで サーバーレス実行基盤を二層防御する
keitah
0
480
「ピッケル本」日本語版は4.0(第6版)が出版されるべき / pickaxe4-nagoyark05
kakutani
2
270
Featured
See All Featured
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
480
Ruling the World: When Life Gets Gamed
codingconduct
0
350
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
250
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
530
Building Flexible Design Systems
yeseniaperezcruz
330
41k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
46k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
340
Code Reviewing Like a Champion
maltzj
528
40k
How to train your dragon (web standard)
notwaldorf
97
6.8k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
430
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
530
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