This is f*cking unreal. Andrej Karpathy spent 8 years at OpenAI and Tesla
Last week, he packed everything he knows into one free 2-hour lecture
Agents → Harness → Loops → Graphs
Anyone can ask an AI a question, almost nobody builds the harness that keeps working while they sleep
You might not have 2 hours today
Bookmark it before it disappears from your feed
Watch it, then read the guide below to build your first agent harness
THIS IS PURE GOLD
Anthropic engineer, Addy Osmani just shared how to run AI coding agents like a team - without babysitting every session
it shows how to give agents context, verify their work, set guardrails and decide what ships
context → plan → delegate → verify → decide
save the full playbook ↓
BRO Reverse-engineering Qualcomm Snapdragon’s NPU compiler black box and find out uncovering hidden behaviors that affects every edge AI deployment.
found will surprise anyone deploying models on Snapdragon
What happens when a student ML Systems intern digs into Qualcomm’s NPU compiler?
- Automatic float32 to FP16/BF16 downgrades
- VTCM memory placement solved as MILP
- 33x variance in DDR traffic across Snapdragon chips
- Internal Hextimate simulatorThe black box is cracking open.
- Hidden 33x performance gaps
- MILP-based on-chip memory placement
Discovered silent relaxed_precision_casts, optimal VTCM allocation via HiGHS solver, massive memory traffic variance, and proprietary performance modeling.
Real talk for edge ML engineers
- https://t.co/hTDr1cpd0U
- https://t.co/LTBiwPPaEm
Andrej Karpathy dropped a 2-hour masterclass on everything that he knows
It covers:
- Agents
- Harnesses
- Loops
- Graphs
This is a must watch. Bookmark this post
Former professional CAD engineer weighing in on this.
This is 100% the future of design. AI has 10-100x'd the productivity of software development but mechanical design is brutally tedious, slow, painful. @zoodotdev can do this for hardware.
In an ideal world the major CAD design environments would be natively built around top-down parametric design when you can adjust a few key parameters and the entire build regenerates. Unfortunately SolidWorks is Just. Not. That. It's based on individual Parts; each part lives in its own file. OnShape *tried* to be this but its a tinker-toy when it comes to designing Large Serious Things that have hundreds of parts. It grinds to a halt.
Every SolidWorks engineer knows the agony and pain of building a large complicated assembly and then having part references start breaking and suddenly everything cascades into a brutal mess and you're stuck manually re-defining hundreds of mating relationships and fixing broken part references. If you want to be part of a design team then you have to 'check out' parts one a time which basically locks the assembly if there are contextually defined features that depend on that part.
Where this is really going is this: you want to be able to design an assembly of interrelated parts based on a few key driving parameters, and then pipe that mechanical design into an FEM or CFD simulations environment and look at a few key metrics. For fusion devices this was usually things like temperatures, gradients, given a certain applied thermal flux on a boundary condition, or else mechanical stresses e.g. produced by large superconducting magnets. You then take those simulation results and start adjusting those design parameters to get the performance metrics within a certain spec - max stress, max temperature, whatever.
Now, OnShape at least saw the future and built in a scripting language to let people semi-automate their workflows, but there was a massive disconnect between designing things in the GUI and the scripting language itself. FeatureScript tbh just sorta sucked to work with, and they somehow missed the extremely obvious boat of getting an LLM to just generate FeatureScript based on plain text descriptions. The scripting back-end was just such a bespoke thing you had to reaaally love spending time on OnShape forums to get anything going.
Even more important is that the future of CAD design starts to look a lot more like programming if you want to make hardware development as fluid and fast as software development at least within the design-simulate-refine cycle prior to fabricating anything.
There's a very strong correspondence between principles of good Object Oriented Programming design and CAD design. There's many equivalent ways of getting the same function behavior or solid-body geometry but not all those ways are easily maintanable, adjustable, modified, etc. It's also rare that CAD designers also have OOP experience and so frequently the CAD design might look beautiful as a finished set of mechanical drawings but can become a nightmare to maintain itself as a feature tree of geometric operations.
I think fundamentally Zoo is approaching all these things in the right way. The GUI Design environment is directly convertable to programming scripts right in the same environment. Every GUI action generates a line of code. You can see exactly how to modify the code to e.g. parameterize things, extend things, etc. Then, having an LLM that can turbo-charge the scripting process is a huge win. To do all these things they had to build an entirely new geometry kernel from the ground up, which is the thing that handles basic geometry operations like extrusions, lofts, intersections, etc etc. This is very non-trivial - if you dig under the hood of most any CAD design environment or even COMSOL you'll find the Parasolid Kernel, an ancient behemoth thats decades old and written in C code. Try scripting some basic operations directly in the Parasolid kernel, its pain. Its literally dozens of lines of code to do something like "make a round hole in this block" etc. nightmare.
Basically if you enable this kind of top-down parametric design, with direct conversion between GUI actions and scripting interface, then add an LLM on top of that which can take up tedious operations like "add 12 x 14/-20 tapped holes half an inch from the edge of this mounting plate" etc etc - you can probably collapse the design time of a lot of hardware products by a factor of 10.
People don't realize but CAD just hasn't had the same groundswell of constantly self-improving tooling as software devs for the simple reason that software devs build their own tools, but CAD designers don't write software and just have to deal with the shittiness of SolidWorks, CATIA, etc.
The real win is if @zoodotdev can start to take on some of the simulations work as well all within the same environment either by making use of publicly available FEA or CFD codes or just implementing their own.
Imagine text-to-cad making the design process itself 10x faster, and then when you want to simulate performance, instead of exporting some BREP object like a STEP file into COMSOL and applying a bunch of boundary conditions, visualizing the results, going back to CAD env and tuning things, re-exporting, etc etc etc - which is a process usually split across different people emailing back and forth slide decks and files - you just define the boundary conditions within your CAD environment and do something like "change these three parameters until internal stresses in this part get below XX GPa" and let the simulation run, modifying the CAD design directly with each iteration, propagating those changes to all the other contextually defined parts, until you get the thing you need.
From design concept to fab-ready drawings that's probably a speed up more like 50x than 10x.
MetaAI's SAM 2 struggles when things move fast or when there are crowded, fast-moving objects!
Introducing SAMURAI: An adaptation of the Segment Anything Model for Zero-Shot Visual Tracking with Motion-Aware Memory.
100% Open Source
DeepSeek (Chinese AI co) making it look easy today with an open weights release of a frontier-grade LLM trained on a joke of a budget (2048 GPUs for 2 months, $6M).
For reference, this level of capability is supposed to require clusters of closer to 16K GPUs, the ones being brought up today are more around 100K GPUs. E.g. Llama 3 405B used 30.8M GPU-hours, while DeepSeek-V3 looks to be a stronger model at only 2.8M GPU-hours (~11X less compute). If the model also passes vibe checks (e.g. LLM arena rankings are ongoing, my few quick tests went well so far) it will be a highly impressive display of research and engineering under resource constraints.
Does this mean you don't need large GPU clusters for frontier LLMs? No but you have to ensure that you're not wasteful with what you have, and this looks like a nice demonstration that there's still a lot to get through with both data and algorithms.
Very nice & detailed tech report too, reading through.
People often ask why prices like $2.8/m token for Llama 405B, while being super fast, are still profitable at @LeptonAI. We've even been asked by a leading GPU provider!
So, I figured we should share some technical analysis. This information could benefit the community. We've taken these statistics and analysis for granted, but they might not be obvious to everyone.
1. Big batches: Each request receives an output of ~30 tokens/second. Batching (grouping multiple requests simultaneously) significantly improves total throughput, often 10x or higher than a single request. GPUs are more efficient with larger batches.
2. Dynamic batching: This technique immediately adds a new request to an existing batch instead of making it wait, ensuring the GPU always works at high capacity.
3. Input tokens: The ~30 tokens/second refers to output tokens. Input tokens are processed much faster (known as "prefilling"). Typically, the input length is many times larger than the output (3x to 10x). This increases the total number of tokens processed, explaining why there is often separate billing for input and output.
4. Quantization: Using 8-bit integers or 8-bit floats instead of 16-bit floats reduces memory usage and speeds up processing because the GPU accesses less memory. Newer GPUs also have hardware instructions for lower bit numbers, increasing speed further. For example, the new Nvidia Blackwell GPU supports 4-bit floats (fp4). Quantization also saves memory, allowing even bigger batches from point 1, making it more economic.
5. Speculative decoding: This method uses a smaller model to predict the next token. For example, predicting "you" after "it is good to see" doesn't require a large model. Smaller models make such predictions faster. The Medusa algorithm by @tianle_cai is a specific example of this approach.
6. Prompt caching: LLMs often encounter repeated prefixes, such as "you are a smart AI agent" in system prompts. Caching these prefilled prompts avoids recalculating them, speeding up repeated requests.
7. Optimizing GPU setups: This involves using large GPUs for big models, small GPUs for small models, and matching GPUs to specific tasks—some are better for prefilling, others for decoding. There are many optimization opportunities here.
This is not a complete list. We integrate these methods (and a growing number of more) in our runtime to ensure profitability with reasonable traffic.
Lepton is created by experts who have developed key AI software over the past decade - Caffe, ONNX, PyTorch - alongside cloud experts like the creator of etcd and core contributors to Kubernetes. We provide not only LLM APIs, but also a full cloud-native experience to help you find, use, and optimize GPUs on our cloud platform.
We love the open-source and open-access community. What AI technical explanation would you like to hear next?
I've sucefully runned LLaMA 7B model on my 4GB RAM Raspberry Pi 4. It's super slow about 10sec/token. But it looks we can run powerful cognitive pipelines on a cheap hardware.
Final Preview: Outlier Reduction!
In the upcoming release of BERTopic, it will be possible to perform outlier reduction! Easily explore several strategies for outlier reduction after training your topic model. A flexible and modular approach!
A preview thread👇🧵
I’m at Day 23 of my 30 posts (on Object Detection) in 30 days challenge
I gathered 12 visual summaries on OD Modeling 🎁
A lot of people find those posts helpful, follow @ai_fast_track to catch the upcoming posts, and give this tweet a quick retweet 🙏
Summary of summaries👇
🤔 Interested in Leveraging Few-Shot Learning in your projects?
💡 Here is a library that covers both Image Classification and Object Detection Few-Shot Learning
🤸Human Motion Diffusion Model 🏃♂️
A classifier-free diffusion-based generative model for the human motion domain
MDM is transformer-based, combining insights from motion generation literature
It uses the prediction of the sample, rather than the noise, in each diffusion step
What is the Average Precision (AP), mean AP (mAP), and COCO Metric?
The COCO metric is widely used in evaluating and comparing Object Detection model performances.
MaxViT : combines ConvNet modules and 2 types of self attention (local n'y block, and on a subsampled grid).
Since DETR (hi @alcinos26 !), I've become convinced that combining Conv and attention/dynamic routing was the Right Thing.
I've just published over 20 hours of tutorials and live coding showing how to: install python the right way; set up a terminal; write shell scripts; use vim; use a remote Jupyter server; use git, github, tmux, and ssh; use the python debugger; and more! 🧵
https://t.co/7ypufNXdMS
ConvNeXt: the debate heats up between ConvNets and Transformers for vision!
Very nice work from FAIR+BAIR colleagues showing that with the right combination of methods, ConvNets are better than Transformers for vision.
87.1% top-1 ImageNet-1k
https://t.co/nyHT0eSCpN
1/N
At 32 years old, I was depressed, addicted and always anxious:
• Stuck in a job I hated
• PS4 and Netflix for hours
• Drinking and eating my way to diabetes
It was the best thing that ever happened to me.
Here's my story (and some hard lessons I've learned):