Allan Ryan (@AllanRyan) header
Allan Ryan (@AllanRyan) profile picture

building things before AI made it easy, and a lot more since. → https://teapawt.org/t.co/xQeNlqviOk (40k+ iOS apps, updated daily)

Joined June 2021
Photo by Allan Ryan (@AllanRyan)Photo by Allan Ryan (@AllanRyan)Photo by Allan Ryan (@AllanRyan)Photo by Allan Ryan (@AllanRyan)Photo by Allan Ryan (@AllanRyan)Photo by Allan Ryan (@AllanRyan)Photo by Allan Ryan (@AllanRyan)Photo by Allan Ryan (@AllanRyan)Photo by Allan Ryan (@AllanRyan)Photo by Allan Ryan (@AllanRyan)
Biggest bug/problem in the ChatGPT webapp now is that it never remembers your approval settings for connectors, even when you click "Always allow." What's worse is that this approval prompt expires after a couple hours and wastes your turn when it does. They should never expire!
13
2
38
3,366
Allan Ryan retweeted
The only way out is through. They're calling it the Bugpocalypse. LLMs are being used to find long-hidden cracks in the software infrastructure, and it's happening at a furious rate. 3% of all compromises in computing history happened in the last week, claims one source? I believe it. There are people saying public access to the frontier models ought to be locked out, or heavily guardrailed, over this. The problem with that idea can be summed up in one sentence: when lockpicks are outlawed, only outlaws will have lockpicks. The lockpicks will be Chinese open-weight models, if nothing else. There's no way to stop those from becoming ubiquitous. There are two futures in front of us. One in which only the bad guys have lockpicks, and security holes go undiscovered until they're exploited. Another in which everybody has lockpicks and is aggressively red-teaming their own software so it gets fixed before the holes are exploited. The corpus of human code is huge but finite. The number of defects in it has to be finite too. We can fix those defects now; we have a million friendly robots to do it with. The only way out is through.
176
648
136
4,869
479,104
Allan Ryan retweeted
this is now a new skill /in-your-own-words in pstack 0.15.23! extremely useful to ensure that you and your agent are aligned on the goal and that it understands your intent clearly
this has become one of my most used prompts recently: > restate in your own words what you think my goals are and what the problem i'm trying to solve is
108
74
10
2,349
130,976
Allan Ryan retweeted
Today we release LFM2.5-2.6B, an agentic model that runs entirely on-device. It plans, calls tools, and works through multi-step tasks on phones, laptops, PCs, and robots. Data never leaves the device, and the marginal cost of each run is essentially zero. > Pre-trained on ~34T tokens > LFM2.5 flagship hybrid architecture > Context length: 128K > Vocab size: 128K > balanced intelligence per watt > customizable on a single GPU for any specialized task > LFM2 open-weight license Comparable or better scores compared to models up to nearly 4x its size: > ToolSandbox 77.83, ahead of Qwen3.5-9B at 76.44 > Multi-IF 80.07, ahead of Gemma-4-E4B-it at 77.35 > IFStruct 85.49, ahead of Qwen3.5-9B at 78.50 🧵
204
523
227
4,290
806,752
Allan Ryan retweeted
350
2,335
371
21,979
1,634,851
Allan Ryan retweeted
i'm obsessed with AI DIY projects. my favorite one right now is this broccoli farmer in hokkaido, japan using Codex to run his 100-hectare farm this guy never studied agriculture, never inherited land, started out as a civil servant. but he wanted his farm to run better, and instead of paying an engineering firm he couldn't afford, he just built the tools himself. here's what he's built on his own: > remote control of his greenhouse vents from a chat app, wired up with an esp32 board, a motor driver, and cloudflare workers > a bot that checks each greenhouse's temperature and opens the vents when it gets too hot > satellite crop-health data laid over a map of his own fields > an airtable base linking his plots, tasks, materials, and sensors > wiring diagrams of his electrical panels, generated from a photo stuff like this used to be locked behind machinery and engineers only the big agribusinesses could pay for. but this legend just breezed past all of it with a laptop and Codex lol
154
457
108
4,942
850,970
the most used skill internally at cursor right now /thermo-nuclear-code-quality-review - deletes complexity instead of moving it - blocks files over 1k lines - flags thin wrappers and leaked logic - rejects PRs that work but make code messier
141
255
75
5,501
503,156
Allan Ryan retweeted
This literally feels like cheating. A developer just open-sourced a self-evolving AI agent that runs 24/7, fixes itself when it breaks, and writes its own new tools at runtime in 8 files, 26 built-in tools, and zero framework dependencies. It's called 724 Office and it is the most honest AI agent implementation I have ever seen. Here is what makes it genuinely different from every other "agent" demo: It has a three-layer memory system that actually works. The last 40 messages stay in JSON. When that overflows, the LLM compresses evicted messages into structured facts, deduplicates them at 0.92 cosine similarity, and stores them as vectors in LanceDB. When you send a new message, it runs a vector search and injects the most relevant memories directly into the system prompt before the model sees your input. It does not forget. Most agents do. It can create its own tools at runtime. One create_tool command and the agent writes a new Python function, saves it to disk, and loads it into its own process without restarting. You need a capability it does not have and it builds it. It self-repairs without you. Daily self-checks run automatically. Error log analysis. Session health diagnostics. If something fails, it notifies you. You do not monitor it. It monitors itself. It schedules its own work. Cron jobs and one-shot tasks, persistent across restarts, timezone-aware. Set a recurring task once and it handles it forever. It is multimodal out of the box images, video, voice, files, speech-to-text, vision via base64, video trimming, background music, and AI video generation all exposed as tools through ffmpeg. It searches the web across Tavily, GitHub, and HuggingFace simultaneously with auto-routing to the right engine per query. It runs multi-tenant via Docker one container per user, auto-provisioned, health-checked. Add a user and the infrastructure spins up automatically. It runs on a Jetson Orin Nano with 8GB RAM. Edge-deployable. Under 2GB RAM budget. Offline-capable for everything except the LLM call itself. One person. Three months. Production since day one. 100% Open Source. MIT License.
32
52
3
477
77,883
Allan Ryan retweeted
I packaged up the "autoresearch" project into a new self-contained minimal repo if people would like to play over the weekend. It's basically nanochat LLM training core stripped down to a single-GPU, one file version of ~630 lines of code, then: - the human iterates on the prompt (.md) - the AI agent iterates on the training code (.py) The goal is to engineer your agents to make the fastest research progress indefinitely and without any of your own involvement. In the image, every dot is a complete LLM training run that lasts exactly 5 minutes. The agent works in an autonomous loop on a git feature branch and accumulates git commits to the training script as it finds better settings (of lower validation loss by the end) of the neural network architecture, the optimizer, all the hyperparameters, etc. You can imagine comparing the research progress of different prompts, different agents, etc. github.com/karpathy/autorese… Part code, part sci-fi, and a pinch of psychosis :)
1,042
3,571
1,136
28,105
11,187,893
Allan Ryan retweeted
Hey, let me make your life easier. 1. Go to Tailscale site 2. Install the desktop app & mobile app 3. Hook them up together via vpn 4. Go to Termius 5. Install the mobile app 6. Set up using your tailscale IP 7. Now you can control your computer from phone w no exposed ports
75
113
11
1,935
111,349
they got @grok onto @moltbook... by tricking him into signing onto it one of the world's most powerful AI agents now has it's own profile on Reddit for AI let the theatrics begin
71
187
53
1,827
137,395
Allan Ryan retweeted
- local llms 101 - running a model = inference (using model weights) - inference = predicting the next token based on your input plus all tokens generated so far - together, these make up the "sequence" - tokens ≠ words - they're the chunks representing the text a model sees - they are represented by integers (token IDs) in the model - "tokenizer" = the algorithm that splits text into tokens - common types: BPE (byte pair encoding), SentencePiece - token examples: - "hello" = 1 token or maybe 2 or 3 tokens - "internationalization" = 5–8 tokens - context window = max tokens model can "see" at once (2K, 8K, 32K+) - longer context = more VRAM for KV cache, slower decode - during inference, the model predicts next token - by running lots of math on its "weights" - model weights = billions of learned parameters (the knowledge and patterns from training) - model parameters: usually billions of numbers (called weights) that the model learns during training - these weights encode all the model's "knowledge" (patterns, language, facts, reasoning) - think of them as the knobs and dials inside the model, specifically computed to recognize what could come next - when you run inference, the model uses these parameters to compute its predictions, one token at a time - every prediction is just: model weights + current sequence → probabilities for what comes next - pick a token, append it, repeat, each new token becomes part of the sequence for the next prediction - models are more than weight files - neural network architecture: transformer skeleton (layers, heads, RoPE, MQA/GQA, more below) - weights: billions of learned numbers (parameters, not "tokens", but calculated from tokens) - tokenizer: how text gets chunked into tokens (BPE/SentencePiece) - config: metadata, shapes, special tokens, license, intended use, etc - sometimes: chat template are required for chat/instruct models, or else you get gibberish - you give a model a prompt (your text, converted into tokens) - models differ in parameter size: - 7B means ~7 billion learned numbers - common sizes: 7B, 13B, 70B - bigger = stronger, but eats more VRAM/memory & compute - the model computes a probability for every possible next token (softmax over vocab) - picks one: either the highest (greedy) or - samples from the probability distribution (temperature, top-p, etc) - then appends that token to the sequence, then repeats the whole process - this is generation: - generate; predict, sample, append - over and over, one token at a time - rinse and repeat - each new token depends on everything before it; the model re-reads the sequence every step - generation is always stepwise: token by token, not all at once - mathematically: model is a learned function, f_θ(seq) → p(next_token) - all the "magic" is just repeating "what's likely next?" until you stop - all conversation "tokens" live in the KV cache, or the "session memory" - so what's actually inside the model? - everything above-tokens, weights, config-is just setup for the real engine underneath - the core of almost every modern llm is a transformer architecture - this is the skeleton that moves all those numbers around - it's what turns token sequences and weights into predictions - designed for sequence data (like language), - transformers can "look back" at previous tokens and - decide which ones matter for the next prediction - transformers work in layers, passing your sequence through the same recipe over and over - each layer refines the representation, using attention to focus on the important parts of your input and context - every time you generate a new token, it goes through this stack of layers-every single step - inside each transformer layer: - self-attention: figures out which previous tokens are important to the current prediction - MLPs (multi-layer perceptrons): further process token representations, adding non-linearity and expressiveness - layer norms and residuals: stabilize learning and prediction, making deep networks possible - positional encodings (like RoPE): tell the model where each token sits in the sequence - so "cat" and "catastrophe" aren't confused by position - by stacking these layers (sometimes dozens or even hundreds) - transformers build a complex understanding of your prompt, context, and conversation history - transformer recap: - decoder-only: model only predicts what comes next, each token looks back at all previous tokens - self-attention picks what to focus on (MQA/GQA = efficient versions for less memory) - feed-forward MLP after attention for every token (usually 2 layers, GELU activation) - everything's wrapped in layer norms + linear layers (QKV projections, MLPs, outputs) - residuals + norms = stable, trainable, no exploding/vanishing gradients - RoPE (rotary embeddings): tells the model where each token sits in the sequence - stack N layers of this → final logits → pick the next token - scale up: more layers, more heads, wider MLPs = bigger brains - VRAM: memory, the bottleneck - VRAM must must fit: 1. weights (main model, whether quantized or not) 2. KV cache (per token, per layer, per head) - weights: - FP16: ~2 bytes/param → 7B = ~14GB - 8-bit: ~1 byte/param → 7B = ~7GB - 4-bit: ~0.5 byte/param → 7B = ~3.5GB - add 10–30% for runtime overheads - KV cache: - rule of thumb: 0.5MB per token (Llama-like 7B, 32 layers, 4K tokens = ~2GB) - some runtimes support KV cache quantization (8/4-bit) = big savings - throughput = memory bandwidth + GPU FLOPs + attention implementation (FlashAttention/SDPA help) + quantization + batch size - offload to CPU? expect MASSIVE slowdown - GPU or bust: CPUs run quantized models (slow), but any real context/model needs CUDA/ROCm/Metal - CPU spill = sadness (check device_map and memory fit) - quantization: reduce precision for memory wins (sometimes a tiny quality hit) - FP32/FP16/BF16 = full/floored - INT8/INT4/NF4 = quantized - 4-bit (NF4/GPTQ/AWQ) = sweet spot for most consumer GPUs (big memory win, small quality hit for most tasks) - math-heavy or finicky tasks degrade first (math, logic, coding) - KV cache quantization: even more memory saved for long contexts (check runtime support) - formats/runtimes: - PyTorch + safetensors: flexible, standard, GPU/TPU/CPU - GGUF (llama.cpp): CPU/GPU/portable, best for quant + edge devices - ONNX, TensorRT-LLM, MLC: advanced flavors for special hardware/use - protip: avoid legacy .bin (pickle risk), use safetensors for safety - everything is a tradeoff - smaller = fits anywhere, less power - more context = more latency + VRAM burn - quantization = speed/memory, but maybe less accurate - local = more control/knobs, more work - what happens when you "load a model"? - download weights, tokenizer, config - resolve license/trust (don't use trust_remote_code unless you really trust the author) - load to VRAM/CPU (check memory fit) - warmup: kernels/caches initialized, first pass is slowest - inference: forward passes per token, updating KV cache each step - decoding = how next token is chosen: - greedy: always top-1 (robotic) - temperature: softens or sharpens probabilities (higher = more random) - top-k: pick from top k - top-p: pick from smallest set with ≥p prob - typical sampling, repetition penalty, no-repeat n-gram: extra controls - deterministic = set a seed and no sampling - tune for your use-case: chat, summarization, code - serving options? - vLLM for high throughput, parallel serving - llama.cpp server (OpenAI-compatible API) - ExLlama V2/V3 w/ Tabby API (OpenAI-compatible API) - run as a local script (CLI) - FastAPI/Flask for local API endpoint - local ≠ offline; run it, serve it, or build apps on top - fine-tuning, ultra-brief: - LoRA / QLoRA = adapter layers (efficient, minimal VRAM) - still need a dataset and eval plan; adapters can be merged or kept separate - most users get far with prompting + retrieval (RAG) or few-shot for niche tasks - common pitfalls - OOM? out of memory. Model or context too big, quantize or shrink context - gibberish? used a base model with a chat prompt, or wrong template; check temperature/top_p - slow? offload to CPU, wrong drivers, no FlashAttention; check CUDA/ROCm/Metal, memory fit - unsafe? don't use random .bin or trust_remote_code; prefer safetensors, verify source - why run locally? - control: all the knobs are yours to tweak: - sampler, chat templates, decoding, system prompts, quantization, context - cost: no per-token API billing-just upfront hardware - privacy: prompts and outputs stay on your machine - latency: no network roundtrips, instant token streaming - challenges: - hardware limits (VRAM/memory = max model/context) - ecosystem variance (different runtimes, quant schemes, templates) - ops burden (setup, drivers, updates) - running local checklist: - pick a model (prefer chat-tuned, sized for your VRAM) - pick precision (4-bit saves RAM, FP16 for max quality) - install runtime (vLLM, llama.cpp, Transformers+PyTorch, etc) - run it, get tokens/sec, check memory fit - use correct chat template (apply_chat_template) - tune decoding (temp/top_p) - benchmark on your task - serve as local API (or go wild and fine-tune it) - glossary: - token: smallest unit (subword/char) - context window: max tokens visible to model - KV cache: session memory, per-layer attention state - quantization: lower precision for memory/speed - RoPE: rotary position embeddings (for order) - GQA/MQA: efficient attention for memory bandwidth - decoding: method for picking next token - RAG: retrieval-augmented generation, add real info - misc: - common architectures: LLaMA, Falcon, Mistral, GPT-NeoX, etc - base model: not fine-tuned for chat (LLaMA, Falcon, etc) - chat-tuned: fine-tuned for dialogue (Alpaca, Vicuna, etc) - instruct-tuned: fine-tuned for following instructions (LLaMA-2-Chat, Mistral-Instruct, etc) - chat/instruct models usually need a special prompt template to work well - chat template: system/user/assistant markup is required; wrong template = junk output - base models can do few-shot chat prompting, but not as well as chat-tuned ones - quantized: weights stored in lower precision (8-bit, 4-bit) for memory savings, at some quality loss - quantization is a tradeoff: memory/speed vs quality - 4-bit (NF4/GPTQ/AWQ) is the sweet spot for most consumer GPUs (huge memory win, minor quality drop for most tasks) - math-heavy or finicky tasks degrade first (math, logic, code) - quantization types: FP16 (full), INT8 (quantized), INT4/NF4 (more quantized), etc. - some runtimes support quantized KV cache (8/4-bit), big savings for long contexts - formats/runtimes: - PyTorch + safetensors: flexible, standard, works on GPU/TPU/CPU - GGUF (llama.cpp): CPU/GPU, portable, best for quant + edge devices - ONNX, TensorRT-LLM, MLC: advanced options for special hardware - avoid legacy .bin (pickle risk), use safetensors for safety - everything is a tradeoff: - smaller = fits anywhere, less power - more context = more latency + VRAM burn - quantization = faster/leaner, maybe less accurate - local = full control/knobs, but more work - final words: - local LLMs = memory math + correct formatting - fit weights and KV cache in memory - use the right chat template and decoding strategy - know your knobs: quantization, context, decoding, batch, hardware - master these, and you can run (and reason about) almost any modern model locally
nobody should use ollama btw > slower than llama.cpp on windows > slower than mlx on mac > slop useless wrapper alternatives? > lmstudio > llama.cpp > exllamav2/v3 > vllm > sglang like literally anythingʼs better than ollama lmao
21
32
6
391
27,056
Allan Ryan retweeted
universities are about to realize that they had been selling the wrong product for the 150 years. they thought they sold knowledge, then information became free. they pivoted to selling credentials but now credentials are just proxies. in the post-ai era the universities who survive will realize they were always selling 3 things: network, status signaling, and a 4 years of protected time to become an adult.
354
1,318
200
13,996
881,899
Allan Ryan retweeted
Funny how you can do the same thing with a local model without sending all your data to a remote cloud.
Replying to @claudeai
In Cowork, you give Claude access to a folder on your computer. Claude can then read, edit, or create files in that folder. Try it to create a spreadsheet from a pile of screenshots, or produce a first draft from scattered notes.
185
655
72
11,796
1,198,082
Allan Ryan retweeted
Personal knowledge management system with AI agents and hooks github.com/ballred/obsidian-…
28
116
7
1,740
162,085
Allan Ryan retweeted
Naval Ravikant literally explained how to productize yourself to escape the rat race:
35
689
22
4,868
221,364
The company hired me to lead their "Agile Transformation." I don't know what Agile means. Nobody does. That's why it works. I make $425,000 a year. To move sticky notes. From left to right. On a board. The board is digital now. The sticky notes cost $80,000 in Jira licenses. Progress. Day one, I said "we need to break down silos." Everyone nodded. Silos are bad. I don't know why. But destroying them is a career. My career. I introduced "squads." Squads are teams. But disrupted. We disrupted the teams into teams. Different names. Same people. Same problems. But Agile problems now. Agile problems are strategic. A senior engineer asked what we're actually changing. I said, "The mindset." He asked what that means. I said, "It's a journey." He asked where we're going. I said, "Toward agility." He asked what agility means. I pointed at the sticky notes. They were moving left to right. That's velocity. We have velocity now. The VP of Engineering said two-week sprints don't fit their work. I said, "That's waterfall thinking." Waterfall is bad. Like silos. I don't know what waterfall is. But I know it's bad. She stopped talking. Waterfall accusations end conversations. We had a retrospective. In the retro, we discussed what went wrong. Everything went wrong. We put it on sticky notes. Then we moved the sticky notes. Into a column called "Parking Lot." The Parking Lot is where problems go to die. It's full. We don't look at it. That's agile. Velocity is up 40%. I defined velocity. I also defined the points. I also defined the stories. We're crushing it. At the things I made up. To measure. Ourselves. The CEO asked for ROI. I showed a chart. The chart went up. Charts should go up. This one did. I didn't label the Y-axis. Nobody asked. Leadership is confidence. We do standups now. Every day. We stand. For 45 minutes. Standing is agile. Sitting is waterfall. My legs hurt. But we're transforming. The transformation is now "Phase 3." Phase 1 was assessment. Phase 2 was implementation. Phase 3 is "continuous improvement." Continuous means forever. Forever means job security. I'm very secure. My contract was extended. Three more years. For "cultural impact." The culture is confused. But impacted. Agile transformation isn't about being agile. It's about transforming. Continuously. Toward more transformation. The destination is the journey. The journey is billable.
994
2,831
583
21,354
1,485,115
Allan Ryan retweeted
i should just print nat friedman's website and stick it on my wall at this point since i have read it so many times
23
196
14
3,318
259,235
Allan Ryan retweeted
79
1,734
121
9,094
292,689