I were 17, I'd learn how to build LLMs from scratch

(twitter.com)

30 points | by bilsbie 10 hours ago

18 comments

  • koe123 14 minutes ago
    While knowledge is always great, I would encourage people not to seek advice from successful people like this (survivorship bias).

    Moreover I am not sure it is even good advice? Would you advise a 17 y.o. to learn how transistors work or how to code (i.e. is LLM training the right level in the stack)? LLM training, a discipline where relevant work is already out of reach for 99.999% of budgets really as essential as this post implies?

    • embedding-shape 12 minutes ago
      > I would encourage people not to seek advice from successful people like this (survivorship bias).

      Personally I don't see the problem, as long as you're aware there is survivorship bias involved here.

      What's the alternative really, seek advice from unsuccessful people? That seems worse :)

      Personally I do both, read about what worked for people, also read about what didn't work for people, then ignore both and do whatever the fuck I want.

      • armcat 3 minutes ago
        It's best not to take advice on direction of careers from anyone. It's better to find and work on things that interest you, and then take advice from people that are amazing in that specific field. In mid 2000s in Australia all the "top people" were telling me not to get into a software engineering career because it was dead. It's certainly challenged right now, but it took off during those 15+ years.
      • InsideOutSanta 6 minutes ago
        > seek advice from unsuccessful people

        Intuitively, I would guess that they have a better grasp of what made them fail than successful people have of what made them succeed.

        • embedding-shape 4 minutes ago
          Intuitively, that'd make sense if that unsuccessful person eventually found success, otherwise who knows if they actually picked up what made them unsuccessful in the first place?
      • IshKebab 5 minutes ago
        Seek advice from people who have had a normal level of success. Not a one-in-a-million level.
  • oersted 29 minutes ago
    There's this dilemma where in theory there's a ton of demand for engineers that can do real LLM machine-learning, but in practice there are very few available positions and entrepreneurship opportunities.

    The reality is that an incredibly small minority of companies in the world do any real training or optimisation. It's unnecessary and inefficient for most purposes unless you are fully dedicated to being an LLM company, and still then it's a struggle. Those few that do train, they spend most of their budget on compute and have relatively small teams.

    Getting experience in this field requires having access to very expensive hardware to begin with. And the skills will be quite hard to convert into any real value for someone, leading to a decent income, unless you have a ton of funding from patient investors, or you have decent contacts in Bay Area networks to get hired at the right place.

    With all due respect, paulg is in somewhat of a bubble, this is not congruent with the global situation.

    • willtemperley 1 minute ago
      I think companies of all sizes will want their own models, or at least customised ones, for their own specific use cases or competition and security issues.

      1. Both training and optimisation will get significantly cheaper and easier quickly.

      2. Politics will probably get even more insane before a potential reprieve on the 20th of Jan 2029.

      3. The big AI firms will become part of the surveillance capitalism network, if they're not already.

      So I think for self-protection a lot of companies will be looking near to medium term AI independence.

    • kevmo314 26 minutes ago
      That's like saying the only way to do real engineering is with Google-scale Borg deployments. You can do quite a lot on very little hardware, r/StableDiffusion is a prime example.
      • oersted 24 minutes ago
        You can do plenty of "real engineering" under normal conditions. But specifically when it comes to LLM engineering, no there's really not much you can do, they are called "large" for a reason. You can play around at small scale, but those lessons you learn will not be very relevant to the real problems in the market.

        Sure you can gradually climb the ladder by demonstrating your skills bit by bit and getting access to more resources. It has very good prospects if you do manage to push through. But it's a hard and risky path, and you will not be able to get any interesting results for the longest time.

        For a young middle-class student, it just doesn't make much sense. You can do much more impressive and impactful things with your time without getting into that black hole.

        I know how to build an LLM, I know plenty of fellow young engineers that do too. It's really not that complex. But they can't do much with it without capital or access.

        Good engineering has never been a bottleneck in this field, it's been all about having access to capital and taking smart but dangerous risks burning it on compute, without much idea of how long you need to keep burning for. There's still no end in sight, some are still managing to convince investors and keep burning, and we are seeing progress, but the business case is still unclear. If you want to get in that game, go ahead, but it's not something I would advice the average young engineer.

        • danpalmer 16 minutes ago
          Agreed. It's hard to learn unless you have access to quite high end hardware, and even paying by the hour is expensive. There's a low ceiling on what you can learn without doing training runs.

          You can however learn everything you need to know to get on the career ladder as a software engineer on a regular home PC.

    • spwa4 21 minutes ago
      That's not true, because everyone, everyone, everyone seems to want to do training. Which results in a 50 person company training, say, a voice model that then fails, because it's just not good enough.

      In reality the problem is that it gets blasted out of the water by a much worse architecture trained on 10000x the infrastructure. And while I'm sure the freshly brought in ML student came up with a 10%, even 30% better architecture, it just doesn't matter. (and never mind that even OpenAI hasn't really solved a voice model yet. Try it. It can probably match 2026-quality call centers, but it's no substitute for an actually empowered human)

      ... and yet, if you look at what hyperscalers are getting paid for ... comfortably more than half the income is training. Which makes no sense on so many levels.

      e.g. https://valueaddvc.com/blog/inference-chips-vs-training-chip... (I get it, not great first source, but st

      • oersted 3 minutes ago
        Everyone says they want to do training, because it's sexy and an easy way to justify raising mad funding rounds. Some manage, most don't.

        I don't know where you are located, but in EU, in China, and yes even in Silicon Valley, the vast majority of companies do not do any real AI engineering. There's nothing wrong with it, it's just not a smart path for most purposes. You can do amazing things without training, and if you try to train, you cannot get anything amazing unless you burn millions. Very few people can afford to play the long game and cross that dessert.

  • chris_va 18 minutes ago
    I am kind of amazed how negative the comments are here, especially on HN.

    Learning to hack something together in high school using the latest technology (vacuum tubes, radios, microprocessors, web/javascript) has been a common theme in the tech world for generations. With LLMs and online tutorials, this isn't even a difficult suggestion. Do people think learning new tech is somehow wasted effort?

    • embedding-shape 14 minutes ago
      > I am kind of amazed how negative the comments are here, especially on HN.

      I can't recall or point out exactly when, but there is a stark before/after moment where the opinions of anything pg went from "Interesting and maybe true in some ways" to what we see today, lots of knee-jerk reactions and hardly any comments about the actual content.

      Hazarding a guess, I think the moment Altman became the CEO and later during COVID, the sentiment seemed to have been shifting towards what we see today. But this is all based on hazy memory, rather than looking at the data. I'm sure there is a blog post waiting to be written about analyzing the sentiment of comments to PGs articles on HN, and you'll see a shift somewhere.

      • trentor 3 minutes ago
        Because at some point in life everyone gets tired of fairytales. He started mending the anecdotes to his content instead of just presenting them as they were like he did in his early writings.
    • mcmoor 8 minutes ago
      Now I'm curious, do people actually tried to hack vacuum tubes or other big servers that's barely 1MB RAM? It seems like another thing that needs big investment to work properly, unlike those other techs where results can be shown even with little materials.
    • raincole 13 minutes ago
      If he has said "to learn the math and programming skills needed to understand how to build LLMs" it'd have been much more positively received.
  • felixrieseberg 4 minutes ago
    I'll use this post as a shameless opportunity to tell more people about a little side project, I made:

    languagemodelbuilder.com teaches you (in a few hours to days) how to build an LLM from scratch. It's entirely free, without accounts, and without data collection.

  • mateenah 15 minutes ago
  • sscaryterry 9 hours ago
    I'd learn a trade in all seriousness.

    (Edit: And learn how honest business works)

    • nxobject 32 minutes ago
      With the hindsight of experience, the remnants of my 18-year old energy go “woah, that’s cool!” at plenty of engineering feats… and my decades-older second brain goes “well d’oh, I could’ve just learned a trade to work on that!”

      I think the last one was seeing a skilled electronics repairman do surgery on a CT machine controller.

    • sph 37 minutes ago
      Depends if you’re 17 with rich parents or not.
      • repeekad 30 minutes ago
        This only changes whether you are naive enough to believe “honest” business means anything in today’s age. If anything, I worry being honest is holding back smart people who try to compete in a rigged game.
        • embedding-shape 17 minutes ago
          > you are naive enough to believe “honest” business means anything in today’s age

          Might be that these people are from outside the US as well, where things like "honest business" is very much possible today, probably most businesses I interact with AFK on a daily business are "honest businesses".

  • nvch 20 minutes ago
    When I was not 17 at the times of GPT2, I decided to not bother with learning how to build LLMs because it’s too expensive for an individual. This escalated quickly.
  • onion2k 14 minutes ago
    I learned HTML when I was 17 in about 1995 and it's certainly taken me on a pretty fun career path. Less technical than LLMs for sure, but 'figure out where the industry is going and move what you're learning to there' is solid advice.
  • tayo42 2 minutes ago
    I don't think individuals have the resources to build an interesting llm. The l stands for large. You need a dataset too. Llms are only interesting because theyre large

    And it's basically a weekend project to put transformers together in a ML library and train it.

    The follow up comment,train it to play a game also doesn't make sense? Llms Sony really play games and there are better ml approaches to do that?

  • weinzierl 5 minutes ago
    What are the best resources to learn how to build LLMs from scratch for 17 year olds?

    I have my opinion on this but I'd like to hear the HN opinion, I will just say one thing:

    If you are starting with little knowledge, like a 17 year old would, letting an LLM explain it to you is a terrible idea.

  • utopiah 33 minutes ago
    ... and it would be totally pointless.

    I mean first that is already what plenty of 17yo are actually doing, because that is what they do at school or in parascholar activities. There are already countless of such tutorials where you can do that in an afternoon.

    The pointless part though is precisely why Amazon and others are hunting for rare books, all the low hanging fruits have been picked already so just training a bigger model will simply mean burning more energy and money. Sure training a small one for the basic principle is a great pedagogical thing, training another one, medium, then maybe a large one, is also good in term of learning the process and architecture, but one should not expect it to be useful out of that context.

    Pure players are precisely doing everything they can to corner the market by making their own scale unreachable by others. Smaller players with access to lesser infrastructure are thus betting on different market, e.g. embedded systems.

    17yos should definitely build their (L)LMs from scratch and whatever bigger model they can train for free, or for cheap, but they should not expect that to bring them any riches.

    • eptcyka 25 minutes ago
      Why would 17 year old do something that only brings them money? I do not think Mr Graham here is advocating for the path that makes most money as a result of learning how to train a model. I assume that tinkering and learning about LLMs is what enterprising 17 year olds will do to discover ways they can get a competitive edge or further the SotA with their insights further down the line.
  • kubb 27 minutes ago
    It’s crazy how much survivorship bias gets repackaged as generic advice.

    Wait no it’s not, that was always happening.

    What’s crazy is that people still believe in it.

  • Cheyana 9 hours ago
    He bases this decision on all of the experience he has amassed, as a 61 year old man in the tech industry. An actual 17 year old, with 17 years of experience, would not think like this, nor should they.
    • vintermann 1 minute ago
      Yes. And they almost certainly have a better understanding of their own situation that him. This is not a dig at Paul Graham, the closer anyone is in age, the better they understand what they have to deal with. I'm roughly in the middle between Paul G and the 17 year old, and even though I'm really quite fascinated with zoomer culture and probably come more in touch with it than most (due to relatives in the age range etc.) I realize I have very little idea what it's like to grow up in the world they grow up in.
    • netcan 31 minutes ago
      Most. But, that isn't the point.

      Either way, this isn't really advice for 17 year olds. Pg is thinking out loud about the pathways for founders.

    • protocolture 41 minutes ago
      What about a 19 year old?

      >Whoa. I’m 19 and I trained a 100M language model from scratch. Did a v2 now with a new SFT experiment to see if I can get better results on same size.

  • vasco 27 minutes ago
    Can't this guy enjoy being rich in silence? His takes get worse with every passing year.
    • embedding-shape 17 minutes ago
      He did get rich by being pretty much the opposite of silent, so I'm guessing you can't just turn off that part, kind of comes with the package ;)
  • BoredomIsFun 26 minutes ago
    I do not think it is a proper thing to do for 17 y.o., unless they are exceptionally mathematically gifted, as proper understanding of how LLMs are trained requires a good grasp of calculus, understanding modern OS and SDE tools for proper implementation of pipeline etc.

    I'd rather simply write another mnist implementation and check if I really like all that AI stuff at first place. Even then, before going into mature-on-the-way-to-dying tech (LLMs) I'd rather focus on fundamentals - good ols linear models, regressions, stat etc.

    • osigurdson 12 minutes ago
      I think he is basically saying YC has enough startups that are just making API calls.
    • molf 12 minutes ago
      Why would you tell people that the correct order is to build foundational knowledge before exploring a subject? For some (many?) people, a 'proper' understanding develops _after_ the exploration.
    • embedding-shape 19 minutes ago
      > I do not think it is a proper thing to do for 17 y.o

      If I'd get a buck every time someone said something like this to me when I was in the 13-18 range, I wouldn't have a ton of money, but it's so very annoying when people tell you this.

      Regardless if they're "gifted" or not, regardless if you believe in myths like that or not, let children explore what they want to explore, even if you don't understand what it is or why they want to explore that, just let people explore, regardless of age.

      It was such a terrible experience being a young kid growing up, with so many adults spending hours trying to convince me to stop sitting in front of the computer so much doing whatever; "why are you even trying to learn that stuff, you have to go to school to understand anything of this" and so much other similar trash.

      Sorry, not your fault and I'm borderline trauma-dumping now, but really sad to see this sort of gatekeeping on HN of all places, age is irrelevant to learning ANYTHING, in my humble opinion at least.

      Kids, find anything interesting? Jump into it, ignore what adults tell you, and do whatever you feel like, you'll find your place eventually.

      • VoidWhisperer 11 minutes ago
        Agree with this - started programming through learning scripting in ROBLOX when I was like 12 (this was back like 17 or 18 years ago) and it developed into a life-long passion for software engineering. I am thankful I had people around me (my parents), who were aware enough to realize I wasn't just playing video games and gave me the time I needed on the computer to learn and experiment with programming...

        This also meant that by the time I was actually offered to take a programming class in school (junior year of HS), I had already been able to self-teach myself well beyond what that class was covering, thanks to just working on random projects that scratched an itch I had at the time, looking up anything I didn't know or understand, and internalizing those concepts over time.

        In short though, I definitely agree, young kids and teens (and also, frankly, adults too!) should be encouraged to explore things that they have a passion for, without being told 'you need to go to school for this' or 'you cant understand this at your age'

    • charcircuit 15 minutes ago
      >understanding modern OS and SDE tools for proper implementation of pipeline etc.

      Can you provide an example?

  • CqtGLRGcukpy 9 hours ago
  • Freedom2 9 hours ago
    Another great quote by PG. I've been really enjoying his essays recently - truly a great and curious mind.