3 ms·
If I was starting from scratch, what resources should I start with to build up an understanding of what this code does and how to read it? It's quite dense and
by idkwhatimdoin 3y ago
If I was starting from scratch, what resources should I start with to build up an understanding of what this code does and how to read it? It's quite dense and my knowledge of LLMs is quite minimal. Are these terse variable names standard in LLM-land?
- tayo42 3y agoCheck out his zero to hero series. Which builds this with python and later pytorch, then probably his other mini C based projects.
- vineyardmike 3y agoTerse variables are a C thing. “What resources would I need” -> you’re literally commenting on a teachers content. Karpathy (the author) has a very informative YouTube channel where he goes step by step through everything. He has a ton of repos and tutorials. Dig a little. If all else fails… Google it.
- viraptor 3y ago> Terse variables are a C thing. They're a math / toy code thing. Large C projects have long descriptive names just like other languages.
- idkwhatimdoin 3y ago> you’re literally commenting on a teachers content. How am I supposed to know that? > Karpathy (the author) has a very informative YouTube channel where he goes step by step through everything. Or that, without knowing that he's a teacher? > Terse variables are a C thing. I didn't realize variables had to be so short in C. Glad I write C++ professionally where they've added support for longer variable names. > If all else fails… Google it. There's a lot of LLM garbage out there. I got an answer here in a few minutes pointing to Karpathy's course which seems very high quality. Be kinder.
- vineyardmike 3y ago> How am I supposed to know that? You’re not supposed to know that. You asked a question, and this is you being told the answer. It’s very convenient that the author of the post is quite literally the world’s most prolific teacher on this topic. Makes it easy to find Karpathy. You shouldn’t be expected to otherwise know that (or else why ask if you knew). > I didn't realize variables had to be so short in C. Glad I write C++ professionally where they've added support for longer variable names. This feels like a joke but old C compilers did have variable length limits. This is part of why C historically had shorter variables than other more modern languages. Sorry if it came off rude, the internet is hard to communicate over. https://publications.gbdirect.co.uk/c_book/chapter2/keywords_and_identifiers.html https://publications.gbdirect.co.uk/c_book/chapter2/keywords...
- satokema 3y agoAs siblings have said, his video series are quite good. But if you're just looking at this repo only, you probably want to look at the python reference implementation. (The C is designed to exactly replicate its functionality.)
- ygjb 2y agoIf you are starting from scratch? https://karpathy.ai/zero-to-hero.html https://karpathy.ai/zero-to-hero.html Do those, then come back to this and it will make more sense.