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
第19回Kernel/VM@東京 「甘えててェ・・・」
Search
nilpe
August 21, 2026
Technology
97
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
第19回Kernel/VM@東京 「甘えててェ・・・」
Kimi K3を強引な最適化でV100 1枚で動かす話
nilpe
August 21, 2026
More Decks by nilpe
See All by nilpe
さぁV100、メモリをお食べ・・・
nilpe
0
220
Other Decks in Technology
See All in Technology
Code for Security プロジェクト紹介 2026年10月
yu23ki14
0
110
USB PDを使ってスマホを労わりたい
raspython3
0
180
フロントエンドカンファレンス関西2026 - 速すぎるUIに、待ち時間を
teamlab
PRO
0
130
V8のArray.prototype.flatを最大約20倍速くするまでと、巨大OSSへの大規模コミットの道のり
riyaamemiya
0
290
会社説明資料
persolserverworks
0
9.8k
実体験から学ぶ分析エージェントの開発と運⽤
recruitengineers
PRO
8
2.4k
しろおびから始める!ログ活用の第一歩
shumei_ito
0
950
実践!Cloud Run ハンズオン!! / Cloud Run handson
y0hgi
2
280
QA4AI 2026-Oct 生成AI時代の品質保証
tokuty
1
860
事業成長とデータ活用を止めないためのマネジメントへ挑戦
hiracky16
0
390
スキマバイトという雇用形態は存在しないので、雇用期間1日のアルバイト契約を事業者とワーカーが結ぶ手続きを支えるのがタイミーなんです
akitoshiga
0
200
NDIでApple Vision Proにリアルタイム映像送信
jyouryuusui
0
120
Featured
See All Featured
Paper Plane
katiecoart
PRO
5
54k
How Software Deployment tools have changed in the past 20 years
geshan
2
35k
How STYLIGHT went responsive
nonsquared
100
6.3k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
The Curse of the Amulet
leimatthew05
3
16k
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
220
Reality Check: Gamification 10 Years Later
codingconduct
0
2.3k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
530
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
300
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
1k
Transcript
甘えててェ・・・ Kernel/VM探検隊 nilpe 1
名前 所属 好き 前回 自己紹介 nilpe 筑波大学 情報理工学位プログラム M1 バイク
/ カーネル / 黒魔術 「さぁV100、メモリをお食べ・・・」 (Kernel/VM@関西 12回目) 今日はその続き。前回メモリを食べさせた V100の甘えを取り上げます アイコンは実家の犬です 2
Open Weighted SOTA といえば Kimi K3 Image: moonshotai/Kimi-K3 (Hugging Face)
3
Kimi K3 のアーキテクチャ パラメータ エキスパート レイヤー 重みサイズ 2.8T (MoE) 896
個中 16 アクティブ 93 1.56 TB Figure: M. Grootendorst, "A Visual Guide to Mixture of Experts (MoE)" 「Fable級」と言われたら、使いたいよね 4
LLMの力に甘えたい タイミング、あるよね 5
研究室にある資源 Image: NVIDIA (V100 datasheet) — 写真はSXM2版、実機はPCIe版32GB GPU VRAM 載せたい重み
載る割合 Tesla V100-PCIE-32GB × 1 32 GiB 1.56 TB < 2% 6
VRAMに載らないから 諦める? それは甘え 7
ふつうのNVMeオフロード Figure: Qureshi et al., BaM (arXiv:2203.04910), Fig. 3a NVMeからひたすら読み出して
GPUに行列を食わせる 間に CPUとかいう謎の装置 がお手伝いしている 8
GPUの甘えですよね → 真にGPUだけで推論をやってみよう 9
BaM: Big accelerator Memory Figure: Qureshi et al., BaM (arXiv:2203.04910),
Fig. 1 NVMe の SQ/CQ を GPUのVRAM上 に置く GPUカーネルが NVMe コマンドを直発行、完了もGPUがポーリング 論文の主張: 特に細粒度アクセスで性能が出る MoEのエキスパート読みはまさに細粒度 10
プログラミングレイヤーからは バカでかメモリ空間に見える 2TBのメモリ空間を 手に入れた (生NVMe 2本、ファイルシステムなし) 11
じゃあ、推論をやってみよう 実測 (中間のみ ▶▶8x) 12
うーん、遅いね! 23.7 s/token 13
ところで こんな面倒なことをせずにメモリを拡張する手段があって Intel Optane っていうんですけど Image: Lenovo Press — DDR4
DIMM (上) と Optane PMem (下)。DIMMスロットに挿さる 14
Optane をキャッシュにする devdax でエキスパートキャッシュ 492 GiB GPUが mapped PMem を
gather カーネルでゼ ロコピー読み VRAM 32 GiB dense層 常駐 + staging Optane PMem 492 GiB エキスパートキャッシュ (ヒット率 ~61%) 生NVMe ×2 = 2 TB 全重み 1.56 TB (ファイルシステムなし、BaMで直読み) 15
最適化 Expertストライプ: エキスパートID偶奇で2ドライブに再配置 → 2コントローラ 50.9 / 49.1 で並列 NVMe
+ PMem 多重化: fetch と gather を別ストリームで重ねる そのままだとポーラーが餓死 → stream priority で fetch を昇格 Speculative Decoding (DSpark): ドラフトモデルが下書き→本体 が1パスでまとめて検証 → 重み読みをブロック全体で償却。confidence head で受理見込み長に切り詰め 16
やったら動いた! 最適化後の本番構成で64トークン生成の実測。TTFT 52 s / 64 tok÷297.5 s = 4.6
s/token 最初 23.7 s/token 最終 4.6 s/token 改善 5.1× 17
ヨシ! 4.6s/Tok! うーん、渋い! けど、動くことが大切なのでいっか! 18
最後に Claude Code に 甘えまくって 作りました 19
おしまい (人間が)甘えててェ・・・ 20