<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Luis Leonel Mejia Romero</title>
    <description>The latest articles on DEV Community by Luis Leonel Mejia Romero (@leonel59).</description>
    <link>https://dev.to/leonel59</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4231545%2F94cef19f-c018-42db-90ee-0aff291c68bf.jpg</url>
      <title>DEV Community: Luis Leonel Mejia Romero</title>
      <link>https://dev.to/leonel59</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/leonel59"/>
    <language>en</language>
    <item>
      <title>I built LLM-Surgeon: A Zero-Dependency CLI combining CanIRun.ai + Artificial Analysis + llmfit for Local AI Hardware Diagnostics</title>
      <dc:creator>Luis Leonel Mejia Romero</dc:creator>
      <pubDate>Sat, 07 Nov 2026 06:06:33 +0000</pubDate>
      <link>https://dev.to/leonel59/i-built-llm-surgeon-a-zero-dependency-cli-combining-canirunai-artificial-analysis-llmfit-for-3mag</link>
      <guid>https://dev.to/leonel59/i-built-llm-surgeon-a-zero-dependency-cli-combining-canirunai-artificial-analysis-llmfit-for-3mag</guid>
      <description>&lt;p&gt;Running local LLMs via &lt;strong&gt;Ollama&lt;/strong&gt;, &lt;strong&gt;LM Studio&lt;/strong&gt;, or &lt;strong&gt;llama.cpp&lt;/strong&gt; usually starts with the same guessing game: &lt;em&gt;"Will this 30B MoE or 14B dense model actually fit in my VRAM at 16K context, or will Windows quietly spill layers into system RAM and tank my speed from 55 tok/s to 4 tok/s?"&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;To solve this with actual hardware telemetry and GQA KV-Cache math, I built &lt;strong&gt;LLM-Surgeon v2.0&lt;/strong&gt; — a zero-dependency, 100% offline CLI tool for Windows, Linux, and macOS.&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/Leonel59" rel="noopener noreferrer"&gt;
        Leonel59
      &lt;/a&gt; / &lt;a href="https://github.com/Leonel59/LLM-SURGEON" rel="noopener noreferrer"&gt;
        LLM-SURGEON
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Surgical local AI hardware diagnostic CLI, GQA KV-Cache physics simulator &amp;amp; real-time token benchmark. Inspired by CanIRun.ai + Artificial Analysis + llmfit (0 npm deps, 0 telemetry).
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;[LLM-SURGEON v2.0] // Surgical Local AI Hardware Diagnostic &amp;amp; Inference Physics CLI&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;&lt;a href="https://github.com/Leonel59/LLM-SURGEON/actions" rel="noopener noreferrer"&gt;&lt;img src="https://github.com/Leonel59/LLM-SURGEON/actions/workflows/security-ci.yml/badge.svg" alt="Security &amp;amp; Zero-Trust Audit"&gt;&lt;/a&gt;
&lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/f116fceb537f7eb5dbc196b25227d3904c1af5368adf19fcd523fc32ac845ac3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446570656e64656e636965732d30253230283130302532352532304e61746976652532304e6f64652e6a73292d627269676874677265656e"&gt;&lt;img src="https://camo.githubusercontent.com/f116fceb537f7eb5dbc196b25227d3904c1af5368adf19fcd523fc32ac845ac3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446570656e64656e636965732d30253230283130302532352532304e61746976652532304e6f64652e6a73292d627269676874677265656e" alt="Zero Dependencies"&gt;&lt;/a&gt;
&lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/82a29a04e318fdafa3701cc71d00166b1d968617abbb081a3fe50a2588a9111f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54656c656d657472792d30253230283130302532352532304f66666c696e652532302532462532304c6f63616c292d626c7565"&gt;&lt;img src="https://camo.githubusercontent.com/82a29a04e318fdafa3701cc71d00166b1d968617abbb081a3fe50a2588a9111f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54656c656d657472792d30253230283130302532352532304f66666c696e652532302532462532304c6f63616c292d626c7565" alt="Zero Telemetry"&gt;&lt;/a&gt;
&lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/806321d46a1cdc3de96ef1928771983b9bf0a9b600ce397176d1e5edb18c9e0b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53656375726974792d4357452d2d3738253230496d6d756e652532302537432532304e6f2d2d5049492d73756363657373"&gt;&lt;img src="https://camo.githubusercontent.com/806321d46a1cdc3de96ef1928771983b9bf0a9b600ce397176d1e5edb18c9e0b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53656375726974792d4357452d2d3738253230496d6d756e652532302537432532304e6f2d2d5049492d73756363657373" alt="Security Verified"&gt;&lt;/a&gt;
&lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/51623120b7be43353bf1d48ea78f3de6136e396e382d5acf60950ab89f4cf58b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f42656e63686d61726b732d4172746966696369616c253230416e616c797369732532302854696e79253230253743253230536d616c6c2532302537432532304d656469756d2532302537432532304c61726765292d6f72616e6765"&gt;&lt;img src="https://camo.githubusercontent.com/51623120b7be43353bf1d48ea78f3de6136e396e382d5acf60950ab89f4cf58b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f42656e63686d61726b732d4172746966696369616c253230416e616c797369732532302854696e79253230253743253230536d616c6c2532302537432532304d656469756d2532302537432532304c61726765292d6f72616e6765" alt="Artificial Analysis"&gt;&lt;/a&gt;
&lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/e58730d020492db08c1308831aeae5f9aa26714713b2381b7aceb48ff22a8982/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506c6174666f726d2d57696e646f77732532302537432532304c696e75782532302537432532306d61634f532d6c6967687467726579"&gt;&lt;img src="https://camo.githubusercontent.com/e58730d020492db08c1308831aeae5f9aa26714713b2381b7aceb48ff22a8982/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506c6174666f726d2d57696e646f77732532302537432532304c696e75782532302537432532306d61634f532d6c6967687467726579" alt="Platform"&gt;&lt;/a&gt;
&lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/8174925d009b42074d50ab5cc7e29fcb1aa613b0d9cb2e43097697a40cf90fa4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f77"&gt;&lt;img src="https://camo.githubusercontent.com/8174925d009b42074d50ab5cc7e29fcb1aa613b0d9cb2e43097697a40cf90fa4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f77" alt="License MIT"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;LANGUAGE NAVIGATION // NAVEGACION DE IDIOMA:&lt;/strong&gt;
&lt;strong&gt;[ &lt;a href="https://github.com/Leonel59/LLM-SURGEON#english-documentation" rel="noopener noreferrer"&gt;ENGLISH DOCUMENTATION&lt;/a&gt; ]&lt;/strong&gt; &lt;code&gt;::&lt;/code&gt; &lt;strong&gt;[ &lt;a href="https://github.com/Leonel59/LLM-SURGEON#documentacion-en-espanol" rel="noopener noreferrer"&gt;DOCUMENTACION EN ESPANOL&lt;/a&gt; ]&lt;/strong&gt; &lt;code&gt;::&lt;/code&gt; &lt;strong&gt;[ &lt;a href="https://github.com/Leonel59/LLM-SURGEON/./README.es.md" rel="noopener noreferrer"&gt;STANDALONE ESPANOL (README.es.md)&lt;/a&gt; ]&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;div class="snippet-clipboard-content notranslate position-relative overflow-auto"&gt;&lt;pre class="notranslate"&gt;&lt;code&gt;  ╔════════════════════════════════════════════════════════════════════════════════════════════════════════╗
  ║   ██╗     ██╗     ███╗   ███╗      ███████╗██╗   ██╗██████╗  ██████╗ ███████╗ ██████╗ ███╗   ██╗       ║
  ║   ██║     ██║     ████╗ ████║      ██╔════╝██║   ██║██╔══██╗██╔════╝ ██╔════╝██╔═══██╗████╗  ██║       ║
  ║   ██║     ██║     ██╔████╔██║█████╗███████╗██║   ██║██████╔╝██║  ███╗█████╗  ██║   ██║██╔██╗ ██║       ║
  ║   ██║     ██║     ██║╚██╔╝██║╚════╝╚════██║██║   ██║██╔══██╗██║   ██║██╔══╝  ██║   ██║██║╚██╗██║       ║
  ║   ███████╗███████╗██║ ╚═╝ ██║      ███████║╚██████╔╝██║  ██║╚██████╔╝███████╗╚██████╔╝██║ ╚████║       ║
  ║   ╚══════╝╚══════╝╚═╝     ╚═╝      ╚══════╝ ╚═════╝ ╚═╝  ╚═╝ ╚═════╝ ╚══════╝ ╚═════╝ ╚═╝  ╚═══╝       ║
  ╠════════════════════════════════════════════════════════════════════════════════════════════════════════╣
  ║ SURGICAL HARDWARE TELEMETRY, GQA KV-CACHE PHYSICS &amp;amp; REAL-TIME LOCAL AI DIAGNOSTIC ENGINE v2.0          ║
  ║ Inspired by CanIRun.ai + ArtificialAnalysis.ai + llmfit.org (Curated by sections, zero model bloat)    ║
  ║ [ SECURE ZERO-TRUST ] 0 NPM Dependencies :: 0 External Telemetry :: 100% Read-Only :: Auto PII-Redact  ║
  ╚════════════════════════════════════════════════════════════════════════════════════════════════════════╝
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;[PART&lt;/h1&gt;…&lt;/div&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/Leonel59/LLM-SURGEON" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;





&lt;h2&gt;
  
  
  Quick Start (One-Line Command)
&lt;/h2&gt;

&lt;p&gt;Requires &lt;strong&gt;Node.js &amp;gt;= 18&lt;/strong&gt; (&lt;code&gt;0&lt;/code&gt; external npm dependencies):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/Leonel59/LLM-SURGEON.git
&lt;span class="nb"&gt;cd &lt;/span&gt;LLM-SURGEON
npm &lt;span class="nb"&gt;link
&lt;/span&gt;llm-surgeon
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Why I Built It (Standing on the Shoulders of Giants)
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;LLM-Surgeon&lt;/strong&gt; was inspired by three awesome tools in the local AI ecosystem, combining their best ideas while solving their blind spots:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://canirun.ai/" rel="noopener noreferrer"&gt;CanIRun.ai&lt;/a&gt;:&lt;/strong&gt; Amazing visual clarity and practical section-based recommendations, but because it runs inside a web browser sandbox, it cannot inspect your &lt;strong&gt;real free VRAM&lt;/strong&gt;, detect background &lt;strong&gt;WDDM processes&lt;/strong&gt; eating 1.5 GB+ of GPU memory, or detect &lt;strong&gt;iGPU UMA RAM reservations&lt;/strong&gt; on laptops.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://artificialanalysis.ai/models/open-source" rel="noopener noreferrer"&gt;Artificial Analysis&lt;/a&gt;:&lt;/strong&gt; The gold standard for open-weights intelligence benchmarks across &lt;strong&gt;Tiny (&lt;code&gt;&amp;lt;=4B&lt;/code&gt;)&lt;/strong&gt;, &lt;strong&gt;Small (&lt;code&gt;4B-40B&lt;/code&gt;)&lt;/strong&gt;, &lt;strong&gt;Medium (&lt;code&gt;40B-150B&lt;/code&gt;)&lt;/strong&gt;, and &lt;strong&gt;Large (&lt;code&gt;&amp;gt;150B&lt;/code&gt;)&lt;/strong&gt; parameter tiers. &lt;strong&gt;LLM-Surgeon&lt;/strong&gt; crosses the Artificial Analysis Progress Index directly against your physical GPU + Dual-Channel DDR5/DDR4 bandwidth.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://www.llmfit.org/" rel="noopener noreferrer"&gt;llmfit&lt;/a&gt;:&lt;/strong&gt; Great terminal ergonomics (&lt;code&gt;llm-surgeon&lt;/code&gt; runs from anywhere just like &lt;code&gt;llmfit&lt;/code&gt;), but instead of dumping an overwhelming flat list of ~500 raw models, &lt;strong&gt;LLM-Surgeon&lt;/strong&gt; organizes 28 SOTA models into &lt;strong&gt;7 curated diagnostic sections&lt;/strong&gt; with 4K-to-32K KV-Cache degradation curves and an interactive simulation lab.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Real Terminal Screenshots (2K Native)
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Biometric Hardware Scanner &amp;amp; WDDM VRAM Vampire Detection
&lt;/h3&gt;

&lt;p&gt;Queries NVML (&lt;code&gt;nvidia-smi&lt;/code&gt;), CPU vector extensions (&lt;code&gt;AVX-512&lt;/code&gt; / &lt;code&gt;AVX2&lt;/code&gt;), Dual-Channel RAM topology, iGPU UMA hardware reservation, and lists exact background processes stealing VRAM:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa3f7tdd3jaokcmevowss.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa3f7tdd3jaokcmevowss.png" alt="ASCII Biometric Scanner and Hardware Radiography" width="799" height="430"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Section-Based SOTA Diagnostic Cards (4K-to-32K Context Curves)
&lt;/h3&gt;

&lt;p&gt;Instead of a flat table of 500 models, it diagnoses the 28 best open-source models across 7 curated sections, showing segmented VRAM bars (&lt;code&gt;Weights + KV-Cache + Buffer&lt;/code&gt;), context degradation from &lt;code&gt;4K&lt;/code&gt; to &lt;code&gt;32K&lt;/code&gt;, and exact &lt;code&gt;ollama run&lt;/code&gt; / &lt;code&gt;llama-cli&lt;/code&gt; flags:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftbv59vij6inxdclu69as.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftbv59vij6inxdclu69as.png" alt="Section-Based SOTA Diagnostic Cards" width="800" height="428"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Artificial Analysis Leaderboard Crossed With Your Exact PC
&lt;/h3&gt;

&lt;p&gt;Crosses the Artificial Analysis Progress Index (&lt;code&gt;Nanbeige 4.3-33B&lt;/code&gt;, &lt;code&gt;Qwen 3.6 27B&lt;/code&gt;, &lt;code&gt;K2 Horizon MoVA 36B-A4B&lt;/code&gt;, &lt;code&gt;Qwen 3.6 35B-A3B&lt;/code&gt;, &lt;code&gt;K2 Horizon 7B&lt;/code&gt;, &lt;code&gt;Gemma 4 31B&lt;/code&gt;, &lt;code&gt;Kimi K3.1 Pro&lt;/code&gt;, &lt;code&gt;DeepSeek V4.1 Flash&lt;/code&gt;) with your real GPU + RAM bandwidth:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzhrfz5zztukgjdbjzxgn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzhrfz5zztukgjdbjzxgn.png" alt="Artificial Analysis Leaderboard Crossed With Your Specs" width="800" height="428"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Interactive Laboratory &amp;amp; Live Token Cadence Simulator (&lt;code&gt;1 vs 13&lt;/code&gt; Duel Mode)
&lt;/h3&gt;

&lt;p&gt;Want to &lt;em&gt;feel&lt;/em&gt; the difference between &lt;code&gt;59.6 tok/s&lt;/code&gt; (100% GPU VRAM) and &lt;code&gt;24.6 tok/s&lt;/code&gt; (Hybrid MoE GPU + DDR5) before downloading 20 GB of weights? Type &lt;code&gt;1 vs 13&lt;/code&gt; in the interactive lab to watch both models stream side-by-side at their exact physical cadence, or press &lt;code&gt;[r]&lt;/code&gt; to benchmark your already-downloaded local Ollama / LM Studio models in real time:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8ymft7o9bjn1fpchpuq2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8ymft7o9bjn1fpchpuq2.png" alt="Interactive Laboratory and Token Cadence Simulator" width="800" height="430"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Zero-Trust Security Architecture
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;0 External NPM Dependencies:&lt;/strong&gt; 100% native Node.js (&lt;code&gt;node:child_process&lt;/code&gt;, &lt;code&gt;node:os&lt;/code&gt;, &lt;code&gt;node:crypto&lt;/code&gt;, &lt;code&gt;node:test&lt;/code&gt;). Immune to supply-chain attacks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CWE-78 Command Injection Immunity:&lt;/strong&gt; Zero &lt;code&gt;execSync&lt;/code&gt; or shell interpolation (&lt;code&gt;shell: false&lt;/code&gt; strictly enforced via &lt;code&gt;execFileSync&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Loopback-Only Firewall (&lt;code&gt;127.0.0.1&lt;/code&gt;):&lt;/strong&gt; Cannot make external internet requests.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Automatic PII Redaction:&lt;/strong&gt; OS usernames and home paths are scrubbed before rendering or exporting &lt;code&gt;DIAGNOSTICO-QUIRURGICO-IA.md&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Star or fork the repository on GitHub if you find it useful, and let me know what GPU/RAM combo you test it on!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub Repository:&lt;/strong&gt; &lt;a href="https://github.com/Leonel59/LLM-SURGEON" rel="noopener noreferrer"&gt;https://github.com/Leonel59/LLM-SURGEON&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>javascript</category>
      <category>cli</category>
    </item>
  </channel>
</rss>
