Alexandre Cassagne (@AlexCassagne) header
Alexandre Cassagne (@AlexCassagne) profile picture
Joined April 2009
Alexandre Cassagne retweeted
Marching against prorogation in Mtl. You know it's a good day when even the Communist Party comes out for democracy.
224
351
511
349
software engineering might be the only profession where you can be stuck on a task for days/weeks/months and no one will even bat an eye, question your abilities, or be upset with you
299
609
141
10,810
503,532
Alexandre Cassagne retweeted
💯
470
3,259
265
50,089
2,476,241
Alexandre Cassagne retweeted
My friends — born and raised in Montreal but now living in U.S. — are back in town on vacation with their two kids. Daughter gets sick. They need to see a doctor. Instead of dealing with Quebec emergency rooms or walk-in clinics that seemingly don’t take walk-ins, they drive to Plattsburgh. Wait time to see a doctor: 5 minutes.
229
198
12
1,888
441,851
13
453
31
4,729
263,231
Alexandre Cassagne retweeted
If you think about it, Vice President Kamala Harris seems to be unusually obsessed with Markov Processes:
501
320
121
3,227
442,026
Alexandre Cassagne retweeted
<sarcasm> Come work at ClosedAI. With AGI just around the corner, your shares will be worth 42 sextillionnollars. We can claw back your vested shares if you quit, unless you sign a non-disparagement agreement. Oh wait, sorry, we didn't realize our contract was this harsh until someone published an article on it. You can keep them. We're worth 42 octillionnollars, but since we're a private company, you can't really sell your shares. Also, we can actually stop you from selling them. And you can't say a word about what it is we're working on. If you do, we'll fire you within the hour, claw back your shares, and you won't be able to say *anything*. Don't take it personally but, you know, we're soooo far ahead of everyone else and AI is soooo dangerous in the hands of the unwashed masses. It's safe only if *we* do it. </sarcasm>
Replying to @JacobHHilton
First among those is a binding commitment to non-retaliation. Even now, OpenAI can prevent employees from selling their equity, rendering it effectively worthless for an unknown period of time.
275
549
182
6,155
1,395,202
Alexandre Cassagne retweeted
Now imagine if the philosophy that led to this outcome was programmed into AI
Holy fucking shit. I just walked from Soma to Hayes Valley through Market St and easily sketchiest walk of my life. And dude I grew up in Brazil and Colombia. I’ve walked real sketchy shit before. Doesn’t even compare. Felt like a scene straight out of the walking dead. Sad.
4,006
7,967
631
67,035
40,599,252
Alexandre Cassagne retweeted
Replying to @dom_lucre
10% for the big guy and his friends
27
446
11
2,921
289,429
Alexandre Cassagne retweeted
🔥llm.c update: Our single file of 2,000 ~clean lines of C/CUDA code now trains GPT-2 (124M) on GPU at speeds ~matching PyTorch (fp32, no flash attention) github.com/karpathy/llm.c/bl… On my A100 I'm seeing 78ms/iter for llm.c and 80ms/iter for PyTorch. Keeping in mind this is fp32, with no flash attention yet, and slightly stale PyTorch (2.1.0). - It is a direct implementation of the training loop and backpropagation in C/CUDA. - It compiles and runs instantly. No more "hit run then wait for tens of seconds for unknown reasons", for mountains of inscrutable abstractions to build a Universe. - It deletes the need for the Python interpreter and a deep learning library. - It allocates all the memory a single time at the start. - It's pretty cool. How: Getting this to work required us to write a lot of custom CUDA kernels, and doing this manually (instead of using Tensor ops of aten/PyTorch and torch.compile etc.) is a bit like programming in assembly. And you spend quality time looking at more assembly (CUDA PTX/SASS). But this also means we get to hyperoptimize the code and possibly explore optimizations that torch.compile might find difficult to, which is awesome. Examples of optimizations that went in over the last few days: - we're being clever with our memory consumption in the backward pass, only using a few buffers we need to propagate the gradients, saving memory capacity. - one fused classifier kernel does the last layer forward pass, the loss, and kicks off the backward pass. - many improvements to all the kernels involved, including e.g. gains from carefully constraining execution within the autoregressive mask in attention - cuBLAS(Lt) calls for all heavy lifting matmuls, and fused bias accumulation Big credits to two CUDA experts who appeared from somewhere on the internet to help this open source project, ngc92 and ademeure. We're hanging out of Github and Discords of CUDAMODE and my NN Zero to Hero. Next steps: - more optimizing of our (fp32) kernels, and especially switch to flash attention. - mixed precision training (fp16 to start). - multi-gpu training (DDP to start). - data & evals to set up a proper GPT-2 training runs - 🚀 repro GPT-2 (1.6B) training run. - more modern architectures etc. (Llama 3?) - writing, videos, exercises on building all of this from scratch. Figure 1: eye candy: timing profile of the kernels (one layer). NVIDIA cutlass kernels with solid compute throughput taking up a lot of the running time => nice.
129
506
68
5,009
641,084
Alexandre Cassagne retweeted
Software engineers on their knees, crying, throwing up
297
1,133
265
16,657
1,965,134
Alexandre Cassagne retweeted
Submit your #3DModel for a better scooter wheel and win a 2500 cash #prize
1
2
54
Alexandre Cassagne retweeted
1,546
13,713
1,550
227,125
30,594,754
why are you spamming your customers when you know you don’t have their consent? @airtransat
128
CBC: Watch us keep the government in check! Also CBC: Don't you dare comment on it!
91
22
603
6
11,774
434,597
Alexandre Cassagne retweeted
At least the drama seems to be over for the moment OAI board’s failure to provide an explanation makes this seem like a petty power struggle! 🤯 This incident underscores the importance of open-source AI and decentralization Let’s hope more people switch sides 🙏🙏
13
8
1
71
7,973
Alexandre Cassagne retweeted
Too many people have to please their boss instead of the customer
71
185
14
1,809
170,245
Alexandre Cassagne retweeted
We didn’t need the OAI fiasco to illustrate that truly open source (weights) AI is the way.. but it sure has accelerated things. Big time.
13
34
3
297
55,424
Alexandre Cassagne retweeted
We have two choices - AGI controlled by a handful of money-making, power-hungry, closed-source capitalists AGI decentralized, transparent, open-source, robust, accessible to all humanity If we ❤️ each other, the choice is extremely obvious! What’s yours?
135
74
25
548
100,846