Andy Gray (@andynotabot) profile picture

AI Start-up founder at Kortical. Since the age of 15, I've been chasing the dream of a building an AI to do my chores... but for now it's mainly B2B AI

Joined November 2017
Photo by Andy Gray (@andynotabot)Photo by Andy Gray (@andynotabot)Photo by Andy Gray (@andynotabot)Photo by Andy Gray (@andynotabot)Photo by Andy Gray (@andynotabot)Photo by Andy Gray (@andynotabot)Photo by Andy Gray (@andynotabot)Photo by Andy Gray (@andynotabot)Photo by Andy Gray (@andynotabot)Photo by Andy Gray (@andynotabot)
Excited to release new repo: nanochat! (it's among the most unhinged I've written). Unlike my earlier similar repo nanoGPT which only covered pretraining, nanochat is a minimal, from scratch, full-stack training/inference pipeline of a simple ChatGPT clone in a single, dependency-minimal codebase. You boot up a cloud GPU box, run a single script and in as little as 4 hours later you can talk to your own LLM in a ChatGPT-like web UI. It weighs ~8,000 lines of imo quite clean code to: - Train the tokenizer using a new Rust implementation - Pretrain a Transformer LLM on FineWeb, evaluate CORE score across a number of metrics - Midtrain on user-assistant conversations from SmolTalk, multiple choice questions, tool use. - SFT, evaluate the chat model on world knowledge multiple choice (ARC-E/C, MMLU), math (GSM8K), code (HumanEval) - RL the model optionally on GSM8K with "GRPO" - Efficient inference the model in an Engine with KV cache, simple prefill/decode, tool use (Python interpreter in a lightweight sandbox), talk to it over CLI or ChatGPT-like WebUI. - Write a single markdown report card, summarizing and gamifying the whole thing. Even for as low as ~$100 in cost (~4 hours on an 8XH100 node), you can train a little ChatGPT clone that you can kind of talk to, and which can write stories/poems, answer simple questions. About ~12 hours surpasses GPT-2 CORE metric. As you further scale up towards ~$1000 (~41.6 hours of training), it quickly becomes a lot more coherent and can solve simple math/code problems and take multiple choice tests. E.g. a depth 30 model trained for 24 hours (this is about equal to FLOPs of GPT-3 Small 125M and 1/1000th of GPT-3) gets into 40s on MMLU and 70s on ARC-Easy, 20s on GSM8K, etc. My goal is to get the full "strong baseline" stack into one cohesive, minimal, readable, hackable, maximally forkable repo. nanochat will be the capstone project of LLM101n (which is still being developed). I think it also has potential to grow into a research harness, or a benchmark, similar to nanoGPT before it. It is by no means finished, tuned or optimized (actually I think there's likely quite a bit of low-hanging fruit), but I think it's at a place where the overall skeleton is ok enough that it can go up on GitHub where all the parts of it can be improved. Link to repo and a detailed walkthrough of the nanochat speedrun is in the reply.
669
3,305
731
23,888
5,824,576
Andy Gray retweeted
I asked nano banana to take me across Middle-earth and this is what happened... all the details on how I made this video, below 🧵👇
270
697
139
7,304
967,459
I’m not just dancing all day, ok
2,730
6,147
1,589
35,280
5,367,544
Andy Gray retweeted
GPT-4o just got an INSANE upgrade! OpenAI just dropped native Image Generation in GPT-4o. Image & Text quality is insane. 100% AI 10 wild examples (prompts included): 1. Polaroid style photographs
160
457
88
4,811
1,043,754
Seems like home robots could be happening sooner than we thought! either that or they're looking to raise another round 😉
Important update: Figure is launching robots into the home Our AI, Helix, is advancing faster than any of us anticipated, accelerating our timeline into the home Therefore, we've moved-up our home timeline by 2 years; starting Alpha testing this year
27
Andy Gray retweeted
Anthropic just dropped Claude Code 🤯 Now you can delegate coding tasks right from the terminal. Limited research preview for now
24
35
5
324
42,993
Teslas now drive themselves from their birthplace at the factory to their designated loading dock lanes without human intervention One step closer to large-scale unsupervised FSD
3,199
8,853
3,898
44,552
59,997,811
Deep Dive On DeepSeek’s New Multimodal AI Released Today And How We Are Getting It Running On A Gaming PC! — DeepSeek’s Janus-Pro represents a significant advancement in multimodal large language models (LLMs), particularly in text-to-image generation. Building upon the foundation of the original Janus model, Janus-Pro introduces enhancements in training processes, data quality, and model architecture, resulting in more stable and detailed image outputs. Technical Architecture: Janus-Pro employs a decoupled architecture, optimizing it for tasks involving both multimodal understanding and text-to-image generation. This design allows for separate processing pathways for different modalities, enhancing the model’s flexibility and performance. The model has been trained on a diverse dataset comprising multimodal, textual, and synthetic aesthetic data through a three-stage process, ensuring superior performance across various tasks. Performance Benchmarks: Janus-Pro has demonstrated exceptional capabilities: •Text-to-Image Generation: •GenEval: Scored 0.80, surpassing OpenAI’s DALL-E 3 (0.67) and Stability AI’s Stable Diffusion 3 Medium (0.74). •DPG-Bench: Achieved an overall accuracy of 84.19, highlighting its proficiency in handling dense and nuanced prompts. •Multimodal Understanding: •MMMU (Multimodal Machine Understanding): Attained an accuracy of 41.0, outperforming models like TokenFlow-XL (38.7). •MME (Multimodal Evaluation): Showed significant gains in reasoning and contextual understanding. These results underscore Janus-Pro’s capabilities in both generating high-quality images from textual prompts and understanding complex multimodal inputs. Running Janus-Pro on Consumer-Grade GPUs These are some of the techniques we deploy when adapting a new larger AI model to run efficiently less expensive computer hardware. This is not an exhaustive list but enough to give you an idea and overview. 1.Model Quantization: Reducing the precision of the model’s weights (e.g., from 16-bit to 8-bit or lower) can significantly decrease memory usage and computational requirements, enabling the model to run on GPUs with limited VRAM. Tools like MiniLLM facilitate running large language models on consumer-grade GPUs. We also imply distillation processes to further improve GPU cycles. 2.Efficient Inference Engines: Utilizing inference engines designed for consumer hardware can enhance performance. For instance, PowerInfer is a high-speed LLM inference engine optimized for personal computers equipped with a single consumer-grade GPU. It exploits the high locality inherent in LLM inference to reduce GPU memory demands and CPU-GPU data transfers. 3.Hardware Considerations: High-end consumer GPUs, such as the NVIDIA RTX 4090, are more suitable for running large models like Janus-Pro due to their substantial VRAM and computational capabilities. However, with appropriate optimization techniques, it’s possible to run the model on GPUs with lower specifications, though performance may be affected. These are some of the strategies we are deploying to run Janus-Pro on consumer-grade gaming computers, By leveraging Janus-Pro, developers and researchers can explore advanced capabilities in both multimodal understanding and image generation, pushing the boundaries of what’s achievable in AI-driven applications. We will keep you updated on the progress.
Ok you want to test out DeepSeek’s new multimodal Janus-Pro-7B? Well I got you covered. It is free and it is here: huggingface.co/spaces/AP123/… Give it a try online, I will have a local How To soon for YOUR computer with YOUR data. Been testing this for hours now! It is amazing.
11
14
2
76
53,617
AGI isn’t “near,” @sama—it’s already here. We coined AGI thinking of human-level intelligence. But LLMs are already general, intelligent, just not sentient, superhuman or demanding civil rights. It’s time to redefine: 1️⃣ AGI = Broad general knowledge, common-sense machines (e.g., LLMs). 2️⃣ ASI = Artificial Super-intelligence - SuperIntelligent but not necessarily conscious. 3️⃣ ACI = Artificial Conscious Intelligence - Thinking feeling machines that have a sense of self, needs and wants, etc. Let’s update the terms. #AI
1
2
62
Andy Gray retweeted
Heard a leak from one of the frontier labs (not oai tbh), they reached an unexpected HUGE wall of diminishing returns trying to brute-force better results by training longer & using more and more data.. (more severe than what is published publicly)
news: OpenAI's upcomning Orion model shows how GPT improvements are slowing down It's prompting OpenAI to bake in reasoning and other tweaks after the initial model training phase.
163
302
145
3,538
885,920
Andy Gray retweeted
Not a surprising result. But good that someone tried this out.
Curious whether video generation models (like #SORA) qualify as world models? We conduct a systematic study to answer this question by investigating whether a video gen model is able to learn physical laws. Three are three key messages to take home: 1⃣The model generalises perfectly for in-distribution data, but fails to do out-of-distribution generalization. For combinatorial scenarios, scaling law is observed. 2⃣The models fail to abstract general rules and instead tries to mimic the closest training example. 3⃣The model prioritizes different attributes when referencing training data: color > size > velocity > shape. This work is a joint effort with our outstanding intern @YangYue_THU. Paper: arxiv.org/abs/2411.02385 Webpage: phyworld.github.io/
146
57
16
861
386,066
I've spent some time now with @OpenAI o1. The model that was "too dangerous" to release. OpenAI's first specialist reasoning model. The big question I wanted to answer was just how good is o1 at reasoning? Despite all the hype, many people are skeptical if LLMs can reason at all. Is it just mimicry, like a parrot, repeating words it doesn't understand? In this article open.substack.com/pub/andyno… I give a bit of background, show how I set about to prove it one way or the other and talk through the surprising result. Not to overcook it too much but... I was genuinely not expecting this result. Let me know if you enjoy the read! 😃
40
Feedback loop: train SOTA chip design model (AlphaChip) -> use it to design better AI chips -> use them to train better models -> to design better chips... part of the reason why our TPU stack is so good. Congrats @Azaliamirh, @annadgoldie, @JeffDean & the AlphaChip team!
Our AI for chip design method AlphaChip has transformed the way we design microchips. ⚡ From helping to design state-of-the-art TPUs for building AI models to CPUs in data centers - its widespread impact can be seen across Alphabet and beyond. Find out more → dpmd.ai/3ZDRtYY
20
158
39
1,104
234,658
This is very cool
Today we’re announcing Meta LLM Compiler, a family of models built on Meta Code Llama with additional code optimization and compiler capabilities. These models can emulate the compiler, predict optimal passes for code size, and disassemble code. They can be fine-tuned for new optimizations and compiler tasks. @HuggingFace repo ➡️ go.fb.me/tdd3dw Research paper ➡️ go.fb.me/85zwgy LLM Compiler achieves state-of-the-art results on code size optimization and disassembly. This work shows that AI is learning to optimize code and can assist compiler experts in identifying opportunities to apply optimizations. We’re releasing LLM Compiler 7B & 13B models under a permissive license for both research and commercial use in the hopes of making it easier for developers and researchers alike to leverage this in their work and carry forward new research in this space.
2
45
wow. The new model from @LumaLabsAI extending images into videos is really something else. I understood intuitively that this would become possible very soon, but it's still something else to see it and think through future iterations of. A few more examples around, e.g. the girl in front of the house on fire teapawt.net/CharaspowerAI/status/1…
I've been wanting to get to the bottom of this story for so long. #DreamMachine #LumaAI 😂
105
544
54
5,626
860,650
# Reproduce GPT-2 (124M) in llm.c in 90 minutes for $20 ✨ The GPT-2 (124M) is the smallest model in the GPT-2 series released by OpenAI in 2019, and is actually quite accessible today, even for the GPU poor. For example, with llm.c you can now reproduce this model on one 8X A100 80GB SXM node in 90 minutes (at ~60% MFU). As they run for ~$14/hr, this is ~$20. I also think the 124M model makes for an excellent "cramming" challenge, for training it very fast. So here is the launch command: And here is the output after 90 minutes, training on 10B tokens of the FineWeb dataset: It feels really nice to reach this "end-to-end" training run checkpoint after ~7 weeks of work on a from-scratch repo in C/CUDA. Overnight I've also reproduced the 350M model, but on that same node that took 14hr, so ~$200. By some napkin math the actual "GPT-2" (1558M) would currently take ~week and ~$2.5K. But I'd rather find some way to get more GPUs :). But we'll first take some time for further core improvements to llm.c. The 350M run looked like this, training on 30B tokens: I've written up full and complete instructions for how to reproduce this run on your on GPUs, starting from a blank slate, along with a lot more detail here: github.com/karpathy/llm.c/di…
123
644
100
5,002
658,201
Andy Gray retweeted
Founders, imagine if every customer interaction felt like it was coming directly from you... Tuning the GPT-4o prompt with KorticalChat is made easy, enabling you to clone your unique communication style. Try it now for free!
1
1
56
Replying to @elonmusk
@elonmusk now that we've seen that raptor engines can blast through fondag with relative ease and the blast kickback taking out engines, what implications does that have for Starship take off from the moon / Mars? Do you need to send a metal launch pad before return flights?
1
88
Obviously gravity is lower but can the engines throttle down enough that this shouldn't be an issue?
34