News for hackers. Stuff that matters.
Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by loubbrad on Monday November 23, 2026 @08:01AM (#50611012)
If I understand you correctly, I think you are incorrect.

Looped transformers allow models to do more compute in the forward pass for the same total parameter budget (e.g., required VRAM to store the model). This doesn't inherently optimize the memory bandwidth bottleneck. A simple way to see this is that if we reuse a layer during the forward pass, we still need to fetch its weights from HBM again, which incurs additional memory bandwidth usage.

The main advantage is more computation for a fixed parameter count and model-weight VRAM footprint, not more computation for a fixed HBM bandwidth budget.

Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by ac29 on Monday November 23, 2026 @08:20AM (#50611192)
Yes, you are right - the layers that are looped are far too large to stay in on-chip caches and must be reread for every loop pass.

Looping saves you memory capacity needs, not memory throughput needs.

Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by wren6991 on Monday November 23, 2026 @09:18AM (#50611907)
It helps at high concurrency, but not at C=1
Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by jauntywundrkind on Monday November 23, 2026 @09:22AM (#50612004)
One other advantage, since your layers are reused, you have a bigger pool of jobs you can collate onto a single execution of the layer. https://chatgpt.com/share/6b044c5b-5a68-83ea-a1e5-3345439ba9...

However actually benefiting from this can be tricky! loop-sgland project has considerable effort put to finding out how much to loop any given input, it's own subproblem in making use of this: https://kschwethelm.github.io/continuous-depth-batching/ https://github.com/kschwethelm/loop-sglang

Re:GLM-5.4: Toward Generalized Coding with Our First Loop Tr... by big_toast on Monday November 23, 2026 @01:48PM (#50616943)
Does the difference between the size of l2 and hbm mean there generally won't be a reason to loop within l2?