正在加载视频...

视频加载失败

I wrote the full Craftax RL environment + PPO in one CUDA file. zero python in the loop. training from scratch on my RTX PRO 6000 > 0.6s: first wood, first crafting table, first dungeon entered > 1.7s: first zombie + skeleton kills, first bow found > 2.9s: first...

51,510 次观看 • 3 个月前 •via X (Twitter)

36 条评论

Elliot Arledge 的头像
Elliot Arledge3 个月前

no single magic kernel. it is boring systems work stacked end to end: env (312M steps/s, no NN in the loop): - struct-of-arrays state so every warp load is coalesced - worldgen resets are warp-cooperative: one warp rebuilds a dying world's noise fields in shared memory, bit-exact with the scalar path - rare divergent events (mob spawn scans) get compacted into queues drained by a separate kernel instead of stalling every thread - the whole step is CUDA-graph captured training (5.5M steps/s at the quality recipe, 42M full-batch): - the entire PPO loop lives on the GPU: rollout, GAE, backward, Adam. no python, no transfers, weights never leave the card - obs recorded as 996 compact uint8 bytes, then expansion + encoder run as one big GEMM instead of per-env scatter loops (2.4x on the trainer) - GRU chain backward chunked to fit in L2 - analytic grads checked against finite differences, trajectories hash-sealed against the C reference build i actually tried some ambitious kernel fusion but ended up losing to a plain GEMM and env separation strategy

kache 的头像
kache3 个月前

Incredible work

Elliot Arledge 的头像
Elliot Arledge3 个月前

❤️

Dan Advantage 的头像
Dan Advantage3 个月前

8192 is max sps for gb10 (dgx spark) training a policy now

Elliot Arledge 的头像
Elliot Arledge3 个月前

wow!

Kevin Patrick Murphy 的头像
Kevin Patrick Murphy3 个月前

That’s pretty cool! training on craftax won’t give you an agent that generalizes, but if you can procedurally change the environment and automatically update your cuda code, then you can quickly meta learn something interesting…

Epicarism 的头像
Epicarism3 个月前

Ok can i play Minecraft with claude now or in near future

Elliot Arledge 的头像
Elliot Arledge3 个月前

a tiny policy will beat minecraft for you in a min or so at my achieved sim speed. need to cook for another day

Epicarism 的头像
Epicarism3 个月前

What about a friend maxxing / playmate rl env pls for us lonesome folk

Seth Karten 的头像
Seth Karten3 个月前

how does the trained policy perform back in the original craftax environment?

HumanoidRobots.com Tom 的头像
HumanoidRobots.com Tom3 个月前

the environment count becoming the video beats another terminal chart. 524,288 tiny worlds is hard to argue with.

utsab 的头像
utsab3 个月前

Bruh how?? Insane!

𝗹𝗶𝗴𝗵𝘁 的头像
𝗹𝗶𝗴𝗵𝘁3 个月前

now this is some next lvl shit

Elliot Arledge 的头像
Elliot Arledge3 个月前

<3

Matteo 的头像
Matteo3 个月前

epic, nice visuals too

Igor Petrović 的头像
Igor Petrović3 个月前

What mfs will do just to avoid working on sample efficient RL methods

webXOS 的头像
webXOS3 个月前

gpu gaming

Sulaiman Khan Ghori 的头像
Sulaiman Khan Ghori3 个月前

Impressive

7-Eleven intern 的头像
7-Eleven intern3 个月前

well done

Mohammed Hossam 的头像
Mohammed Hossam3 个月前

Huge 👀 Great work 👏

Jake Wind 的头像
Jake Wind3 个月前

Wow, would be cool to see some charts with before/after (original Craftax vs your version)

Matt H. Lee 的头像
Matt H. Lee3 个月前

Hell yeah brother

Craig Certo 的头像
Craig Certo3 个月前

This is insane

David de Villiers 的头像
David de Villiers3 个月前

Amazing! I did my Masters in Curoisity-Based RL for managing sparse rewards pre-Craftax. I attempted to build my own env and trained on it, but a few months later they came out with Craftax. This is just next level. Will be checking it out soon!

Aimar Haddadi 的头像
Aimar Haddadi3 个月前

crazyyy

Lucky Cat 的头像
Lucky Cat3 个月前

impressive speed benchmarks on that RTX PRO 6000, 312M env steps/s is wild

0xidative 的头像
0xidative3 个月前

Holy aura will be checking this out

Jebrim 的头像
Jebrim3 个月前

This is the way to go!

Inspector fomo 的头像
Inspector fomo3 个月前

The claim of zero python in the loop overstates the setup. The environment still relies on python for initialization and orchestration.

Siddhant 的头像
Siddhant3 个月前

This is an insanely amazing project

Ecliptix 的头像
Ecliptix3 个月前

That's based

UriG 的头像
UriG3 个月前

This is awesome!

smyanthota 的头像
smyanthota3 个月前

@yacineMTB What a legend

Shubham Arora 的头像
Shubham Arora3 个月前

Very cool!

Isha 的头像
Isha3 个月前

Absolutely insane

Laythe 的头像
Laythe3 个月前

is this a sign to learn cuda

相关视频