
Afik Cohen
1.2K posts

Afik Cohen
@aphex
๐ฎ๐ฟ๐๐ถ๐ณ๐ถ๐ฐ๐ถ๐ฎ๐น โ๐ถ๐ป๐๐ฒ๐น๐น๐ถ๐ด๐ฒ๐ป๐ฐ๐ฒโ โข ๐๐๐๐๐๐๐๐ โข ๐ฅ๐ฃ๐๐๐๐ ๐๐ โข แดแดแดแดแดสสsษชแดษชแดษด ๐ SF, CA @[email protected]




I was a 10x engineer. Now I'm useless.

Distributed Real-Time Chunking! I've written a technical blog post on the approach to deploying Real-Time Chunking via In-Painting on a remote cloud GPU server with local client (e.g. Raspberry PI) demonstrated in the video below jackvial.com/posts/distribuโฆ A LeRobot based implementation is available at github.com/jackvial/drtc this includes scripts to provision a GPU instance on Prime Intellect, connect via Tailscale, and should have everything (expect a model trained for your environment) needed to reproduce the experiments outlined in the blog post



Non stop tankers on the move, absolutely nuts.

On DeepWiki and increasing malleability of software. This starts as partially a post on appreciation to DeepWiki, which I routinely find very useful and I think more people would find useful to know about. I went through a few iterations of use: Their first feature was that it auto-builds wiki pages for github repos (e.g. nanochat here) with quick Q&A: deepwiki.com/karpathy/nanocโฆ Just swap "github" to "deepwiki" in the URL for any repo and you can instantly Q&A against it. For example, yesterday I was curious about "how does torchao implement fp8 training?". I find that in *many* cases, library docs can be spotty and outdated and bad, but directly asking questions to the code via DeepWiki works very well. The code is the source of truth and LLMs are increasingly able to understand it. But then I realized that in many cases it's even a lot more powerful not being the direct (human) consumer of this information/functionality, but giving your agent access to DeepWiki via MCP. So e.g. yesterday I faced some annoyances with using torchao library for fp8 training and I had the suspicion that the whole thing really shouldn't be that complicated (wait shouldn't this be a Function like Linear except with a few extra casts and 3 calls to torch._scaled_mm?) so I tried: "Use DeepWiki MCP and Github CLI to look at how torchao implements fp8 training. Is it possible to 'rip out' the functionality? Implement nanochat/fp8.py that has identical API but is fully self-contained" Claude went off for 5 minutes and came back with 150 lines of clean code that worked out of the box, with tests proving equivalent results, which allowed me to delete torchao as repo dependency, and for some reason I still don't fully understand (I think it has to do with internals of torch compile) - this simple version runs 3% faster. The agent also found a lot of tiny implementation details that actually do matter, that I may have naively missed otherwise and that would have been very hard for maintainers to keep docs about. Tricks around numerics, dtypes, autocast, meta device, torch compile interactions so I learned a lot from the process too. So this is now the default fp8 training implementation for nanochat github.com/karpathy/nanocโฆ Anyway TLDR I find this combo of DeepWiki MCP + GitHub CLI is quite powerful to "rip out" any specific functionality from any github repo and target it for the very specific use case that you have in mind, and it actually kind of works now in some cases. Maybe you don't download, configure and take dependency on a giant monolithic library, maybe you point your agent at it and rip out the exact part you need. Maybe this informs how we write software more generally to actively encourage this workflow - e.g. building more "bacterial code", code that is less tangled, more self-contained, more dependency-free, more stateless, much easier to rip out from the repo (x.com/karpathy/statuโฆ) There's obvious downsides and risks to this, but it is fundamentally a new option that was not possible or economical before (it would have cost too much time) but now with agents, it is. Software might become a lot more fluid and malleable. "Libraries are over, LLMs are the new compiler" :). And does your project really need its 100MB of dependencies?






ใญใใใใฎใใใฎใไฟ่ฒๅใใไฝใใใญใธใงใฏใใPantographใ LLMใซใฏWebไธใฎใใญในใใใใใใใญใใใใซใฏใ็ฉ็ไธ็ใฎ็ต้จใใ่ถณใใชใใใใใงๆฐๅๅฐใฎๅฐๅใญใใใใๆพใกใๅนผๅ ใฎใใใซ็ฉใ่งฆใฃใฆใปๅใใฆใปๆฒใใใใฆใใผใญใใๅญฆ็ฟใใผใฟใไฝใใจใใใขใใญใผใใใจใ ้็บใใใใใผใใฆใงใขใๅ็็๏ผใจใซใใๅฎใใๅฐใใไฝใใๅคง้ใซใในใใๅฃใใฆใไบคๆใใใๅฎ็พใใ ๅ ฌ็็ฎ็ๆณไบบ๏ผPBC๏ผใจใใฆ่จญ็ซใใใ็คพไผใคใณใใฉใ็ฎๆใ






