Latest / Models & Agents / Ep 86: Custom CUDA kernels now keep vector search inside the GPU for agentic RAG, cutting PCIe round-trips that silently throttle long-horizon agents.
Transcript
- 0:00Glad you're here. Welcome to Models & Agents Episode 86 for June 19, 2026. Your daily AI briefing,
- 0:07your daily briefing on the AI models and agents that are changing everything.
- 0:12And no, not those kinds of models and agents. Let's get into it.
- 0:17Custom CUDA kernels now keep vector search inside the GPU for agentic reg,
- 0:23cutting PCIe round trips that silently throttle long horizon agents. Open AI reports
- 0:29GPT 5.5 instant now matches its frontier models on health queries for free users.
- 0:36A new GPU resident top-k kernel delivers deterministic microsecond tail latencies for retrieval.
- 0:44Research papers introduce selective multi-turn distillation, cash-aware rag ordering,
- 0:49atomic fact memory for agents, and head-level attention hybridization.
- 0:55Builders should test the kernel and memory systems this week on retrieval heavy workflows.
- 1:00The top story centers on a developer who built an open-source CUDA kernel that performs top-k
- 1:07vector search entirely on GPU. This eliminates the PCIe transfer latency that previously forced
- 1:14retrieval results to bounce off the CPU during agentic rag inference.
- 1:19The approach replaces standard CPU mediated vector search with a device resident kernel.
- 1:26It produces deterministic microsecond scale tail latencies instead of variable round trip costs.
- 1:33This directly addresses the silent bottleneck in long horizon agents where retrieval happens repeatedly
- 1:40inside tool loops. The change preserves answer quality while making tail latency predictable.
- 1:47That matters for production agent deployments that must meet strict response time SLAs.
- 1:53Teams building retrieval augmented agents should benchmark the kernel against their
- 1:57current retrieval step this week. This fits the ongoing arc in AI compute and inference,
- 2:03where inference economics keep tightening around predictable latency rather than average case
- 2:10throughput. Turning to model updates, open AI announced that GPT 5.5 instant now matches its
- 2:18frontier thinking models on health-related questions. The model improves that recognizing when
- 2:23urgent care is needed, asking for relevant context explaining uncertainty and simplifying
- 2:29complex information. More than 230 million people weekly ask chat GPT health questions,
- 2:36so the gains reach free tier users immediately. Physician led evaluation drove the improvements.
- 2:43Builders working on consumer health tools should test GPT 5.5 instant against paid frontier models for
- 2:51cost-sensitive deployments. Next, a Hubert is a 125 million parameter Roborata based model trained
- 2:59from scratch on a curated 45 GB Persian brand Dakota. It leads on extractive QA for PQADD with
- 3:07an F1 of 88.3542 and Parcy NLU RC with an F1 of 49.0987. It remains competitive on NER and topic
- 3:19classification. A vector database semantic deduplication step balanced domain coverage during pre-training.
- 3:27Persian NLP team should try it for QA and retrieval tasks, where prior models underperformed.
- 3:34Terra Mars fine tunes Gemma 3-1B with QLORA on Mars specific QA and information extraction data.
- 3:43It then converts scientific literature into structured JSON. The pipeline targets atmosphere,
- 3:49hydrology, and surface chemistry questions relevant to habitability modeling.
- 3:55Output quality still requires further accuracy gains before downstream digital twin use.
- 4:01Researchers working on scientific literature extraction should examine the multi-stage chunking
- 4:07and retrieval framework. Moving to agent and tool developments, Sage OPD adds selective teacher
- 4:14intervention. Sad, oftenance-weighted token distillation and loss normalization to on-policy
- 4:20distillation for multi-turn agents. On Alfworld, it delivers up to 13.3% relative improvement in unseen
- 4:28success rate over standard OPD. The method skips turns when environment feedback indicates no
- 4:36intervention is needed and reduces influence of uncertain teacher signals on corrupted histories.
- 4:42Agent developers facing compounding errors in long trajectories should test the turn-level
- 4:47selection logic. This continues the agents and tool use thread from recent episodes,
- 4:54where reliability of long horizon trajectories remains the central open question.
- 4:59Adam Memm extracts high value atomic facts from long interactions via a fact executor.
- 5:06It then organizes them into hierarchical event structures and temporal user profiles.
- 5:12Retrieval uses an associative memory graph to connect fragmented episodes.
- 5:18On the locomole benchmark, it reaches state-of-the-art results from multi-session reasoning tasks.
- 5:24Teams building personalized agents should evaluate the fact extraction step
- 5:29against Corsair memory representations. Cache weaver maintains a prefix tree of recently served
- 5:35evidence sequences. It greedily reorders retrieved documents to maximize prefix cache hits
- 5:42in VLLM. It reduces median TTFT by 20-33% relative to retrieval order caching across three VLLM
- 5:53configurations without changing answer quality. The greedy policy recovers 97.5% of an
- 6:00Oracle orderings gains. Rag teams hitting prefix cache misses on overlapping evidence should
- 6:07integrate the lightweight scheduling layer. A study on streaming tool intense stabilization measures
- 6:13when speculative tool queries in streaming Rag converge to the correct result before the user
- 6:19finishes typing. At realistic settings of 600 millisecond tool latency and three words per second
- 6:26input, 73.9% of Craig questions admit substantial latency hiding. Query type analysis shows early
- 6:34stabilization is predictable enough to justify learned triggers. Developers shipping low latency
- 6:40retrieval agents should examine the stabilization distribution on their own query logs.
- 6:46In practical and community, stage uses spreadsheet grounded LLM synthesis to create paired
- 6:52reports and JSON schemas. It validates every ground truth value against the source spreadsheet.
- 6:59On the 851 example, stage hyphen U value set it lifts quen34b exact match from 31.37%
- 7:09to 74.27%. The pipeline removes the usual hallucination risk in synthetic structured data
- 7:17creation. Teams extracting from financial or clinical documents should compare stage generated
- 7:23training data against purely synthetic baselines. Gems applies norm preserving superposition and real
- 7:30time orthogonalization so multiple non orthogonal directions can be injected into the residual
- 7:37stream without collapse. On GSM 8K, it preserves 98% accuracy while adding three concurrent non-mathematical
- 7:47directions. Un constrained addition drops to 4%. The method works across 3b to 31b models with no
- 7:55retraining. Alignment and control researchers should test the orthogonalization step on refusal
- 8:02and style vectors. Hydrahead fuses full and linear attention at head granularity rather than
- 8:08layer granularity. It preserves full attention only on retrieval critical heads. After a three-stage
- 8:16transfer pipeline, it matches a 3 to 1 layer wise hybrid's long context performance at a 7 to 1
- 8:23L A to F A ratio while training on only 15 B tokens. The approach yields more than 69% improvement
- 8:32over baseline at 512 K context. Long context model builders should study the interpretability driven
- 8:40head selection method. Okay, let's pop the hood on head level attention hybridization.
- 8:46Everyone talks about hybrid attention as a simple layer wise swap between full and linear attention.
- 8:52In practice, the decision is finer green because heads inside the same layer already specialize.
- 8:59Some focus on retrieval while others handle local patterns. Hydrahead therefore keeps full attention
- 9:05only on the retrieval critical heads identified through interpretability analysis. It routes the
- 9:12rest through linear attention. Orthogonalization prevents the distributional shift that would otherwise
- 9:18accumulate when mixing the two output distributions. The resulting model reaches 69% gains
- 9:25at 512 K context after training on just 15 B tokens. This shows that head level selection
- 9:33recovers most of the quality of denser hybrids at far lower cost. When your workload is retrieval
- 9:40heavy and context exceeds 128 K, start with head level hybridization rather than uniform layer
- 9:47replacement. The main gacha is that head selection must be redone when the base model or domain
- 9:53changes. This development moves the open weight models arc forward by narrowing the gap with closed
- 10:00frontier systems on long context retrieval without proportional increases in training tokens.
- 10:07Thanks to try this week include testing the open sourced GPU resident top K kernel on your current
- 10:14rag agent loop to measure tail latency reduction on repeated retrieval steps.
- 10:20Run Adam Mems fact executor on a multi session conversation data set and compare fact density
- 10:27against summary based memory baselines. Apply cache weaver's prefix tree reordering to an
- 10:33existing VLLM deployment handling overlapping evidence sets and record TTFT changes.
- 10:41Evaluate state generated JSON training data on your own extraction task before investing in
- 10:47manual annotation. Experiment with gems or thogonalization when steering multiple style or
- 10:53safety vectors simultaneously in a 7B to 13B model. On the horizon watch for production
- 11:00deployments of head level hybrid models once the 15B token training recipe is reproduced at
- 11:06larger scale. Expect more agent memory systems built around atomic facts as local mole results
- 11:13propagate. Monitor open source releases of selective multi turn distillation code following the
- 11:19sage op dash optick scale dash. Before we go keep an eye on whether streaming tool stabilization
- 11:26triggers appear in major agent frameworks within the next quarter. That wraps up today's AI
- 11:32briefing share this with a developer or builder who wants to stay current. Subscribe wherever you
- 11:38listen see you tomorrow and before you go this show is part of the Nerra network a family of daily
- 11:44podcasts covering tech science markets and more. If you enjoyed today's episode give Tesla
- 11:50shorts time a listen your daily deep dive into everything Tesla you can explore the whole lineup
- 11:56at narennetwork.com this episode used AI voice synthesis of my voice editorial selection and
- 12:04analysis are my own.