Skip navigation
Trained this 9M param world model
0:00 / 0:29

Trained this 9M param world model

AVB

@neural_avb15K followers

Visit on X
563 likesDownloadOriginal post

21,599 views

Trained this 9M param world model This is NOT using a rendering engine. A NEURAL NETWORK is generating each frame at 30fps conditioned directly on user input The model inputs past K frames, latest user action, and generates the new frame! It learned to respect light interactions, collisions, and long-term continuity! Done using a VQ-VAE and a Transformer. On the left you can see the VQ codewords it generated which then gets rendered onto the frame!

14 Comments

Comments from the original post on X (Twitter)

  • AVB's profile picture

    @neural_avb

    This is part of my upcoming computer vision "marathon" video. Repo WIP:

    16 likes

  • AVB's profile picture

    @neural_avb

    1) Claude created the 2D ray-casting env. We generated 20K episodes with a scripted random player... ~2.5M 64x64 frames 2) Trained a VQ-VAE tokenizer on the images (no temporal stuff yet)... 512 codes and 16x16 token grid. So each frame can be represented by a sequence of 256 tokens. 3) With the frozen VQ-VAE, trained a transformer. 3D rope for positional embedding, causal mask across time, and maskGIT across a single frame's token. Ie the 16x16 token grid does bidirectional attention with randomly masked tokens. But frames only look at past frames (causal attention) 4) the maskgit training allows us to generate the 256 tokens paralely during inference. 5) Each of the 5 actions have their own unique embedding. On an action, this action embedding is added to all the 256 frame embeddings where the action was applied.

    11 likes

  • Shreyan's profile picture

    @shreyanbr

    Damnn the shadows off the boxes stay properly consistent for 9M params 🔥 Went through the repo, train_wm.sh has K=4, so at 30fps the model only ever sees the last ~0.13 sec. Whatever long term continuity it has must be coming from what's still visible in those 4 frames, and it's a dark room, so the moment the flashlight turns away a box is basically gone from the context. Test I'd add to the 60 step dreams in select_ckpt - park the beam on a box, turn away for 2-3 sec, turn back. Same spot and angle means the VQ tokens are carrying way more scene info than 4 frames should allow. If it shifts or vanishes thats where the drift is

    1 like

  • れいちぇる_Web制作出身のAI・Webアプリ開発者's profile picture

    @Rachel_hkz

    レンダリングエンジンを使わず、入力に応じて次フレームを30fpsで生成する世界モデルという説明が具体的で面白いです。過去フレームと操作から光や衝突の整合性まで保つなら、単なる動画生成より「動く環境」を学ばせる方向に感じます。

  • Grumpy's profile picture

    @Grumpysmurf_xyz

    keeping objects persistent after they leave view is the tricky part, impressive at that scale

  • Mike Vegeto's profile picture

    @ZECTBynmo

    Cool as hell! I love VAEs so much.

  • TaraT's profile picture

    @tarat_211

    soo cool

  • Kuldeep Pisda's profile picture

    @kdpisda

    with a scripted random player the data barely has long straight walks, does continuity hold if you just hold forward for a minute?

  • Emil Lykke Grann's profile picture

    @emil406p

    This is extremely cool! He did a good job on this

  • AI Quanting's profile picture

    @AIQuanting

    Nice. How many hours of footage did it train on? I'm curious what breaks first when you do something it rarely saw, like hugging a wall for a while.

  • Vipul Kumar Kewat's profile picture

    @VipulKewatTech

    Excellent visual instincts

  • Taha's profile picture

    @TahaMajlesi

    intresting

  • Vanraj Narula | AI Engineer's profile picture

    @vanraj_narula

    Only 9M params and it runs at 30fps, that's wild. How long can you play before the frames start to drift?

  • Steven Cheng's profile picture

    @stevencheng

    how long does the context window go