<?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: Hocine Benkelaya</title>
    <description>The latest articles on DEV Community by Hocine Benkelaya (@benkelaya).</description>
    <link>https://dev.to/benkelaya</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%2F3388859%2F7f22af3e-cdff-4a71-9a58-b56646e96011.jpg</url>
      <title>DEV Community: Hocine Benkelaya</title>
      <link>https://dev.to/benkelaya</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/benkelaya"/>
    <language>en</language>
    <item>
      <title>NeuroBrix, the Swiss Army knife of AI inference: every inference trick, one engine, your GPU</title>
      <dc:creator>Hocine Benkelaya</dc:creator>
      <pubDate>Tue, 01 Dec 2026 09:58:08 +0000</pubDate>
      <link>https://dev.to/benkelaya/neurobrix-the-swiss-army-knife-of-ai-inference-every-inference-trick-one-engine-your-gpu-2o1k</link>
      <guid>https://dev.to/benkelaya/neurobrix-the-swiss-army-knife-of-ai-inference-every-inference-trick-one-engine-your-gpu-2o1k</guid>
      <description>&lt;p&gt;&lt;strong&gt;NeuroBrix — the Swiss Army knife of AI inference.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Most inference engines are built for one family of models. A chat engine runs chat models. An image pipeline runs image models. Speech needs another tool, video yet another, and each brings its own stack of dependencies.&lt;/p&gt;

&lt;p&gt;We set out to build one engine for all of them. Today NeuroBrix runs &lt;strong&gt;54 open models&lt;/strong&gt;: chat and code, vision-language, multimodal, image, video, text-to-speech, speech-to-text and upscaling. They all run from the same container format, with the same command line, on your own hardware.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install neurobrix
neurobrix import &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;org&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;model&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
neurobrix run --model &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;model&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; --prompt &lt;span class="s2"&gt;"..."&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is the story of how we built it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Every inference trick, one engine
&lt;/h2&gt;

&lt;p&gt;Fourteen techniques, in one engine, behind one command:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Paged KV cache.&lt;/strong&gt; The decode cache lives in pages, with a paged-KV decode kernel.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fused kernels.&lt;/strong&gt; Fused RMSNorm and paged-KV decode: one pass where it took several.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CUDA graphs.&lt;/strong&gt; On one NVIDIA card, decode replays as CUDA graphs by default.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mixture-of-experts routing.&lt;/strong&gt; Large MoE models such as Qwen3-30B-A3B run on both engines.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Linear attention (Gated DeltaNet).&lt;/strong&gt; Qwen3.8-27B is a hybrid: 48 Gated-DeltaNet layers and 16 full-attention layers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multi-GPU placement.&lt;/strong&gt; A model too big for one card is spread across several.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Host-RAM streaming with prefetch.&lt;/strong&gt; When the cards are not enough, weights stream from pinned host memory.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pre-measured kernel tables.&lt;/strong&gt; 28,243 certified entries on NVIDIA V100 and 25,280 on Apple M4 Pro: no tuning wait at first launch.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero-PyTorch Triton.&lt;/strong&gt; Our own engine on nbxtensor, with no PyTorch at all.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Apple Metal.&lt;/strong&gt; The Triton engine runs on Apple Silicon GPUs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;OpenAI-compatible serving.&lt;/strong&gt; &lt;code&gt;neurobrix serve --http&lt;/code&gt;, so your existing clients just work.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auto model swap.&lt;/strong&gt; Ask the server for another model, and it swaps for you. &lt;code&gt;--keep-alive&lt;/code&gt; frees GPU memory when you are idle.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Grammar-constrained decoding.&lt;/strong&gt; nbxgrammar, in Rust, turns a JSON Schema or a tool-call format into a token mask: the model can only write what the schema allows.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Two engines that check each other.&lt;/strong&gt; PyTorch and our Triton engine run the same container. Devstral gives the same JSON and the same tool calls on both; Qwen3.8 gives the same answers on both.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  One container per model
&lt;/h2&gt;

&lt;p&gt;Every model ships as one &lt;code&gt;.nbx&lt;/code&gt; container. It holds the model's execution graph, its weights and the configuration it needs. The engine reads the container and runs it. There is no per-model script and no glue code between components.&lt;/p&gt;

&lt;p&gt;Containers state their format version (0.2 for the whole catalogue), and the engine checks it. When something is missing, the engine stops and names it. It never guesses with another model's defaults. That rule made the engine slower to build, and it is why it is predictable to use.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two engines, one of them ours
&lt;/h2&gt;

&lt;p&gt;NeuroBrix runs every model on two engines:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a &lt;strong&gt;PyTorch engine&lt;/strong&gt;, the reference everyone knows;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;our own Triton engine&lt;/strong&gt;, with &lt;strong&gt;zero PyTorch&lt;/strong&gt;. It runs on &lt;strong&gt;nbxtensor&lt;/strong&gt;, our tensor library: tensors, Triton kernels, planned memory, and kernel settings certified per GPU class.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Two engines are more work than one, and that is the point. Each one checks the other. A model counts as validated only when its output has been judged on both: we read the chat answer, look at the image, listen to the audio.&lt;/p&gt;

&lt;p&gt;The two engines agree where it matters for tools: &lt;strong&gt;Devstral Small 2 24B produces the same structured JSON and the same tool calls on both engines, and Qwen3.8-27B gives the same answers on both.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Zero PyTorch, full speed
&lt;/h2&gt;

&lt;p&gt;Building our own engine was a bet that it could be fast, not only light. On language models it paid off. Every pair below is the same GPU, the same model and the same settings, and both runs were judged correct, measured in our benchmark register:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;model&lt;/th&gt;
&lt;th&gt;hardware&lt;/th&gt;
&lt;th&gt;PyTorch&lt;/th&gt;
&lt;th&gt;our Triton engine&lt;/th&gt;
&lt;th&gt;gain&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;granite-3.1-1b&lt;/td&gt;
&lt;td&gt;1x V100&lt;/td&gt;
&lt;td&gt;7.63 tok/s&lt;/td&gt;
&lt;td&gt;30.1 tok/s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;3.9x&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TinyLlama-1.1B&lt;/td&gt;
&lt;td&gt;1x V100&lt;/td&gt;
&lt;td&gt;14.3 tok/s&lt;/td&gt;
&lt;td&gt;47.5 tok/s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;3.3x&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Devstral-Small-2 24B&lt;/td&gt;
&lt;td&gt;4x V100&lt;/td&gt;
&lt;td&gt;0.77 tok/s&lt;/td&gt;
&lt;td&gt;1.29 tok/s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1.7x&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Qwen3-30B-A3B&lt;/td&gt;
&lt;td&gt;4x V100&lt;/td&gt;
&lt;td&gt;1.99 tok/s&lt;/td&gt;
&lt;td&gt;2.69 tok/s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1.35x&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Z-Image-Turbo, 1024x1024 image&lt;/td&gt;
&lt;td&gt;2x V100&lt;/td&gt;
&lt;td&gt;122 s&lt;/td&gt;
&lt;td&gt;96 s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1.27x&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;On language models, our zero-Torch Triton path generates &lt;strong&gt;up to 3.9x faster than PyTorch on the same GPU&lt;/strong&gt;. Z-Image-Turbo makes a 1024x1024 image faster too: 96 s against 122 s, and 71 s against 94 s with a long prompt.&lt;/p&gt;

&lt;p&gt;Where does the speed come from? From work at every layer:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Paged KV cache.&lt;/strong&gt; The decode cache lives in pages, and nbxtensor ships a paged-KV decode kernel.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fused kernels.&lt;/strong&gt; Fused RMSNorm and paged-KV decode kernels do in one pass what took several.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CUDA graphs.&lt;/strong&gt; A language model served on one NVIDIA card replays its decode as CUDA graphs by default, with the same answer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Async copies.&lt;/strong&gt; A pinned host memory pool, async copy streams and events keep the GPU fed.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Bigger than your GPU? It still runs
&lt;/h2&gt;

&lt;p&gt;A model does not have to fit on your card. Prism, the engine's planner, reads the model's weights, sizes the job against the GPUs actually present, and picks the placement:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;on &lt;strong&gt;one card&lt;/strong&gt; when it fits;&lt;/li&gt;
&lt;li&gt;spread across &lt;strong&gt;several cards&lt;/strong&gt; when it does not;&lt;/li&gt;
&lt;li&gt;streamed from &lt;strong&gt;pinned host memory&lt;/strong&gt;, with prefetch, when the cards are not enough.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You do not configure it. Qwen3.8-27B, a hybrid model with 48 Gated-DeltaNet linear-attention layers and 16 full-attention layers, runs on both engines this way.&lt;/p&gt;

&lt;h2&gt;
  
  
  No tuning wait at first launch
&lt;/h2&gt;

&lt;p&gt;GPU kernels need settings that depend on the exact card and the exact tensor shape. Most engines find them while you wait. We measured them ahead of time, on real hardware, for every certifiable shape of the catalogue:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;NVIDIA V100:&lt;/strong&gt; 28,243 certified entries.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Apple M4 Pro:&lt;/strong&gt; 25,280 certified entries.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Every certified setting carries the version of the library it was proven with. A table from another version is proven again, never mixed. On those machines, a model starts without an autotuning pause.&lt;/p&gt;

&lt;h2&gt;
  
  
  Your hardware, your system
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;NVIDIA on Linux:&lt;/strong&gt; both engines.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Apple Silicon:&lt;/strong&gt; the Triton engine runs on the GPU through Metal. 36 models are already validated on both engines on an M4 Pro, and the others are being validated.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Windows:&lt;/strong&gt; the PyTorch engine.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Serving:&lt;/strong&gt; &lt;code&gt;neurobrix serve --http&lt;/code&gt; speaks the OpenAI API, so your existing clients work against it. It swaps models when you ask for another one, and &lt;code&gt;--keep-alive&lt;/code&gt; frees GPU memory when you are idle.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What comes next on the same engine
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;NBX Code&lt;/strong&gt; (coming soon): a coding agent that runs on your own machine, with your own GPU. It reads your project, edits files and runs commands inside a sandbox, talking to a model served locally by NeuroBrix. Your code stays on your machine. github.com/NeuroBrix/nbx-code&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;NeuroBrix Studio&lt;/strong&gt; (in development): the desktop app for running models without a terminal, on Linux, Windows and macOS. Chat, image, video, audio and code, in English, French, Arabic and Spanish. github.com/NeuroBrix/neurobrix-studio&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Your GPU deserves better
&lt;/h2&gt;

&lt;p&gt;54 models. One command. From your desk, not the cloud.&lt;/p&gt;

&lt;h2&gt;
  
  
  We worked hard, and it paid off
&lt;/h2&gt;

&lt;p&gt;None of this came from one big idea. It came from measuring instead of guessing, kernel by kernel and model by model. It came from refusing to call a model ready from a log line, and from building a second engine to keep the first one honest.&lt;/p&gt;

&lt;p&gt;The result is an engine that runs 54 open models on the hardware you already own, with or without PyTorch. &lt;strong&gt;Zero PyTorch. Full speed.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;NeuroBrix — the Swiss Army knife of AI inference.&lt;/strong&gt; Run any open model on the hardware you already own.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install neurobrix
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Code, documentation and release notes: &lt;a href="https://github.com/NeuroBrix/neurobrix" rel="noopener noreferrer"&gt;https://github.com/NeuroBrix/neurobrix&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;More models are coming. Open source — every contribution is welcome. Like, share, star.&lt;/p&gt;

&lt;p&gt;⭐ If you like it, star us: github.com/NeuroBrix/neurobrix&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>python</category>
      <category>gpu</category>
    </item>
    <item>
      <title>What we found, what is fixed, and what is still on the bench</title>
      <dc:creator>Hocine Benkelaya</dc:creator>
      <pubDate>Sun, 22 Nov 2026 19:22:14 +0000</pubDate>
      <link>https://dev.to/benkelaya/what-we-found-what-is-fixed-and-what-is-still-on-the-bench-5b83</link>
      <guid>https://dev.to/benkelaya/what-we-found-what-is-fixed-and-what-is-still-on-the-bench-5b83</guid>
      <description>&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%2F8wl1am543nhyq3143j6i.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%2F8wl1am543nhyq3143j6i.png" alt="A workbench at night: an open graphics card under a lamp. Made with NeuroBrix: Sana 1600M." width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Made with NeuroBrix: every picture in this article was drawn by Sana 1600M, running as a .nbx container on one 16 GB V100.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;People have run our last published release on machines we do not own. One of them opened &lt;a href="https://github.com/NeuroBrix/neurobrix/issues/6" rel="noopener noreferrer"&gt;issue 6&lt;/a&gt; from an RTX 4070 on Windows. Our own checks found more. We owe you an account, so here it is: what went wrong, why, and what we did about it.&lt;/p&gt;

&lt;p&gt;Two rules for reading it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Every fix below is on the main branch of the engine (neurobrix) or of its tensor library (nbxtensor), and each one links to its commit.&lt;/strong&gt; You can read the change and the test that holds it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;None of it is released yet.&lt;/strong&gt; The next version is not tagged and not on PyPI. It ships when the list at the end of this article is closed, and we give no date before then.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  1. The same question could get a different answer on another machine
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you could see.&lt;/strong&gt; A served conversation could give a different fifth answer after a fresh install, with the same model, the same prompt and the same seed. The library's changelog records that the fault was already present in published nbxtensor 0.1.3 and 0.0.8.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happened.&lt;/strong&gt; Each of our GPU kernels can launch under several candidate shapes, such as the tile size or the width of a chunk. On first use, each machine measures the candidates and keeps the fastest one. That is the right way to get speed from any card. But floating-point addition is not associative: &lt;code&gt;(a + b) + c&lt;/code&gt; and &lt;code&gt;a + (b + c)&lt;/code&gt; can differ in the last bit. Two tile shapes add the same numbers in a different order, so two machines that picked two different tiles could produce two different last bits. Over a long generation, one different bit can become a different token, and the conversation drifts.&lt;/p&gt;

&lt;p&gt;On a V100, 13 of the 24 candidates of a &lt;code&gt;[320, 512]&lt;/code&gt; softmax gave different bits from the others.&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%2Fvqouyiag4wf4qdta8el3.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%2Fvqouyiag4wf4qdta8el3.png" alt="Two identical hourglasses. Made with NeuroBrix: Sana 1600M." width="800" height="800"&gt;&lt;/a&gt;&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%2Fneurobrix.org%2Fmedia%2Farticles%2Ffound-fixed-on-the-bench%2Fschema_sum_order.svg" 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%2Fneurobrix.org%2Fmedia%2Farticles%2Ffound-fixed-on-the-bench%2Fschema_sum_order.svg" alt="Schema: two tile shapes add the same four numbers in two orders and get two last bits; after the fix, every candidate adds in the one fixed order." width="1200" height="675"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What we changed.&lt;/strong&gt; Every kernel now gives the same bits under every launch candidate. The tuner still picks the fastest shape, but the shape no longer decides the order of the sums. This covers softmax, RMS norm, layer norm, the vector GEMV, paged decode attention, matmul, &lt;code&gt;addmm&lt;/code&gt; and &lt;code&gt;baddbmm&lt;/code&gt; in float16 and float32, and conv2d (fixed on a 16-wide input-feature chunk).&lt;br&gt;
Commits: &lt;a href="https://github.com/NeuroBrix/nbxtensor/commit/6871e24" rel="noopener noreferrer"&gt;6871e24&lt;/a&gt;, &lt;a href="https://github.com/NeuroBrix/nbxtensor/commit/8349314" rel="noopener noreferrer"&gt;8349314&lt;/a&gt;, &lt;a href="https://github.com/NeuroBrix/nbxtensor/commit/f5727cf" rel="noopener noreferrer"&gt;f5727cf&lt;/a&gt;, &lt;a href="https://github.com/NeuroBrix/nbxtensor/commit/8011b99" rel="noopener noreferrer"&gt;8011b99&lt;/a&gt;, &lt;a href="https://github.com/NeuroBrix/nbxtensor/commit/7015963" rel="noopener noreferrer"&gt;7015963&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The fixed order is not free, so we measured it where it matters. The paged decode now steps its online softmax over one fixed tile of 64 positions. A free sub-tile would also have kept the order, but it doubled the time: 194.9 µs against 108.9 µs at 8,000 positions on a V100 (&lt;a href="https://github.com/NeuroBrix/nbxtensor/commit/ffdf213" rel="noopener noreferrer"&gt;ffdf213&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The tuner itself had faults, and we fixed them in the same pass:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A zero that never came.&lt;/strong&gt; Tuning a kernel that asks for its output to be reset to zero raised an &lt;code&gt;AttributeError&lt;/code&gt;, because the tensor had no &lt;code&gt;zero_&lt;/code&gt;. It now zeroes in place, and a strided view goes to the fill kernel (&lt;a href="https://github.com/NeuroBrix/nbxtensor/commit/1fce065" rel="noopener noreferrer"&gt;1fce065&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One configuration fed the next.&lt;/strong&gt; When tuning the chunked gated-delta-rule state kernel, each configuration after the first read the previous one's output as its input. The first untuned call returned 2.96e+02 where the bound is 4e-06 (Mac M4 Pro). The input is now restored before each configuration (&lt;a href="https://github.com/NeuroBrix/nbxtensor/commit/3a9e3fd" rel="noopener noreferrer"&gt;3a9e3fd&lt;/a&gt;), and the certification harness restores or zeroes its arguments and runs each configuration's &lt;code&gt;pre_hook&lt;/code&gt;, as Triton's own sweep does (&lt;a href="https://github.com/NeuroBrix/nbxtensor/commit/23acfec" rel="noopener noreferrer"&gt;23acfec&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A keyword silently dropped.&lt;/strong&gt; A tuning keyword that the installed Triton does not know used to be dropped without a word. A kernel that overwrites its input would then have been tuned on the previous configuration's output. It is now refused by name (&lt;a href="https://github.com/NeuroBrix/nbxtensor/commit/65e30fc" rel="noopener noreferrer"&gt;65e30fc&lt;/a&gt;, &lt;a href="https://github.com/NeuroBrix/nbxtensor/commit/fc23171" rel="noopener noreferrer"&gt;fc23171&lt;/a&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Old results are never reused by mistake.&lt;/strong&gt; Because the fix changes bits, every kernel certificate now carries a "bits epoch". A certificate from another epoch, or with none, is refused by name at load, and those keys are tuned again. The replay artifact is named by the epoch too, so a file written by an older library is never read back (&lt;a href="https://github.com/NeuroBrix/nbxtensor/commit/e9e5e76" rel="noopener noreferrer"&gt;e9e5e76&lt;/a&gt;, &lt;a href="https://github.com/NeuroBrix/nbxtensor/commit/5f4d5a6" rel="noopener noreferrer"&gt;5f4d5a6&lt;/a&gt;, &lt;a href="https://github.com/NeuroBrix/nbxtensor/commit/135670e" rel="noopener noreferrer"&gt;135670e&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;The same rule now holds on Apple GPUs. Conv2d offers the tuner only the candidates whose float32 tile fits the device's threadgroup memory, because larger tiles gave other bits on Metal. An Apple GPU keeps 34 of the 36 candidates, and a V100 keeps all 36 (&lt;a href="https://github.com/NeuroBrix/nbxtensor/commit/182f0dd" rel="noopener noreferrer"&gt;182f0dd&lt;/a&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  2. A chat prompt is now the vendor's prompt, token for token
&lt;/h2&gt;

&lt;p&gt;A language model answers best when it receives exactly the tokens it was trained on. We found four ways our prompts could differ:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The prompt's token ids.&lt;/strong&gt; Over five served turns of a TinyLlama chat, the engine prefilled 25, 94, 165, 232 and 300 tokens where the vendor's tokenizer gives 23, 90, 159, 224 and 290. There were two causes. The rendered template was encoded with special tokens added, which put in an extra beginning-of-text token that the template never wrote; the vendor encodes a finished template without them. And a tokenizer that adds its word-start mark only at the start of the input got an extra one after each end-of-turn token. The prompt is now the vendor's ids, token for token (&lt;a href="https://github.com/NeuroBrix/neurobrix/commit/61cfb8f" rel="noopener noreferrer"&gt;61cfb8f&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A decision that leaked between requests.&lt;/strong&gt; Our own review of that fix found that it stored the choice of whether to add the prefix on tokenizer parts shared between encodes. With several serving threads, one request could leak it into another: 7 wrong prompts in 6,000 in a two-thread test. The choice is now passed down through each encode, and the same test gives 0 (&lt;a href="https://github.com/NeuroBrix/neurobrix/commit/59f95be" rel="noopener noreferrer"&gt;59f95be&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An extra gap at the start of a reply.&lt;/strong&gt; The chat template had already written that gap, and we wrote it again. It is now removed once, so the stored history is exactly the prompt the model saw (&lt;a href="https://github.com/NeuroBrix/neurobrix/commit/142a6d7" rel="noopener noreferrer"&gt;142a6d7&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Templates and tokenizer files we read differently from the vendor.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;A chat template that marks assistant spans with the &lt;code&gt;generation&lt;/code&gt; tag now renders as the vendor renders it (&lt;a href="https://github.com/NeuroBrix/neurobrix/commit/9abbcc8" rel="noopener noreferrer"&gt;9abbcc8&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;A &lt;code&gt;tokenizer.json&lt;/code&gt; that uses the vendor's Unicode classes, possessive quantifiers and line anchors now loads and splits as the vendor does (&lt;a href="https://github.com/NeuroBrix/neurobrix/commit/e986780" rel="noopener noreferrer"&gt;e986780&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;Two tokenizers now give the vendor's ids for the control characters U+001C to U+001F (&lt;a href="https://github.com/NeuroBrix/neurobrix/commit/0a6bc4c" rel="noopener noreferrer"&gt;0a6bc4c&lt;/a&gt;).&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  3. An RTX 40-series card was refused (issue 6)
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What a user saw.&lt;/strong&gt; On Windows with an RTX 4070, &lt;code&gt;neurobrix serve&lt;/code&gt; stopped with &lt;code&gt;No hardware profile for nvidia/ada&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why.&lt;/strong&gt; NeuroBrix reads every hardware-dependent value (block sizes, shared-memory limits, precision support) from a profile for each architecture, and it refuses to guess one. A guessed block size gives wrong output rather than an error, and we would rather stop than answer wrongly. The refusal was correct. The missing piece was the profile.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What we changed.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Cards of compute capability 7.5 (Turing: T4, RTX 20-series), 8.9 (Ada: L4, L40S, RTX 40-series, including the RTX 4070 of issue 6) and 10.0 (Blackwell: B200) now have a hardware profile. The profile is keyed on the capability, so every card of that capability uses it. It is read from NVIDIA's documentation and marked "unmeasured", because no card of these classes is on our machines yet. These cards run on the PyTorch branch; the Triton branch refuses them by name until their profile is measured. A card of capability 8.6 (an A10 or an RTX 30-series) is still refused by name (&lt;a href="https://github.com/NeuroBrix/neurobrix/commit/af59676" rel="noopener noreferrer"&gt;af59676&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;The library reads the documented shared-memory figures for every NVIDIA capability that the compiler targets. A minor revision reads its major's file only where the documentation says it may; any other minor is refused by name (&lt;a href="https://github.com/NeuroBrix/nbxtensor/commit/f19f865" rel="noopener noreferrer"&gt;f19f865&lt;/a&gt;, &lt;a href="https://github.com/NeuroBrix/nbxtensor/commit/3cba8db" rel="noopener noreferrer"&gt;3cba8db&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;Every NVIDIA architecture the detector names now either plans on its own profile or is refused by name, and a test holds this.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  4. The first launch on a fresh install is long
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you could see.&lt;/strong&gt; On a fresh install, the first launch took minutes before the first answer, and the more cards the machine had, the longer it took. We timed &lt;code&gt;neurobrix serve&lt;/code&gt; from the command to ready, on a fresh home, on our development line of 19 November (after the last release), on a machine with four V100 cards (two of 16 GB, two of 32 GB):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;Branch&lt;/th&gt;
&lt;th&gt;1 card&lt;/th&gt;
&lt;th&gt;2 cards&lt;/th&gt;
&lt;th&gt;4 cards&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;TinyLlama-1.1B-Chat&lt;/td&gt;
&lt;td&gt;PyTorch&lt;/td&gt;
&lt;td&gt;2.6 min&lt;/td&gt;
&lt;td&gt;5.1 min&lt;/td&gt;
&lt;td&gt;15.4 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TinyLlama-1.1B-Chat&lt;/td&gt;
&lt;td&gt;Triton&lt;/td&gt;
&lt;td&gt;3.0 min&lt;/td&gt;
&lt;td&gt;5.0 min&lt;/td&gt;
&lt;td&gt;16.3 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Qwen2.5-Coder-7B-Instruct&lt;/td&gt;
&lt;td&gt;PyTorch&lt;/td&gt;
&lt;td&gt;2.6 min&lt;/td&gt;
&lt;td&gt;5.3 min&lt;/td&gt;
&lt;td&gt;14.9 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Qwen2.5-Coder-7B-Instruct&lt;/td&gt;
&lt;td&gt;Triton&lt;/td&gt;
&lt;td&gt;12.9 min&lt;/td&gt;
&lt;td&gt;14.5 min&lt;/td&gt;
&lt;td&gt;16.6 min&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The released version was not timed on its own.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why.&lt;/strong&gt; The first launch measures your machine instead of assuming it, and two of those measures cost most of the time. The first finds the size of the memory-pool chunk that suits each card model. It tries the candidate sizes one by one, each in its own child process that maps and unmaps card memory, and on a four-card machine that came to 48 child processes. The second finds the best number of parallel reads for your disk. Both ran before the first answer, and the chunk-size search ran for every card model in the machine. The table shows the effect: the more cards, the longer the first launch.&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%2Fneurobrix.org%2Fmedia%2Farticles%2Ffound-fixed-on-the-bench%2Fschema_first_launch.svg" 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%2Fneurobrix.org%2Fmedia%2Farticles%2Ffound-fixed-on-the-bench%2Fschema_first_launch.svg" alt="Schema: where 20.6 minutes of one four-card first launch went: 17.0 minutes in 48 chunk-size probes, 2.2 minutes measuring the disk, 1.4 minutes for everything else." width="1200" height="675"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is already fixed on main:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;First &lt;code&gt;serve&lt;/code&gt; now plans like &lt;code&gt;run&lt;/code&gt;.&lt;/strong&gt; On a fresh home it measures the card's runtime total and context before planning, through the same launch path as &lt;code&gt;run&lt;/code&gt; and &lt;code&gt;upscale&lt;/code&gt; (&lt;a href="https://github.com/NeuroBrix/neurobrix/commit/4b95b21" rel="noopener noreferrer"&gt;4b95b21&lt;/a&gt;). On a machine with mixed cards, each card model is measured on its own card (&lt;a href="https://github.com/NeuroBrix/neurobrix/commit/590105a" rel="noopener noreferrer"&gt;590105a&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The weight reader now judges itself honestly.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;It finds its best number of parallel reads on the load it is serving, with no trial run first, and starts from the width an earlier load settled on (&lt;a href="https://github.com/NeuroBrix/nbxtensor/commit/4058bc7" rel="noopener noreferrer"&gt;4058bc7&lt;/a&gt;, &lt;a href="https://github.com/NeuroBrix/nbxtensor/commit/806fd04" rel="noopener noreferrer"&gt;806fd04&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;It used to over-rate a wider width, because reads still in flight from the narrower width were counted in full. It now judges over a window of reads: a test store that saturates at 4 readers no longer grows to 8 (&lt;a href="https://github.com/NeuroBrix/nbxtensor/commit/709ba0a" rel="noopener noreferrer"&gt;709ba0a&lt;/a&gt;, &lt;a href="https://github.com/NeuroBrix/nbxtensor/commit/eb8e6cd" rel="noopener noreferrer"&gt;eb8e6cd&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;A window closed by the end of the load could read up to 10% high, so such windows are no longer judged (&lt;a href="https://github.com/NeuroBrix/nbxtensor/commit/d1af928" rel="noopener noreferrer"&gt;d1af928&lt;/a&gt;, &lt;a href="https://github.com/NeuroBrix/nbxtensor/commit/f87f53d" rel="noopener noreferrer"&gt;f87f53d&lt;/a&gt;).&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A crash in the memory pool.&lt;/strong&gt; A block taken with the pool switched on and freed with it switched off went to the driver alone. The driver refused it or released the whole segment, and the next write to a neighbouring segment crashed. The block now goes back to its pool whatever the switch says. In a child-process test, it crashed 3 times out of 3 before the fix and passed 3 times out of 3 after (&lt;a href="https://github.com/NeuroBrix/nbxtensor/commit/a8d1134" rel="noopener noreferrer"&gt;a8d1134&lt;/a&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;What is not fixed yet.&lt;/strong&gt; A cure for the long first launch exists and is measured, but it is not on main yet. We will give its figures when it is landed and released, not before. One first-launch path on a fresh install also ends in an error (a file-path fault in a probe). We have found it, and it is not fixed yet.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. The rest of the list
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Vision-language models&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A text-only question to a vision-language container now gets an answer from its language model alone, on both engines (&lt;a href="https://github.com/NeuroBrix/neurobrix/commit/6bca009" rel="noopener noreferrer"&gt;6bca009&lt;/a&gt;, &lt;a href="https://github.com/NeuroBrix/neurobrix/commit/7f41f85" rel="noopener noreferrer"&gt;7f41f85&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;That request is now priced only for the towers it carries an input for (&lt;a href="https://github.com/NeuroBrix/neurobrix/commit/c9a2322" rel="noopener noreferrer"&gt;c9a2322&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;The speech output of a vision-language model now receives the rows of the whole speech span, instead of the last row alone (&lt;a href="https://github.com/NeuroBrix/neurobrix/commit/37f5b0c" rel="noopener noreferrer"&gt;37f5b0c&lt;/a&gt;, &lt;a href="https://github.com/NeuroBrix/neurobrix/commit/164cc6f" rel="noopener noreferrer"&gt;164cc6f&lt;/a&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Video&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Serving a video container used to stop with &lt;code&gt;MissingRuntimeValue num_frames&lt;/code&gt;. It now plans with the frame count and temporal compression that the container declares (&lt;a href="https://github.com/NeuroBrix/neurobrix/commit/b528be9" rel="noopener noreferrer"&gt;b528be9&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;A container that declares no frame count, step count, guidance scale or frame rate is now refused by name, instead of running on a default from a family file (&lt;a href="https://github.com/NeuroBrix/neurobrix/commit/002125d" rel="noopener noreferrer"&gt;002125d&lt;/a&gt;, &lt;a href="https://github.com/NeuroBrix/neurobrix/commit/8c138e7" rel="noopener noreferrer"&gt;8c138e7&lt;/a&gt;). The value belongs in the container, not in the engine.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Installing&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Windows.&lt;/strong&gt; A native-Windows install did not resolve. The engine now asks for Triton only where PyPI publishes a wheel for it (Linux x86_64 and aarch64) (&lt;a href="https://github.com/NeuroBrix/neurobrix/commit/531b700" rel="noopener noreferrer"&gt;531b700&lt;/a&gt;, &lt;a href="https://github.com/NeuroBrix/neurobrix/commit/dc42b1c" rel="noopener noreferrer"&gt;dc42b1c&lt;/a&gt;). On Windows, &lt;code&gt;CUDA_VISIBLE_DEVICES&lt;/code&gt; is read as on Linux (&lt;a href="https://github.com/NeuroBrix/neurobrix/commit/25bff62" rel="noopener noreferrer"&gt;25bff62&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Missing requirements are named before anything loads.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Without Triton, run and serve in a Triton mode refuse by name: they either say that PyPI publishes no Triton for your platform, or give you the install line (&lt;a href="https://github.com/NeuroBrix/neurobrix/commit/19a1d45" rel="noopener noreferrer"&gt;19a1d45&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;A torch older than 2.12.0 is refused before any weight loads (&lt;a href="https://github.com/NeuroBrix/neurobrix/commit/4ae33cf" rel="noopener noreferrer"&gt;4ae33cf&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;A Triton older than 3.5.0 is refused by name; before, it failed with an &lt;code&gt;AttributeError&lt;/code&gt; at the first launch (&lt;a href="https://github.com/NeuroBrix/nbxtensor/commit/b68d851" rel="noopener noreferrer"&gt;b68d851&lt;/a&gt;, &lt;a href="https://github.com/NeuroBrix/nbxtensor/commit/fde70b9" rel="noopener noreferrer"&gt;fde70b9&lt;/a&gt;).&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No C compiler.&lt;/strong&gt; A machine without a C compiler, whose Triton cache already holds the driver helper, is now accepted. A missing compiler is named before the first build (&lt;a href="https://github.com/NeuroBrix/nbxtensor/commit/3fe56ef" rel="noopener noreferrer"&gt;3fe56ef&lt;/a&gt;, &lt;a href="https://github.com/NeuroBrix/nbxtensor/commit/e41f6ef" rel="noopener noreferrer"&gt;e41f6ef&lt;/a&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  6. How every model is judged now: from the command line, by its output
&lt;/h2&gt;

&lt;p&gt;A test suite proves that a function does what its test says. It does not prove that a model answers well. So before a version ships, every model in the catalogue is judged the way you will use it, from the command line, and its output is checked by reading, looking or listening:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A language model&lt;/strong&gt; is started with &lt;code&gt;neurobrix serve&lt;/code&gt; and given a chat of three to four exchanges. The answers are read, and they must be coherent.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An image model&lt;/strong&gt; is run, and the picture is looked at.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An audio model&lt;/strong&gt; is run, and its output is listened to or transcribed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Every other model&lt;/strong&gt; is started with &lt;code&gt;neurobrix run&lt;/code&gt;, and its output is read.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This check runs again on the exact engine and library pair that will ship. A model we have not judged this way is not called working. Three models have an open fault whose cause we have not found yet. If you run one of them, this is what you may see:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CogVideoX-5b-I2V:&lt;/strong&gt; the video is not your scene. After the first frame, it becomes a blur with a grid pattern.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Allegro-TI2V on the Triton branch:&lt;/strong&gt; the picture fills only the top-left part of the frame, and the rest is flat grey.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ming-Lite-Omni-1.5:&lt;/strong&gt; requests with an image, with audio, or for speech output end in a server error (HTTP 500) instead of an answer.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;They are not listed as working until the cause is found and fixed. These are the results of our latest check, which is now being redone on the final pair.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Still on the bench before the next version
&lt;/h2&gt;

&lt;p&gt;These points are open, and none of them is done:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Kernel certificates.&lt;/strong&gt; The same-answer fix changed the bits of several kernels, so all 70 shipped certificates (NVIDIA and Apple) must be proven again on the new library.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tuning after the upgrade.&lt;/strong&gt; After upgrading, each machine tunes its kernels once more at its first launch. This is expected, and the release note will say so.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The first launch.&lt;/strong&gt; The cure for the long first launch, and the fix for the probe's file-path fault, are not landed yet (section 4).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The test suites.&lt;/strong&gt; Every test suite must be green on main. Today 14 engine tests are not.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Conversation context with &lt;code&gt;run&lt;/code&gt;.&lt;/strong&gt; Models that need conversation context outside chat will keep it with &lt;code&gt;neurobrix run&lt;/code&gt;. Chat stays for language models.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The final check.&lt;/strong&gt; The catalogue check from the command line (section 6) runs again on the final pair.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The next version ships when this list is closed.&lt;/p&gt;




&lt;p&gt;If you ran into one of these faults, thank you: some of this list exists because you told us. If you hit something that is not here, &lt;a href="https://github.com/NeuroBrix/neurobrix/issues" rel="noopener noreferrer"&gt;open an issue&lt;/a&gt; with your card and the command you ran. We answer every one. And if you want to follow the work as it lands, a star on &lt;a href="https://github.com/NeuroBrix/neurobrix" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; is the best way to keep NeuroBrix on your radar.&lt;/p&gt;

&lt;p&gt;One engine for every model, on the hardware you already own. Let's build what comes next, together.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>gpu</category>
      <category>machinelearning</category>
      <category>python</category>
    </item>
    <item>
      <title>Certified kernels, guaranteed at install time</title>
      <dc:creator>Hocine Benkelaya</dc:creator>
      <pubDate>Thu, 12 Nov 2026 20:00:02 +0000</pubDate>
      <link>https://dev.to/benkelaya/certified-kernels-guaranteed-at-install-time-1a1o</link>
      <guid>https://dev.to/benkelaya/certified-kernels-guaranteed-at-install-time-1a1o</guid>
      <description>&lt;p&gt;Most GPU inference stacks find their kernel settings on your machine: the first time a new shape shows up, they stop, try block sizes, warp counts and pipeline stages, time them and keep the fastest. The result depends on your machine's mood at that moment.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/NeuroBrix/neurobrix" rel="noopener noreferrer"&gt;NeuroBrix&lt;/a&gt; took the other road. Kernel settings are &lt;strong&gt;certified once per GPU class&lt;/strong&gt;, checked against a float64 reference, and &lt;strong&gt;shipped inside the package&lt;/strong&gt;. The fast path you get is the one we measured.&lt;/p&gt;

&lt;p&gt;That raises a question few projects ask: how do you &lt;em&gt;guarantee&lt;/em&gt; that what reaches a user's machine is complete? With the newest NeuroBrix, the answer is a release gate.&lt;/p&gt;

&lt;h2&gt;
  
  
  The build refuses an incomplete package
&lt;/h2&gt;

&lt;p&gt;Every file the certified kernel tables need is tracked. When a release is built, the build checks the package against that list, and &lt;strong&gt;a package missing a single tracked file is refused&lt;/strong&gt;. It never reaches PyPI. A &lt;code&gt;pip install neurobrix&lt;/code&gt; therefore carries the certified tables, by construction, not by luck.&lt;/p&gt;

&lt;h2&gt;
  
  
  The engine refuses to guess
&lt;/h2&gt;

&lt;p&gt;The second half of the guarantee lives at run time. If a table the engine expects is not there, NeuroBrix &lt;strong&gt;refuses to run on it and names what is missing&lt;/strong&gt;, instead of silently falling back to guesswork. You either get the certified path or a clear message, never a quiet downgrade.&lt;/p&gt;

&lt;h2&gt;
  
  
  The same family as the V100 tensor cores
&lt;/h2&gt;

&lt;p&gt;This is the same spirit as our work on the 2017 V100: its tensor cores sat unused on the Triton path, and NeuroBrix brought them back to life with its own kernels (&lt;a href="https://dev.to/benkelaya/getting-the-v100-tensor-cores-back-from-triton-37jd"&gt;the full story&lt;/a&gt;). On those V100s, our Triton engine beat the same model through PyTorch's kernels in 30 of 36 model-and-card pairs, up to 3.64x, every run reading its settings from the certified directory, none tuned during the measurement.&lt;/p&gt;

&lt;p&gt;Fast kernels are half the work. Making sure every install gets them is the other half.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install neurobrix
neurobrix doctor
neurobrix import TinyLlama/TinyLlama-1.1B-Chat-v1.0 --accept-license
neurobrix run --model TinyLlama/TinyLlama-1.1B-Chat-v1.0 --prompt &lt;span class="s2"&gt;"Write a haiku about GPUs."&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Have a GPU class we haven't certified yet? Certify it and share it: every class certified is a class nobody autotunes again.&lt;/p&gt;

&lt;p&gt;If this is the kind of engineering you want to see more of, a ⭐ on &lt;a href="https://github.com/NeuroBrix/neurobrix" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; is the signal we read.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>machinelearning</category>
      <category>python</category>
      <category>gpu</category>
    </item>
    <item>
      <title>Tokenizing a 12K-token prompt in 0.03 s instead of 25.7 s, and other fixes from running real prompts</title>
      <dc:creator>Hocine Benkelaya</dc:creator>
      <pubDate>Thu, 12 Nov 2026 18:53:02 +0000</pubDate>
      <link>https://dev.to/benkelaya/tokenizing-a-12k-token-prompt-in-003-s-instead-of-257-s-and-other-fixes-from-running-real-prompts-3bc0</link>
      <guid>https://dev.to/benkelaya/tokenizing-a-12k-token-prompt-in-003-s-instead-of-257-s-and-other-fixes-from-running-real-prompts-3bc0</guid>
      <description>&lt;p&gt;New versions of &lt;a href="https://github.com/NeuroBrix/neurobrix" rel="noopener noreferrer"&gt;NeuroBrix&lt;/a&gt;, our open-source inference engine, and of &lt;a href="https://github.com/NeuroBrix/nbxtensor" rel="noopener noreferrer"&gt;nbxtensor&lt;/a&gt;, its tensor library, are on PyPI. Everything below came from running real prompts on our own engine.&lt;/p&gt;

&lt;h2&gt;
  
  
  Long prompts are tokenized in linear time, with the same tokens
&lt;/h2&gt;

&lt;p&gt;A 12,265-token prompt to a Llama-tokenizer model took &lt;strong&gt;25.7 s&lt;/strong&gt; to tokenize before the model saw a single token. It now takes &lt;strong&gt;0.03 s&lt;/strong&gt;, and produces exactly the same tokens.&lt;/p&gt;

&lt;p&gt;A model that ships thousands of added tokens stalled on long prompts too: on a 34,880-character prompt it went from &lt;strong&gt;43.6 s to 0.02 s&lt;/strong&gt;. And &lt;code&gt;neurobrix serve&lt;/code&gt; no longer keeps every long prompt it has seen in memory.&lt;/p&gt;

&lt;h2&gt;
  
  
  A new server does not tune its kernels twice
&lt;/h2&gt;

&lt;p&gt;NeuroBrix measures the best kernel settings for each machine and stores them. Until now, only the kernels loaded before the first computation received those stored settings; the ones a server loads at its first request were measured again by every new process. Now every kernel gets this machine's settings from the start.&lt;/p&gt;

&lt;h2&gt;
  
  
  Errors with names
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;neurobrix run&lt;/code&gt; refuses a prompt longer than the model's context window by name, before anything loads, as &lt;code&gt;serve&lt;/code&gt; already did. It used to fail inside a GPU kernel or abort the process.&lt;/li&gt;
&lt;li&gt;A run whose GPU reports its error late exits with that error named (rc 1) instead of aborting.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;/v1/audio/speech&lt;/code&gt; without a &lt;code&gt;voice&lt;/code&gt;, for a model that ships several voices and declares no default, now returns a 400 naming &lt;code&gt;voice&lt;/code&gt; and the available voices, no longer a 500.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;neurobrix run --turns&lt;/code&gt; reports each turn's own timings.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The engine calls its library
&lt;/h2&gt;

&lt;p&gt;The engine now leaves to nbxtensor what belongs to a tensor library: the replay of decode steps, and the expert store of mixture-of-experts models (its device slots, copies, and routing over several GPUs). We checked this the only way that counts: the outputs are &lt;strong&gt;byte-identical&lt;/strong&gt; to the previous version on our gate's models, on one GPU and on two, with both engines.&lt;/p&gt;

&lt;p&gt;The terminal coding agent left the engine: coding agents become their own project and talk to &lt;code&gt;neurobrix serve&lt;/code&gt; through its OpenAI-compatible API.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install -U neurobrix              &lt;span class="c"&gt;# Triton engine, no PyTorch&lt;/span&gt;
pip install -U &lt;span class="s2"&gt;"neurobrix[pytorch]"&lt;/span&gt;   &lt;span class="c"&gt;# with the PyTorch engine&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Full release notes: &lt;a href="https://github.com/NeuroBrix/neurobrix/releases/tag/v0.6.10" rel="noopener noreferrer"&gt;v0.6.10 on GitHub&lt;/a&gt;. If NeuroBrix is useful to you, a ⭐ on &lt;a href="https://github.com/NeuroBrix/neurobrix" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; is the signal we read.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>machinelearning</category>
      <category>llm</category>
      <category>python</category>
    </item>
    <item>
      <title>AI is a neural network, not an API: introducing the NeuroBrix ecosystem</title>
      <dc:creator>Hocine Benkelaya</dc:creator>
      <pubDate>Thu, 12 Nov 2026 09:21:43 +0000</pubDate>
      <link>https://dev.to/benkelaya/ai-is-a-neural-network-not-an-api-introducing-the-neurobrix-ecosystem-5acd</link>
      <guid>https://dev.to/benkelaya/ai-is-a-neural-network-not-an-api-introducing-the-neurobrix-ecosystem-5acd</guid>
      <description>&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/GM9C5J3n-64" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The film is three and a half minutes long. On YouTube you can pick the audio track: English, français, español or العربية.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why we are building NeuroBrix
&lt;/h2&gt;

&lt;p&gt;For most people, artificial intelligence has one face: a chat assistant, rented by the minute, running in someone else's data center. That face is real and useful, but it is a small part of what neural networks do. They segment cells under a microscope, transcribe a consultation, find a defective part on a production line, upscale an image before printing, predict the shape of a protein.&lt;/p&gt;

&lt;p&gt;None of those jobs needs one giant model that does everything. Each needs the right model, running where the data lives, on the hardware the organisation already owns. That is the gap NeuroBrix is built for.&lt;/p&gt;

&lt;h2&gt;
  
  
  An ecosystem, not a product
&lt;/h2&gt;

&lt;p&gt;NeuroBrix is made of bricks. You can take the whole stack, or only the brick you need.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The engine.&lt;/strong&gt; One runtime for text, image, audio and video models, loaded from a single container format.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;nbxtensor.&lt;/strong&gt; Our own tensor library. It is what the engine computes with, and it is published as a library of its own, so you can build your own tools on it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Kernels.&lt;/strong&gt; Written for each family of processors, so the hardware you have is used for what it can actually do.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;NBXGrammar.&lt;/strong&gt; A constrained-decoding engine in Rust: the model answers in exactly the shape you asked for (JSON, a tool call, a grammar of your own).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Certified containers.&lt;/strong&gt; Every model ships in a container that is checked to behave the same way on every machine.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The hub.&lt;/strong&gt; The library where those containers wait, ready to run: &lt;a href="https://neurobrix.org" rel="noopener noreferrer"&gt;neurobrix.org&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;NBX Code (coming soon).&lt;/strong&gt; A coding agent that runs on your machines and sends nothing outside.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Three examples
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A &lt;strong&gt;laboratory&lt;/strong&gt; segments its cells with Cellpose and predicts protein structures with ESMFold, and its data never leaves the building.&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;hospital&lt;/strong&gt; transcribes consultations with Whisper and outlines an organ on a scan with MedSAM.&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;print shop&lt;/strong&gt; enlarges an image with Real-ESRGAN before a large-format run, on the card it already has.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The hardware you already own
&lt;/h2&gt;

&lt;p&gt;The industry moves fast, and every new generation of processors is good news. But a processor does not stop computing the day its successor arrives. One measured example: on NVIDIA V100 Tensor Cores, our own attention kernels run up to 17 times faster, and a 30-billion-parameter model served on two V100s went from 6.7 seconds per token to about a third of a second, with no hardware change.&lt;/p&gt;

&lt;p&gt;From a laptop graphics chip to a rack of servers, a new processor is one more brick.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it, break it, build with it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install neurobrix
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Developers:&lt;/strong&gt; the code is on GitHub, Apache 2.0. A star helps more than you think: &lt;a href="https://github.com/NeuroBrix/neurobrix" rel="noopener noreferrer"&gt;github.com/NeuroBrix/neurobrix&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Testers:&lt;/strong&gt; run a model on your own machine and open an issue when something breaks. Every report makes the next release better.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Companies, partners, investors:&lt;/strong&gt; if you want to run AI in-house, or build what comes next with us: &lt;a href="https://neurobrix.org/enterprise" rel="noopener noreferrer"&gt;neurobrix.org/enterprise&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Documentation: &lt;a href="https://docs.neurobrix.org" rel="noopener noreferrer"&gt;docs.neurobrix.org&lt;/a&gt;&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>ai</category>
      <category>machinelearning</category>
      <category>python</category>
    </item>
    <item>
      <title>Certified kernels instead of autotuning on your machine</title>
      <dc:creator>Hocine Benkelaya</dc:creator>
      <pubDate>Wed, 11 Nov 2026 09:00:00 +0000</pubDate>
      <link>https://dev.to/benkelaya/certified-kernels-instead-of-autotuning-on-your-machine-lld</link>
      <guid>https://dev.to/benkelaya/certified-kernels-instead-of-autotuning-on-your-machine-lld</guid>
      <description>&lt;p&gt;The first time you run a Triton-based model, it often stalls. It is not loading weights; it is autotuning: trying block sizes, warp counts and pipeline stages for each kernel and shape, timing them, keeping the fastest. It happens on your machine, every time a new shape shows up, and the result depends on what else your GPU was doing at that moment.&lt;/p&gt;

&lt;p&gt;NeuroBrix does it differently. Kernel settings are &lt;strong&gt;certified once per GPU class&lt;/strong&gt; and shipped with the package.&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%2Fdolxk6jyhks96exlyry0.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%2Fdolxk6jyhks96exlyry0.png" alt="Certified, not autotuned" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How a setting is certified
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The launch key.&lt;/strong&gt; For each model, the kernels it will launch and their shape classes are listed from its graph, without running the model.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The float64 oracle.&lt;/strong&gt; Every candidate setting for a key is run and checked against a float64 reference. A setting that computes the wrong answer is excluded, however fast it is.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The timing.&lt;/strong&gt; The settings that pass are timed on the GPU class, under a witness that refuses the measurement if the GPU's regime drifts while candidates are being compared.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The certificate.&lt;/strong&gt; The winner is stored with its proof — the deviation from the oracle, the time, the compiler that produced it — in the repository.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Served.&lt;/strong&gt; At run time the engine reads the certificate. No sweep.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The compiler is part of the proof. A certificate made under one Triton build is not served under another: it is re-proven first. The configuration is a property of the compiler that produced it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it changes for you
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A first run that runs.&lt;/strong&gt; No minutes of tuning before the first token or the first frame.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reproducible behaviour.&lt;/strong&gt; The same GPU class gets the same settings, so two users comparing results are comparing the same kernels.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Correctness first.&lt;/strong&gt; Every served setting has been checked against float64 before it was ever timed.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;18,552 settings are certified for Apple GPUs today.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you see at run time
&lt;/h2&gt;

&lt;p&gt;Every run says, in one line, where its kernel settings came from. This is from a real run of Sana 1600M on an Apple M4 Pro, installed from PyPI:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[autotune] certified directory: 70 key(s) served without a sweep, 0 swept at runtime (kept locally), 0 from the local replay cache
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Seventy launch keys, all served from certificates, none tuned on the machine. If a key were missing, the same line would say how many were swept and kept locally, so you always know.&lt;/p&gt;

&lt;h2&gt;
  
  
  Your GPU, your certificate
&lt;/h2&gt;

&lt;p&gt;A GPU class with no certificate still works: the missing settings are tuned once on your machine and kept locally. You can then certify them with the same tool NeuroBrix uses and share them by pull request, so nobody with your GPU tunes them again:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;neurobrix run --model TinyLlama-1.1B-Chat-v1.0 --triton --prompt &lt;span class="s2"&gt;"Hello"&lt;/span&gt; --max-tokens 32
neurobrix autotune certify --profile &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;your-gpu-profile&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; --keys &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;the keys your run recorded&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; --out ./my-certificates
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The full procedure, including how to check that a certified-only run serves everything, is in the &lt;a href="https://github.com/NeuroBrix/nbxtensor#certify-your-own-hardware" rel="noopener noreferrer"&gt;nbxtensor README&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/NeuroBrix/neurobrix" rel="noopener noreferrer"&gt;github.com/NeuroBrix/neurobrix&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/NeuroBrix/nbxtensor" rel="noopener noreferrer"&gt;github.com/NeuroBrix/nbxtensor&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The way we build it
&lt;/h2&gt;

&lt;p&gt;This post is one piece of a consistent method:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One engine, zero per-model code.&lt;/strong&gt; The runtime knows tensors, graphs and plans; it never knows which model it is running. A fix in the engine is a fix for every model.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;.nbx&lt;/code&gt;, one container for every model&lt;/strong&gt;: graph and weights in one file format.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prism decides from facts&lt;/strong&gt;: placement chosen from a hardware profile, not from heuristics in code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Certified, not autotuned&lt;/strong&gt;: every kernel setting checked against a float64 oracle, timed once per GPU class, shared by pull request.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Validated through the real entry point&lt;/strong&gt;: all 49 models on both engines at every release (196 of 196 cells for 0.6.0 on 4x V100), outputs compared byte for byte with judged outputs, runs deterministic from one repetition to the next.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The ecosystem
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;NeuroBrix Engine&lt;/strong&gt;: the inference engine, &lt;code&gt;pip install neurobrix&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;nbxtensor&lt;/strong&gt;: the tensor library without PyTorch, &lt;code&gt;pip install nbxtensor&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Model Hub&lt;/strong&gt;: &lt;code&gt;.nbx&lt;/code&gt; containers for 49 models at &lt;a href="https://neurobrix.org/models" rel="noopener noreferrer"&gt;neurobrix.org/models&lt;/a&gt;, more with every release.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;triton-ext&lt;/strong&gt;: our Triton build for Apple GPUs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Studio&lt;/strong&gt;: a desktop application for Linux, Windows and macOS, in development.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where we are going
&lt;/h2&gt;

&lt;p&gt;Faster than the frameworks (kernel fusion, graph-level simplification), every processor (AMD and Intel GPUs, many-core CPUs, ARM64, accelerators beyond GPUs, multi-GPU across NVLink, PCIe and networks), community-certified hardware, training in nbxtensor, local agents, a local server and a JSON interface for applications, Studio for everyone, nbxtensor 2.0 in Rust, and &lt;code&gt;.nbx&lt;/code&gt; as an open model standard.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get involved
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Star&lt;/strong&gt; &lt;a href="https://github.com/NeuroBrix/neurobrix" rel="noopener noreferrer"&gt;github.com/NeuroBrix/neurobrix&lt;/a&gt; and &lt;a href="https://github.com/NeuroBrix/nbxtensor" rel="noopener noreferrer"&gt;github.com/NeuroBrix/nbxtensor&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Try it&lt;/strong&gt;: &lt;code&gt;pip install neurobrix&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Certify your GPU class&lt;/strong&gt; and share it (&lt;a href="https://github.com/NeuroBrix/nbxtensor#certify-your-own-hardware" rel="noopener noreferrer"&gt;how&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open an issue&lt;/strong&gt; when something breaks, or to request a model.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Hocine Benkelaya, NeuroBrix&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>python</category>
      <category>machinelearning</category>
    </item>
    <item>
      <title>.nbx: one container format for every AI model</title>
      <dc:creator>Hocine Benkelaya</dc:creator>
      <pubDate>Tue, 10 Nov 2026 09:00:01 +0000</pubDate>
      <link>https://dev.to/benkelaya/nbx-one-container-format-for-every-ai-model-4792</link>
      <guid>https://dev.to/benkelaya/nbx-one-container-format-for-every-ai-model-4792</guid>
      <description>&lt;p&gt;Ask how a model is "supported" by an inference stack and the honest answer is usually: someone wrote code for it. A pipeline class, a loader, a set of special cases for its attention, its cache, its preprocessing. Multiply by every model and every modality, and the stack becomes a museum of pipelines.&lt;/p&gt;

&lt;p&gt;NeuroBrix runs 49 models in 9 families with no per-model code. The reason is the &lt;code&gt;.nbx&lt;/code&gt; container.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a .nbx holds
&lt;/h2&gt;

&lt;p&gt;A &lt;code&gt;.nbx&lt;/code&gt; is one file format that holds a model's &lt;strong&gt;graph&lt;/strong&gt; and its &lt;strong&gt;weights&lt;/strong&gt;. The graph says what to compute; the weights are what it computes with. Together they are enough for the engine to run the model, whatever family it belongs to: a language model, a speech recogniser, a text-to-speech voice, an image or video generator, an upscaler.&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%2F2rlsgwjkqj191cln99id.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%2F2rlsgwjkqj191cln99id.png" alt="How NeuroBrix works" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  One engine reads them all
&lt;/h2&gt;

&lt;p&gt;Because every model arrives in the same shape, the engine has one job: read the container, plan it, execute it.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Prism&lt;/strong&gt;, the memory and placement planner, reads the container and your hardware profile and decides how the model is placed: one GPU, several GPUs, streamed, or with its largest operations tiled.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One of two engines&lt;/strong&gt; executes it: the Triton engine on nbxtensor (no PyTorch) or the optional PyTorch engine.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Certified kernels&lt;/strong&gt; do the work, with settings proven once per GPU class.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The family is read from the container, so the command line asks for the inputs that family needs — a prompt for a language model, an audio file for speech recognition, an image for an upscaler — and the rest is the same path:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;neurobrix import openai/whisper-large-v3-turbo
neurobrix run --model whisper-large-v3-turbo --audio recording.wav

neurobrix upscale --model Real-ESRGAN-RealESRGAN_x4plus --input photo.png --output photo_x4.png
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Why a standard helps
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Adding a model does not add code.&lt;/strong&gt; It adds a container. The engine, the planner and the kernels do not change.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fixes are shared.&lt;/strong&gt; A bug fixed in the engine is fixed for every model at once, because every model runs through the same code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Validation is uniform.&lt;/strong&gt; Every NeuroBrix release runs all 49 models on both engines through the same entry point — for 0.6.0, 196 of 196 cells on 4x V100 — and compares outputs byte for byte with judged outputs. That is only practical because there is one path to test, not 49.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Portability is inherited.&lt;/strong&gt; A model in a &lt;code&gt;.nbx&lt;/code&gt; runs wherever the engine runs: Linux, Windows and macOS, on NVIDIA, AMD, Intel and Apple GPUs.&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%2Fwtn9gfhsnb66c9f2czig.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%2Fwtn9gfhsnb66c9f2czig.png" alt="49 models, 9 families, one engine" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Adding a model is adding a container
&lt;/h2&gt;

&lt;p&gt;Because the engine never knows which model it runs, a new model is not a code change. It is a new container that the same engine, the same planner and the same certified kernels execute, on every platform the engine supports. That is how the catalogue grows with every release, and why the 49 models of 0.6 are a starting point rather than a ceiling. Missing a model you need? Request it through the issues: it becomes a container, not a fork.&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting containers
&lt;/h2&gt;

&lt;p&gt;The models are published on the NeuroBrix hub and listed at &lt;a href="https://neurobrix.org/models" rel="noopener noreferrer"&gt;neurobrix.org/models&lt;/a&gt;. &lt;code&gt;neurobrix import &amp;lt;name&amp;gt;&lt;/code&gt; downloads and unpacks one; &lt;code&gt;neurobrix run --model &amp;lt;name&amp;gt;&lt;/code&gt; runs it.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://github.com/NeuroBrix/neurobrix" rel="noopener noreferrer"&gt;github.com/NeuroBrix/neurobrix&lt;/a&gt; — Apache 2.0&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The way we build it
&lt;/h2&gt;

&lt;p&gt;This post is one piece of a consistent method:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One engine, zero per-model code.&lt;/strong&gt; The runtime knows tensors, graphs and plans; it never knows which model it is running. A fix in the engine is a fix for every model.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;.nbx&lt;/code&gt;, one container for every model&lt;/strong&gt;: graph and weights in one file format.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prism decides from facts&lt;/strong&gt;: placement chosen from a hardware profile, not from heuristics in code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Certified, not autotuned&lt;/strong&gt;: every kernel setting checked against a float64 oracle, timed once per GPU class, shared by pull request.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Validated through the real entry point&lt;/strong&gt;: all 49 models on both engines at every release (196 of 196 cells for 0.6.0 on 4x V100), outputs compared byte for byte with judged outputs, runs deterministic from one repetition to the next.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The ecosystem
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;NeuroBrix Engine&lt;/strong&gt;: the inference engine, &lt;code&gt;pip install neurobrix&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;nbxtensor&lt;/strong&gt;: the tensor library without PyTorch, &lt;code&gt;pip install nbxtensor&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Model Hub&lt;/strong&gt;: &lt;code&gt;.nbx&lt;/code&gt; containers for 49 models at &lt;a href="https://neurobrix.org/models" rel="noopener noreferrer"&gt;neurobrix.org/models&lt;/a&gt;, more with every release.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;triton-ext&lt;/strong&gt;: our Triton build for Apple GPUs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Studio&lt;/strong&gt;: a desktop application for Linux, Windows and macOS, in development.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where we are going
&lt;/h2&gt;

&lt;p&gt;Faster than the frameworks (kernel fusion, graph-level simplification), every processor (AMD and Intel GPUs, many-core CPUs, ARM64, accelerators beyond GPUs, multi-GPU across NVLink, PCIe and networks), community-certified hardware, training in nbxtensor, local agents, a local server and a JSON interface for applications, Studio for everyone, nbxtensor 2.0 in Rust, and &lt;code&gt;.nbx&lt;/code&gt; as an open model standard.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get involved
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Star&lt;/strong&gt; &lt;a href="https://github.com/NeuroBrix/neurobrix" rel="noopener noreferrer"&gt;github.com/NeuroBrix/neurobrix&lt;/a&gt; and &lt;a href="https://github.com/NeuroBrix/nbxtensor" rel="noopener noreferrer"&gt;github.com/NeuroBrix/nbxtensor&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Try it&lt;/strong&gt;: &lt;code&gt;pip install neurobrix&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Certify your GPU class&lt;/strong&gt; and share it (&lt;a href="https://github.com/NeuroBrix/nbxtensor#certify-your-own-hardware" rel="noopener noreferrer"&gt;how&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open an issue&lt;/strong&gt; when something breaks, or to request a model.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Hocine Benkelaya, NeuroBrix&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>python</category>
      <category>machinelearning</category>
    </item>
    <item>
      <title>Getting the V100 tensor cores back from Triton</title>
      <dc:creator>Hocine Benkelaya</dc:creator>
      <pubDate>Mon, 09 Nov 2026 18:00:01 +0000</pubDate>
      <link>https://dev.to/benkelaya/getting-the-v100-tensor-cores-back-from-triton-37jd</link>
      <guid>https://dev.to/benkelaya/getting-the-v100-tensor-cores-back-from-triton-37jd</guid>
      <description>&lt;p&gt;A lot of serious GPU capacity still sits in V100s: university clusters, second-hand servers, cloud instances priced down. They have tensor cores. Triton, on that architecture, does not use them.&lt;/p&gt;

&lt;p&gt;This post is about how nbxtensor — the tensor library under NeuroBrix's Triton engine — turns them back on, and why it only does so where a measurement says it helps.&lt;/p&gt;

&lt;h2&gt;
  
  
  The gap
&lt;/h2&gt;

&lt;p&gt;Triton is the kernel language NeuroBrix's Triton engine is written in. One kernel source serves NVIDIA, AMD, Intel and Apple GPUs, which is exactly why we use it. On Volta (sm_70), however, a matrix product written with &lt;code&gt;tl.dot&lt;/code&gt; compiles to FMA instructions: ordinary fused multiply-adds on the CUDA cores. The tensor cores of the V100 stay idle.&lt;/p&gt;

&lt;p&gt;For a model whose time is dominated by matrix products — which is most of them — that is the difference between using the card and using part of it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix: m8n8k4 kernels
&lt;/h2&gt;

&lt;p&gt;Volta's tensor cores are driven by the &lt;code&gt;mma.sync.m8n8k4&lt;/code&gt; instruction: an 8x8 output tile accumulated from 8x4 by 4x8 operands, per group of threads. nbxtensor carries hand-written kernels built on that instruction for the operations that matter:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;matrix products,&lt;/li&gt;
&lt;li&gt;convolutions,&lt;/li&gt;
&lt;li&gt;flash attention,&lt;/li&gt;
&lt;li&gt;the fused mixture-of-experts GEMM used by models such as DeepSeek-MoE and Qwen3-30B-A3B.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;They live next to the portable Triton kernels, not instead of them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Chosen by measurement, per operation
&lt;/h2&gt;

&lt;p&gt;A tensor-core kernel is not automatically the faster one. For small shapes, odd shapes or memory-bound operations, the plain Triton kernel can win. So nbxtensor never switches globally. For each operation and shape class, both paths are candidates in the same certification:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;each candidate is checked against a float64 oracle,&lt;/li&gt;
&lt;li&gt;the ones that pass are timed on the GPU class,&lt;/li&gt;
&lt;li&gt;the winner is written into the certificate with its proof.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;At run time the engine serves whatever the certificate says. Where m8n8k4 measured faster, the V100 uses its tensor cores; where it did not, it does not. The choice is data, recorded and reviewable, not a rule in code.&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%2Fdolxk6jyhks96exlyry0.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%2Fdolxk6jyhks96exlyry0.png" alt="Certified, not autotuned" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What it adds up to
&lt;/h2&gt;

&lt;p&gt;In NeuroBrix's showcase benchmark of 2026-11-08 on Tesla V100 (18 models, two cards, one run alone on the machine, median of 3), the Triton engine was faster than the PyTorch engine in 30 of 36 model-and-card pairs, up to 5.24x on Janus-Pro-7B; the full table, including the 6 pairs where it is slower, is in &lt;a href="https://github.com/NeuroBrix/neurobrix/blob/main/docs/BENCHMARKS.md" rel="noopener noreferrer"&gt;docs/BENCHMARKS.md&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why V100 owners should care
&lt;/h2&gt;

&lt;p&gt;A V100 is not a museum piece. It has fast HBM2 memory, NVLink on many servers, and tensor cores that were designed for exactly the matrix products modern models are made of. When a toolchain leaves those tensor cores idle, the card looks slower than it is. Bringing them back is about using hardware people already own instead of telling them to buy new hardware.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why it matters beyond Volta
&lt;/h2&gt;

&lt;p&gt;The pattern generalises: when the portable path leaves hardware on the table, add a specialised kernel as one more &lt;em&gt;candidate&lt;/em&gt;, and let certification decide where it is used. The portable kernel stays the default everywhere the specialised one does not win, and every GPU class keeps its own certificate.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install neurobrix
neurobrix run --model TinyLlama-1.1B-Chat-v1.0 --triton --prompt &lt;span class="s2"&gt;"Hello"&lt;/span&gt; --max-tokens 32
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/NeuroBrix/nbxtensor" rel="noopener noreferrer"&gt;github.com/NeuroBrix/nbxtensor&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/NeuroBrix/neurobrix" rel="noopener noreferrer"&gt;github.com/NeuroBrix/neurobrix&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The way we build it
&lt;/h2&gt;

&lt;p&gt;This post is one piece of a consistent method:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One engine, zero per-model code.&lt;/strong&gt; The runtime knows tensors, graphs and plans; it never knows which model it is running. A fix in the engine is a fix for every model.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;.nbx&lt;/code&gt;, one container for every model&lt;/strong&gt;: graph and weights in one file format.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prism decides from facts&lt;/strong&gt;: placement chosen from a hardware profile, not from heuristics in code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Certified, not autotuned&lt;/strong&gt;: every kernel setting checked against a float64 oracle, timed once per GPU class, shared by pull request.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Validated through the real entry point&lt;/strong&gt;: all 49 models on both engines at every release (196 of 196 cells for 0.6.0 on 4x V100), outputs compared byte for byte with judged outputs, runs deterministic from one repetition to the next.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The ecosystem
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;NeuroBrix Engine&lt;/strong&gt;: the inference engine, &lt;code&gt;pip install neurobrix&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;nbxtensor&lt;/strong&gt;: the tensor library without PyTorch, &lt;code&gt;pip install nbxtensor&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Model Hub&lt;/strong&gt;: &lt;code&gt;.nbx&lt;/code&gt; containers for 49 models at &lt;a href="https://neurobrix.es/models" rel="noopener noreferrer"&gt;neurobrix.es/models&lt;/a&gt;, more with every release.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;triton-ext&lt;/strong&gt;: our Triton build for Apple GPUs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Studio&lt;/strong&gt;: a desktop application for Linux, Windows and macOS, in development.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where we are going
&lt;/h2&gt;

&lt;p&gt;Faster than the frameworks (kernel fusion, graph-level simplification), every processor (AMD and Intel GPUs, many-core CPUs, ARM64, accelerators beyond GPUs, multi-GPU across NVLink, PCIe and networks), community-certified hardware, training in nbxtensor, local agents, a local server and a JSON interface for applications, Studio for everyone, nbxtensor 2.0 in Rust, and &lt;code&gt;.nbx&lt;/code&gt; as an open model standard.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get involved
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Star&lt;/strong&gt; &lt;a href="https://github.com/NeuroBrix/neurobrix" rel="noopener noreferrer"&gt;github.com/NeuroBrix/neurobrix&lt;/a&gt; and &lt;a href="https://github.com/NeuroBrix/nbxtensor" rel="noopener noreferrer"&gt;github.com/NeuroBrix/nbxtensor&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Try it&lt;/strong&gt;: &lt;code&gt;pip install neurobrix&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Certify your GPU class&lt;/strong&gt; and share it (&lt;a href="https://github.com/NeuroBrix/nbxtensor#certify-your-own-hardware" rel="noopener noreferrer"&gt;how&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open an issue&lt;/strong&gt; when something breaks, or to request a model.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Hocine Benkelaya, NeuroBrix&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>python</category>
      <category>machinelearning</category>
    </item>
    <item>
      <title>Build AI apps with Claude Code and NeuroBrix — no PyTorch glue code</title>
      <dc:creator>Hocine Benkelaya</dc:creator>
      <pubDate>Sun, 08 Nov 2026 02:01:23 +0000</pubDate>
      <link>https://dev.to/benkelaya/build-ai-apps-with-claude-code-and-neurobrix-no-pytorch-glue-code-2ikl</link>
      <guid>https://dev.to/benkelaya/build-ai-apps-with-claude-code-and-neurobrix-no-pytorch-glue-code-2ikl</guid>
      <description>&lt;p&gt;You want AI inside your application: transcribe a meeting, summarise a note, generate an image, read a text aloud. Today that usually means PyTorch, a model library, one pipeline per model with its own pre- and post-processing, a CUDA build that matches your driver, and a layer of glue code between all of it. Every new model is a new integration. Every new GPU is a new compatibility table.&lt;/p&gt;

&lt;p&gt;Hand that job to a coding agent and it spends its effort exactly there: on the glue.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;NeuroBrix takes the glue away.&lt;/strong&gt; It is an inference engine that runs 49 models in 9 families (language, code, vision-language, omni, speech recognition, speech understanding, text-to-speech, image, video, upscaling) from one container format and one command. And because the surface is that small, it is the kind of foundation a coding agent like Claude Code can build on quickly and correctly.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install neurobrix
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Linux, Windows and macOS. NVIDIA, AMD, Intel and Apple GPUs. No PyTorch required.&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%2Fb90vpk293828k20x4n2s.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%2Fb90vpk293828k20x4n2s.png" alt="Claude Code builds apps on NeuroBrix" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  One surface for every model
&lt;/h2&gt;

&lt;p&gt;The application surface of NeuroBrix today is its command line, and it is the same for every family:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;neurobrix import openai/whisper-large-v3-turbo --accept-license
neurobrix run --model whisper-large-v3-turbo --audio meeting.wav --output transcript.txt

neurobrix run --model TinyLlama-1.1B-Chat-v1.0 --prompt &lt;span class="s2"&gt;"Summarize: ..."&lt;/span&gt; --max-tokens 96 --output summary.txt
neurobrix run --model Kokoro-82M --prompt &lt;span class="s2"&gt;"Your order is ready."&lt;/span&gt; --output voice.wav
neurobrix run --model Sana_1600M_1024px_MultiLing --prompt &lt;span class="s2"&gt;"a glass cube on a circuit board"&lt;/span&gt; --output cube.png
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One verb to run, one flag for the model, the inputs that family needs, and a file that comes out. The family is read from the model's container, so there is no pipeline class to pick, no processor to load, no device to place by hand: Prism, the engine's planner, reads your hardware and decides the placement. The commands that report state (&lt;code&gt;import&lt;/code&gt;, &lt;code&gt;list&lt;/code&gt;, &lt;code&gt;info&lt;/code&gt;, &lt;code&gt;inspect&lt;/code&gt;, &lt;code&gt;doctor&lt;/code&gt;, &lt;code&gt;hub&lt;/code&gt;) also speak JSON with &lt;code&gt;--json&lt;/code&gt;, for programs rather than people.&lt;/p&gt;

&lt;p&gt;For an agent, this is the important part. It does not need to learn N model APIs. It learns one command, once, and the knowledge transfers to every model in the catalogue — and to the models added in the next release.&lt;/p&gt;

&lt;h2&gt;
  
  
  The experiment: give Claude Code the repository
&lt;/h2&gt;

&lt;p&gt;We tried it. We opened Claude Code in an &lt;strong&gt;empty folder&lt;/strong&gt; on an Apple M4 Pro, with nothing but the public repository and PyPI, and gave it this prompt:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Build a small command-line app, "dictate", that turns a voice recording into a transcript and a short summary.
Use NeuroBrix (pip install neurobrix; https://github.com/NeuroBrix/neurobrix) as the only inference engine: no PyTorch,
no model-specific pipeline code. Speech recognition with whisper-large-v3-turbo, the summary with TinyLlama-1.1B-Chat.
Output: a Markdown note next to the recording.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It read the README and &lt;code&gt;neurobrix --help&lt;/code&gt;, and wrote this. The whole application:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;#!/usr/bin/env python3&lt;/span&gt;
&lt;span class="s2"&gt;"""dictate — voice recording -&amp;gt; transcript -&amp;gt; short summary, with NeuroBrix as the inference engine.

    python dictate.py meeting.wav            # writes meeting.md
"""&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;subprocess&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tempfile&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;pathlib&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;Path&lt;/span&gt;

&lt;span class="no"&gt;STT_MODEL&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"whisper-large-v3-turbo"&lt;/span&gt;
&lt;span class="no"&gt;LLM_MODEL&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"TinyLlama-1.1B-Chat-v1.0"&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;neurobrix&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="s2"&gt;"""Run one `neurobrix run` and return the text it wrote to --output."""&lt;/span&gt;
    &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;tempfile&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;TemporaryDirectory&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;tmp&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;out&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Path&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tmp&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="s2"&gt;"out.txt"&lt;/span&gt;
        &lt;span class="n"&gt;subprocess&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"neurobrix"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"run"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"--output"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;check&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                       &lt;span class="n"&gt;stdout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;subprocess&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;DEVNULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;stderr&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;subprocess&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;DEVNULL&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;read_text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;strip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;audio&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nc"&gt;Path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;transcript&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;neurobrix&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"--model"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;STT_MODEL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"--audio"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;audio&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;summary&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;neurobrix&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"--model"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;LLM_MODEL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"--max-tokens"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"96"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                        &lt;span class="s2"&gt;"--prompt"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"Summarize this in two sentences:\n\n{transcript}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;note&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;audio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;with_suffix&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;".md"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;note&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;write_text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"# {audio.stem}\n\n## Summary\n\n{summary}\n\n## Transcript\n\n{transcript}\n"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;note&lt;/span&gt;


&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;__name__&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"__main__"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Path&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And the one-time setup:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install neurobrix
&lt;span class="o"&gt;[&lt;/span&gt; &lt;span class="s2"&gt;"$(uname)"&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; Darwin &lt;span class="o"&gt;]&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; python -m nbxtensor install-metal   &lt;span class="c"&gt;# Triton for Apple GPUs&lt;/span&gt;
neurobrix import openai/whisper-large-v3-turbo --accept-license
neurobrix import TinyLlama/TinyLlama-1.1B-Chat-v1.0 --accept-license
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;From the empty folder to a working note took &lt;strong&gt;under two minutes&lt;/strong&gt;, most of it the setup. 34 lines, two models from two different families, one helper function. Running it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ python dictate.py memo.wav
memo.md
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;## Transcript
&lt;/span&gt;
going along slushy country roads and speaking to damp audiences in draughty schoolrooms day after day
for a fortnight he'll have to put in an appearance at some place of worship on sunday morning and he
can come to us immediately afterwards
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The transcript is exact. The summary comes from a 1.1-billion-parameter model, so it is rough. That is the point we want to make next.&lt;/p&gt;

&lt;h2&gt;
  
  
  Changing a model is changing a string
&lt;/h2&gt;

&lt;p&gt;Want a better summary? Change &lt;code&gt;LLM_MODEL&lt;/code&gt; to a larger language model from the &lt;a href="https://neurobrix.es/models" rel="noopener noreferrer"&gt;catalogue&lt;/a&gt; — Qwen3, DeepSeek-Coder-V2-Lite, a vision-language model if you want to send images — and nothing else in the program changes. Want the note read aloud? One more call with a text-to-speech model. Want a cover image for it? One more call with an image model. Same verb, same flags, same output convention.&lt;/p&gt;

&lt;p&gt;That is what "no glue code" means in practice. With a framework-first stack, each of those changes is a new library, a new pipeline, a new set of preprocessing rules, sometimes a new version of PyTorch. With NeuroBrix, the engine absorbs the difference, because the difference lives in the model's container, not in your code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why an agent finds this easier
&lt;/h2&gt;

&lt;p&gt;We are not claiming magic. We are claiming a smaller surface, and agents are good at small surfaces:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One API to learn instead of N.&lt;/strong&gt; An agent writing against PyTorch and a model library has to get each model's loader, processor, dtype, device placement and output format right. With NeuroBrix it gets &lt;code&gt;neurobrix run&lt;/code&gt; right once.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No environment puzzle.&lt;/strong&gt; No CUDA toolkit to match to a driver, no PyTorch wheel to pick per platform. The light install is 1.48 GB (6.82 GB with PyTorch), and &lt;code&gt;neurobrix doctor&lt;/code&gt; tells the agent exactly what is missing and the command that installs it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The same path on every machine.&lt;/strong&gt; Linux, Windows and macOS; NVIDIA, AMD, Intel and Apple GPUs. The code the agent writes on one runs on the others.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Readable, honest output.&lt;/strong&gt; Every run prints which engine ran and why, the placement Prism chose, and whether kernel settings came from a certificate. When something goes wrong, the agent can read what happened instead of guessing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Validated surface.&lt;/strong&gt; Every release runs all 49 models on both engines through this exact entry point, outputs compared byte for byte with judged outputs. The command the agent calls is the command we test.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Keeping a model warm
&lt;/h2&gt;

&lt;p&gt;A command per call reloads the weights each time, which is fine for a note and wasteful for a chat. &lt;code&gt;neurobrix serve --model M&lt;/code&gt; keeps a model's weights in memory and answers requests; &lt;code&gt;neurobrix chat&lt;/code&gt; talks to it. A documented Python API and a local server with a JSON interface for every command are on the roadmap, and they will keep this same shape: one entry point, any model.&lt;/p&gt;

&lt;h2&gt;
  
  
  The way we build it
&lt;/h2&gt;

&lt;p&gt;NeuroBrix is one engine with &lt;strong&gt;zero per-model code&lt;/strong&gt;. Every model ships as a &lt;strong&gt;&lt;code&gt;.nbx&lt;/code&gt; container&lt;/strong&gt; (graph and weights); adding a model means adding a container, not writing code, so &lt;strong&gt;the catalogue grows with every release&lt;/strong&gt;. &lt;strong&gt;Prism&lt;/strong&gt; plans memory and placement from a file of facts about your hardware. The &lt;strong&gt;Triton engine&lt;/strong&gt; runs on &lt;a href="https://github.com/NeuroBrix/nbxtensor" rel="noopener noreferrer"&gt;nbxtensor&lt;/a&gt;, our own tensor library, with no PyTorch; an optional PyTorch engine runs the same containers. Kernel settings are &lt;strong&gt;certified once per GPU class&lt;/strong&gt; against a float64 oracle instead of being autotuned on your machine.&lt;/p&gt;

&lt;h2&gt;
  
  
  The ecosystem
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;NeuroBrix Engine&lt;/strong&gt; — &lt;code&gt;pip install neurobrix&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;nbxtensor&lt;/strong&gt; — the tensor library without PyTorch&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Model Hub&lt;/strong&gt; — &lt;a href="https://neurobrix.es/models" rel="noopener noreferrer"&gt;neurobrix.es/models&lt;/a&gt;, more models every release&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;triton-ext&lt;/strong&gt; — our Triton build for Apple GPUs&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Studio&lt;/strong&gt; — a desktop application for Linux, Windows and macOS, in development, for people who will never open a terminal&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Next on the roadmap: local agents built on the engine, a local server for applications, training in nbxtensor, nbxtensor 2.0 in Rust, and &lt;code&gt;.nbx&lt;/code&gt; as an open model standard.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it with your agent
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install neurobrix
neurobrix doctor
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then open Claude Code (or your coding agent) in an empty folder, point it at &lt;a href="https://github.com/NeuroBrix/neurobrix" rel="noopener noreferrer"&gt;github.com/NeuroBrix/neurobrix&lt;/a&gt;, and describe the app you want. Tell us what it built.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Star the repository&lt;/strong&gt; — it is how other developers find it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open an issue&lt;/strong&gt; when something breaks, or to request a model.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Apache 2.0.&lt;/p&gt;

&lt;p&gt;Hocine Benkelaya, NeuroBrix&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>python</category>
      <category>productivity</category>
    </item>
    <item>
      <title>nbxtensor: a tensor library for inference that doesn't need PyTorch</title>
      <dc:creator>Hocine Benkelaya</dc:creator>
      <pubDate>Sat, 07 Nov 2026 22:49:21 +0000</pubDate>
      <link>https://dev.to/benkelaya/nbxtensor-a-tensor-library-for-inference-that-doesnt-need-pytorch-5bmp</link>
      <guid>https://dev.to/benkelaya/nbxtensor-a-tensor-library-for-inference-that-doesnt-need-pytorch-5bmp</guid>
      <description>&lt;p&gt;If you want to run a modern model on a GPU from Python, the default answer is "install PyTorch". For training, that is a fine answer. For inference it brings a lot along: a multi-gigabyte install, a CUDA-first view of the world, version pinning between the framework, the driver and the toolkit, and a runtime whose memory behaviour you discover rather than decide.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;nbxtensor&lt;/strong&gt; is NeuroBrix's answer for inference: a tensor library with Triton kernels, planned memory and certified tuning, and no PyTorch.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install nbxtensor
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It runs wherever Triton runs: &lt;strong&gt;NVIDIA, AMD, Intel and Apple&lt;/strong&gt; GPUs, on &lt;strong&gt;Linux, Windows and macOS&lt;/strong&gt;.&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%2Fb0hpos9r3feaiiwn2c6d.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%2Fb0hpos9r3feaiiwn2c6d.png" alt="The stack without PyTorch" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  "No PyTorch" means no PyTorch
&lt;/h2&gt;

&lt;p&gt;Not "PyTorch is optional". nbxtensor never imports torch: not as a dependency, not as an optional extra, not in a fallback branch, not inside a probe that checks whether a GPU exists. Its kernels, its tests and the models NeuroBrix runs on it all work in an environment where torch is not installed.&lt;/p&gt;

&lt;p&gt;The effect shows up in the NeuroBrix engine built on it. Measured on a clean machine, the light install (the Triton engine on nbxtensor) is &lt;strong&gt;1.48 GB&lt;/strong&gt;; the same engine with PyTorch added is &lt;strong&gt;6.82 GB&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;If your code already lives with PyTorch, exchange goes through DLPack, so you are not locked in either direction.&lt;/p&gt;

&lt;h2&gt;
  
  
  A first kernel
&lt;/h2&gt;

&lt;p&gt;This is the example from the README. It is executed by the test suite on every change, so it cannot silently rot:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;numpy&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;nbxtensor&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tensor&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;NBXTensor&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;nbxtensor&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ops&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;linalg_wrappers&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;mm&lt;/span&gt;

&lt;span class="n"&gt;rng&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;random&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;default_rng&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rng&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;standard_normal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;256&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;512&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;astype&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;float16&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;b&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rng&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;standard_normal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;512&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;128&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;astype&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;float16&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;mm&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;NBXTensor&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;from_numpy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;NBXTensor&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;from_numpy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;   &lt;span class="c1"&gt;# a Triton kernel on the GPU, no torch&lt;/span&gt;

&lt;span class="n"&gt;ref&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;astype&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;float32&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; @ &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;astype&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;float32&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;shape&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;256&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;128&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;allclose&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;numpy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;astype&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;float32&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ref&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rtol&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;2e-2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;atol&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;2e-1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;NBXTensor&lt;/code&gt; holds device memory, a shape and a dtype. The operation dispatches to a Triton kernel. There is nothing else in the path.&lt;/p&gt;

&lt;h2&gt;
  
  
  The four parts
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Tensors.&lt;/strong&gt; Device memory, shapes, strides, views, dtypes and their promotion rules: the plumbing a graph needs, without a framework underneath. Dtypes are described by a table, not scattered through code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Triton kernels.&lt;/strong&gt; Matrix products, attention, convolutions, normalisations, elementwise operations and reductions, written in Triton so that one source serves every GPU vendor Triton supports. A device is described by a file of facts (tile sizes, shared memory, the matrix unit, the tuning ladders), never by code. Supporting a new GPU class is a matter of facts and certificates, not of forking kernels.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Planned memory.&lt;/strong&gt; Allocators per device behind one interface, and a planner that sizes buffers before the first run. Every kernel declares what it costs (its outputs, workspace and scratch), so a planner can price a whole model before running it. In NeuroBrix that planner is Prism: it reads the hardware profile and decides whether a model sits on one GPU, is split across several, is streamed, or has its largest operations tiled. Memory is something you plan, not something you find out about when the allocator fails.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Certified tuning.&lt;/strong&gt; A Triton kernel has settings (block sizes, warps, stages) and the right ones depend on the GPU and the shape. The usual approach is to autotune on the user's machine at the first run. nbxtensor instead serves settings that were &lt;strong&gt;certified once per GPU class&lt;/strong&gt;.&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%2Fdolxk6jyhks96exlyry0.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%2Fdolxk6jyhks96exlyry0.png" alt="Certified, not autotuned" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What it looks like in a real run
&lt;/h2&gt;

&lt;p&gt;Here is NeuroBrix generating a 1024x1024 image with Sana 1600M on an Apple M4 Pro, in a clean environment installed from PyPI, with no PyTorch on the machine. The lines below are copied from that session (trimmed); every one of them comes from nbxtensor or from Prism planning on top of it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[Engine] engine: triton (torch not installed)
   Strategy: single_gpu
   Devices:  mps:0  (11105 MB planned)
   Host:     13925 MB on the triton engine = resident 169 MB + engine 374 MB + held 0 MB (eager)
             + loading 2250 MB + output 27 MB + device plan 11105 MB (unified)
[autotune] certified directory: 70 key(s) served without a sweep, 0 swept at runtime (kept locally), 0 from the local replay cache
SAVED: sana_demo.png
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Read it top to bottom and you see the four parts at work. The engine line confirms there is no torch in the process. The planner has priced the model before running it: how much the device plan needs, how much the host holds while loading, and why. And the autotune line says that every kernel setting this image needed was served from a certificate: none was tuned on this machine.&lt;/p&gt;

&lt;p&gt;That is the point of the library. Memory is a plan you can read before the run, kernel settings are proofs you can inspect, and the whole thing runs without a training framework installed.&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%2Frbjmtzhcsqudw9yihiu6.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%2Frbjmtzhcsqudw9yihiu6.png" alt="The image that run produced" width="800" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The way we build it
&lt;/h2&gt;

&lt;p&gt;nbxtensor follows the same rules as the engine it was built for.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Correctness before speed.&lt;/strong&gt; Every candidate kernel setting is checked against a float64 oracle before it is ever timed. A setting that computes the wrong answer is excluded, however fast it is.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Measured, then recorded.&lt;/strong&gt; The settings that pass are timed on the GPU class, and the winner is stored with its proof: its deviation from the oracle, its time, and the compiler that produced it. A certificate made under one Triton build is not served under another until it has been proven again.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Shared, not repeated.&lt;/strong&gt; 18,552 settings are certified for Apple GPUs today, and they ship with the package. If your GPU class has no certificate yet, the missing settings are tuned once on your machine and kept; you can certify them with the same tool and send them as a pull request, and nobody with your GPU tunes them again.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Facts, not special cases.&lt;/strong&gt; The library never knows which model it is running. It knows tensors, kernels and costs. That is what lets one engine on top of it run 49 models across 9 families.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tested where it matters.&lt;/strong&gt; NeuroBrix runs all 49 models on both of its engines through the real entry point at every release, outputs compared byte for byte with judged outputs. nbxtensor is the foundation of one of those two engines, so every release is also a release test of the library.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fast where it counts
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;In NeuroBrix's showcase benchmark of 2026-11-08 on Tesla V100 (32 GB and 16 GB, 18 models, one run alone on the machine, median of 3), the Triton engine on nbxtensor was faster than the PyTorch engine in 30 of 36 model-and-card pairs — up to 5.24x on Janus-Pro-7B (156.7 s down to 29.9 s), 3.64x on DeepSeek-Coder-V2-Lite, 2.89x on Qwen3-Coder-30B-A3B — and slower in 6 (Kokoro, Flex.1, Sana 4K), all listed in &lt;a href="https://github.com/NeuroBrix/neurobrix/blob/main/docs/BENCHMARKS.md" rel="noopener noreferrer"&gt;docs/BENCHMARKS.md&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;On Volta, Triton compiles matrix products to FMA, so the V100's tensor cores sit idle. nbxtensor brings them back with hand-written m8n8k4 kernels for matrix products, convolutions, flash attention and the fused mixture-of-experts GEMM, chosen per operation by measurement rather than by rule.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Apple Silicon
&lt;/h2&gt;

&lt;p&gt;PyPI publishes no Triton for macOS. nbxtensor installs NeuroBrix's own Triton build for Apple GPUs (&lt;a href="https://github.com/NeuroBrix/triton-ext" rel="noopener noreferrer"&gt;NeuroBrix/triton-ext&lt;/a&gt;) in one command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install nbxtensor
python -m nbxtensor install-metal
python -m nbxtensor doctor     &lt;span class="c"&gt;# -&amp;gt; backend in force: metal (the Apple GPU, through Metal)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;doctor&lt;/code&gt; works on every platform. It names the backend in force and, when a GPU runtime or a Triton backend is missing, the exact command that installs it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who it is for
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Application developers&lt;/strong&gt; who want a model inside their product without shipping a training framework with it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Teams on mixed hardware&lt;/strong&gt;, where the same code has to run on NVIDIA, AMD, Intel and Apple GPUs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;People with older GPUs&lt;/strong&gt;, V100s in particular, who want the hardware they already own used properly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Library authors&lt;/strong&gt; who need tensors and fast kernels without a framework's assumptions.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The ecosystem around it
&lt;/h2&gt;

&lt;p&gt;nbxtensor is one piece of the NeuroBrix stack:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;NeuroBrix Engine&lt;/strong&gt;: the inference engine whose Triton engine is built on nbxtensor.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Model Hub&lt;/strong&gt;: &lt;code&gt;.nbx&lt;/code&gt; containers for 49 models, at &lt;a href="https://neurobrix.es/models" rel="noopener noreferrer"&gt;neurobrix.es/models&lt;/a&gt;, more with every release.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;triton-ext&lt;/strong&gt;: our Triton build for Apple GPUs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Studio&lt;/strong&gt;: a desktop application for Linux, Windows and macOS, in development.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where it is going
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Training.&lt;/strong&gt; nbxtensor grows from inference into training and fine-tuning, with the same library and the same certified kernels.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Faster than the frameworks.&lt;/strong&gt; Kernel fusion and graph-level simplification on top of certified kernels.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Every processor.&lt;/strong&gt; AMD and Intel GPUs through Triton, many-core CPUs, ARM64 laptops and phones, accelerators beyond GPUs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;nbxtensor 2.0 in Rust.&lt;/strong&gt; The same API, rewritten in Rust for speed and safety.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Inference first: training is not in this release.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get started
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install nbxtensor
python -m nbxtensor doctor
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Star the repository&lt;/strong&gt;: &lt;a href="https://github.com/NeuroBrix/nbxtensor" rel="noopener noreferrer"&gt;github.com/NeuroBrix/nbxtensor&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Run the README example&lt;/strong&gt; on your GPU and tell us what happened.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Certify your GPU class&lt;/strong&gt; and share it (&lt;a href="https://github.com/NeuroBrix/nbxtensor#certify-your-own-hardware" rel="noopener noreferrer"&gt;how&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open an issue&lt;/strong&gt; when something breaks on your hardware.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Links: &lt;a href="https://github.com/NeuroBrix/neurobrix/blob/main/docs/nbxtensor/API.md" rel="noopener noreferrer"&gt;API reference&lt;/a&gt; · &lt;a href="https://github.com/NeuroBrix/neurobrix" rel="noopener noreferrer"&gt;NeuroBrix&lt;/a&gt; · &lt;a href="https://neurobrix.es" rel="noopener noreferrer"&gt;neurobrix.es&lt;/a&gt;. Apache 2.0.&lt;/p&gt;

&lt;p&gt;Hocine Benkelaya, NeuroBrix&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>python</category>
      <category>machinelearning</category>
    </item>
    <item>
      <title>NeuroBrix 0.6: 49 AI models, one engine, no PyTorch</title>
      <dc:creator>Hocine Benkelaya</dc:creator>
      <pubDate>Sat, 07 Nov 2026 22:48:45 +0000</pubDate>
      <link>https://dev.to/benkelaya/neurobrix-06-49-ai-models-one-engine-no-pytorch-16ha</link>
      <guid>https://dev.to/benkelaya/neurobrix-06-49-ai-models-one-engine-no-pytorch-16ha</guid>
      <description>&lt;p&gt;Every team that ships AI features hits the same wall. The language model needs one pipeline, speech recognition another, image generation a third, video a fourth. Each comes with its own loader, its own memory habits, its own list of supported GPUs and its own pile of glue code. Add a model and you add a pipeline. Change GPU vendor and you start over.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;NeuroBrix removes that wall. One engine runs every model.&lt;/strong&gt; Version 0.6 is its first stable release.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install neurobrix
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It runs on &lt;strong&gt;Linux, Windows and macOS&lt;/strong&gt;, on &lt;strong&gt;NVIDIA, AMD, Intel and Apple&lt;/strong&gt; GPUs: wherever Triton runs.&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%2F2rlsgwjkqj191cln99id.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%2F2rlsgwjkqj191cln99id.png" alt="How NeuroBrix works" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What runs today: 49 models, 9 families
&lt;/h2&gt;

&lt;p&gt;NeuroBrix 0.6 runs 49 models in 9 families through one command line:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Language and code&lt;/strong&gt;: Qwen3-30B-A3B, Qwen3-Coder, DeepSeek-Coder-V2-Lite, DeepSeek-MoE, Granite, TinyLlama&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Vision-language and omni&lt;/strong&gt;: Qwen3-Omni, Qwen3-VL, MiniCPM-o, Ming-Lite-Omni, GLM-4.1V, Janus-Pro&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Speech recognition and understanding&lt;/strong&gt;: Whisper, Parakeet, Voxtral, Canary-Qwen, Granite Speech&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Text-to-speech&lt;/strong&gt;: Kokoro, VibeVoice, Orpheus, Chatterbox, OpenAudio S1&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Image generation&lt;/strong&gt;: Sana 1K and 4K, PixArt, Flex.1&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Video generation&lt;/strong&gt;: Wan 2.1 and 2.2, CogVideoX, Mochi, Allegro, Open-Sora 2, SANA-Video&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Upscaling&lt;/strong&gt;: Real-ESRGAN, HAT, SwinIR, Swin2SR&lt;/li&gt;
&lt;/ul&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%2Fwtn9gfhsnb66c9f2czig.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%2Fwtn9gfhsnb66c9f2czig.png" alt="49 models, 9 families, one engine" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;They all go through the same command. The family is read from the model, so &lt;code&gt;run&lt;/code&gt; asks for the inputs that family needs:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;neurobrix import TinyLlama/TinyLlama-1.1B-Chat-v1.0
neurobrix run --model TinyLlama-1.1B-Chat-v1.0 --prompt &lt;span class="s2"&gt;"Explain recursion."&lt;/span&gt; --max-tokens 256

neurobrix run --model whisper-large-v3-turbo --audio recording.wav
neurobrix run --model Kokoro-82M --prompt &lt;span class="s2"&gt;"Hello from NeuroBrix."&lt;/span&gt; --output speech.wav
neurobrix run --model Flex.1-alpha --prompt &lt;span class="s2"&gt;"a lighthouse at dusk"&lt;/span&gt; --steps 20 --seed 42 --output lighthouse.png
neurobrix run --model CogVideoX-2b --prompt &lt;span class="s2"&gt;"a hot air balloon over mountains"&lt;/span&gt; --num-frames 17 --output balloon.mp4
neurobrix upscale --model Real-ESRGAN-RealESRGAN_x4plus --input photo.png --output photo_x4.png
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The browsable catalogue lives at &lt;a href="https://neurobrix.es/models" rel="noopener noreferrer"&gt;neurobrix.es/models&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a run looks like
&lt;/h2&gt;

&lt;p&gt;This is a real run on an Apple M4 Pro, in a clean virtual environment installed from PyPI, with no PyTorch on the machine (trimmed; the full session is in the demo video):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ neurobrix run --model TinyLlama-1.1B-Chat-v1.0 --prompt "Explain in one sentence why GPUs are good at running neural networks." --max-tokens 40
NeuroBrix Run v0.6.2
[Engine] engine: triton (torch not installed)
[2/4] Solving hardware allocation...
   Strategy: single_gpu
[Execute] Running pipeline...
   Engine: TRITON
[autotune] certified directory: 17 key(s) served without a sweep, 0 swept at runtime (kept locally), 1 from the local replay cache
[Output] Generated 40 tokens

GPUs (Graphics Processing Units) are good at running neural networks because they are designed
to handle large amounts of data and complex computations quickly and efficiently. ...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three things to notice, and none of them needed a flag. The engine line says which engine runs and why. Prism names the strategy it chose for this machine. And the autotune line says every kernel setting came from a certificate: nothing was tuned on this machine before the first token.&lt;/p&gt;

&lt;h2&gt;
  
  
  The way we build it
&lt;/h2&gt;

&lt;p&gt;NeuroBrix is not a collection of integrations. It is an engine built on a handful of rules we do not bend. They are why one small team can run 49 models across 9 families on four GPU vendors.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One engine, zero per-model code.&lt;/strong&gt; There is no &lt;code&gt;if model == ...&lt;/code&gt; anywhere in the runtime, no pipeline class per model, no special case for a family. The engine knows tensors, graphs and plans. When a model misbehaves, we fix the engine, and every model benefits.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;.nbx&lt;/code&gt;, one container for every model.&lt;/strong&gt; Every model ships as a &lt;code&gt;.nbx&lt;/code&gt; container: its graph and its weights in one file format. The engine reads the container and executes it. Adding a model means adding a container, not writing code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prism decides from facts.&lt;/strong&gt; Before anything runs, Prism, the memory and placement planner, reads a hardware profile (a file of facts about your devices) and decides how the model is placed: on one GPU, across several, streamed in pieces, or with its largest operations tiled. No hidden heuristics: when the machine is busy, Prism says so and tells you what it chose instead.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Two engines, no shared compute code.&lt;/strong&gt; The Triton engine runs on &lt;a href="https://github.com/NeuroBrix/nbxtensor" rel="noopener noreferrer"&gt;nbxtensor&lt;/a&gt;, our own tensor library, with no PyTorch at import or at run time. An optional PyTorch engine (&lt;code&gt;pip install "neurobrix[pytorch]"&lt;/code&gt;) runs the same containers and the same plans. The two share the container, the plan and the flow; they share no compute code, so each one checks the other.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Certified, not autotuned.&lt;/strong&gt; Every kernel setting is certified once per GPU class: checked against a float64 oracle, then timed. Your machine does not sweep settings at its first run. 18,552 settings are certified for Apple GPUs alone. Anyone can certify their own GPU class and share it by pull request, and then nobody with that GPU tunes again.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Validated through the real entry point, every release.&lt;/strong&gt; Every release runs all 49 models on both engines through the same &lt;code&gt;neurobrix run&lt;/code&gt; you type: for 0.6.0, 196 of 196 cells on 4x V100. Outputs are compared byte for byte with outputs that were judged by eye: text read, images and videos looked at, audio transcribed. Runs are deterministic: the same inputs give identical bytes from one repetition to the next. A release that changes an output has to explain why.&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%2Fdolxk6jyhks96exlyry0.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%2Fdolxk6jyhks96exlyry0.png" alt="Certified, not autotuned" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  No PyTorch, and it shows
&lt;/h2&gt;

&lt;p&gt;The Triton engine needs no PyTorch at all. On disk, measured on a clean machine, the light install is &lt;strong&gt;1.48 GB&lt;/strong&gt;; with PyTorch it is &lt;strong&gt;6.82 GB&lt;/strong&gt;. By default NeuroBrix uses PyTorch if it is installed and the Triton engine otherwise; &lt;code&gt;--triton&lt;/code&gt; picks the Triton engine explicitly.&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%2Fb0hpos9r3feaiiwn2c6d.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%2Fb0hpos9r3feaiiwn2c6d.png" alt="The stack without PyTorch" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Speed
&lt;/h2&gt;

&lt;p&gt;Every number below is a cell of one dated register in the repository, measured through the same &lt;code&gt;neurobrix run&lt;/code&gt; you type, with certified kernels only, one run alone on the whole machine, median of three. Where the Triton engine is slower, the number is there too.&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%2Ffe6nsklrknvkmw4fjtgv.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%2Ffe6nsklrknvkmw4fjtgv.png" alt="Triton engine vs PyTorch engine, NeuroBrix 0.6.2, 18 models on V100" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;On 18 models, two engines and two cards (Tesla V100 32 GB and 16 GB), &lt;strong&gt;the Triton engine is faster than the PyTorch engine in 30 of the 36 pairs&lt;/strong&gt; and slower in 6. The time compared is the run time after the weights are loaded. A few rows:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;model&lt;/th&gt;
&lt;th&gt;card&lt;/th&gt;
&lt;th&gt;PyTorch&lt;/th&gt;
&lt;th&gt;Triton&lt;/th&gt;
&lt;th&gt;ratio&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Janus-Pro-7B&lt;/td&gt;
&lt;td&gt;16 GB&lt;/td&gt;
&lt;td&gt;156.7 s&lt;/td&gt;
&lt;td&gt;29.9 s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;x5.24&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DeepSeek-Coder-V2-Lite&lt;/td&gt;
&lt;td&gt;32 GB&lt;/td&gt;
&lt;td&gt;19.3 s&lt;/td&gt;
&lt;td&gt;5.3 s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;x3.64&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Voxtral-Mini-3B&lt;/td&gt;
&lt;td&gt;16 GB&lt;/td&gt;
&lt;td&gt;13.1 s&lt;/td&gt;
&lt;td&gt;4.0 s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;x3.32&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Qwen3-Coder-30B-A3B&lt;/td&gt;
&lt;td&gt;16 GB&lt;/td&gt;
&lt;td&gt;83.8 s&lt;/td&gt;
&lt;td&gt;29.0 s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;x2.89&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TinyLlama-1.1B&lt;/td&gt;
&lt;td&gt;32 GB&lt;/td&gt;
&lt;td&gt;5.0 s&lt;/td&gt;
&lt;td&gt;2.3 s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;x2.23&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;whisper-large-v3-turbo&lt;/td&gt;
&lt;td&gt;16 GB&lt;/td&gt;
&lt;td&gt;3.6 s&lt;/td&gt;
&lt;td&gt;1.8 s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;x2.02&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Kokoro-82M&lt;/td&gt;
&lt;td&gt;16 GB&lt;/td&gt;
&lt;td&gt;5.0 s&lt;/td&gt;
&lt;td&gt;7.2 s&lt;/td&gt;
&lt;td&gt;x0.70&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Flex.1-alpha&lt;/td&gt;
&lt;td&gt;16 GB&lt;/td&gt;
&lt;td&gt;18.4 s&lt;/td&gt;
&lt;td&gt;24.4 s&lt;/td&gt;
&lt;td&gt;x0.76&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The full table, every command, the load times and the spread of the three runs are in &lt;a href="https://github.com/NeuroBrix/neurobrix/blob/main/docs/BENCHMARKS.md" rel="noopener noreferrer"&gt;docs/BENCHMARKS.md&lt;/a&gt;; the register is &lt;code&gt;benchmarks/results/showcase_2026-11-08_v0.6.2.tsv&lt;/code&gt;. The six losses (Kokoro, Flex.1, Sana 4K) are open work, named as such.&lt;/p&gt;

&lt;p&gt;On Volta, Triton compiles matrix products to FMA, which leaves the V100's tensor cores idle. nbxtensor brings them back with hand-written m8n8k4 kernels, chosen per operation by measurement.&lt;/p&gt;

&lt;h2&gt;
  
  
  Apple Silicon, first class
&lt;/h2&gt;

&lt;p&gt;PyPI publishes no Triton for macOS. NeuroBrix maintains its own Triton build for Apple GPUs, &lt;a href="https://github.com/NeuroBrix/triton-ext" rel="noopener noreferrer"&gt;NeuroBrix/triton-ext&lt;/a&gt;, installed in one line:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install neurobrix
python -m nbxtensor install-metal
neurobrix doctor
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;doctor&lt;/code&gt; tells you which engine is ready and, if something is missing, the exact command that installs it.&lt;/p&gt;

&lt;h2&gt;
  
  
  More models, every release
&lt;/h2&gt;

&lt;p&gt;0.6 runs 49 models. The catalogue grows with every release: each new model arrives as a container that runs on the same engine, the same plan and the same certified kernels, on every platform the engine supports. Want a model? Request it through the &lt;a href="https://github.com/NeuroBrix/neurobrix/issues/new/choose" rel="noopener noreferrer"&gt;issues&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The ecosystem
&lt;/h2&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%2Fmn10ot923md76yd5if1v.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%2Fmn10ot923md76yd5if1v.png" alt="The NeuroBrix ecosystem" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;NeuroBrix Engine&lt;/strong&gt;: the inference engine, &lt;code&gt;pip install neurobrix&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;nbxtensor&lt;/strong&gt;: the tensor library without PyTorch, &lt;code&gt;pip install nbxtensor&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Model Hub&lt;/strong&gt;: the &lt;code&gt;.nbx&lt;/code&gt; containers, at &lt;a href="https://neurobrix.es/models" rel="noopener noreferrer"&gt;neurobrix.es/models&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;triton-ext&lt;/strong&gt;: our Triton build for Apple GPUs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Studio&lt;/strong&gt;: a desktop application for Linux, Windows and macOS, in development: the engine, the models and a real interface, for people who will never open a terminal.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where we are going
&lt;/h2&gt;

&lt;p&gt;NeuroBrix started as an inference engine. It will not stop there: the goal is a complete, open AI stack that you own end to end.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Faster than the frameworks.&lt;/strong&gt; Kernel fusion, graph-level simplification (operations that cancel out are never computed) and per-model tuning.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Every processor.&lt;/strong&gt; AMD and Intel GPUs through Triton, many-core CPUs used to their last core, ARM64 laptops and phones, accelerators beyond GPUs, and multi-GPU across NVLink, PCIe and network links, chosen from the hardware profile.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Community-certified hardware.&lt;/strong&gt; Every GPU class certified once by its owners, shared through a pull request, never tuned again.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Training.&lt;/strong&gt; nbxtensor grows from inference into training and fine-tuning, with the same certified kernels.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Local agents.&lt;/strong&gt; Coding, tools, multimodal assistants that see, hear and speak, running on your machine.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Serving and integration.&lt;/strong&gt; A local server for your applications, a JSON interface for every command, and NeuroBrix as an engine inside other tools.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Studio for everyone.&lt;/strong&gt; One installer: engine, models and interface.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;nbxtensor 2.0 in Rust.&lt;/strong&gt; Same API, rewritten for speed and safety.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An open model standard.&lt;/strong&gt; &lt;code&gt;.nbx&lt;/code&gt; as a common container any tool can read.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Get started
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install neurobrix
neurobrix import TinyLlama/TinyLlama-1.1B-Chat-v1.0
neurobrix run --model TinyLlama-1.1B-Chat-v1.0 --prompt &lt;span class="s2"&gt;"Hello"&lt;/span&gt; --max-tokens 64
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Star the repository&lt;/strong&gt;: &lt;a href="https://github.com/NeuroBrix/neurobrix" rel="noopener noreferrer"&gt;github.com/NeuroBrix/neurobrix&lt;/a&gt;. It is how others find it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Run a model on your GPU&lt;/strong&gt; and tell us what happened.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Certify your GPU class&lt;/strong&gt; and send the certificates as a pull request (&lt;a href="https://github.com/NeuroBrix/nbxtensor#certify-your-own-hardware" rel="noopener noreferrer"&gt;how&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open an issue&lt;/strong&gt; when something breaks, or to request a model.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Links: &lt;a href="https://github.com/NeuroBrix/neurobrix/releases/tag/v0.6.2" rel="noopener noreferrer"&gt;release notes&lt;/a&gt; · &lt;a href="https://github.com/NeuroBrix/nbxtensor" rel="noopener noreferrer"&gt;nbxtensor&lt;/a&gt; · &lt;a href="https://neurobrix.es/models" rel="noopener noreferrer"&gt;models&lt;/a&gt; · &lt;a href="https://github.com/orgs/NeuroBrix/discussions/4" rel="noopener noreferrer"&gt;discussion&lt;/a&gt;. Apache 2.0.&lt;/p&gt;

&lt;p&gt;Hocine Benkelaya, NeuroBrix&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>python</category>
      <category>machinelearning</category>
    </item>
  </channel>
</rss>
