<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Victor Ashioya on Medium]]></title>
        <description><![CDATA[Stories by Victor Ashioya on Medium]]></description>
        <link>https://medium.com/@ashioyajotham?source=rss-b601a14caab8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Nh8oNQ5qB-wPBAZzex7vqQ.jpeg</url>
            <title>Stories by Victor Ashioya on Medium</title>
            <link>https://medium.com/@ashioyajotham?source=rss-b601a14caab8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 18:06:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ashioyajotham/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[I Tried to Break Agentic Video Understanding Before Posting About It]]></title>
            <link>https://medium.com/@ashioyajotham/i-tried-to-break-agentic-video-understanding-before-posting-about-it-e73acb43ad0b?source=rss-b601a14caab8------2</link>
            <guid isPermaLink="false">https://medium.com/p/e73acb43ad0b</guid>
            <dc:creator><![CDATA[Victor Ashioya]]></dc:creator>
            <pubDate>Wed, 02 Sep 2026 19:56:25 GMT</pubDate>
            <atom:updated>2026-09-02T19:56:25.367Z</atom:updated>
            <content:encoded><![CDATA[<p><em>I built a clean demo, discovered it was too easy, and turned it into a 48-run benchmark that found both a real advantage and a real breaking point.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vYu3YnPfYTcWcIqp" /><figcaption>Photo by <a href="https://unsplash.com/@aarngiri?utm_source=medium&amp;utm_medium=referral">AARN GIRI</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>There is a moment in almost every crime show where somebody says, “Enhance.”</p><p>It is usually ridiculous. A blurry corner of a security feed becomes a license plate. A reflection in a window becomes a face. A pixel becomes evidence. The computer obliges because television has no patience for information theory.</p><p>But the instinct behind the scene is real.</p><p>When humans inspect video, we do not treat every second equally. We skim, pause, rewind, zoom, slow down, crop, compare frames, and concentrate on the handful of moments where the answer probably lives. A football referee does not rewatch an entire match at uniform speed to decide whether the ball crossed the line. A security analyst does not stare at twelve hours of CCTV with equal attention. A researcher studying a high-speed event does not ask the same question of every frame.</p><p>They search. Then they inspect.</p><p>That is the intuition behind agentic video understanding.</p><h3>Static video is a computational compromise</h3><p>Video is expensive. A system cannot always preserve full resolution, full frame rate, and full duration inside one model context, so it samples or compresses the visual stream.</p><p>That works remarkably well for many questions. If the task is “summarize this lecture” or “what is the person doing?”, sparse evidence may capture the gist. Slow, large, repeated, visually obvious events are forgiving.</p><p>But some questions are not about the gist. They are about the exact moment.</p><p>Which object crossed first? Did the handoff happen before or after the alarm? Did a decoy approach the boundary without crossing it? Was the small state transition near the end of the stream completed or merely initiated?</p><p>In those cases, the model may be intelligent enough to answer while the representation it receives has already discarded the answer.</p><p>Google’s <a href="https://ai.google.dev/gemini-api/docs/video-understanding#agentic-video-understanding">Gemini video documentation</a> describes the distinction plainly. Static processing — the default — extracts frames at a fixed 1 FPS and places them into context in a single pass. Agentic processing can navigate the timeline dynamically, inspect selected segments or transcripts, and adapt frame rate and resolution to the prompt.</p><p>Static video understanding can therefore feel like watching a 90-minute match through a stack of screenshots. Agentic video understanding can decide when the screenshots are not enough.</p><h3>What “agentic” means here</h3><p>There are two related but distinct ideas in this project.</p><p>The first is an application-managed tool loop. My historical needle-in-a-haystack showcase did this explicitly:</p><ol><li>Scan the video to localize a likely event window.</li><li>Use ffmpeg to extract higher-frame-rate frames around that window.</li><li>Inspect those frames for the exact crossing sequence and tiny IDs.</li><li>Return the answer.</li></ol><p>The second is Gemini’s native public agentic video mode. In the API request, the video input is marked with:</p><p>{<br> “type”: “video”,<br> “uri”: video_file.uri,<br> “mime_type”: video_file.mime_type,<br> “processing”: “agentic”,<br>}</p><p>The response can then expose processing_call and processing_result steps showing that the model actually navigated the video. My final Phase 4 benchmark uses this native treatment. The older hand-built loop remains a useful illustration of the mechanism, but I do not mix its results with the native API benchmark.</p><p>That separation matters. “Agentic” should describe an observed treatment, not merely a label in a config file.</p><h3>The narrow question I wanted to test</h3><p>I wanted a deterministic benchmark for one claim:</p><p><em>Can agentic video processing recover fine-grained event order better than static processing when the decisive evidence is brief, localized, or visually dense?</em></p><p>The task is deliberately simple. Colored objects move toward and across a vertical gate. The model must return the colors in the exact order in which the objects completely cross. Some objects are decoys: they approach the gate but reverse before touching it.</p><p>Synthetic circles are not the real world. They are a measuring instrument.</p><p>Their advantage is exact ground truth. Their danger is that they can become too clean, too regular, and too easy without you noticing.</p><p>And yes, I noticed.</p><h3>The first trap: easy benchmarks feel good</h3><p>The original registered rapid-crossing showcase varied seeds, crossing order, direction, trajectories, and timing. I ran static and agentic modes repeatedly and scored them against per-video ground truth.</p><p>The result looked excellent:</p><p><strong>Registered short controls</strong></p><ul><li>Static: <strong>15/15 exact</strong></li><li>Agentic: <strong>15/15 exact</strong></li></ul><p>The generator worked. The scorer worked. The prompt was parseable. The pipeline was reproducible.</p><p>But as evidence for agentic superiority, the result was useless.</p><p>If both modes get 100 percent, the benchmark has saturated. It may be a good control, but it no longer measures the difference I care about.</p><p>This is an easy way to fool yourself. A clean chart with 100 percent accuracy feels like a result. Sometimes it is only evidence that you wrote an easy exam.</p><h3>The second trap: the benchmark can cheat for you</h3><p>I inspected the generation code and found several possible shortcuts.</p><p>The circles were large. Their lanes were separate. The background was clean. The crossing gaps were generous. There were few objects. Most embarrassingly, some circles carried readable color labels.</p><p>The model might not need serious temporal tracking at all. It could recover the answer from a few convenient frames — or simply read it.</p><p>So I created a harder showcase family with smaller objects, tighter timing, overlap, bidirectional movement, variable speed, similar colors, background noise, and decoys.</p><p>The historical hard showcase produced exactly the kind of result hype does not want:</p><p><strong>Hard showcase variants</strong></p><ul><li>Static: <strong>2/10 exact</strong></li><li>Agentic: <strong>2/10 exact</strong></li></ul><p>That was useful. The benchmark had finally learned to say “no.”</p><p>It also exposed a design problem. Some failures were not temporal failures. The model called magenta “purple” or cyan “teal.” Other errors involved decoys or omitted crossings. A single exact score was mixing color recognition, identity tracking, event detection, and temporal ordering.</p><p>The answer was not to hide the failures. It was to build a cleaner ablation.</p><h3>Phase 4: remove one crutch at a time</h3><p>The final benchmark contains eight deterministic tasks rendered at 640×360 and 30 FPS. Every true crossing is separated by at least two observable source frames. Decoys are mathematically constrained to reverse before their edge touches the gate. Expected lists are checked against the generated crossing times.</p><p>The tasks form an ablation ladder rather than eight interchangeable clips:</p><ul><li><strong>Unlabeled control:</strong> five objects, no printed color names.</li><li><strong>OCR-positive control:</strong> the exact matched control with labels enabled.</li><li><strong>Small/many:</strong> eight objects with an 11-pixel radius.</li><li><strong>Tight timing:</strong> eight crossings separated by 0.08 seconds.</li><li><strong>Overlap:</strong> clustered vertical lanes that reduce spatial shortcuts.</li><li><strong>Bidirectional/variable:</strong> mixed left-to-right and right-to-left motion at different speeds.</li><li><strong>Decoys/grid:</strong> true crossings, non-crossing decoys, and background noise.</li><li><strong>Combined hard:</strong> small objects, overlap, tight timing, bidirectional motion, variable speeds, decoys, and a moving grid.</li></ul><p>For each task, I ran Gemini 3.7 Flash three times in static mode and three times in native agentic mode. That produced <strong>48 unique observations: 24 per mode</strong>.</p><p>All 48 requests completed. There were no timeouts, duplicate cells, or discarded failures.</p><h3>The result: a real separation, not a clean sweep</h3><p>The registered result was:</p><p><strong>Exact accuracy</strong></p><ul><li>Static: <strong>3/24 (12.5%)</strong></li><li>Agentic: <strong>14/24 (58.3%)</strong></li></ul><p><strong>Mean semantic score</strong></p><ul><li>Static: <strong>0.320</strong></li><li>Agentic: <strong>0.893</strong></li></ul><p>Across the 24 matched attempts, agentic scored higher in <strong>19</strong>, tied in <strong>3</strong>, and scored lower in <strong>2</strong>.</p><p>The public API evidence also behaved exactly as intended. All <strong>24/24 agentic responses</strong> exposed matched processing calls and results. Static exposed them in <strong>0/24</strong>. This matters because it verifies that the treatment actually occurred.</p><p>The aggregate number is useful, but the task breakdown is more revealing:</p><ul><li><strong>Unlabeled control:</strong> static 0/3, agentic 3/3.</li><li><strong>OCR-positive control:</strong> static 0/3, agentic 3/3.</li><li><strong>Small/many:</strong> static 0/3, agentic 1/3 exact; agentic semantic mean 0.875.</li><li><strong>Tight timing:</strong> static 0/3, agentic 1/3 exact; agentic semantic mean 0.917.</li><li><strong>Overlap:</strong> static 2/3, agentic 3/3.</li><li><strong>Bidirectional/variable:</strong> static 1/3, agentic 3/3.</li><li><strong>Decoys/grid:</strong> both 0/3 exact, but semantic means were 0.421 static and 0.833 agentic.</li><li><strong>Combined hard:</strong> both 0/3 exact, with essentially identical semantic means of 0.519.</li></ul><p>That last line is important. The combined task found the breaking point.</p><h3>The label-reading suspicion did not survive</h3><p>Removing labels was the most important control because the original showcase made OCR an obvious shortcut.</p><p>The matched pair produced a clean result across all repetitions:</p><p><strong>No labels</strong></p><ul><li>Static: <strong>0/3</strong></li><li>Agentic: <strong>3/3</strong></li></ul><p><strong>Same control with labels</strong></p><ul><li>Static: <strong>0/3</strong></li><li>Agentic: <strong>3/3</strong></li></ul><p>Adding readable text did not repair static performance. Removing it did not erase the agentic advantage.</p><p>This does not prove that labels never help. It rules out the simplest explanation for this particular separation: that agentic merely read the answers printed on the objects.</p><h3>Exact accuracy hides an interesting failure split</h3><p>Agentic had ten non-exact responses. Seven preserved the complete expected order but used an ordinary color alias:</p><ul><li>teal instead of cyan</li><li>pink instead of magenta</li></ul><p>If I normalize those aliases after the fact, agentic becomes <strong>21/24 exact</strong> and static becomes <strong>4/24</strong>.</p><p>That is diagnostically useful. It suggests that much of the remaining error outside the composite task was color vocabulary, not temporal ordering.</p><p>But it is not the registered result.</p><p>The benchmark deliberately tests visual color discrimination as well as order, and changing the grader after seeing the outputs would make the headline easier retroactively. So <strong>14/24 versus 3/24 remains the primary result</strong>. The alias-normalized score belongs in failure analysis, not the title.</p><h3>The task that broke both modes</h3><p>Neither mode solved combined_hard exactly in any of its three attempts.</p><p>In two agentic runs, the model recovered the expected true sequence but inserted false crossings. In the third, it also misordered real events. Static failed differently across runs, including omissions, alias errors, and ordering mistakes.</p><p>This is the result I trust most emotionally, because it prevents the benchmark from becoming a victory lap.</p><p>Agentic processing was much better across the suite. It was not bulletproof. Once overlap, fine timing, bidirectional motion, visual noise, and decoys were combined, its extra inspection was not enough to maintain identity and reject false events reliably.</p><p>That is a more useful research question than “Did the demo work?”</p><h3>The quality gain was not free</h3><p>Google’s documentation reports that agentic video can be <em>up to</em> 88 percent more token-efficient and about 7 percent higher quality on long-form content. “Up to” and “long-form” are doing important work there.</p><p>My short, adversarial fine-motion suite showed a different resource profile.</p><p><strong>Mean provider latency</strong></p><ul><li>Static: <strong>11.452 seconds</strong></li><li>Agentic: <strong>15.376 seconds</strong></li><li>Agentic change: <strong>+34.3%</strong></li></ul><p><strong>Mean total tokens</strong></p><ul><li>Static: <strong>2,470</strong></li><li>Agentic: <strong>9,071</strong></li><li>Agentic usage: <strong>3.67× static</strong></li></ul><p>Agentic was faster in only <strong>7/24 matched attempts</strong> and used fewer total tokens in <strong>0/24</strong>.</p><p>There is a tempting misleading statistic here: ordinary reported input tokens fell from 557 static to 328 agentic. If I stopped there, I could announce a 41 percent input-token saving.</p><p>But total usage tells the opposite story. Agentic responses contained a mean residual of 6,598 tokens after subtracting reported input, output, and thought tokens from the total. That residual appeared with the video-processing operations.</p><p>So I will not turn “lower ordinary input tokens” into “lower cost” or “lower total usage.” On this benchmark, agentic bought substantially better quality with more latency and much higher total-token accounting.</p><p>Different workloads can produce different trade-offs. That is precisely why benchmark-specific denominators matter.</p><h3>A perfect reasoning score can still fail the interface</h3><p>Every response was semantically gradeable. Every response also wrapped its JSON in Markdown fences despite an instruction to return only JSON.</p><p>Strict JSON compliance was therefore:</p><ul><li>Static: <strong>0/24</strong></li><li>Agentic: <strong>0/24</strong></li></ul><p>This is not a video-understanding failure. It is still a product reliability failure.</p><p>If an application expects machine-readable JSON, the client needs schema enforcement or defensive fence stripping. “The model knew the answer” does not help a parser that rejects the payload.</p><p>Keeping semantic accuracy and strict-format accuracy separate prevented a correct-looking benchmark from concealing an integration problem.</p><h3>The historical needle result still matters — carefully</h3><p>Before the native Phase 4 run, the clearest agentic illustration came from my 60-to-90-second needle suite. The crossing event was buried inside a longer clip, the objects carried tiny two-digit IDs, and two crossings in the discriminative clip were only 0.12 seconds apart.</p><p>The hand-built tool loop first localized the event, then extracted higher-frame-rate frames and inspected the sequence directly.</p><p>The result was:</p><ul><li>Static single pass: <strong>2/3 exact</strong></li><li>Application-managed agentic loop: <strong>3/3 exact</strong></li></ul><p>In the failed static case, it inverted the first two events. The explicit loop recovered the exact color and ID order.</p><p>I still think this is a good demonstration of the mechanism: when the answer occupies a tiny region of a longer stream, active inspection can change the outcome.</p><p>But it is a three-clip historical illustration, not the same treatment as native Gemini AVU, and not the primary quantitative claim. Phase 4 now carries that burden.</p><h3>What this benchmark proves — and what it does not</h3><p>The evidence supports a narrow statement:</p><p><em>Across 24 matched attempts on eight deterministic synthetic tracking ablations, Gemini 3.7 Flash agentic video processing achieved 14 exact responses versus 3 for static processing, while incurring 34.3 percent higher mean provider latency and 3.67× mean total-token usage.</em></p><p>It does <strong>not</strong> prove that:</p><ul><li>agentic video understanding is always more accurate;</li><li>agentic mode is faster or cheaper;</li><li>the system resolves sub-frame ordering;</li><li>synthetic circles establish real-world generalization;</li><li>the benchmark proves production readiness;</li><li>a successful seed can stand in for the full denominator.</li></ul><p>At 30 FPS, one frame spans roughly 33 milliseconds. If two events are closer than the source cadence, the video may not contain enough evidence to order them. That is why the generator rejects sub-frame questions and enforces a minimum two-frame separation.</p><p>A hard benchmark should be difficult. It should not be metaphysical.</p><h3>Make the evidence harder to launder</h3><p>The showcase and evaluator now live in one <a href="https://github.com/ashioyajotham/agentic_video_understanding">public repository</a>.</p><p>The polished 960×540 showcase remains the visual front door. The canonical 640×360 Phase 4 generator, task definitions, grader, runner, and reports live beside it. They are deliberately not treated as interchangeable renderers.</p><p>The repository includes:</p><ul><li>the exact 48-row result JSONL;</li><li>generated Markdown and CSV reports;</li><li>SHA-256 checksums;</li><li>deterministic task specifications and generation guardrails;</li><li>a claims ledger separating observed results from suggested interpretations;</li><li>every registered failure, including malformed formatting and the combined-hard misses.</li></ul><p>The frozen Phase 4 evidence is available under <a href="https://github.com/ashioyajotham/agentic_video_understanding/tree/main/results/phase4">`results/phase4`</a>.</p><p>A demo can impress by hiding the denominator. An evaluation earns trust by making the denominator annoying to hide.</p><h3>Where this goes next</h3><p>The most obvious next step is not another harder pile of circles.</p><p>I want to separate temporal order from color naming in the registered metrics, while preserving both. I want more decoy types, more identity cues that are not reducible to color, and natural-video tasks where “crossing the gate” becomes a real event boundary rather than a synthetic one.</p><p>I also want to test whether the public resource trade-off changes with duration. Google positions agentic processing most strongly for long-form retrieval. My Phase 4 suite is short and precision-heavy. A duration ladder — from seconds to minutes — could show where the extra navigation begins to save total usage rather than increase it.</p><p>Finally, strict output reliability deserves its own treatment. A model that solves the visual problem but ignores the response contract is not finished from an application engineer’s perspective.</p><p>The showcase is the front door. The evaluation harness is the lab notebook. They now live together, and the job is to make both harder to fool.</p><h3>Closing thought</h3><p>The temptation with AI demos is to polish the best run and ship the story.</p><p>The more interesting work starts when you try to break your own result.</p><p>My original showcase did something useful, but not enough. The easy clips saturated. The first hard suite broke both modes. The paired OCR control killed the simplest shortcut explanation. The canonical Phase 4 run found a reproducible agentic advantage, a substantial resource penalty, a formatting failure across every response, and a composite task that still broke both modes.</p><p>That is the version worth sharing.</p><p>Not: “Look, the model got 100 percent.”</p><p>Instead: “Here is where static processing fails. Here is where agentic inspection helps. Here is what it costs. Here is where both still break. And here are the source rows.”</p><p>That is less flashy.</p><p>It is also much harder to cook.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e73acb43ad0b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Notebook Cell to Terminal: Running a Mechanistic Interpretability Pipeline with the Google…]]></title>
            <link>https://medium.com/@ashioyajotham/from-notebook-cell-to-terminal-running-a-mechanistic-interpretability-pipeline-with-the-google-d0d0c2a882e5?source=rss-b601a14caab8------2</link>
            <guid isPermaLink="false">https://medium.com/p/d0d0c2a882e5</guid>
            <dc:creator><![CDATA[Victor Ashioya]]></dc:creator>
            <pubDate>Sat, 13 Jun 2026 16:27:12 GMT</pubDate>
            <atom:updated>2026-06-13T16:27:12.025Z</atom:updated>
            <content:encoded><![CDATA[<h3>From Notebook Cell to Terminal: Running a Mechanistic Interpretability Pipeline with the Google Colab CLI</h3><p><em>The CLI is now public and here’s what it changes for researchers running real ML experiments</em></p><h3>The three-liner that started this</h3><p>A few weeks back I was running phase 2a of my CoT faithfulness mechanistic interpretability study — validating probe accuracy, ROC-AUC, and causally implicated circuit components on GPT-2 Small. The setup in Colab looked like this:</p><pre>!git clone https://github.com/ashioyajotham/cot-faithfulness-mech-interp.git<br>%cd cot-faithfulness-mech-interp<br>!pip install -e &quot;.[phase2a]&quot; -q<br>!python phase2/2a_validation/run_all_2a.py --device auto</pre><p>Four lines. Clone the repo, install the phase 2a extras, run the validation script, and let it go. No custom notebook logic — just a shell wrapper wearing a notebook costume.</p><p>When the Google Colab CLI dropped publicly earlier this month, I immediately thought: <em>this is what that cell was always trying to be.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BsyoZYPEf5c2LJ5EWG5szg.png" /></figure><h3>What the Colab CLI actually is</h3><p>The Colab CLI bridges your local terminal directly to a remote Colab runtime. You provision a GPU with one command, push local scripts to run on it, pull artifacts back, and shut it down — all without opening a browser tab.</p><pre>colab new --gpu T4<br>colab exec -f my_script.py<br>colab download results/<br>colab stop</pre><p>It’s agent-ready by design. The repo ships with a COLAB_SKILL.md that gives any terminal-capable agent (Claude Code, Codex, Antigravity, your own LLM scaffolding) immediate context on how to use the CLI. That&#39;s not an afterthought — it&#39;s the primary framing. The compute layer becomes a tool call.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dax3K26avSy2CoAALF0MPg.png" /></figure><h3>Rewriting the pipeline for CLI</h3><p>Here’s what the phase 2a setup looks like as a shell script:</p><pre>#!/bin/bash<br># run_phase2a.sh</pre><pre>git clone <a href="https://github.com/ashioyajotham/cot-faithfulness-mech-interp.git">https://github.com/ashioyajotham/cot-faithfulness-mech-interp.git</a><br>cd cot-faithfulness-mech-interp<br>pip install -e &quot;.[phase2a]&quot; -q<br>python phase2/2a_validation/run_all_2a.py --device auto</pre><p>And the execution from your local terminal:</p><pre>colab new --gpu T4<br>colab exec -f run_phase2a.sh<br>colab download results/<br>colab log --output phase2a_run.ipynb<br>colab stop</pre><p>Five commands. The pipeline runs remotely on a T4. When it finishes, colab download pulls your probe outputs, ROC curves, and circuit component data back locally. colab log gives you a replayable .ipynb of the entire run — so you keep the notebook artifact without ever building a notebook.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OwCGzzKF0B2EVo88xJFG4A.png" /></figure><h3>Why --device auto still makes sense</h3><p>The --device auto flag in the Python script handles GPU vs CPU fallback gracefully. When you provision a T4 via the CLI, it resolves to CUDA automatically. If the runtime doesn&#39;t have a GPU for any reason, it falls back to CPU rather than crashing. Keep that flag in your scripts — the CLI gives you the hardware; your script should still know what to do without it.</p><h3>The agentic angle</h3><p>This is where it gets interesting for anyone building automated ML pipelines.</p><p>Because the CLI is just a terminal tool, any agent with shell access can orchestrate it. The Colab team has leaned into this explicitly — the skill file means you can drop the CLI into a Claude Code or Codex workflow and have the agent handle provisioning, execution, and artifact recovery as part of a larger task graph.</p><p>For interpretability work specifically, that matters. Running a probe training sweep across attention heads or grid-searching steering vector strengths are exactly the kinds of jobs you want to fire off and forget. With the CLI:</p><ul><li>An agent writes the sweep config</li><li>Provisions compute</li><li>Executes the sweep script</li><li>Pulls results</li><li>Shuts down the runtime</li></ul><p>No human in the loop between “start experiment” and “here are your results&quot;. That’s a real change in how you structure research iteration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KMcJnXFO_LdgDntWvZTIog.png" /></figure><h3>A note on reproducibility</h3><p>For safety research specifically, the colab log --output artifact is worth highlighting. You get a replayable .ipynb of the run — not just the outputs, but the full execution trace. For anyone doing mechanistic interpretability work where circuit identification needs to be auditable, that&#39;s useful. Your run is documented even if you never wrote a notebook.</p><h3>Getting started</h3><p>The CLI is public now. Install and setup at: <a href="https://github.com/googlecolab/google-colab-cli">https://github.com/googlecolab/google-colab-cli</a></p><p>If you’re an existing Colab user, you already have access. The README walks through auth and first run. Start with colab new --gpu T4 and colab exec --cmd &quot;echo hello from the remote runtime&quot; to verify the connection before pushing a real workload.</p><p>Note: The CLI currently supports Linux and macOS only. If you’re on Windows, WSL2 is your path in. Native Windows support is tracked in <a href="https://github.com/googlecolab/google-colab-cli/issues/12">this open issue</a>.</p><p><em>I’m a Google Developer Expert in AI and an ML Researcher working on mechanistic interpretability. The CoT faithfulness study referenced here lives at </em><a href="https://github.com/ashioyajotham/cot-faithfulness-mech-interp"><em>github.com/ashioyajotham/cot-faithfulness-mech-interp</em></a><em>. More writing at </em><a href="https://substack.com/"><em>Unsupervised Insights</em></a><em> on Substack.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d0d0c2a882e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vox Populi, Vox Colab]]></title>
            <link>https://medium.com/@ashioyajotham/vox-populi-vox-colab-4cc03e1c6890?source=rss-b601a14caab8------2</link>
            <guid isPermaLink="false">https://medium.com/p/4cc03e1c6890</guid>
            <category><![CDATA[google-colab]]></category>
            <category><![CDATA[vscode-extension]]></category>
            <category><![CDATA[colabsprint]]></category>
            <dc:creator><![CDATA[Victor Ashioya]]></dc:creator>
            <pubDate>Thu, 13 Nov 2025 18:53:49 GMT</pubDate>
            <atom:updated>2025-11-14T05:22:52.378Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A New Era for AI Development in VS Code</em></p><p>From Core i4 crashes to A100 stability — how the new Google Colab extension transforms the data science workflow</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QJwCd9C6XEj9sswt" /><figcaption>Photo by <a href="https://unsplash.com/@derstudi?utm_source=medium&amp;utm_medium=referral">Timon Studler</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>1. Introduction: From Core i4 Crashes to A100 Stability</strong></p><p><strong>1.1 A Personal Journey Through the Evolution of AI Hardware</strong></p><p>The journey of a data scientist is often marked by the evolution of the tools at their disposal. My own path began in an era where the computational demands of machine learning were a significant barrier to entry. I recall the early days, working on a modest <strong>HP Core i4</strong>, a machine that, while sufficient for everyday tasks, was quickly overwhelmed by the rigors of even traditional machine learning models. The frustration of watching the system crash under the weight of a simple neural network or a moderately complex dataset was a common experience for many of us starting out. This was a time before the widespread availability of cloud-based GPUs, and the gap between the theoretical potential of AI and the practical reality of its implementation felt vast. The constant battle against hardware limitations meant that experimentation was slow, and the scope of projects was often constrained not by imagination, but by the physical capabilities of our local machines. This period was a crucible, forging a deep appreciation for the importance of robust computational resources in the field of data science.</p><p>The landscape has since transformed dramatically. The advent of powerful cloud computing platforms and the increasing accessibility of high-end GPUs have democratized the field, allowing researchers and developers to tackle problems that were once considered intractable. The ability to spin up a virtual machine equipped with an<strong> NVIDIA A100</strong>, for instance, a GPU with <strong>80GB of high-bandwidth memory</strong>, and have it running stably in a local development environment is a testament to this progress. This leap in computational power has not only accelerated the pace of research and development but has also opened up new avenues for exploration. The frustration of the early days has been replaced by a sense of empowerment, as the focus can now shift from managing hardware constraints to pushing the boundaries of what is possible with machine learning. This evolution is not just a personal anecdote; it reflects a broader trend in the data science community, where the democratization of powerful tools has fueled a wave of innovation and discovery.</p><p><strong>1.2 The Frustration of Early-Stage Data Science</strong></p><p>The early stages of a data science career are often characterized by a steep learning curve, not just in terms of theoretical knowledge but also in navigating the practical challenges of the craft. For many of us, this included the constant struggle with inadequate hardware. I remember the countless hours spent optimizing code, not for performance, but simply to make it run on a machine that was ill-suited for the task. The process of training a model was often a test of patience, with progress measured in the number of epochs completed before the inevitable system crash. This was a time when the dream of experimenting with large language models or complex computer vision architectures felt like a distant fantasy, reserved for those with access to institutional resources or deep pockets. The frustration was compounded by the knowledge that the algorithms themselves were not the problem; it was the <strong>lack of computational power </strong>that stood between us and our goals.</p><p>This experience is not unique to my own journey. It is a shared memory for a generation of data scientists who cut their teeth on consumer-grade hardware. The constant battle against memory limitations, the endless tweaking of batch sizes, and the strategic use of data sampling were all part of the daily grind. These challenges, while frustrating, also instilled a certain resilience and a deep appreciation for the importance of efficient code and resource management. However, they also created a significant barrier to entry, making it difficult for aspiring data scientists to fully explore their ideas and contribute to the field. The frustration of those early days is a powerful reminder of how far we have come and a testament to the transformative impact of accessible, powerful computational resources.</p><p><strong>1.3 The Leap to Modern Computational Power</strong></p><p>The transition from the limitations of a Core i4 to the capabilities of an A100 represents a <strong>quantum leap in computational power</strong>, a leap that has fundamentally reshaped the landscape of machine learning research and development. The ability to train complex models on massive datasets, to experiment with novel architectures, and to iterate on ideas at a much faster pace has been a game-changer. The A100, with its <strong>80GB of high-bandwidth memory</strong> and specialized Tensor Cores, is not just a faster GPU; it is a tool that enables a new class of research. The stability it provides, the ability to run large models without the constant fear of out-of-memory errors, has been a liberating experience. It has allowed me to focus on the science, on the creative process of designing and refining models, rather than on the mundane task of managing computational resources.</p><p>This leap in power is not just about speed; it is about the scope of what is possible. The ability to train large language models, to work with high-resolution images, and to tackle complex reinforcement learning problems has opened up new frontiers in AI. The A100 has become a workhorse for the AI community, a symbol of the progress we have made and a tool that is driving the next wave of innovation. The experience of using such a powerful piece of hardware is a stark contrast to the frustrations of the early days. It is a reminder of the importance of investing in the right tools and a testament to the power of technology to accelerate human progress. The leap from a Core i4 to an A100 is not just a personal milestone; it is a reflection of the broader evolution of the field, a journey from constraint to empowerment.</p><p><strong>1.4 The Significance of the New Colab Extension for VS Code</strong></p><p>The announcement of the new Google Colab extension for Visual Studio Code is a significant development for the data science community, a development that promises to further bridge the gap between the power of cloud-based computing and the flexibility of a local development environment. This is not just another tool; it is a response to a long-standing need, a need that has been voiced by countless developers and researchers who have longed for a more seamless integration between these two worlds. The ability to leverage the full power of Colab’s computational resources, including its GPUs and TPUs, directly within the familiar and feature-rich environment of VS Code is a game-changer. It is a solution that addresses the pain points of the past, the clunky workarounds and the constant switching between different interfaces.</p><p>The significance of this new extension lies in its potential to streamline the workflow of data scientists and ML engineers. It is a tool that is designed to meet us where we are, to integrate seamlessly into our existing workflows and to enhance our productivity. The ability to connect local notebooks to high-powered Colab runtimes, to switch between local and cloud-based kernels with ease, and to manage environments without the hassle of manual setup is a testament to the power of thoughtful design. This is a tool that has the potential to democratize access to powerful computational resources, to make it easier for aspiring data scientists to get started, and to accelerate the pace of innovation across the field. The new Colab extension for VS Code is more than just a convenience; it is a statement of intent, a commitment to empowering the data science community with the tools it needs to thrive.</p><p><strong>2. The New Colab Extension: Bridging the Gap</strong></p><p><strong>2.1 Announcing the Official Colab Extension for VS Code</strong></p><p>The long-awaited official Google Colab extension for Visual Studio Code has finally arrived, marking a pivotal moment for the data science and machine learning communities. Announced on <strong>November 13, 2025</strong>, this extension is the culmination of years of community feedback and a clear recognition of the need to bridge the gap between two of the most popular tools in the AI development ecosystem . For years, developers have been forced to choose between the powerful, cloud-based computational resources of Google Colab and the rich, customizable development environment of VS Code. This extension eliminates that choice, offering a seamless integration that combines the best of both worlds. It is a direct response to the passion and ingenuity of the community, which has long sought ways to connect these two platforms, as evidenced by the numerous blog posts, forum threads, and GitHub repositories detailing various workarounds.</p><p>The official extension is a <strong>first-party solution from Google</strong>, designed to provide a secure, stable, and deeply integrated experience. It leverages the official VS Code Remote Tunnels to establish a secure connection between the local editor and the Colab runtime, ensuring a reliable and performant workflow. This is a significant step up from the often-fragile and complex workarounds that developers have been using for years. The announcement of this extension is a clear signal from Google that it is listening to the needs of the data science community and is committed to providing the tools that will empower the next generation of AI researchers and developers. It is a move that is sure to be welcomed by the millions of developers who rely on both Colab and VS Code for their daily work.</p><p><strong>2.2 Combining the Strengths of VS Code and Colab</strong></p><p>The new Colab extension for VS Code is a masterclass in synergy, a tool that brings together the unique strengths of two powerful platforms to create a whole that is greater than the sum of its parts. On one hand, we have VS Code, a fast, lightweight, and infinitely adaptable code editor that has become the go-to choice for developers across a wide range of disciplines . Its success is no mystery; it offers a rich ecosystem of extensions, intelligent code completion, powerful debugging capabilities, and seamless integration with version control systems like Git. On the other hand, we have Google Colab, a cloud-based Jupyter Notebook environment that has democratized access to powerful computational resources, making it simple to write and execute code, collaborate with others, and leverage the power of GPUs and TPUs.</p><p>The new extension seamlessly integrates these two worlds, allowing users to continue using the editor they are familiar with while connecting to the high-powered Colab runtimes they rely on. This means that <strong>VS Code users can now access GPUs and TPUs directly from their local editor</strong>, without having to switch to a web-based interface. Conversely, Colab users can now leverage the powerful IDE features of VS Code, including its advanced debugging tools, intelligent code completion, and extensive extension library. This is a win-win for both communities, a tool that enhances the workflow of data scientists and ML engineers by providing a more integrated and efficient development experience. The extension is a testament to the power of collaboration and a clear indication of the direction in which the field is heading.</p><p><strong>2.3 Addressing the Needs of the Data Science Community</strong></p><p>The development of the new Colab extension for VS Code is a direct response to the needs and desires of the data science community, a community that has long been vocal about the need for a more seamless integration between these two essential tools. The passion of the community is evident in the countless blog posts, forum threads, and GitHub repositories that have sprung up over the years, all detailing various workarounds and hacks to connect Colab and VS Code . These efforts, while ingenious, were often complex, fragile, and lacked the polish and stability of a first-party solution. The new extension addresses these pain points head-on, providing a secure, stable, and deeply integrated experience that is designed to meet the needs of the modern data scientist.</p><p>The extension is not just about convenience; it is about <strong>empowering the community to be more productive</strong> and to push the boundaries of what is possible with AI. By providing a more streamlined workflow, the extension frees up valuable time and mental energy that can be better spent on the creative and intellectual challenges of data science. It is a tool that is designed to be inclusive, to make it easier for aspiring data scientists to get started, and to provide a more level playing field for researchers and developers around the world. The development of this extension is a clear signal from Google that it is listening to the voice of the people, the <strong>vox populi</strong>, and is committed to providing the tools that will help the data science community to thrive.</p><p><strong>3. Key Features and Personal Experiences</strong></p><p><strong>3.1 Simultaneous Execution: Local and Colab Runtimes</strong></p><p>One of the most powerful features of the new Colab extension for VS Code is the ability to execute notebook cells on both local and Colab runtimes simultaneously. This is a game-changer for data scientists and ML researchers, as it allows for a more flexible and efficient workflow. Imagine being able to run data preprocessing and exploration on your local machine, where you have full control over the environment and can easily access your local files, while simultaneously training a large-scale model on a powerful Colab GPU. This is the kind of workflow that the new extension enables, a workflow that was previously only possible with complex and often unreliable workarounds.</p><p>The ability to switch between local and Colab kernels with ease is another key feature that enhances productivity. With a simple click, you can choose to execute a cell on your local machine or on a Colab runtime, without having to leave the comfort of your VS Code editor. This is a stark contrast to the old way of doing things, which often involved a clunky and time-consuming process of copying code, switching between browser tabs, and manually managing different environments. The new extension streamlines this process, making it easier than ever to leverage the power of both local and cloud-based resources. This is a feature that is sure to be welcomed by the data science community, a feature that has the potential to significantly accelerate the pace of research and development.</p><p><strong>3.1.1 Running Notebook Cells on Different Kernels</strong></p><p>The new Colab extension for VS Code introduces a paradigm shift in how we interact with notebook kernels, allowing for the <strong>execution of individual cells on different runtimes</strong> with unprecedented ease. This feature is a direct response to the common workflow of data scientists, who often need to leverage both local and cloud-based resources within the same project. For instance, you might want to run data cleaning and visualization tasks on your local machine, where you have direct access to your files and can take advantage of the powerful debugging and introspection features of VS Code. At the same time, you can offload the computationally intensive task of model training to a Colab runtime with a powerful GPU, all within the same notebook.</p><p>The process of switching between kernels is seamless and intuitive. A simple dropdown menu in the VS Code interface allows you to select the desired runtime for each cell, giving you fine-grained control over your computational resources. This is a significant improvement over the traditional workflow, which often involved a cumbersome process of copying and pasting code between different notebooks or environments. The ability to run cells on different kernels not only enhances productivity but also promotes a more modular and organized approach to data science. It allows you to break down your workflow into smaller, more manageable pieces, each of which can be executed on the most appropriate hardware. This is a feature that is sure to become an essential part of the modern data scientist’s toolkit.</p><p><strong>3.1.2 Seamless Switching Between Environments</strong></p><p>The new Colab extension for VS Code makes switching between local and cloud-based environments a breeze, a feature that is sure to be a hit with data scientists and researchers. The extension provides a unified interface for managing both local and Colab runtimes, allowing you to switch between them with a simple click. This is a stark contrast to the old way of doing things, which often involved a complex and time-consuming process of setting up and configuring different environments. The extension handles all of the heavy lifting for you, automatically establishing a secure connection to the Colab runtime and configuring the environment to match your needs.</p><p>The seamless switching between environments is not just about convenience; it is about <strong>enabling a more flexible and efficient workflow</strong>. It allows you to leverage the strengths of both local and cloud-based resources, using your local machine for tasks that require direct file access or a high degree of interactivity, and using the power of the cloud for computationally intensive tasks. This is a workflow that is particularly well-suited to the needs of the modern data scientist, who often has to work with large datasets and complex models. The ability to switch between environments on the fly, without having to interrupt your workflow, is a powerful feature that has the potential to significantly enhance productivity and accelerate the pace of research and development.</p><p><strong>3.2 Simplified Environment Management</strong></p><p>The new Colab extension for VS Code takes the hassle out of environment management, a task that has long been a source of frustration for data scientists and ML engineers. The extension provides a streamlined and intuitive interface for creating and managing Python environments, eliminating the need for manual setup and configuration. This is a significant improvement over the traditional workflow, which often involved a complex and error-prone process of using tools like `venv` or `conda` to create and manage virtual environments. The extension handles all of the heavy lifting for you, automatically creating a new environment for your project and installing the necessary dependencies.</p><p>The simplified environment management is not just about saving time; it is about <strong>reducing the cognitive load on the developer,</strong> allowing them to focus on the more creative and intellectual aspects of data science. The extension provides a consistent and reproducible environment for your projects, ensuring that your code will run the same way every time, regardless of the underlying hardware. This is a crucial feature for ensuring the reproducibility of your research, a cornerstone of the scientific method. The extension also makes it easier to collaborate with others, as you can easily share your environment with your colleagues, ensuring that everyone is working with the same set of tools and dependencies.</p><p><strong>3.2.1 Eliminating the Need for Manual `venv` Setup</strong></p><p>The new Colab extension for VS Code eliminates the need for manual `venv` setup, a task that has long been a rite of passage for Python developers, but also a frequent source of frustration. The traditional process of creating and managing virtual environments using `venv` or `conda` is often a multi-step process that can be both time-consuming and error-prone. It requires a deep understanding of the command line and a careful attention to detail, a cognitive load that can be a significant distraction from the core task of data science. The new extension abstracts away this complexity, providing a simple and intuitive interface for creating and managing environments.</p><p>With the new extension, creating a new environment is as simple as clicking a button. The extension will automatically create a new virtual environment for your project, install the necessary Python version, and set up the environment to match your needs. This is a significant improvement over the traditional workflow, which often involved a series of manual steps that were easy to get wrong. The extension also makes it easier to manage dependencies, as it can automatically install the packages listed in your `requirements.txt` file. This is a feature that is sure to be welcomed by the data science community, a feature that has the potential to significantly enhance productivity and reduce the frustration of environment management.</p><p><strong>3.2.2 Instantiation Process Similar to Native Colab</strong></p><p>The instantiation process for the new Colab extension for VS Code is designed to be as simple and intuitive as the native Colab experience. The extension provides a <strong>one-click solution for connecting to a Colab runtime</strong>, a stark contrast to the complex and often-fragile workarounds that developers have been using for years. The process is seamless and automated, with the extension handling all of the heavy lifting of establishing a secure connection and configuring the environment. This is a significant improvement over the traditional workflow, which often involved a series of manual steps that were easy to get wrong.</p><p>The similarity to the native Colab experience is a key design principle of the new extension. The goal is to provide a familiar and intuitive interface for users who are already comfortable with the Colab workflow, while also providing the powerful features of VS Code. The extension provides a unified interface for managing both local and Colab runtimes, allowing you to switch between them with ease. This is a feature that is sure to be welcomed by the data science community, a feature that has the potential to significantly enhance productivity and streamline the development workflow. The instantiation process is a testament to the power of thoughtful design, a design that is focused on the needs of the user.</p><p><strong>3.3 Enhanced Runtime Management and Startup Times</strong></p><p>The new Colab extension for VS Code offers enhanced runtime management and significantly faster startup times, a feature that is sure to be a boon for data scientists and ML engineers. The extension provides a more efficient and reliable way to connect to Colab runtimes, a stark contrast to the often-slow and unreliable workarounds that developers have been using for years. The extension leverages the official VS Code Remote Tunnels to establish a secure and stable connection, ensuring a fast and responsive experience. This is a significant improvement over the traditional workflow, which often involved a complex and time-consuming process of setting up and configuring a local Jupyter server.</p><p>The faster startup times are a key feature of the new extension. The extension is designed to get you up and running as quickly as possible, with a streamlined and automated process for connecting to a Colab runtime. This is a significant improvement over the traditional workflow, which often involved a series of manual steps that were both time-consuming and error-prone. The extension also provides more efficient resource allocation and management, ensuring that you have the resources you need when you need them. This is a feature that is sure to be welcomed by the data science community, a feature that has the potential to significantly enhance productivity and accelerate the pace of research and development.</p><p><strong>3.3.1 Faster Startup Compared to Traditional Methods</strong></p><p>The new Colab extension for VS Code offers a <strong>significantly faster startup experience </strong>compared to traditional methods of connecting to a Colab runtime. The traditional workflow, which often involved setting up a local Jupyter server and then connecting to it from VS Code, was a multi-step process that could be both time-consuming and frustrating. It required a deep understanding of the command line and a careful attention to detail, a cognitive load that could be a significant distraction from the core task of data science. The new extension abstracts away this complexity, providing a one-click solution for connecting to a Colab runtime.</p><p>The faster startup times are a result of the extension’s use of the official VS Code Remote Tunnels, which provide a more efficient and reliable way to connect to remote servers. The extension also leverages a number of optimizations to reduce the time it takes to establish a connection and configure the environment. This is a significant improvement over the traditional workflow, which often involved a series of manual steps that were easy to get wrong. The faster startup times are a key feature of the new extension, a feature that is sure to be welcomed by the data science community, a feature that has the potential to significantly enhance productivity and streamline the development workflow.</p><p><strong>3.3.2 Efficient Resource Allocation and Management</strong></p><p>The new Colab extension for VS Code provides a more efficient and reliable way to manage computational resources, a feature that is sure to be a boon for data scientists and ML engineers. The extension provides a unified interface for managing both local and Colab runtimes, allowing you to easily monitor and control your resource usage. This is a significant improvement over the traditional workflow, which often involved a complex and time-consuming process of manually managing different environments. The extension also provides a number of features to help you optimize your resource usage, such as the ability to automatically shut down idle runtimes and to set resource limits for your projects.</p><p>The efficient resource allocation and management is not just about saving money; it is about <strong>ensuring that you have the resources you need when you need them</strong>. The extension provides a more reliable and predictable way to access Colab’s computational resources, a stark contrast to the often-unpredictable nature of the free tier of Colab. The extension also makes it easier to scale your resources up or down as needed, allowing you to tackle projects of any size. This is a feature that is sure to be welcomed by the data science community, a feature that has the potential to significantly enhance productivity and accelerate the pace of research and development.</p><p><strong>3.4 State Persistence and Cell Execution</strong></p><p>The new Colab extension for VS Code offers a more robust and reliable approach to state persistence and cell execution, a feature that is crucial for the reproducibility and efficiency of data science workflows. The extension provides a clear and intuitive model for managing the state of your notebook, ensuring that you always know which variables and objects are available in your current session. This is a significant improvement over the traditional Jupyter notebook experience, where the state of the notebook can often be a source of confusion and frustration. The extension also provides a number of features to help you manage the execution of your cells, such as the ability to run cells in a specific order and to easily restart the kernel if needed.</p><p>The state persistence model of the new extension is designed to be both simple and powerful. The extension ensures that the state of your notebook is always consistent with the order in which the cells were executed. This is a crucial feature for ensuring the reproducibility of your research, as it ensures that your code will always produce the same results, regardless of the order in which the cells are run. The extension also provides a number of features to help you manage the state of your notebook, such as the ability to save and restore the state of your session and to easily share your notebook with others. This is a feature that is sure to be welcomed by the data science community, a feature that has the potential to significantly enhance productivity and streamline the development workflow.</p><p><strong>3.4.1 Runtime State Within a Single Session</strong></p><p>The new Colab extension for VS Code provides a clear and intuitive model for managing the runtime state within a single session. The extension ensures that the state of your notebook is always consistent with the order in which the cells were executed. This is a crucial feature for ensuring the reproducibility of your research, as it ensures that your code will always produce the same results, regardless of the order in which the cells are run. The extension also provides a number of features to help you manage the state of your notebook, such as the ability to save and restore the state of your session and to easily share your notebook with others.</p><p>The runtime state model of the new extension is designed to be both simple and powerful. The extension ensures that any variables or objects created in one cell are automatically available in the subsequent cells within the same session. This is a fundamental feature of the Jupyter notebook experience, a feature that is essential for the interactive and exploratory nature of data science. The extension also provides a clear visual indication of the current state of the kernel, so you always know which variables and objects are available. This is a significant improvement over the traditional Jupyter notebook experience, where the state of the notebook can often be a source of confusion and frustration.</p><p><strong>3.4.2 Comparison with Standard Jupyter Notebooks in VS Code</strong></p><p>When comparing the new Colab extension to the standard Jupyter notebook experience in VS Code, the advantages of the integrated approach become clear. While VS Code has long supported Jupyter notebooks through its Python extension, the integration with Colab runtimes takes this to a new level. The table below summarizes the key differences between the two approaches.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O2bRaZzfjmSlWZmwPcvxbQ.png" /></figure><p>This comparison highlights that the choice between the two depends on the user’s specific needs. For projects that require a high degree of privacy, offline access, or a highly customized local environment, the standard Jupyter setup remains a viable option. However, for those who prioritize <strong>ease of use, access to powerful hardware, and a streamlined workflow</strong>, the new Colab extension is a compelling and superior choice. It effectively removes the operational overhead of environment and resource management, allowing data scientists to focus on their core research.</p><p><strong>4. Minor Tradeoffs</strong></p><p><strong>4.1 The Benefits of the Colab Integration</strong></p><p>The integration of Google Colab into VS Code brings a host of tangible benefits that directly address the pain points of modern data science. The most significant advantage is the <strong>seamless fusion of a world-class IDE with on-demand, high-performance computing</strong>. This eliminates the long-standing trade-off between a powerful local development environment and access to scalable cloud resources. For the first time, developers can enjoy the full suite of VS Code’s features — advanced debugging, intelligent code completion, a rich extension ecosystem, and integrated version control — while their code executes on a powerful GPU or TPU in the cloud. This creates a truly hybrid workflow that is both efficient and enjoyable.</p><p>Another major benefit is the <strong>dramatic simplification of environment management</strong>. The days of wrestling with `venv`, `conda`, and dependency conflicts are over. The extension provides a “just works” experience, connecting users to a clean, pre-configured, and reproducible environment in seconds. This not only saves a significant amount of time and frustration but also lowers the barrier to entry for newcomers to the field. Furthermore, the <strong>faster startup times and efficient resource management</strong> provided by the extension are a major productivity boost. The ability to spin up a powerful development environment almost instantaneously allows for a more agile and iterative approach to research, enabling data scientists to quickly prototype ideas and run experiments without the long wait times associated with traditional cloud provisioning.</p><p><strong>4.1.1 Leveraging VS Code’s IDE Features with Colab’s Compute</strong></p><p>The core benefit of this integration is the ability to leverage the best of both worlds. VS Code is not just a text editor; it is a sophisticated Integrated Development Environment (IDE) that has been refined over years of open-source development. Its features are designed to enhance productivity and code quality. With the new extension, these features are no longer confined to local development. You can now use the <strong>powerful VS Code debugger</strong> to step through code running on a remote Colab kernel, inspect variables, and set breakpoints with a level of precision that is impossible in a standard web-based notebook. This is a game-changer for troubleshooting complex models and understanding the flow of data.</p><p>Furthermore, the integration allows you to take full advantage of <strong>VS Code’s vast extension marketplace</strong>. Whether you need a specific linter for your code, a tool for visualizing data, or an integration with a cloud storage service, there is likely an extension for it. These extensions now work seamlessly with your Colab-powered notebooks, creating a highly customized and powerful development environment. The ability to use <strong>Git integration</strong> directly within VS Code, committing changes and managing branches without ever leaving the editor, streamlines the entire development lifecycle. This combination of a top-tier IDE with scalable compute is a powerful force multiplier for any data science or ML project.</p><p><strong>4.1.2 Streamlined Workflow for Data Scientists and ML Engineers</strong></p><p>The new extension fundamentally streamlines the data science workflow by eliminating the friction and context-switching that have long been a source of inefficiency. In the past, a typical workflow might involve developing code in VS Code, copying it to a Colab notebook in a browser, running it on a GPU, and then copying the results back for further analysis. This disjointed process is not only tedious but also prone to errors. The new extension creates a <strong>unified and cohesive workflow</strong> where all of these steps can be performed within a single application. You can write, debug, execute, and version-control your code all from within VS Code, with the computational heavy lifting being done transparently in the cloud.</p><p>This streamlined workflow has a profound impact on productivity and focus. By reducing the cognitive load associated with managing multiple environments and interfaces, the extension frees up mental energy that can be better spent on the creative aspects of research. It allows for a more fluid and iterative process of exploration and experimentation. The ability to seamlessly switch between local and cloud resources also provides a level of flexibility that was previously unattainable. You can use your local machine for light tasks and then instantly scale up to a powerful GPU for intensive training, all without interrupting your flow. This is the kind of workflow that data scientists and ML engineers have been dreaming of for years.</p><p><strong>4.2 Potential Limitations and Areas for Improvement</strong></p><p>While the new Colab extension for VS Code is a significant step forward, it is not without its potential limitations. A balanced perspective requires acknowledging these areas, not as major flaws, but as aspects that users should be aware of and that could be improved in future iterations. The primary limitations revolve around the nature of the remote, cloud-based runtime and the complexities that can arise from a hybrid execution model. These are not insurmountable challenges, but they are trade-offs that come with the benefits of on-demand, scalable computing.</p><p>It is also important to remember that the extension is still a relatively new development. As with any new tool, there may be a period of adjustment as the community adapts to the new workflow and provides feedback for further refinement. The success of the extension will depend not only on its current feature set but also on the responsiveness of the development team to the evolving needs of the data science community. A critical and constructive dialogue will be essential to ensure that the extension continues to evolve in a way that maximizes its value for all users.</p><p><strong>4.2.1 State Management When Toggling Between Kernels</strong></p><p>One potential area of complexity is the management of runtime state when toggling between different kernels within the same notebook. While the ability to run different cells on different machines is a powerful feature, it also introduces a new level of complexity. <strong>Variables and objects created in one kernel’s runtime are not automatically available in another</strong>. This means that if you load a dataset on a local kernel and then switch to a Colab kernel for training, you will need to ensure that the data is also available to the Colab runtime, either by re-loading it or by using a shared data source.</p><p>This requires a more deliberate and organized approach to workflow design. Users will need to think carefully about which tasks should be performed on which kernel and how data and state will be passed between them. While the extension provides the tools to manage this, it places a greater cognitive load on the user to design a coherent and efficient workflow. This is a departure from the traditional notebook model, where the entire session runs on a single kernel with a single, shared state. It is a trade-off for the increased flexibility and power of the hybrid model, but it is a trade-off that users should be aware of.</p><p><strong>4.2.2 Dependency on Internet Connectivity for Colab Runtimes</strong></p><p>A more fundamental limitation is the <strong>inherent dependency on a stable internet connection</strong>. Because the Colab runtime is a remote, cloud-based resource, a continuous connection is required to execute code, view outputs, and interact with the notebook. This means that the extension is not suitable for offline development. If your internet connection is slow, unreliable, or unavailable, you will not be able to use the Colab integration. This is a significant difference from the standard Jupyter setup in VS Code, which can run entirely on a local machine without any internet access.</p><p>This dependency on connectivity can be a limitation in certain situations, such as when traveling, working in areas with poor internet infrastructure, or in organizations with strict network security policies. It also introduces a potential point of failure in the development workflow. A dropped connection could interrupt a long-running training job or cause you to lose your work if it has not been saved. While Google Colab is generally a reliable service, it is not immune to outages or performance issues. This reliance on an external service is a trade-off for the power and convenience of cloud-based computing, and it is a factor that users should consider when deciding whether the new extension is the right tool for their needs.</p><p><strong>5. Conclusion: The Voice of the People, The Voice of Colab</strong></p><p><strong>5.1 Reiterating the Key Advantages of the New Extension</strong></p><p>The new Google Colab extension for VS Code is a landmark development that delivers on a long-held desire of the data science community. Its key advantages are clear and transformative. First, it <strong>seamlessly merges the power of a world-class IDE with the scalability of the cloud</strong>, allowing users to leverage VS Code’s advanced features while executing code on high-performance Colab runtimes. Second, it <strong>radically simplifies environment management</strong>, eliminating the tedious and error-prone process of manual `venv` setup and providing a ready-to-use, pre-configured environment in seconds. Third, it <strong>streamlines the entire development workflow</strong>, reducing friction and context-switching to create a more fluid, efficient, and enjoyable experience for data scientists and ML engineers. These advantages combine to create a powerful tool that has the potential to significantly boost productivity and accelerate innovation across the field.</p><p><strong>5.2 The Impact on the Future of AI Development</strong></p><p>The impact of this new extension on the future of AI development cannot be overstated. It represents a <strong>fundamental shift towards a more integrated and hybrid approach</strong> to building and deploying machine learning models. By breaking down the barriers between local development and cloud-based computation, it empowers a wider range of individuals and organizations to participate in cutting-edge research. The democratization of access to powerful hardware, combined with the ease of use of a streamlined workflow, will lower the barrier to entry for aspiring data scientists and enable established researchers to tackle more ambitious problems. This is a tool that will not only make individual developers more productive but will also foster greater collaboration and accelerate the pace of discovery across the entire AI community.</p><p><strong>5.3 A Call to Action: Embracing the New Workflow</strong></p><p>The release of the official Colab extension for VS Code is a call to action for the data science community to embrace a new and more powerful way of working. The “voice of the people” has been heard, and the result is a tool that is designed to meet our needs and exceed our expectations. I encourage every data scientist and ML engineer who uses VS Code or Colab to try out this new extension. Explore its features, experiment with the hybrid workflow, and experience the productivity gains for yourself. This is more than just a new piece of software; it is an invitation to join a new era of AI development, an era of greater integration, efficiency, and innovation. The future of our field is being shaped by tools like this, and it is up to us to seize the opportunity and push the boundaries of what is possible.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4cc03e1c6890" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Math Matters.]]></title>
            <link>https://medium.com/@ashioyajotham/math-matters-11a9829aeb3e?source=rss-b601a14caab8------2</link>
            <guid isPermaLink="false">https://medium.com/p/11a9829aeb3e</guid>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Victor Ashioya]]></dc:creator>
            <pubDate>Thu, 07 Mar 2024 12:30:13 GMT</pubDate>
            <atom:updated>2024-03-07T12:40:54.408Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UmPalYolQtgZWin9iPsoXg.jpeg" /><figcaption><a href="https://unsplash.com/photos/a-blackboard-with-a-lot-of-writing-on-it-OPpCbAAKWv8">A blackboard with Math equations</a></figcaption></figure><p>There is a concerning trend emerging in the world of AI education — oversimplified bootcamps and courses that trivialize the mathematical foundations essential for true mastery of this field. We must resist this race to the bottom. As AI luminaries and I myself vehemently argue, mathematics is not just important but absolutely indispensable for deeply understanding and building advanced AI systems.</p><p>For those doubting the centrality of mathematics to artificial intelligence, heed the words of Elvis Aravia (founder and lead scientist, DAIR.AI): “Math is fundamental to deeply understanding and building complex AI systems. Not sure why anyone would doubt that.” From his extensive studies culminating in a PhD, Aravia attests that “calculus, linear algebra, trigonometry, probability, statistics, computational maths, etc.” were invaluable — “Not sure what I would do without proper understanding of” these fields.</p><p>As this <a href="https://www.mathmatters.ai/">open letter</a> from AI industry titans forcefully argues, core mathematical disciplines like algebra, calculus, and probability are pivotal drivers of modern AI breakthroughs. While contemporary AI techniques may foster an illusion that traditional math is obsolete, the reality is neural networks, deep learning, and other AI systems are deeply rooted in mathematical principles.</p><p>The algorithmic core of deep learning exemplifies this inextricable math/AI linkage by combining calculus and linear algebra techniques. Vector and matrix operations form the elemental building blocks of neural network architectures. Modeling nonlinear activation functions on logarithmic scales is fundamental to training neural nets. Concepts like trigonometry and Pythagorean identities, far from being “outdated,” enable powerful data science tools like the Fourier transform and least squares optimization algorithms.</p><p>In the words of OpenAI CEO Sam Altman and other luminaries, “mastering fundamentals” in mathematics is far more valuable for AI careers than “shallow familiarity with the latest tools or software.” A strong grounding in mathematical foundations at the high school level optimally prepares students for later specialization in machine learning, data science, or any STEM discipline.</p><p>We must push back firmly against the dangerous trend of boot camps and other programs trivializing the role of mathematics in AI education. Attempting to bypass rigorous math training is extremely short-sighted — it produces practitioners with an impoverished understanding ill-equipped to truly grasp, innovate, and propel AI forward. As I advocate, thorough mastery of mathematical principles is not an obsolete formality, but an essential prerequisite for achieving advanced AI capabilities.</p><p>We must urgently heed the impassioned call from preeminent AI leaders to fortify mathematics instruction across the public education system. Doing so is imperative for cultivating the mathematically literate workforce required to steer the next generation of AI breakthroughs poised to fundamentally reshape society. Math matters — it always has and always will for advanced AI capabilities.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11a9829aeb3e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Policy for Progress: Aligning AGI Systems to Benefit Humanity]]></title>
            <link>https://medium.com/@ashioyajotham/policy-for-progress-aligning-agi-systems-to-benefit-humanity-dbf6dbf9ebee?source=rss-b601a14caab8------2</link>
            <guid isPermaLink="false">https://medium.com/p/dbf6dbf9ebee</guid>
            <category><![CDATA[agi]]></category>
            <category><![CDATA[alignment]]></category>
            <category><![CDATA[policy]]></category>
            <dc:creator><![CDATA[Victor Ashioya]]></dc:creator>
            <pubDate>Mon, 19 Feb 2024 09:35:17 GMT</pubDate>
            <atom:updated>2024-03-07T12:38:46.627Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="https://unsplash.com/photos/a-tree-branch-with-green-leaves-against-a-blue-sky-iTrN4dtENUw?utm_content=creditShareLink&amp;utm_medium=referral&amp;utm_source=unsplash" src="https://cdn-images-1.medium.com/max/1024/1*1Dh4cs6bDZQGXI7ZZuxKnw.jpeg" /><figcaption><a href="https://unsplash.com/photos/a-tree-branch-with-green-leaves-against-a-blue-sky-iTrN4dtENUw?utm_content=creditShareLink&amp;utm_medium=referral&amp;utm_source=unsplash">A tree branch with green leaves against a blue sky</a></figcaption></figure><p>As AI rapidly progresses towards advanced systems with general intelligence rivaling humans, policymakers urgently need to prioritize aligning these AGI systems to human values. Major investments are accelerating AGI timelines, but far less attention goes to the complex challenge of value alignment. This post argues that policymakers must act now to steer AGI progress in an ethical, equitable direction that benefits all of humanity.</p><h3>The Accelerating Pace of AGI Progress</h3><p>Techniques like deep learning and reinforcement learning could achieve human-level AGI within years, according to some experts. For example, OpenAI estimates AGI may arrive this decade and is dedicating resources to their new <a href="https://openai.com/blog/superalignment/">Superalignment</a> project. However, research into aligning AGIs with human values lags far behind.</p><p>The AI safety community has stressed that value alignment is an incredibly complex, multifaceted challenge requiring long-term investigation. Current alignment techniques like RLHF also have limitations in scalability and robustness. If AGI capabilities rapidly outpace solutions for value alignment, this poses catastrophic risks.</p><h4>## Prioritizing Policies for Safe, Beneficial AGI</h4><p>Policymakers have an obligation to urgently address the policy vacuum around emerging AGI capabilities. Regulation and funding should steer AGI progress in an ethical direction benefiting all of humanity.</p><p><em>**Regulation**</em></p><p>— Laws and policies for AGI must encourage beneficial alignment research and development while avoiding unrealistic constraints that deter progress. Accountability frameworks are needed so organizations deploying AGI can manage risks responsibly.</p><ul><li><em>*Funding**</em></li></ul><p>— Government and philanthropic funding are crucial for open research on AGI safety and ethics. This can counterbalance the industry’s focus on capabilities over alignment.</p><p><em>**Inclusion**</em></p><p>— Policy discourse on AGI must include global perspectives, not just Western interests. Collaborative approaches are essential for navigating AGI’s global impacts.</p><p><em>**Foresight**</em></p><p>— Policymakers must take AI safety arguments seriously, even if AGI seems distant. Waiting to act until harm is imminent is too late.</p><p><strong>## Multistakeholder Collaboration Needed</strong></p><p>Safely navigating the transition to widely deployed AGIs requires collaboration between policymakers, industry, researchers, civil society groups, and local communities likely to be impacted. Each brings valuable but incomplete perspectives.</p><p>Combining policy foresight with technical expertise and community interests will maximize the chances of AGIs enhancing rather than diminishing human potential and ethics. But we must begin building effective collaborative governance now before AGIs are ubiquitous.</p><p><em>## Conclusion</em></p><p>In sum, policymakers have an urgent duty to prioritize beneficial AGI today. With strategic policies and multi-stakeholder collaboration, we can work towards optimistic visions of AGIs assisting humanity. But progress requires recognizing AGI safety and ethics as the paramount policy issues of our time. We must act swiftly and intentionally to steer the future of AGI towards benefiting humanity as a whole.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dbf6dbf9ebee" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>