Live data from Hacker News

Let's build GPT: from scratch, in code, spelled out by Andrej Karpathy [video]

youtube.com

31–40 of 111 posts

Re: Let's build GPT: from scratch, in code, spelled out by Andrej Karpathy [video]

#31
post #26

Earlier quoted context omitted.

Same, but I would honestly rather we get away from silicon or anything resembling what we call these "computers" these days. Things are too complicated and we need to truly get back to the basics: rocks on a hill.

Abacus-driven deep learning with trained monkeys flipping gradients.

Outside tools are not required.

We'll selectively breed humans until one can just compute it in...meat[0].

https://www.youtube.com/watch?v=7tScAyNaRdQ

Re: Let's build GPT: from scratch, in code, spelled out by Andrej Karpathy [video]

#33

This is really great, thank you. I would love to see a real "from scratch" that doesn't use torch.py et. al., though.

Andrej's "Building Makemore" series is exactly this, it includes a wonderful lecture where he computes all the gradients for a simple network by hand and compares them against the values produced by torch's autograd.

I find Makemore to be my favorite neural-net-based (w)rapper.

Re: Let's build GPT: from scratch, in code, spelled out by Andrej Karpathy [video]

#34
post #31
post #26

Earlier quoted context omitted.

Abacus-driven deep learning with trained monkeys flipping gradients.

Outside tools are not required. We'll selectively breed humans until one can just compute it in...meat[0]. https://www.youtube.com/watch?v=7tScAyNaRdQ

in mitro computing

Re: Let's build GPT: from scratch, in code, spelled out by Andrej Karpathy [video]

#35

This is really great, thank you. I would love to see a real "from scratch" that doesn't use torch.py et. al., though.

https://youtu.be/VMj-3S1tku0

The entire series is at https://karpathy.ai/zero-to-hero.html, first video is literally from scratch (i.e. just Python, the only external dependency is for plotting graphs if I recall correctly).

Re: Let's build GPT: from scratch, in code, spelled out by Andrej Karpathy [video]

#36
post #25

This is really great, thank you. I would love to see a real "from scratch" that doesn't use torch.py et. al., though.

That would be next to impossible to do even in a semester long course...

Here you go: https://www.youtube.com/watch?v=VMj-3S1tku0

Re: Let's build GPT: from scratch, in code, spelled out by Andrej Karpathy [video]

#37
post #30
post #16

Karpathy's videos (and blogs) are excellent. I wonder how history will reflect on his time at Tesla, however.

What do you mean by "however"? He built the entire FSD architecture - in less time and with fewer people than Google, Apple, and god knows who else. He's likely saved more lives than most doctors at this point...

No he didn't, a (large from what I hear) team did. However Karpathy is still a smart, well accomplished, guy and he has a talent many academics don't: being able to write actual production grade, high quality software. And he's a good communicator.

Re: Let's build GPT: from scratch, in code, spelled out by Andrej Karpathy [video]

#38
post #30
post #16

Karpathy's videos (and blogs) are excellent. I wonder how history will reflect on his time at Tesla, however.

What do you mean by "however"? He built the entire FSD architecture - in less time and with fewer people than Google, Apple, and god knows who else. He's likely saved more lives than most doctors at this point...

It's probably a reaction to: https://news.ycombinator.com/item?id=34415413

which I'm sure was more a marketing error than anything else.

Re: Let's build GPT: from scratch, in code, spelled out by Andrej Karpathy [video]

#39
post #6

Earlier quoted context omitted.

rough steps: 1. collect a very large dataset, see: https://www.lesswrong.com/posts/6Fpvch8RR29qLEWNH/chinchilla... . scrape, de-duplicate, clean, wrangle. this is a lot of work regardless of $. 2. get on a call with the sales teams of major cloud providers to procure a few thousands GPUs and enter into too long contracts. 3. "pretrain" a GPT. one common way to do this atm is to create your own exotic fork of Megatron…

On number 2, even if you are John Carmack you may have trouble getting the right people on the phone. https://twitter.com/id_aa_carmack/status/1305967411749892098... Anyone at Google Cloud out there? It seems I can't get my GPU quota raised to 40 x V100 as an independent researcher. I was told that setting up a website would help, but I would rather not. I can pay the bills...

I gave up and moved to lambdalabs, then they ran out of quota across the board, and now I use a combination of Vast, and Coreweave today.

Re: Let's build GPT: from scratch, in code, spelled out by Andrej Karpathy [video]

#40
post #6
post #5

I might be too new to this area -- but is this actually explaining how to create like a small version of the actual trained model -- not like "using the trained model for X"? like I can imagine in the future people won't start from pure scratch, there will be building blocks that everybody starts from, but mostly just wondering like how hard is it to actually replicate what openAI has done if you had the money to pay…

rough steps: 1. collect a very large dataset, see: https://www.lesswrong.com/posts/6Fpvch8RR29qLEWNH/chinchilla... . scrape, de-duplicate, clean, wrangle. this is a lot of work regardless of $. 2. get on a call with the sales teams of major cloud providers to procure a few thousands GPUs and enter into too long contracts. 3. "pretrain" a GPT. one common way to do this atm is to create your own exotic fork of Megatron…

You can skip to step 4 using something like GPT-J as far as I understand: https://github.com/kingoflolz/mesh-transformer-jax#links

The pretrained model is already available.

Post reply on HN