moe (@mohbibi_) header
moe (@mohbibi_) profile picture

Young Dumb And Broke #hibernation

Joined August 2019
Photo by moe (@mohbibi_)Photo by moe (@mohbibi_)Photo by moe (@mohbibi_)Photo by moe (@mohbibi_)Photo by moe (@mohbibi_)Photo by moe (@mohbibi_)Photo by moe (@mohbibi_)Photo by moe (@mohbibi_)Photo by moe (@mohbibi_)Photo by moe (@mohbibi_)
Memory cost and capacity are significant issues for AI accelerators. Unlike game rendering, model inference can have a deterministic memory access pattern. You don’t need “random access memory” at all for model weights, and you could tolerate cold-start latencies in the multiple milliseconds, as long as continuous reads were delivered at the necessary bandwidth. NAND flash is over 100 times cheaper per GB than HBM, so there should be opportunity there, even after giving a flash controller a 1024 bit interface with HBM bandwidth. You could make a specialized pin protocol that just supported pipelined transfer of full 16KB+ pages from the flash to program-managed accelerator scratchpad memory and improve per-pin performance over HBM, but it might be more convenient to make it still look like a true random access memory with very fragile performance characteristics, where anything but sequential reads falls off a 1000x+ performance cliff. That has the advantage of automatically using existing cache hierarchies, and providing a natural path to update the flash memory with new model weights. With the stream-to-scratch interface, code has to be completely rewritten before it works at all, while the ram-emulation interface will start off just extremely slow, and you can incrementally sort out the changes for full performance. There may be cases where there isn’t enough scratchpad SRAM to hold the weights for a layer, which might force you to deploy the old optical drive optimization technique of duplicating data in multiple places on a sequential read to avoid seeking, but there would be capacity to burn. It might be possible to do something like cuda graph capture to record a memory access trace and have everything magically remapped to a linear sequence, but deploying programmer / agent elbow grease to manage transfers and access in a scratch ram ring buffer would be lower risk. A split memory system consisting of some channels of flash and some channels of HBM will probably be suboptimal compared to a uniform memory, but it could be much cheaper, and allow much larger models to be run. I think th case is strong for inference, but you have to stretch more for training. You can still linearize all the weight memory accesses, both reads and writes, but flash memory would quickly wear out from the writes, even if they were all perfectly page aligned. Replacing low-latency HBM with massively parallel cheap(er) DRAM at high latency might still be a worthwhile cost savings.
293
484
152
7,265
1,707,815
RPCS3 Emulator Now Has Zero PS3 Games Left in the Loadable Category tpu.me/zaxg
Readers added context they thought people might want to know
Misleading Title. It means every ps3 game, now boots into the game at least. rpcs3.net/compatibility
18
1,420
5
22,462
230,432
folks claiming they need to roofline and profile their pointer based dynamically allocated linked list to figure out whether to optimize or not simply lack first principles reasoning and have never touched a CPU manaul
4
5
1
54
2,074
moe retweeted
This app is going down the shitter Recommendation system putting fight videos on my timeline like I'm a 8 year old in the back of a favela church
69
21
3
891
35,105
AI may well be able to write massive software projects “from scratch”, but that almost certainly isn’t the fastest / highest performance / highest security / most token efficient way to do things. Good building blocks matter. In addition to RL’ing the agents on final task loss, we should try to get them to regularize the building blocks as well. What would the standard library look like that makes the agents most effective? It is likely at the limit that it turns out to be some alien organization of code, but given the existing human-bias in training, I bet that in the near term it would be lovely code that old programmers would appreciate. I suspect the same could be said for mathematics, but that is out of my lane.
362
457
81
5,681
738,119
moe retweeted
Holliday #deadlock
78
4,421
59
34,417
427,537
Out on the town having the time of my life with a bunch of friends. They're all just out of frame, laughing too.
149
11,912
3,459
49,512
Take 'em out before they escape! #deadlock
147
5,810
78
41,580
606,406
if you’re over the age of 16 and can’t chat and have a good time with your relatives at a family reunion you are socially maladjusted
300
408
168
14,859
499,217
moe retweeted
Downloading the chinese “double your gpu FLOPs” script and hearing a hiss, a pop and smoke rise from my pc
2
1
38
709
moe retweeted
Ok, I just checked this, and its literally running a freaking TensorFlow Lite model on 960×540 images with INT8 quantization every couple of seconds in an attempt to figure out what game you are playing. It's literally called "alex.tflite" and its literally AlexNet and seems to follow torchvision.models.alexnet. As far as I can tell this does some strange nearest neighbor feature comparisons against a DB and literally doesn't work 99% of the time, you love to see your CPU get wasted every other second by this thing though. It also just seems to dump its results into the void because the consent gate comes later. Anyways, here's the tf model graph and some dumped captures.
live-tweeting on samsung findings were fun. i'll let my agents give it a bit more time, but this document is already the most comprehensive breakdown of some key concerns of tizen i've seen run on a live device. it takes like a good while for me just to scroll through it (there's about 44 writeups as of right now on individual functionality). release is probably happening in a few days.
36
186
51
2,518
212,472
Understanding is the noblest of pursuits. People who actively strive to understand are pushing against uncertainty. People who give up on understanding are willingly falling into chaos.
48
347
25
3,070
50,627
What I think is important is to continue caring about the things you love despite anything. The storm will pass. The chaff will be blown away. Good work will continue standing.
42
262
11
3,004
46,519
they need to release these balding cures. I don’t know how much longer I can hold the line
3
1
26
588
moe retweeted
computers are so cool...
1
3
59
760
i need to find my lost ambitions.
11
250
time to fill up that tummy
20
795
47
2,961
Replying to @emweener @mohbibi_
nah we stay gaming on the cursed apple
1
2
44