Alexandre Cassagne retweeted
Marching against prorogation in Mtl. You know it's a good day when even the Communist Party comes out for democracy.
Alexandre Cassagne retweeted
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
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.
Alexandre Cassagne retweeted
If you think about it, Vice President Kamala Harris seems to be unusually obsessed with Markov Processes:
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.
Alexandre Cassagne retweeted
Now imagine if the philosophy that led to this outcome was programmed into AI
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.
Alexandre Cassagne retweeted
New #3Dprinting challenge open for submission. Win a 2500 € cash #AWARD for the best scooter wheel design. Help the NGO @ayudaenaccion with their employability program in Badajoz-Spain #innovation #Engineering
ennomotive.com/challenge/des…
why are you spamming your customers when you know you don’t have their consent? @airtransat
128
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 🙏🙏
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.





























