John Carmack muses using a long fiber line as an L2 cache for streaming AI data — programmer imagines fiber as alternative to DRAM

Lasers
(Image credit: Getty Images)

Anybody can create an X account and speak their mind, but not all minds are worth listening to. When John Carmack tweets, though, folks tend to listen. His latest musings pertain using a protracted fiber loop as an L2 cache of sorts, to hold AI model weights for near-zero latency and gigantic bandwidth.

Carmack came upon the idea after considering that single mode fiber speeds have reached 256 Tb/s, over a distance of 200 km. With some back-of-the-Doom-box math, he worked out that 32 GB of data are in the fiber cable itself at any one point.

Latest Videos FromTom's Hardware
Bruno Ferreira
Contributor

Bruno Ferreira is a contributing writer for Tom's Hardware. He has decades of experience with PC hardware and assorted sundries, alongside a career as a developer. He's obsessed with detail and has a tendency to ramble on the topics he loves. When not doing that, he's usually playing games, or at live music shows and festivals.

  • Gururu
    Assuming current solid state media for L2 cache provide means for verification, I would be curious to know how data in a fiber might be managed free from corruption.
    Reply
  • Scott_Tx
    The same way any data transmitted over fiber is checked. Some kind of CRC code and if there's an error you read it from the storage again.
    Reply
  • Gururu
    Scott_Tx said:
    The same way any data transmitted over fiber is checked. Some kind of CRC code and if there's an error you read it from the storage again.
    Sounds great!
    Reply
  • Moores_Ghost
    Carmack? Jim Keller came up with a similar idea back in 2024. Nice that John is adding to it, but we need to give credit where credit is due.
    Reply
  • mrlaich
    So what's stopping this from being a backbone like structure for nervous system linings throughout a robot for "muscle memory" storage?
    Reply
  • bit_user
    The article said:
    AI model weights can be accessed sequentially for inference
    I think this isn't true, for transformer-type models.
    Reply
  • bit_user
    Gururu said:
    Assuming current solid state media for L2 cache provide means for verification,
    Yeah, L2 caches usually include some ECC.

    Gururu said:
    I would be curious to know how data in a fiber might be managed free from corruption.
    Well, PCIe 6.0 added a forward-error-correction (FEC) header. This avoids the need to retransmit, in the event of small numbers of errors. It's conceptually similar to ECC, I think.

    For all I know, protocols used over long-haul fiber might already employ such a mechanism.
    Reply
  • JohnyFin
    I think that next logical step to store temp data are limits of speed of light. Correction error management is a challenge.
    Reply
  • Spuwho
    Bell Labs has already built an optical storage device. They switch in laser light using a high speed micromirror and then laser light just reflects indefinitely between mirrors until the micromirror switches the light back out. Some people consider it a time machine since the state of the light never changes as long as it is inside the apparatus.

    But it seems using a fiber is an overkill, when light switching seems more practical.
    Reply
  • EzzyB
    Alan Turing himself proposed using a gin mix as a medium.

    I prefer a good bourbon when buffering my neural network.
    Reply