TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Explaining Llm.c in Layman Terms

38 pointsby publius_0xf3about 1 year ago

5 comments

saagarjhaabout 1 year ago
I'm curious who the target audience of this tweet is. Are there a lot of people who know all about tensors, deep learning, and PyTorch but have no idea what C is?
评论 #40010644 未加载
评论 #40010815 未加载
评论 #40010636 未加载
评论 #40010775 未加载
评论 #40010762 未加载
teleforceabout 1 year ago
Very interesting notes and as commented by one of the sibling comments it is really a rumination on abstraction rather on than implementation off llm.c itself.<p>It will be very interesting to implement this small llm in D language and use the new tiny autograd library in D [1]. Since now D compiler does support C, this should results in less line of codes excluding the small autograd library in D [2]. Given that the D code will be able to inline C code, and even CTFE it, if done correctly the implementation will be faster as well.<p>[1] A tiny autograd library:<p><a href="https:&#x2F;&#x2F;code.dlang.org&#x2F;packages&#x2F;tiny-autodiff" rel="nofollow">https:&#x2F;&#x2F;code.dlang.org&#x2F;packages&#x2F;tiny-autodiff</a><p>[2] Adding ANSI C11 C compiler to D so it can import and compile C files directly:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=27102584">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=27102584</a>
ChrisArchitectabout 1 year ago
Actual link: <a href="https:&#x2F;&#x2F;twitter.com&#x2F;karpathy&#x2F;status&#x2F;1778153659106533806" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;karpathy&#x2F;status&#x2F;1778153659106533806</a><p>It&#x27;s not a thread, no nitter needed.
ChrisArchitectabout 1 year ago
Related:<p><i>Llm.c – LLM training in simple, pure C&#x2F;CUDA</i><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=39973467">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=39973467</a>
fefe23about 1 year ago
This does not explain llm.c. It is more like a rumination on abstraction.