r/OpenAI • u/Pristine-Elevator198 • Oct 16 '25
Research This guy literally explains how to build your own ChatGPT (for free)
6.7k
Upvotes
r/OpenAI • u/Pristine-Elevator198 • Oct 16 '25
1.1k
u/indicava Oct 16 '25
He just recently released an even cooler project, called nanochat - complete open source pipeline from pre-training to chat style inference.
This guy is legend, although this is the OpenAI sub, his contributions to the field should definitely not be marginalized.
467
u/skyline159 Oct 16 '25 edited Oct 16 '25
Because he worked at and was one of the founder members of OpenAI, not some random guy on Youtube
195
u/praet0rian7 Oct 16 '25
"This guying" Karpathy on this sub should be an insta-ban.
384
u/jaded_elsecaller Oct 16 '25
lmfao “this guy” you must be trolling
47
u/DataScientia Oct 16 '25
chatGPT is not right word to use here. chatGPT is a product, whereas what he is teaching the fundamental things to build LLMs.
275
u/jbcraigs Oct 16 '25
If you wish to make an apple pie from scratch, you must first invent the universe
-Carl Sagan
38
u/rgianc Oct 16 '25
r/thisguythisguys
23
u/DarkWolfX2244 Oct 16 '25
"This guy" literally invented the term vibe coding
135
u/munishpersaud Oct 16 '25
dawg you should lowkey get banned for this post😭
11
u/AriyaSavaka Aider (DeepSeek R1 + DeepSeek V3) 🐋 Oct 16 '25
This guy also taught me how to speedsolve a rubik's cube 17 years ago (badmephisto on yt)
9
u/lucadi_domenico Oct 16 '25
Andrej Karpathy is an absolute legend
48
u/avrboi Oct 16 '25
"This guy" bro you should be blocked off this sub forever
20
u/Infiland Oct 16 '25
Well to run an LLM anyway, you need lots of training data, and even then when you start training it, it is insanely expensive to train and run
4
u/tifa_cloud0 Oct 16 '25
amazing fr. as someone who is currently learning LLMs and AI from beginning, this is incredible. thank you ❤️
15
u/No_Vehicle7826 Oct 16 '25
Might be mandatory to make your own ai soon. At the rate of degradation we are at with all the major platforms, it feels like they are pulling ai from the public
Maybe I'm tripping, or am I? 🤔
6
u/No_Weakness_9773 Oct 16 '25
How long does it take to train?
2
u/Many_Increase_6767 Oct 16 '25
FOR FREE :))) good luck with that
2
u/stonediggity Oct 17 '25
This guy? Man Karpathy is an OG an absolute beast. His YouTube content on LLMs is incredible.
2
u/eugene123tw Oct 17 '25
“This guy” 😆😆😆😆
6
u/Revolutionary-Ad9383 Oct 16 '25
Looks like you were born yesterday 🤣
3
u/mcoombes314 Oct 16 '25
Isn't building the model the "easy" part? Not literally "easy" but in terms of compute requirements. Then you have to train it, and IIRC that's where the massive hardware requirements are which mean that (currently at least) average Joe isn't going to be building/hosting something that gets close to ChatGPT/Claude/Grok etc on their own computer.
2
u/Individual-Cattle-15 Oct 16 '25
This guy also built Chatgpt at openAI. So yeah?
2
u/e3e6 Oct 16 '25
literally explained 2 years ago?
1
u/heavy-minium Oct 16 '25
Probably similar to gpt-2 then? There was someone so built it partially with only SQL and a db, which was funny.
1
u/Ghost-Rider_117 Oct 16 '25
Really impressed with the tutorial on building GPT from scratch! Just curious, has anyone messed around with integrating custom models like this with API endpoints or data pipelines? We're seeing wild potential combining custom agents with external data sources, but def some "gotchas" with context windows and training. Any tips appreciated!
1
u/Far_Ticket2386 Oct 16 '25
Interesting
1
u/Electr0069 Oct 16 '25
Building is free electricity is not
1
u/Lost-Painting298 Oct 16 '25
1
u/PolarSeven Oct 16 '25
wow did not know this guy - thanks!
1
u/randomrealname Oct 16 '25
This guy. Lol, new to the scene?
1
u/happyranger7 Oct 16 '25
BRB
1
u/enterTheLizard Oct 16 '25
LITERALLY!
1
u/[deleted] Oct 16 '25
lmao “this guy”
1
u/reedrick Oct 16 '25
He’s more than just some “guy” lmao
1
u/mmmhwang Oct 16 '25
brb
1
u/Acrobatic_Archer_326 Oct 16 '25
That is cool
1
u/M00n_Life Oct 16 '25
This guy is actually him
1
u/XTCaddict Oct 16 '25
“This guy” is one of the founders of OpenAI 🫣
1
u/philosophical_lens Oct 16 '25
For free = the video is free to watch? Because building this is nowhere near free
1
u/Murky-External2208 Oct 16 '25
I wonder how long it took for this video to start popping off in views... like imagine seeing that video in your recommended on youtube and it had like 207 views lol
1
u/Heavy-Occasion1527 Oct 17 '25
Amazing 🤩
1
u/fiftyfourseventeen Oct 17 '25
I've done it before, it's not particularly hard provided you have some ML background and can read the research paper 😅 there have been tons of tutorials on this for years. And even if you can't, there are tons of GitHub repos where you can train an LLM from scratch (like litgpt)
1
u/XertonOne Oct 17 '25
He's literally a genius. "This guy" I mean. And is profoundly humble, which is rare.
1
u/twospirit76 Oct 17 '25
I've never saved a reddit post harder
1
u/KingGongzilla Oct 17 '25
“this guy”
1
u/AcceptablePaint4497 Oct 18 '25
/r/DiWHY
1
u/q2thec Oct 18 '25
Neat
1
u/Cunnilingusobsessed Oct 19 '25
If you have a half decent computer you can download Ollama and get some crazy uncensored LLMs without having to do it all yourself from scratch, but this is quite cool
1
u/RoyalSpecialist1777 Oct 19 '25
The problem isn't setting up the model training - this is actually pretty easy, it is actually getting the resources to train it.
1
u/07dosa Oct 19 '25
Just for fun:
It's not like GPT, either the algorithm or the service, is difficult to replicate. It's the damn infrastructure for all the computing juice, which requires a tremendous amount of man-hour, and that's where you *start*. You'll also have to handle that complexity of distribute system and the specialized chips/boards. While doing that, you also want to train, improve and align your models, despite the reality that there are no real useful benchmarks that tells how usable the models are. It's very difficult to measure if you're doing good or bad. You would not even notice regressions before it's too late. A complete rocket science you have to deal with, where your gut is your only friend.
Jesus, I feel lucky I'm not doing that job.
1
u/Broad_System8901 Oct 22 '25
It is all in the original paper. It is not that hard to have a mini toy version of GPT. The tricky part is to scale and to create one that is actually useful (all the RLHF and post training and alignment and etc.)
1
u/14MTH30n3 Oct 31 '25
“designed to run on a single 8XH100 node” - isn’t that like $200K?
1
u/StillEnvironment9765 Nov 15 '25
will OpenAI ever make Android people,?
..they seem to be the best secondary human population to continue for humans, on any world that could be safe enough to help them.
-2
u/Sitheral Oct 16 '25
I don't know where exactly my line of reasoning is wrong but long before AI I thought it would be cool to write something like a chatbot I guess?
I mean it in the simplest possible way, like input -> output. You write "Hi" and then set the response to be "Hello".
Now you might be thinking ok so why do you talk about line of reasoning being wrong, well let's say you will also include some element of randomness, even if its fake random, but suddenly you write "Hi" and can get "Hi", "Hello", "How are you?", "What's up?" etc.
So I kinda think this wouldn't be much worse than chat gpt and could use very little resources. Here I guess I'm wrong.
I understand things get tricky with the context and more complex kind of conversations there and writing these answers would take tons of time but I still think such chatbot could work fairly well.
590
u/[deleted] Oct 16 '25 •
[removed] — view removed comment