


Karpathy's new tutorial goes viral, and netizens rush to give him H100: Recreate GPT-2 training from scratch
Master Karpathy is no longer satisfied with using C language to create Llama!
The latest challenge he gave himself: to reproduce the classic results of OpenAI, starting with the basic version of GPT-2.
The success of the challenge itself is not unexpected, but it only cost 20 US dollars and 90 minutes to complete the training, and the loss and evaluation surpassed the original version, just! have! point! Pass! point! Got it! .
# Not only that, he wrote a complete tutorial on the reproduction process, and as expected it became popular again.
Since Karpathy rented the A100 cloud service, training the 124M version cost US$20.
However, someone followed the tutorial and ran with H100. Not only did the training time become shorter, but it also saved money: it was completed in 43 minutes and only cost 14 US dollars.
In addition, Karpathy also spent US$200 from his own pocket to reproduce the 350M version of GPT-2 for everyone.
But the 1.5B large cup version, according to calculations, will cost 1 week and 2,500 US dollars, which is a bit unaffordable. The main reason is that he does not have H100 in his hand.
Fortunately, all the trenches are very generous and take action when it’s time to take action:
I’ll give it to you anytime you need it!
Only charges you $2 an hour!
90 minutes to reproduce GPT-2
This time Karpathy reproduced GPT-2, still based on his llama.c code base. Complete training end-to-end.
The code base has been continuously improved by him these days, and now it is very simple to start training:
Specifically, the network structure is GPT-2, but many super The parameter settings follow the set of GPT-3.
Karpathy analyzed that according to the standards of Chinchilla's law, GPT-2 training on 100B tokens should be over-trained, and the returns will be diminishing later. According to calculation, 2.5Btokens is enough for the 124M model.
However, he trained 10B tokens himself, and the training data also used FineWeb, which was just released. The token quality is higher than the original OpenAI WebText data set.
The original WebText has never been made public, and it is impossible to experiment with control variables under the same conditions. In addition, the distribution of Internet data today may be very different from that of 5 years ago.
It is speculated that these differences may be the reason why the review score is higher than the original version.
In addition, some netizens noticed that the GPU utilization efficiency during training is also higher than that of OpenAI work, but Karpathy said that it is mainly due to the use of a single cloud service node and does not need to be considered. Inter-server communication issues.
Finally, for the 350M version of GPT-2 that has been trained, it also achieved results that surpassed the original version.
Applause rings~
Great God is not that volume
Since resigning from OpenAI in February this year, Karpathy has used C The language has produced many large model results, and I have played with it from Llama to GPT.
Observing his GitHub heat map, I only took a break for a while at the beginning, and it became more and more popular after entering April.
Is this the rhythm of resigning and staying at home to do 997?
Actually, Karpathy has also traveled during this period and shared the games he was playing, which were not that overwhelming.
According to the weekly schedule he posted: 975 hours on the job, and 4-20 hours of work after resignation, depending on his mood.
- Work 4 hours on Monday,
- Work 14 hours until 11pm on Tuesday
- I had insomnia on Wednesday, got up at 4 o'clock to write code, and collapsed at noon
- Worked 20 hours on Thursday
- Rest on Friday
- 12 hours on Saturday
- 4 hours on Sunday
- Then I went out to travel for two weeks.
#Everyone is curious after seeing this. Does a regular arrangement feel better, or does randomness have miraculous effects?
Karpathy himself is not sure, but a chaotic schedule is definitely more interesting.
Finally, he also shared a freelancing experience:
Start working directly after getting up, without reading any news, and then go online after lunch to avoid the outside world Information is distracting.
Friends who have the conditions can try it.
Tutorial: https://github.com/karpathy/llm.c/discussions/481.
Reference link:
[1]https://x.com/karpathy/status/1795484547267834137.
[2]https://www.threads.net/@karpathy.
The above is the detailed content of Karpathy's new tutorial goes viral, and netizens rush to give him H100: Recreate GPT-2 training from scratch. For more information, please follow other related articles on the PHP Chinese website!

The term "AI-ready workforce" is frequently used, but what does it truly mean in the supply chain industry? According to Abe Eshkenazi, CEO of the Association for Supply Chain Management (ASCM), it signifies professionals capable of critic

The decentralized AI revolution is quietly gaining momentum. This Friday in Austin, Texas, the Bittensor Endgame Summit marks a pivotal moment, transitioning decentralized AI (DeAI) from theory to practical application. Unlike the glitzy commercial

Enterprise AI faces data integration challenges The application of enterprise AI faces a major challenge: building systems that can maintain accuracy and practicality by continuously learning business data. NeMo microservices solve this problem by creating what Nvidia describes as "data flywheel", allowing AI systems to remain relevant through continuous exposure to enterprise information and user interaction. This newly launched toolkit contains five key microservices: NeMo Customizer handles fine-tuning of large language models with higher training throughput. NeMo Evaluator provides simplified evaluation of AI models for custom benchmarks. NeMo Guardrails implements security controls to maintain compliance and appropriateness

AI: The Future of Art and Design Artificial intelligence (AI) is changing the field of art and design in unprecedented ways, and its impact is no longer limited to amateurs, but more profoundly affecting professionals. Artwork and design schemes generated by AI are rapidly replacing traditional material images and designers in many transactional design activities such as advertising, social media image generation and web design. However, professional artists and designers also find the practical value of AI. They use AI as an auxiliary tool to explore new aesthetic possibilities, blend different styles, and create novel visual effects. AI helps artists and designers automate repetitive tasks, propose different design elements and provide creative input. AI supports style transfer, which is to apply a style of image

Zoom, initially known for its video conferencing platform, is leading a workplace revolution with its innovative use of agentic AI. A recent conversation with Zoom's CTO, XD Huang, revealed the company's ambitious vision. Defining Agentic AI Huang d

Will AI revolutionize education? This question is prompting serious reflection among educators and stakeholders. The integration of AI into education presents both opportunities and challenges. As Matthew Lynch of The Tech Edvocate notes, universit

The development of scientific research and technology in the United States may face challenges, perhaps due to budget cuts. According to Nature, the number of American scientists applying for overseas jobs increased by 32% from January to March 2025 compared with the same period in 2024. A previous poll showed that 75% of the researchers surveyed were considering searching for jobs in Europe and Canada. Hundreds of NIH and NSF grants have been terminated in the past few months, with NIH’s new grants down by about $2.3 billion this year, a drop of nearly one-third. The leaked budget proposal shows that the Trump administration is considering sharply cutting budgets for scientific institutions, with a possible reduction of up to 50%. The turmoil in the field of basic research has also affected one of the major advantages of the United States: attracting overseas talents. 35

OpenAI unveils the powerful GPT-4.1 series: a family of three advanced language models designed for real-world applications. This significant leap forward offers faster response times, enhanced comprehension, and drastically reduced costs compared t


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Linux new version
SublimeText3 Linux latest version

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.
