
how far can a 6gb rtx 3060 go? pytorch + triton inference. prev @bitspilaniindia
india
Joined March 2023
- Tweets216
- Following1.3K
- Followers54
- Likes1.5K
Avinab Neogy retweeted
I don’t think we appreciate how hard it is to die a billionaire and have basically ZERO controversies or enemies. Not sure we’ll see it again, tbh.
Avinab Neogy retweeted
Human intelligence is probably the most underrated and underutilized resource in the world
zero nn.module layers. just raw state_dict tensors and gpu math.
wired up all 12 blocks of gpt2 from scratch on my 6gb rtx 3060. it streams real english at 75.5 tok/s and matches huggingface token for token.
1
2
109
Avinab Neogy retweeted
How to become a polymath in an age of infinite supply
attention gets all the hype in transformers, but inside every gpt2 block it is only 33% of the weights.
the other 67% sits in a simple two layer mlp that blows 768 dims up to 3072 and projects right back down.
1
3
63
classic bug when writing attention from scratch: masking future tokens with 0 instead of negative infinity.
softmax turns 0 into e^0 = 1, so your model still peeks at future words. fill the upper triangle with -inf first so softmax zeros them out cleanly.
1
3
86
pass the number 12 into a naive fp16 softmax and your attention layer breaks into nan.
fp16 caps out at 65,504, and e^12 is over 162,000. so e^12 becomes inf, and inf divided by inf gives you nan.
1
2
33
Avinab Neogy retweeted
Goals make you fragile. If you tie your identity to a finish line, every detour feels like failure.
Loops make you resilient. When your identity is the iteration itself, a bad week is just data for the next lap.
Avinab Neogy retweeted
I just realized that the 20th century was perhaps an anomaly in how much it rewarded being book smart over street smart. For 80 years, the recipe for success was to study hard, get a degree, specialize and follow the rules. AI is about to commoditize much of what made that recipe work.
I think we’re entering an era that will disproportionately reward the curious, the resourceful, the self-taught and those who thrive in uncertainty. When intelligence becomes abundant, agency becomes scarce. That’s probably the most important thing we can cultivate in our kids now.
transformer diagrams always draw q, k, and v as three separate layers. gpt2 doesn't actually do that.
it packs all three into one weight matrix of shape [768, 2304]. one matrix multiply instead of three, then you just slice the output into three chunks.
1
2
86
Avinab Neogy retweeted
NVIDIA Board reinstates Jensen Huang as President, CEO and Board Director.
Read the release: nvidianews.nvidia.com/news/n…

















