Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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 Aufrufe • vor 3 Monaten •via X (Twitter)

36 Kommentare

Profilbild von Elliot Arledge
Elliot Arledgevor 3 Monaten

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

Profilbild von kache
kachevor 3 Monaten

Incredible work

Profilbild von Elliot Arledge
Elliot Arledgevor 3 Monaten

❤️

Profilbild von Dan Advantage
Dan Advantagevor 3 Monaten

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

Profilbild von Elliot Arledge
Elliot Arledgevor 3 Monaten

wow!

Profilbild von Kevin Patrick Murphy
Kevin Patrick Murphyvor 3 Monaten

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…

Profilbild von Epicarism
Epicarismvor 3 Monaten

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

Profilbild von Elliot Arledge
Elliot Arledgevor 3 Monaten

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

Profilbild von Epicarism
Epicarismvor 3 Monaten

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

Profilbild von Seth Karten
Seth Kartenvor 3 Monaten

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

Profilbild von HumanoidRobots.com Tom
HumanoidRobots.com Tomvor 3 Monaten

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

Profilbild von utsab
utsabvor 3 Monaten

Bruh how?? Insane!

Profilbild von 𝗹𝗶𝗴𝗵𝘁
𝗹𝗶𝗴𝗵𝘁vor 3 Monaten

now this is some next lvl shit

Profilbild von Elliot Arledge
Elliot Arledgevor 3 Monaten

<3

Profilbild von Matteo
Matteovor 3 Monaten

epic, nice visuals too

Profilbild von Igor Petrović
Igor Petrovićvor 3 Monaten

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

Profilbild von webXOS
webXOSvor 3 Monaten

gpu gaming

Profilbild von Sulaiman Khan Ghori
Sulaiman Khan Ghorivor 3 Monaten

Impressive

Profilbild von 7-Eleven intern
7-Eleven internvor 3 Monaten

well done

Profilbild von Mohammed Hossam
Mohammed Hossamvor 3 Monaten

Huge 👀 Great work 👏

Profilbild von Jake Wind
Jake Windvor 3 Monaten

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

Profilbild von Matt H. Lee
Matt H. Leevor 3 Monaten

Hell yeah brother

Profilbild von Craig Certo
Craig Certovor 3 Monaten

This is insane

Profilbild von David de Villiers
David de Villiersvor 3 Monaten

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!

Profilbild von Aimar Haddadi
Aimar Haddadivor 3 Monaten

crazyyy

Profilbild von Lucky Cat
Lucky Catvor 3 Monaten

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

Profilbild von 0xidative
0xidativevor 3 Monaten

Holy aura will be checking this out

Profilbild von Jebrim
Jebrimvor 3 Monaten

This is the way to go!

Profilbild von Inspector fomo
Inspector fomovor 3 Monaten

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

Profilbild von Siddhant
Siddhantvor 3 Monaten

This is an insanely amazing project

Profilbild von Ecliptix
Ecliptixvor 3 Monaten

That's based

Profilbild von UriG
UriGvor 3 Monaten

This is awesome!

Profilbild von smyanthota
smyanthotavor 3 Monaten

@yacineMTB What a legend

Profilbild von Shubham Arora
Shubham Aroravor 3 Monaten

Very cool!

Profilbild von Isha
Ishavor 3 Monaten

Absolutely insane

Profilbild von Laythe
Laythevor 3 Monaten

is this a sign to learn cuda

Ähnliche Videos