<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/">
  <title>Gradiated Library</title>
  <subtitle>The Gradiated magazine: interactive journeys, essays, and films on how machine intelligence gets made, from sand to thought.</subtitle>
  <id>https://gradiated.com/library/</id>
  <link rel="alternate" type="text/html" href="https://gradiated.com/library/" />
  <link rel="self" type="application/atom+xml" href="https://gradiated.com/feed.xml" />
  <updated>2026-11-25T00:00:00Z</updated>
  <icon>https://gradiated.com/favicon.ico</icon>
  <logo>https://gradiated.com/brand/png/gradiated-mark-dark-1024.png</logo>
  <entry>
    <title>November 2026: Cheaper isn’t enough</title>
    <id>https://gradiated.com/library/2026-11-finding-the-bottleneck/</id>
    <link rel="alternate" type="text/html" href="https://gradiated.com/library/2026-11-finding-the-bottleneck/" />
    <link rel="enclosure" type="image/png" href="https://gradiated.com/brand/library/cheaper-isnt-enough.png" />
    <media:thumbnail url="https://gradiated.com/brand/library/cheaper-isnt-enough.png" />
    <published>2026-11-25T00:00:00Z</published>
    <updated>2026-11-25T00:00:00Z</updated>
    <author><name>James Hawkins</name></author>
    <summary>Last month, I wrote about starting Gradiated on hard mode: doing cold outreach myself, implementing open-weight models for customers, and trying to…</summary>
    <content type="html">&lt;h2&gt;Getting into the game&lt;/h2&gt;
&lt;p&gt;Last month, I wrote about starting Gradiated on hard mode: doing cold outreach myself, implementing open-weight models for customers, and trying to learn before trying to scale. November has turned out to be a really solid month of learning for us.&lt;/p&gt;
&lt;p&gt;We&amp;#x27;ve gone from zero inference revenue to very roughly $170K in annualized revenue, based on the average of the last two weeks. Initially this sounds exciting (at this kind of growth rate, we&amp;#x27;ll be trillionaires, surely!), especially given that our first customer was doing about $0.50 a day. It also needs a fairly large caveat. It&amp;#x27;s bad quality revenue.&lt;/p&gt;
&lt;p&gt;Almost all of that revenue comes through inference market places, serving unusual models. It was very hard getting listed, and where we did get listed on relatively obscure routers, the router takes well over half of what the customer pays, whilst we get to pay for all the GPUs!&lt;/p&gt;
&lt;h2&gt;Demand is the hard part&lt;/h2&gt;
&lt;p&gt;When we first thought about entering this market, we expected near-infinite demand for open-weight models. Getting enough GPUs and competing with other inference providers seemed like the hard parts. Getting customers to use the models seemed relatively straightforward.&lt;/p&gt;
&lt;p&gt;That isn&amp;#x27;t what we&amp;#x27;ve found. Demand is relatively much smaller than we expected compared to supply - there are plenty of providers for buyers to choose from. Having capacity and being technically good at serving a model doesn&amp;#x27;t automatically give anyone a reason to choose you.&lt;/p&gt;
&lt;p&gt;This changes how we think about building the business. We need to understand where people actually want open-weight models, what they&amp;#x27;re trying to do with them, and what stops them from using them today. Otherwise, it&amp;#x27;s quite possible to build an impressive inference service and spend all your time trying to find work for idle GPUs, alongside every other Tom, Dick and Harry.&lt;/p&gt;
&lt;h2&gt;Cheaper isn&amp;#x27;t always useful&lt;/h2&gt;
&lt;p&gt;We also expected customers to be very sensitive to price. If inference is becoming a commodity and switching providers is easy, surely being cheaper should be a big advantage?&lt;/p&gt;
&lt;p&gt;In practice, quality is overwhelmingly the bottleneck today. If an open-weight model already costs a tenth of the frontier model a customer uses, making it another 20% cheaper isn&amp;#x27;t that important. The bigger question is can you make use of open-weight models at all?&lt;/p&gt;
&lt;p&gt;Optimization is still very important, but not something we need to shout about to customers. A customer trying to get their agent to work doesn&amp;#x27;t care deeply whether we&amp;#x27;ve written a clever kernel or have access to custom hardware. They care whether their agent works, and hopefully that it&amp;#x27;s being run on secure and reliable infrastructure. Certainly, our margins will care a lot about how efficiently we serve models once we have customers, and that often goes hand in hand with reliability, but we need to distinguish between something that makes our business better and something that helps a customer adopt the product in the first place.&lt;/p&gt;
&lt;h2&gt;More clever models lead to more complex tasks&lt;/h2&gt;
&lt;p&gt;We felt initially that open source models were easily good enough to do lots of tasks, so there would be a huge shift in demand towards them. We saw things like the rise of open source inference on OpenRouter as evidence of this.&lt;/p&gt;
&lt;p&gt;However, I think as models have become more powerful, people are simply picking up increasingly complex tasks themselves. For example, I&amp;#x27;ve spent today creating a whole bunch of video memes for when we start talking about our work on social media - I&amp;#x27;m able to create scripts, video clips, music, months of work for an experienced editor. Sure, I&amp;#x27;m getting away with it because it&amp;#x27;s memes and they can be low quality, but I would pay ten times as much for something better quality.&lt;/p&gt;
&lt;p&gt;When we&amp;#x27;ve critically assessed the best open source models on production tasks to power software products, we&amp;#x27;ve had an overall feeling that many of them are heavily benchmaxxed, in a way that feels &lt;em&gt;less&lt;/em&gt; true for the frontier models. Intelligence is much more than your ability to hit numbers along a chart - it&amp;#x27;s multidimensional.&lt;/p&gt;
&lt;p&gt;For example, when we ran DeepSeek V4.1 Flash through one of our environments, it completed the entire task but then failed to mark it as finished, despite the instructions. As a result, it scored very poorly. It could do the work, but missed the final step that let the environment recognize it had succeeded. These details matter when you&amp;#x27;re putting a model into a real workflow: being capable of solving the problem is only useful if it reliably follows through.&lt;/p&gt;
&lt;h2&gt;Most agents are still running on vibes&lt;/h2&gt;
&lt;p&gt;Working directly with customers has made another problem very clear: most companies we&amp;#x27;ve spoken to don&amp;#x27;t have good evals for their agents. This includes sophisticated teams with well-structured evals for other machine learning workloads. Evaluating an agent is difficult, so changes often get shipped because they seem better.&lt;/p&gt;
&lt;p&gt;That makes replacing a frontier model particularly hard. Before we can work out whether a cheaper model is good enough, we need a useful way to tell whether we&amp;#x27;ve made the agent worse.&lt;/p&gt;
&lt;p&gt;The encouraging part is that production traces contain a lot of the information we need. With a customer&amp;#x27;s traces and codebase, we&amp;#x27;ve seen that we can build useful evals and reinforcement learning environments around the work their agents actually do.&lt;/p&gt;
&lt;p&gt;This was a bet we were making last month. We&amp;#x27;ve now tried it with multiple customers, and there&amp;#x27;s real signal in the traces. They show the kinds of inputs, situations and failures that occur in production, which are difficult to reconstruct by inventing examples from scratch, and this has meant we&amp;#x27;ve been able to get RL environments up and running successfully.&lt;/p&gt;
&lt;h2&gt;Training has to pay for itself&lt;/h2&gt;
&lt;p&gt;Building an environment is only part of the problem. Getting a useful result quickly, at a cost that makes sense for the customer, has been harder.&lt;/p&gt;
&lt;p&gt;If a company spends $1K a month on inference, spending for example $30K on training is difficult to justify even if we could get its inference bill close to zero. A technically successful experiment can still be a bad deal.&lt;/p&gt;
&lt;p&gt;Towards the end of last week, we started seeing promising results from a different approach. Instead of optimizing model weights directly, we first optimize prompts against the reinforcement learning environment (which often leads to a dramatic improvement in performance), then fine-tune a model using the results which helps generalize the vibe of the optimized prompts. We&amp;#x27;re focused on this at the moment because it could give us a cheaper, quicker route to a useful model.&lt;/p&gt;
&lt;p&gt;It&amp;#x27;s early. The question is whether we can make it work reliably and economically across customer workloads, rather than just get a good-looking result in an experiment.&lt;/p&gt;
&lt;h2&gt;We don&amp;#x27;t need to buy all the GPUs&lt;/h2&gt;
&lt;p&gt;Last month, I wrote about how strange buying compute can be. We&amp;#x27;ve become increasingly skeptical that access to compute is the main constraint on building an inference business.&lt;/p&gt;
&lt;p&gt;From what we&amp;#x27;re seeing, there&amp;#x27;s a lot of idle capacity relative to demand for open-weight inference. Our current view is that more capacity could come back onto the market over the next six to twelve months as companies walk back commitments. That&amp;#x27;s a view we&amp;#x27;re forming, rather than something we can know for certain. We&amp;#x27;ll write more on this topic I imagine - it&amp;#x27;s beyond the scope of today&amp;#x27;s post.&lt;/p&gt;
&lt;p&gt;The practical consequence is straightforward: we think it&amp;#x27;s a better business to avoid making large compute commitments ahead of demand. Buying or leasing GPUs doesn&amp;#x27;t solve the problem of finding something valuable to do with them.&lt;/p&gt;
&lt;h2&gt;Starting with a specific job&lt;/h2&gt;
&lt;p&gt;The specific models we&amp;#x27;ve had traction for give us an interesting clue. Almost all of our inference revenue is coming from a very specific set of use cases, rather than general demand for another provider of general-purpose models.&lt;/p&gt;
&lt;p&gt;There may be a much better business in getting a model to do one particular job well. A specialized model can be useful in a way that isn&amp;#x27;t captured by comparing the price of the same model across a dozen providers.&lt;/p&gt;
&lt;p&gt;We&amp;#x27;re also interested in whether customers need to replace a frontier model across an entire workload at all. A company-specific router could hand simpler tasks to an open-weight model and leave the harder ones with the frontier model. Training a really great router for specific customers&amp;#x27; workloads may be a more practical starting point than trying to close the whole quality gap through training.&lt;/p&gt;
&lt;p&gt;We&amp;#x27;re going to start shipping vertical specific models ourselves for the painpoints we&amp;#x27;ve experienced. Starting with an open source router. This will give us distribution we believe, even if the models are small and don&amp;#x27;t generate much revenue. As distribution spreads, it&amp;#x27;ll hopefully lead to natural growth of our core business of providing tools to train bespoke models for particular workloads for our customers, and making money from running inference on these.&lt;/p&gt;
&lt;p&gt;The lesson from October still holds: talk to customers every day. We have more revenue and more evidence now, but we still have a lot to learn about what we should build.&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>Inkling 2 Mini</title>
    <id>https://gradiated.com/library/inkling-2-mini/</id>
    <link rel="alternate" type="text/html" href="https://gradiated.com/library/inkling-2-mini/" />
    <link rel="enclosure" type="image/jpeg" href="https://gradiated.com/brand/library/inkling-2-mini.jpg" />
    <media:thumbnail url="https://gradiated.com/brand/library/inkling-2-mini.jpg" />
    <published>2026-11-25T00:00:00Z</published>
    <updated>2026-11-25T00:00:00Z</updated>
    <author><name>Charley Carriero</name></author>
    <summary>Most avenues for making a language model smarter are linked to size. The most knowledgeable models are the largest ones, and among large models…</summary>
    <content type="html">&lt;h2&gt;The latest&lt;/h2&gt;
&lt;p&gt;Most avenues for making a language model smarter are linked to size. The most knowledgeable models are the largest ones, and among large models, those that have been trained on the largest set of quality data perform best. Looped models are interesting because they take an alternative path to increased performance.&lt;/p&gt;
&lt;p&gt;By looping through certain sections of the model a few times, looped models can reason more without adding extra parameters. How to do this well is an active field of research, and until Friday, researchers only really had prototypes and very small models.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://thinkingmachines.ai/news/inkling-2-mini/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Inkling 2 Mini&lt;/a&gt; is a looped model, it&amp;#x27;s open-weight, and it&amp;#x27;s competent enough to be ranked by &lt;a href=&quot;https://artificialanalysis.ai/models/inkling-2-mini&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;independent benchmarks&lt;/a&gt;. It rivals Qwen 3.8 27B at agentic coding, and it runs on a laptop. Here are the details.&lt;/p&gt;
&lt;h2&gt;Inkling in context&lt;/h2&gt;
&lt;p&gt;Inkling is a model produced by Thinking Machines. Founded in early 2025, Thinking Machines is a San Francisco-based lab that is not building AGI. They outline their belief that AI is best used as a tool to extend human will and judgement in their thoughtful blog &lt;a href=&quot;https://thinkingmachines.ai/blog/the-future-worth-building-is-human/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&amp;quot;The Future Worth Building Is Human&amp;quot;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The team believes human values don&amp;#x27;t average out, and that an ecosystem of AIs with great diversity is better than a handful of centralized all-purpose models. To build such a world, there would need to be strong open models, and useful tools to fine-tune them. They&amp;#x27;re working to produce both of the above.&lt;/p&gt;
&lt;p&gt;Their first product, Tinker, launched in October 2025. Tinker is an API for fine-tuning open-weight models. Earlier this year they released their first model, Inkling. They trained Inkling from scratch and since its release in July they&amp;#x27;ve also released Inkling-Small, Inkling 2 Small, and the focus of this announcement, Inkling 2 Mini.&lt;/p&gt;
&lt;p&gt;The pitch emphasizes that Inkling 2 Mini is uniquely capable for its size, and is a base for further customization. It&amp;#x27;s a meaningful contribution to the research community, which can now experiment with a model that has a looped architecture.&lt;/p&gt;
&lt;h2&gt;Inkling in action&lt;/h2&gt;
&lt;p&gt;The demo in the official announcement is fun and impressive. They run the model on a MacBook Pro in airplane mode up on an actual flight, and ask it to build a simple flight simulator. It does! You can even play it on the &lt;a href=&quot;https://thinkingmachines.ai/news/inkling-2-mini/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;announcement page&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;While it&amp;#x27;s nice to see the &lt;em&gt;what can be done on a laptop&lt;/em&gt; frontier move forward, Inkling is more of an offering to the research community than it is to product developers. Thinking Machines invites researchers to use the model to study the monitorability of looping models.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;We are particularly excited for researchers to investigate questions of monitorability, and to develop interpretability techniques for understanding the computation within loops.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://thinkingmachines.ai/news/inkling-2-mini/#monitorability-of-looped-transformers&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Thinking Machines&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The idea is that for models that don&amp;#x27;t loop, they must write out text to reason with themselves. Model developers and even users can read that text, and learn how the model thought about the problem and what its approach was. This is formally referred to as the model&amp;#x27;s chain of thought.&lt;/p&gt;
&lt;p&gt;Looping models can instead do more of their reasoning inside the loops, rather than writing out their full chain of thought. The concern is that if we can&amp;#x27;t read the full chain of thought, we may miss key details on how the model thinks. Did it understand the task? Is it confused or being devious?&lt;/p&gt;
&lt;figure class=&quot;lf&quot;&gt;&lt;div class=&quot;lf-prompt&quot;&gt;&lt;p class=&quot;lf-prompt-label&quot;&gt;Prompt&lt;/p&gt;&lt;p class=&quot;lf-question&quot;&gt;March 1 falls on a Tuesday in a year that is not a leap year. What day of the week is May 20?&lt;/p&gt;&lt;/div&gt;&lt;div class=&quot;lf-cols&quot;&gt;&lt;div&gt;&lt;p class=&quot;lf-title&quot;&gt;1&lt;!-- --&gt; &lt;!-- --&gt;loop&lt;/p&gt;&lt;p class=&quot;lf-count&quot;&gt;582&lt;!-- --&gt; tokens of written reasoning&lt;/p&gt;&lt;div class=&quot;lf-cot&quot; aria-hidden=&quot;true&quot;&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:72%&quot;&gt;&lt;/span&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:83%&quot;&gt;&lt;/span&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:94%&quot;&gt;&lt;/span&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:79%&quot;&gt;&lt;/span&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:90%&quot;&gt;&lt;/span&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:75%&quot;&gt;&lt;/span&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:86%&quot;&gt;&lt;/span&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:97%&quot;&gt;&lt;/span&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:82%&quot;&gt;&lt;/span&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:93%&quot;&gt;&lt;/span&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:78%&quot;&gt;&lt;/span&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:89%&quot;&gt;&lt;/span&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:74%&quot;&gt;&lt;/span&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:85%&quot;&gt;&lt;/span&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:96%&quot;&gt;&lt;/span&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:81%&quot;&gt;&lt;/span&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:92%&quot;&gt;&lt;/span&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:77%&quot;&gt;&lt;/span&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:88%&quot;&gt;&lt;/span&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:73%&quot;&gt;&lt;/span&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:84%&quot;&gt;&lt;/span&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:95%&quot;&gt;&lt;/span&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:80%&quot;&gt;&lt;/span&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:45%&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;p class=&quot;lf-answer&quot;&gt;Answer: Friday&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;p class=&quot;lf-title&quot;&gt;5&lt;!-- --&gt; &lt;!-- --&gt;loops&lt;/p&gt;&lt;p class=&quot;lf-count&quot;&gt;240&lt;!-- --&gt; tokens of written reasoning&lt;/p&gt;&lt;div class=&quot;lf-cot&quot; aria-hidden=&quot;true&quot;&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:72%&quot;&gt;&lt;/span&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:83%&quot;&gt;&lt;/span&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:94%&quot;&gt;&lt;/span&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:79%&quot;&gt;&lt;/span&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:90%&quot;&gt;&lt;/span&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:75%&quot;&gt;&lt;/span&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:86%&quot;&gt;&lt;/span&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:97%&quot;&gt;&lt;/span&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:82%&quot;&gt;&lt;/span&gt;&lt;span class=&quot;lf-line&quot; style=&quot;width:45%&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;p class=&quot;lf-answer&quot;&gt;Answer: Friday&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;figcaption&gt;&lt;a href=&quot;https://thinkingmachines.ai/news/inkling-2-mini/#monitorability-of-looped-transformers&quot; rel=&quot;noreferrer&quot; target=&quot;_blank&quot;&gt;Thinking Machines&lt;/a&gt;&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;This is the first open-weight model with strong enough capabilities to test how looping affects monitorability. Inkling 2 Mini will be put to work to help answer these questions. We do not know the architecture of large, proprietary frontier models, but rumours suggest this is an important avenue of research. Understanding how monitorability works on a small looped model is a sound starting place.&lt;/p&gt;
&lt;h2&gt;Technically of note&lt;/h2&gt;
&lt;h4&gt;Only the middle layers of the model loop&lt;/h4&gt;
&lt;p&gt;Inkling 2 Mini is a model composed of 24 layers. It&amp;#x27;s easy to imagine the model itself as a complex abstract thing and not as a very large math function. But it is a very large math function. It is mysterious how intelligence arises from simple parts repeated at great scale, but we must force ourselves to remember that large language models are themselves large math functions that take a vector input (the embedding for one token) and yield a vector output (which token, of the whole model vocabulary is a good next output).&lt;/p&gt;
&lt;p&gt;With this in mind, we may discuss the layers. The model is a composite function, meaning it&amp;#x27;s made of a chain of smaller functions where the output of the first is a valid input for the next. Each layer takes a vector of the same size (for Inkling 2 Mini, a vector length 2,304), and outputs a vector with that size. The layers can be grouped into blocks based on repeating patterns. For Inkling 2 Mini the 24 layers are grouped into four blocks of six layers. That each layer accepts and outputs a vector of the same shape is what makes looping possible.&lt;/p&gt;
&lt;p&gt;So how do the loops happen? Only blocks two and three are involved in the loop. A token passes through the first block once, and then moves through blocks two and three sequentially, three separate times before moving through the fourth block once. The idea here is that the middle blocks are where abstract reasoning likely happens. It&amp;#x27;s very hard to know what reasoning happens where, as a consequence of it being hard to understand how this math function can reason at all.&lt;/p&gt;
&lt;p&gt;The intuition that the middle layers are the layers that are beneficial to loop through is based on an understanding that the model must do some translating between tokens and its own internal representations. That translating likely happens in the layers closest to the input and output. It is an intuition, and the Thinking Machines team did test different loop configurations. They found that looping through only the middle layers (blocks two and three) beat looping through the later layers (blocks three and four) on 27 of the 28 tests they ran.&lt;/p&gt;
&lt;p&gt;The overall result here is a model that computes through 48 layers but only needs to store 24.&lt;/p&gt;
&lt;h4&gt;A research model with adjustable loop depth&lt;/h4&gt;
&lt;p&gt;Thinking Machines also published a research model called &lt;a href=&quot;https://huggingface.co/thinkingmachines/TML-d24-varloop-research&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;TML-d24-varloop-research&lt;/a&gt;. The research model lets you set the loop depth anywhere between one and five at the time of inference, and the model card includes a bunch of benchmarks run at each loop depth.&lt;/p&gt;
&lt;p&gt;It&amp;#x27;s quite cool to see that for tasks that require reasoning, adding more loops actually does improve the model&amp;#x27;s performance. On knowledge-based tasks, like closed-book factual recall benchmarks, looping has little to no improvement. This is obviously expected, but satisfying to see empirically.&lt;/p&gt;
&lt;p&gt;What&amp;#x27;s particularly noticeable is the improvement looping makes on the model&amp;#x27;s ability to &lt;em&gt;find&lt;/em&gt; information. &lt;a href=&quot;https://openai.com/index/browsecomp/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;BrowseComp&lt;/a&gt; is a benchmark from OpenAI that tests an agent&amp;#x27;s ability to locate hard-to-find information on the web. Using search and tools effectively is a core agent task, and looping appears to have a big effect.&lt;/p&gt;
&lt;figure class=&quot;lr&quot;&gt;&lt;p class=&quot;lr-title&quot;&gt;Loops vs. Performance&lt;/p&gt;&lt;svg aria-hidden=&quot;true&quot; class=&quot;lr-svg&quot; viewBox=&quot;0 0 560 300&quot;&gt;&lt;g&gt;&lt;line class=&quot;lr-grid&quot; x1=&quot;44&quot; x2=&quot;420&quot; y1=&quot;254&quot; y2=&quot;254&quot;&gt;&lt;/line&gt;&lt;text class=&quot;lr-tick&quot; text-anchor=&quot;end&quot; x=&quot;34&quot; y=&quot;258&quot;&gt;0&lt;!-- --&gt;%&lt;/text&gt;&lt;/g&gt;&lt;g&gt;&lt;line class=&quot;lr-grid&quot; x1=&quot;44&quot; x2=&quot;420&quot; y1=&quot;194.5&quot; y2=&quot;194.5&quot;&gt;&lt;/line&gt;&lt;text class=&quot;lr-tick&quot; text-anchor=&quot;end&quot; x=&quot;34&quot; y=&quot;198.5&quot;&gt;20&lt;!-- --&gt;%&lt;/text&gt;&lt;/g&gt;&lt;g&gt;&lt;line class=&quot;lr-grid&quot; x1=&quot;44&quot; x2=&quot;420&quot; y1=&quot;135&quot; y2=&quot;135&quot;&gt;&lt;/line&gt;&lt;text class=&quot;lr-tick&quot; text-anchor=&quot;end&quot; x=&quot;34&quot; y=&quot;139&quot;&gt;40&lt;!-- --&gt;%&lt;/text&gt;&lt;/g&gt;&lt;g&gt;&lt;line class=&quot;lr-grid&quot; x1=&quot;44&quot; x2=&quot;420&quot; y1=&quot;75.5&quot; y2=&quot;75.5&quot;&gt;&lt;/line&gt;&lt;text class=&quot;lr-tick&quot; text-anchor=&quot;end&quot; x=&quot;34&quot; y=&quot;79.5&quot;&gt;60&lt;!-- --&gt;%&lt;/text&gt;&lt;/g&gt;&lt;g&gt;&lt;line class=&quot;lr-grid&quot; x1=&quot;44&quot; x2=&quot;420&quot; y1=&quot;16&quot; y2=&quot;16&quot;&gt;&lt;/line&gt;&lt;text class=&quot;lr-tick&quot; text-anchor=&quot;end&quot; x=&quot;34&quot; y=&quot;20&quot;&gt;80&lt;!-- --&gt;%&lt;/text&gt;&lt;/g&gt;&lt;text class=&quot;lr-tick&quot; text-anchor=&quot;middle&quot; x=&quot;44&quot; y=&quot;276&quot;&gt;1&lt;/text&gt;&lt;text class=&quot;lr-tick&quot; text-anchor=&quot;middle&quot; x=&quot;138&quot; y=&quot;276&quot;&gt;2&lt;/text&gt;&lt;text class=&quot;lr-tick&quot; text-anchor=&quot;middle&quot; x=&quot;232&quot; y=&quot;276&quot;&gt;3&lt;/text&gt;&lt;text class=&quot;lr-tick&quot; text-anchor=&quot;middle&quot; x=&quot;326&quot; y=&quot;276&quot;&gt;4&lt;/text&gt;&lt;text class=&quot;lr-tick&quot; text-anchor=&quot;middle&quot; x=&quot;420&quot; y=&quot;276&quot;&gt;5&lt;/text&gt;&lt;text class=&quot;lr-axis-label&quot; text-anchor=&quot;middle&quot; x=&quot;232&quot; y=&quot;296&quot;&gt;LOOPS&lt;/text&gt;&lt;g class=&quot;lr-series lr-series--reasoning&quot;&gt;&lt;polyline points=&quot;44,166.53500000000003 138,93.94500000000001 232,58.54249999999999 326,47.53499999999999 420,42.775000000000006&quot;&gt;&lt;/polyline&gt;&lt;circle cx=&quot;44&quot; cy=&quot;166.53500000000003&quot; r=&quot;3.5&quot;&gt;&lt;/circle&gt;&lt;circle cx=&quot;138&quot; cy=&quot;93.94500000000001&quot; r=&quot;3.5&quot;&gt;&lt;/circle&gt;&lt;circle cx=&quot;232&quot; cy=&quot;58.54249999999999&quot; r=&quot;3.5&quot;&gt;&lt;/circle&gt;&lt;circle cx=&quot;326&quot; cy=&quot;47.53499999999999&quot; r=&quot;3.5&quot;&gt;&lt;/circle&gt;&lt;circle cx=&quot;420&quot; cy=&quot;42.775000000000006&quot; r=&quot;3.5&quot;&gt;&lt;/circle&gt;&lt;text class=&quot;lr-label&quot; x=&quot;432&quot; y=&quot;46.775000000000006&quot;&gt;BrowseComp&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;lr-series lr-series--reasoning&quot;&gt;&lt;polyline points=&quot;44,251.9175 138,169.8075 232,112.985 326,114.47250000000001 420,110.60499999999999&quot;&gt;&lt;/polyline&gt;&lt;circle cx=&quot;44&quot; cy=&quot;251.9175&quot; r=&quot;3.5&quot;&gt;&lt;/circle&gt;&lt;circle cx=&quot;138&quot; cy=&quot;169.8075&quot; r=&quot;3.5&quot;&gt;&lt;/circle&gt;&lt;circle cx=&quot;232&quot; cy=&quot;112.985&quot; r=&quot;3.5&quot;&gt;&lt;/circle&gt;&lt;circle cx=&quot;326&quot; cy=&quot;114.47250000000001&quot; r=&quot;3.5&quot;&gt;&lt;/circle&gt;&lt;circle cx=&quot;420&quot; cy=&quot;110.60499999999999&quot; r=&quot;3.5&quot;&gt;&lt;/circle&gt;&lt;text class=&quot;lr-label&quot; x=&quot;432&quot; y=&quot;114.60499999999999&quot;&gt;DeepSWE&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;lr-series lr-series--knowledge&quot;&gt;&lt;polyline points=&quot;44,207.88750000000002 138,205.5075 232,199.26 326,200.45000000000002 420,202.23499999999999&quot;&gt;&lt;/polyline&gt;&lt;circle cx=&quot;44&quot; cy=&quot;207.88750000000002&quot; r=&quot;3.5&quot;&gt;&lt;/circle&gt;&lt;circle cx=&quot;138&quot; cy=&quot;205.5075&quot; r=&quot;3.5&quot;&gt;&lt;/circle&gt;&lt;circle cx=&quot;232&quot; cy=&quot;199.26&quot; r=&quot;3.5&quot;&gt;&lt;/circle&gt;&lt;circle cx=&quot;326&quot; cy=&quot;200.45000000000002&quot; r=&quot;3.5&quot;&gt;&lt;/circle&gt;&lt;circle cx=&quot;420&quot; cy=&quot;202.23499999999999&quot; r=&quot;3.5&quot;&gt;&lt;/circle&gt;&lt;text class=&quot;lr-label&quot; x=&quot;432&quot; y=&quot;206.23499999999999&quot;&gt;AA-Omniscience&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;lr-series lr-series--knowledge&quot;&gt;&lt;polyline points=&quot;44,235.2575 138,234.6625 232,232.2825 326,233.77 420,234.0675&quot;&gt;&lt;/polyline&gt;&lt;circle cx=&quot;44&quot; cy=&quot;235.2575&quot; r=&quot;3.5&quot;&gt;&lt;/circle&gt;&lt;circle cx=&quot;138&quot; cy=&quot;234.6625&quot; r=&quot;3.5&quot;&gt;&lt;/circle&gt;&lt;circle cx=&quot;232&quot; cy=&quot;232.2825&quot; r=&quot;3.5&quot;&gt;&lt;/circle&gt;&lt;circle cx=&quot;326&quot; cy=&quot;233.77&quot; r=&quot;3.5&quot;&gt;&lt;/circle&gt;&lt;circle cx=&quot;420&quot; cy=&quot;234.0675&quot; r=&quot;3.5&quot;&gt;&lt;/circle&gt;&lt;text class=&quot;lr-label&quot; x=&quot;432&quot; y=&quot;238.0675&quot;&gt;SimpleQA Verified&lt;/text&gt;&lt;/g&gt;&lt;/svg&gt;&lt;table class=&quot;gr-visually-hidden&quot;&gt;&lt;caption&gt;Score by number of loops&lt;/caption&gt;&lt;thead&gt;&lt;tr&gt;&lt;th scope=&quot;col&quot;&gt;Benchmark&lt;/th&gt;&lt;th scope=&quot;col&quot;&gt;1&lt;!-- --&gt; &lt;!-- --&gt;loop&lt;/th&gt;&lt;th scope=&quot;col&quot;&gt;2&lt;!-- --&gt; &lt;!-- --&gt;loops&lt;/th&gt;&lt;th scope=&quot;col&quot;&gt;3&lt;!-- --&gt; &lt;!-- --&gt;loops&lt;/th&gt;&lt;th scope=&quot;col&quot;&gt;4&lt;!-- --&gt; &lt;!-- --&gt;loops&lt;/th&gt;&lt;th scope=&quot;col&quot;&gt;5&lt;!-- --&gt; &lt;!-- --&gt;loops&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th scope=&quot;row&quot;&gt;BrowseComp&lt;!-- --&gt;, needs &lt;!-- --&gt;reasoning&lt;/th&gt;&lt;td&gt;29.4&lt;!-- --&gt;%&lt;/td&gt;&lt;td&gt;53.8&lt;!-- --&gt;%&lt;/td&gt;&lt;td&gt;65.7&lt;!-- --&gt;%&lt;/td&gt;&lt;td&gt;69.4&lt;!-- --&gt;%&lt;/td&gt;&lt;td&gt;71.0&lt;!-- --&gt;%&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th scope=&quot;row&quot;&gt;DeepSWE&lt;!-- --&gt;, needs &lt;!-- --&gt;reasoning&lt;/th&gt;&lt;td&gt;0.7&lt;!-- --&gt;%&lt;/td&gt;&lt;td&gt;28.3&lt;!-- --&gt;%&lt;/td&gt;&lt;td&gt;47.4&lt;!-- --&gt;%&lt;/td&gt;&lt;td&gt;46.9&lt;!-- --&gt;%&lt;/td&gt;&lt;td&gt;48.2&lt;!-- --&gt;%&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th scope=&quot;row&quot;&gt;AA-Omniscience&lt;!-- --&gt;, needs &lt;!-- --&gt;knowledge&lt;/th&gt;&lt;td&gt;15.5&lt;!-- --&gt;%&lt;/td&gt;&lt;td&gt;16.3&lt;!-- --&gt;%&lt;/td&gt;&lt;td&gt;18.4&lt;!-- --&gt;%&lt;/td&gt;&lt;td&gt;18.0&lt;!-- --&gt;%&lt;/td&gt;&lt;td&gt;17.4&lt;!-- --&gt;%&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th scope=&quot;row&quot;&gt;SimpleQA Verified&lt;!-- --&gt;, needs &lt;!-- --&gt;knowledge&lt;/th&gt;&lt;td&gt;6.3&lt;!-- --&gt;%&lt;/td&gt;&lt;td&gt;6.5&lt;!-- --&gt;%&lt;/td&gt;&lt;td&gt;7.3&lt;!-- --&gt;%&lt;/td&gt;&lt;td&gt;6.8&lt;!-- --&gt;%&lt;/td&gt;&lt;td&gt;6.7&lt;!-- --&gt;%&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;figcaption class=&quot;lr-foot&quot;&gt;&lt;span class=&quot;lr-key&quot; aria-hidden=&quot;true&quot;&gt;&lt;span class=&quot;lr-key-line&quot;&gt;&lt;/span&gt; Needs reasoning&lt;span class=&quot;lr-key-line lr-key-line--knowledge&quot;&gt;&lt;/span&gt; Needs knowledge&lt;/span&gt;&lt;a href=&quot;https://huggingface.co/thinkingmachines/TML-d24-varloop-research#5-evaluations&quot; rel=&quot;noreferrer&quot; target=&quot;_blank&quot;&gt;Hugging Face&lt;/a&gt;&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;The research model shared its pre-training with Inkling 2 Mini, and the two diverged in mid-training where the research model received training at every loop depth one through five. Most importantly, in post-training, the research model only underwent the reinforcement learning stage at loop depth three.&lt;/p&gt;
&lt;p&gt;This does mean that the research model can&amp;#x27;t be used to truly compare loop depths fairly. It can merely suggest what is likely to happen as loop depths increase, which in itself is a tremendous step forward for research tooling.&lt;/p&gt;
&lt;h2&gt;How to run it&lt;/h2&gt;
&lt;p&gt;This is not a hard model to run. If you have a laptop with more than 32 GB of RAM, you can run it locally. &lt;a href=&quot;https://ollama.com/library/inkling-2-mini&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Ollama&lt;/a&gt; handles the details, and even configures its use in a number of coding agents (Claude Code, OpenCode, etc.)&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>Kimi K3.1 Pro</title>
    <id>https://gradiated.com/library/kimi-k-3-point-1-pro/</id>
    <link rel="alternate" type="text/html" href="https://gradiated.com/library/kimi-k-3-point-1-pro/" />
    <link rel="enclosure" type="image/jpeg" href="https://gradiated.com/brand/library/kimi-k31-pro.jpg" />
    <media:thumbnail url="https://gradiated.com/brand/library/kimi-k31-pro.jpg" />
    <published>2026-11-23T00:00:00Z</published>
    <updated>2026-11-23T00:00:00Z</updated>
    <author><name>Charley Carriero</name></author>
    <summary>A new very large, very capable open-weight model was released November 4th. Ranked by general intelligence, the latest Kimi model is now the most…</summary>
    <content type="html">&lt;h2&gt;The latest&lt;/h2&gt;
&lt;p&gt;A new very large, very capable open-weight model was released November 4th. &lt;a href=&quot;https://artificialanalysis.ai/models/open-source&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Ranked by general intelligence&lt;/a&gt;, the latest Kimi model is now the most capable open-weight model by a large margin.&lt;/p&gt;
&lt;p&gt;It&amp;#x27;s a general purpose model that was intentionally trained to excel at serving coding agents, designing office and document automations, doing financial and legal research, and making 3D (including CAD) creations. The official &lt;a href=&quot;https://www.kimi.ai/blog/kimi-k3-1-pro&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;announcement&lt;/a&gt; was surprisingly artistic, and here are the highlights.&lt;/p&gt;
&lt;h2&gt;Kimi in context&lt;/h2&gt;
&lt;p&gt;The Kimi models have been closely watched since their first major headline outside of China in July, 2025. At the time, Moonshot AI (their maker) decided to open-source the best model it had, Kimi K2, and its performance &lt;a href=&quot;https://www.nature.com/articles/d41586-025-02275-6&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;shocked&lt;/a&gt; a global audience.&lt;/p&gt;
&lt;p&gt;Kimi K2 was the first open-weight model to perform particularly well at agentic coding (how well the model works with a coding agent). This was a big deal because it was the first indicator that open-weight models might soon compete with frontier models in coding agents.&lt;/p&gt;
&lt;p&gt;Kimi K3 was released in July of this year, and now only 3 months later Kimi K3.1 surpasses its capabilities substantially. Moonshot suggests there will be more Kimi K3.1 models to follow, calling it the first in a new series.&lt;/p&gt;
&lt;h2&gt;Kimi in action&lt;/h2&gt;
&lt;p&gt;Public benchmarks are sometimes helpful for broad comparisons, but the best way to see if the latest Kimi model performs well on your work is to &lt;a href=&quot;https://www.gradiated.com/docs/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;try it&lt;/a&gt; ✨.&lt;/p&gt;
&lt;p&gt;We&amp;#x27;ve tested its performance on a couple of agentic workflows that require tool calls. Our first impression is that on this kind of work, Kimi K3.1 Pro is somewhere around Sonnet&amp;#x27;s level of competence. Our rough estimations are that it&amp;#x27;s around 2-3x cheaper than Sonnet depending on the task, but this will change as we continue to optimize how we serve it.&lt;/p&gt;
&lt;details class=&quot;gr-expandable&quot;&gt;&lt;summary class=&quot;gr-expandable__summary&quot;&gt;&lt;span&gt;Its strongest public benchmark is &lt;a href=&quot;https://www.tbench.ai/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Terminal-Bench&lt;/a&gt;.&lt;/span&gt;&lt;svg aria-hidden=&quot;true&quot; class=&quot;gr-pixel-icon gr-expandable__arrow&quot; fill=&quot;currentColor&quot; shape-rendering=&quot;crispEdges&quot; style=&quot;--cells:11&quot; viewBox=&quot;0 0 11 11&quot;&gt;&lt;path d=&quot;M4 2h1v1h-1zM5 3h1v1h-1zM6 4h1v1h-1zM6 5h2v1h-2zM6 6h1v1h-1zM5 7h1v1h-1zM4 8h1v1h-1z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/summary&gt;&lt;div class=&quot;gr-expandable__body&quot;&gt;&lt;p&gt;In the test, the model runs inside a coding agent (Claude Code), which is installed in a Linux environment that only has a terminal. It&amp;#x27;s given a written brief for 66 tasks that cover hard problems in software, science, machine learning, hardware and a few other disciplines. The test has a time limit of 8 hours per task, and its score is the percentage of tasks it completed correctly.&lt;/p&gt;&lt;/div&gt;&lt;/details&gt;
&lt;figure class=&quot;kt&quot; aria-label=&quot;Terminal-Bench 4.1&quot;&gt;&lt;div class=&quot;kt-bar&quot;&gt;&lt;div class=&quot;kt-switch&quot; role=&quot;group&quot; aria-label=&quot;Choose a view&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;section class=&quot;kt-panel&quot; aria-label=&quot;Terminal-Bench 4.1&quot;&gt;&lt;div class=&quot;kt-head&quot;&gt;&lt;span class=&quot;kt-title&quot;&gt;Terminal-Bench 4.1&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;kt-plot&quot;&gt;&lt;div aria-hidden=&quot;true&quot; class=&quot;kt-row kt-axis&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;ol class=&quot;kt-ticks&quot;&gt;&lt;li style=&quot;--at:0&quot;&gt;0%&lt;/li&gt;&lt;li style=&quot;--at:0.25&quot;&gt;20%&lt;/li&gt;&lt;li style=&quot;--at:0.5&quot;&gt;40%&lt;/li&gt;&lt;li style=&quot;--at:0.75&quot;&gt;60%&lt;/li&gt;&lt;li style=&quot;--at:1&quot;&gt;80%&lt;/li&gt;&lt;/ol&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul class=&quot;kt-rows&quot;&gt;&lt;li class=&quot;kt-row kt-row--kimi&quot; style=&quot;--w:0.7462500000000001;--tone:var(--color-cloud-blue)&quot;&gt;&lt;span class=&quot;kt-name&quot;&gt;&lt;span class=&quot;kt-model&quot;&gt;Kimi K3.1 Pro&lt;/span&gt;&lt;span class=&quot;kt-lab&quot;&gt;October, 2026&lt;span class=&quot;gr-visually-hidden&quot;&gt;, open weights&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kt-track&quot;&gt;&lt;span class=&quot;kt-fill kt-fill--open &quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kt-value&quot;&gt;59.7%&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;kt-row&quot; style=&quot;--w:0.2875;--tone:var(--color-cloud-blue)&quot;&gt;&lt;span class=&quot;kt-name&quot;&gt;&lt;span class=&quot;kt-model&quot;&gt;Kimi K3&lt;/span&gt;&lt;span class=&quot;kt-lab&quot;&gt;July, 2026&lt;span class=&quot;gr-visually-hidden&quot;&gt;, open weights&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kt-track&quot;&gt;&lt;span class=&quot;kt-fill kt-fill--open &quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;kt-value&quot;&gt;23.0%&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/section&gt;&lt;div class=&quot;kt-foot&quot;&gt;&lt;p class=&quot;kt-key&quot; aria-hidden=&quot;true&quot;&gt;&lt;span class=&quot;kt-key-item&quot;&gt;&lt;span class=&quot;kt-swatch&quot;&gt;&lt;/span&gt; Closed&lt;/span&gt;&lt;span class=&quot;kt-key-item&quot;&gt;&lt;span class=&quot;kt-swatch kt-swatch--open&quot;&gt;&lt;/span&gt; Open weights&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/figure&gt;
&lt;p&gt;It would be remiss to show the above without also highlighting some key news. Researchers at &lt;a href=&quot;https://r40.org/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;R40&lt;/a&gt; ran Terminal-Bench on Kimi K3.1 Pro themselves and observed the following:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Kimi K3.1, the top model on Artificial Analysis’s Terminal-Bench 4.0 leaderboard, follows instructions it was never given. In 23% of its attempts, its reasoning cites “instructions” that are not in the task but that the hidden tests check.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://r40.org/papers/kimi_k31_benchmark_audit.pdf&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;R40, 2026&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&amp;quot;Hidden tests&amp;quot; here means that the tests were hidden to the model while it was doing the test, but these tests were not hidden during the model&amp;#x27;s development. The test itself, and how it&amp;#x27;s graded are all publicly available on &lt;a href=&quot;https://github.com/harbor-framework/terminal-bench/tree/v4.0.0/tasks&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;GitHub&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Kimi K3.1 Pro is a very capable and useful open-weight model, but findings like the above lead us to rely on our own experiments and observations to really benchmark what it can do. We find it definitely falls short of the performance promises made by the benchmarks in Moonshot&amp;#x27;s announcement. It does feel like this Kimi model is more &amp;quot;benchmaxxed&amp;quot; than other models.&lt;/p&gt;
&lt;h2&gt;Technically of note&lt;/h2&gt;
&lt;h4&gt;A post-trained version of Kimi K3 with a change in attention architecture&lt;/h4&gt;
&lt;p&gt;Given the substantial improvements over Kimi K3, it&amp;#x27;s noteworthy that it isn&amp;#x27;t built from a new base model, and instead uses Kimi K3 as its base model. Moonshot mentions they managed to do large-scale joint reinforcement learning (RL) across hundreds of domains but provide few other details on how this was achieved.&lt;/p&gt;
&lt;p&gt;A change they do name is an adjustment to the model&amp;#x27;s attention architecture. Of the model&amp;#x27;s 93 layers, 24 of them changed from full attention layers to &lt;a href=&quot;https://arxiv.org/abs/2512.02556&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;DeepSeek&amp;#x27;s Sparse Attention&lt;/a&gt;. This enables more efficient work with long contexts and is especially helpful for long-running agent work where context builds up quickly.&lt;/p&gt;
&lt;h4&gt;Deliberately impaired cybersecurity performance&lt;/h4&gt;
&lt;p&gt;Moonshot has paid special attention to the model&amp;#x27;s knowledge of cybersecurity. They expressed a deliberate interest in not advancing the frontier of cyber capabilities, but Kimi K3.1 Pro&amp;#x27;s capabilities are still a large leap forward from Kimi K3. As Moonshot noticed its capabilities improving they catalogued the cyber-related data in their training environments and did a targeted removal. They comment on this explicitly, and state:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;K3.1 Pro improves substantially over its predecessor, indicating that stronger general coding and long-horizon debugging capabilities generalize to cyber tasks even after targeted data removal.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.kimi.ai/blog/kimi-k3-1-pro#cybersecurity&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Moonshot AI&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;How to run it&lt;/h2&gt;
&lt;p&gt;Open-source inference engines &lt;a href=&quot;https://recipes.vllm.ai/moonshotai/Kimi-K3.1-Pro&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;vLLM&lt;/a&gt; and &lt;a href=&quot;https://lmsysorg.mintlify.app/cookbook/autoregressive/Moonshotai/Kimi-K3.1-Pro&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;SGLang&lt;/a&gt; both support the model, and have a recipe for serving it.&lt;/p&gt;
&lt;p&gt;The hardware you choose needs a minimum 1.56 TB of GPU memory to store the model weights and around 20% more to serve it (1.87 TB). Given it has 4-bit weights you&amp;#x27;d also want to use something with FP4 hardware.&lt;/p&gt;
&lt;p&gt;At the moment we serve it with 8 × B300s and use the SGLang engine. A set up like that at current pricing costs around $76/hour or $55,480/month.&lt;/p&gt;
&lt;figure class=&quot;rc&quot;&gt;&lt;div class=&quot;rc-head&quot;&gt;&lt;span class=&quot;rc-title&quot;&gt;GPU memory per server&lt;/span&gt;&lt;span class=&quot;rc-when&quot;&gt;Rent per hour&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;rc-plot&quot;&gt;&lt;div aria-hidden=&quot;true&quot; class=&quot;rc-row rc-axis&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;div class=&quot;rc-scale&quot;&gt;&lt;ol class=&quot;rc-ticks&quot;&gt;&lt;li style=&quot;--at:0&quot;&gt;0&lt;!-- --&gt; TB&lt;/li&gt;&lt;li style=&quot;--at:0.3333333333333333&quot;&gt;1&lt;!-- --&gt; TB&lt;/li&gt;&lt;li style=&quot;--at:0.6666666666666666&quot;&gt;2&lt;!-- --&gt; TB&lt;/li&gt;&lt;li style=&quot;--at:1&quot;&gt;3&lt;!-- --&gt; TB&lt;/li&gt;&lt;/ol&gt;&lt;span class=&quot;rc-need&quot; style=&quot;--at:0.6246666666666667&quot;&gt;&lt;span class=&quot;rc-need-label&quot;&gt;1.87&lt;!-- --&gt; TB&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul class=&quot;rc-rows&quot;&gt;&lt;li class=&quot;rc-row&quot;&gt;&lt;span class=&quot;rc-name&quot;&gt;8&lt;!-- --&gt;× &lt;!-- --&gt;H100&lt;span class=&quot;gr-visually-hidden&quot;&gt;, &lt;!-- --&gt;0.64&lt;!-- --&gt; TB,&lt;!-- --&gt; &lt;!-- --&gt;too little memory&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;rc-track&quot;&gt;&lt;span class=&quot;rc-fill&quot; style=&quot;--w:0.21333333333333335&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;rc-value&quot;&gt;$36&lt;!-- --&gt;/h&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;rc-row&quot;&gt;&lt;span class=&quot;rc-name&quot;&gt;8&lt;!-- --&gt;× &lt;!-- --&gt;H200&lt;span class=&quot;gr-visually-hidden&quot;&gt;, &lt;!-- --&gt;1.13&lt;!-- --&gt; TB,&lt;!-- --&gt; &lt;!-- --&gt;too little memory&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;rc-track&quot;&gt;&lt;span class=&quot;rc-fill&quot; style=&quot;--w:0.376&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;rc-value&quot;&gt;$43&lt;!-- --&gt;/h&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;rc-row&quot;&gt;&lt;span class=&quot;rc-name&quot;&gt;8&lt;!-- --&gt;× &lt;!-- --&gt;B200&lt;span class=&quot;gr-visually-hidden&quot;&gt;, &lt;!-- --&gt;1.44&lt;!-- --&gt; TB,&lt;!-- --&gt; &lt;!-- --&gt;too little memory&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;rc-track&quot;&gt;&lt;span class=&quot;rc-fill&quot; style=&quot;--w:0.48&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;rc-value&quot;&gt;$68&lt;!-- --&gt;/h&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;rc-row rc-row--fits&quot;&gt;&lt;span class=&quot;rc-name&quot;&gt;8&lt;!-- --&gt;× &lt;!-- --&gt;B300&lt;span class=&quot;gr-visually-hidden&quot;&gt;, &lt;!-- --&gt;2.14&lt;!-- --&gt; TB,&lt;!-- --&gt; &lt;!-- --&gt;fits the model&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;rc-track&quot;&gt;&lt;span class=&quot;rc-fill&quot; style=&quot;--w:0.7146666666666667&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;rc-value&quot;&gt;$76&lt;!-- --&gt;/h&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;rc-row rc-row--fits&quot;&gt;&lt;span class=&quot;rc-name&quot;&gt;16&lt;!-- --&gt;× &lt;!-- --&gt;H200&lt;span class=&quot;gr-visually-hidden&quot;&gt;, &lt;!-- --&gt;2.26&lt;!-- --&gt; TB,&lt;!-- --&gt; &lt;!-- --&gt;fits the model&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;rc-track&quot;&gt;&lt;span class=&quot;rc-fill&quot; style=&quot;--w:0.752&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;rc-value&quot;&gt;$86&lt;!-- --&gt;/h&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;rc-row rc-row--fits&quot;&gt;&lt;span class=&quot;rc-name&quot;&gt;16&lt;!-- --&gt;× &lt;!-- --&gt;B200&lt;span class=&quot;gr-visually-hidden&quot;&gt;, &lt;!-- --&gt;2.88&lt;!-- --&gt; TB,&lt;!-- --&gt; &lt;!-- --&gt;fits the model&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;rc-track&quot;&gt;&lt;span class=&quot;rc-fill&quot; style=&quot;--w:0.96&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;rc-value&quot;&gt;$136&lt;!-- --&gt;/h&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;p class=&quot;rc-sources&quot;&gt;Prices: on-demand list prices from&lt;!-- --&gt; &lt;a href=&quot;https://nebius.com/prices&quot; rel=&quot;noreferrer&quot; target=&quot;_blank&quot;&gt;Nebius&lt;/a&gt;, as of 15 Nov 2026.&lt;/p&gt;&lt;/figure&gt;
&lt;p&gt;Each 8 × B300 server carries one copy of the model, with the model weights split over the 8 GPUs. There are many ways to distribute them, and how you choose to do so depends on what you&amp;#x27;re optimizing for.&lt;/p&gt;
&lt;p&gt;We split them by slicing each model layer into 8 parts. To pass a token through a layer of the model, all 8 GPUs calculate their part concurrently and then communicate to produce the output of the layer. This is called tensor parallelism (TP8) and it&amp;#x27;s the configuration SGLang recommends for low latency.&lt;/p&gt;
&lt;p&gt;By splitting the layers, each GPU can read its portion of all the layers it needs for a given token (about 17 GB) from memory, in parallel. On its own, one GPU would take about 17 ms to read the weights it needs (137 GB), but split eight ways it only takes about 2.1 ms, plus some time for co-ordinating.&lt;/p&gt;
&lt;h4&gt;Scale&lt;/h4&gt;
&lt;p&gt;Speed is important, but we&amp;#x27;re primarily interested in cost and energy efficiency which start to move when serving many requests concurrently. Efficient batching is hard, but it&amp;#x27;s especially important. We&amp;#x27;ll publish our findings as we learn more about how to serve this model well.&lt;/p&gt;
&lt;h2&gt;A practical frame&lt;/h2&gt;
&lt;p&gt;Comparing cost and energy usage between models is easier with something tangible.
We asked Kimi to make a landing page for a new SaaS product. This cost $0.254 and used 524 kJ. Roughly the same amount of energy it takes to boil a 1.5L kettle.&lt;/p&gt;
&lt;p&gt;We compare that to its predecessor K3, where the performance jump becomes quite obvious. The website produced by K3 is simply really bad. The outputs of Sonnet and Opus look similar to one another at first glance, but the product demos on Opus&amp;#x27; landing page are very impressive. It also took Opus almost 17 minutes.&lt;/p&gt;
&lt;p&gt;For a balance of cost, quality, and speed here, Kimi K3.1 Pro comes out on top. Sonnet is a much fairer comparison than Opus, which we have only included for perspective.&lt;/p&gt;
&lt;div class=&quot;lp&quot;&gt;&lt;p class=&quot;lp-prompt&quot;&gt;“&lt;!-- --&gt;Make a landing page for a new SaaS product. Impress me with what you can do.&lt;!-- --&gt;”&lt;/p&gt;&lt;div aria-label=&quot;Model&quot; class=&quot;lp-tabs&quot; role=&quot;tablist&quot;&gt;&lt;/div&gt;&lt;div aria-labelledby=&quot;_R_15qai_-tab-0&quot; id=&quot;_R_15qai_-panel&quot; role=&quot;tabpanel&quot;&gt;&lt;a class=&quot;lp-preview&quot; href=&quot;https://gradiated.com/benchmark/saas-landing-page/kimi-k3.1-pro.html&quot; rel=&quot;noopener&quot; target=&quot;_blank&quot;&gt;&lt;span aria-hidden=&quot;true&quot; class=&quot;lp-bar&quot;&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;24&quot; height=&quot;24&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-arrow-up-right lp-arrow&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M7 7h10v10&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M7 17 17 7&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;img alt=&quot;The top of the landing page Kimi K3.1 Pro made. Opens the full page.&quot; class=&quot;lp-shot&quot; height=&quot;1000&quot; loading=&quot;lazy&quot; src=&quot;https://gradiated.com/benchmark/saas-landing-page/kimi-k3.1-pro.jpg&quot; width=&quot;1600&quot;/&gt;&lt;/a&gt;&lt;p class=&quot;lp-summary&quot;&gt;&lt;span&gt;1 min 55 s&lt;/span&gt;&lt;span&gt;$&lt;!-- --&gt;0.254&lt;/span&gt;&lt;span&gt;524 kJ&lt;/span&gt;&lt;span class=&quot;lp-summary__served&quot;&gt;Served by &lt;!-- --&gt;Gradiated&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;h2&gt;License summary&lt;/h2&gt;
&lt;p&gt;Kimi K3.1 Pro is free to use commercially. Selling it as a service past $20M in yearly revenue requires a separate agreement with Moonshot.&lt;/p&gt;
&lt;p&gt;Products with over 100M monthly users or $20M in monthly revenue must display &amp;quot;Kimi K3.1-Pro&amp;quot; in their interface.&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>0 to 1 weeks at Gradiated</title>
    <id>https://gradiated.com/library/0-to-1-weeks-at-gradiated/</id>
    <link rel="alternate" type="text/html" href="https://gradiated.com/library/0-to-1-weeks-at-gradiated/" />
    <link rel="enclosure" type="image/webp" href="https://gradiated.com/brand/library/zero-to-one-wide.webp" />
    <media:thumbnail url="https://gradiated.com/brand/library/zero-to-one-wide.webp" />
    <published>2026-11-10T00:00:00Z</published>
    <updated>2026-11-10T00:00:00Z</updated>
    <author><name>Charley Carriero</name></author>
    <summary>I'm new to Gradiated. I joined on Monday (three days ago). The team is small (there's six of us), and we're all here in Cambridge this week. It's…</summary>
    <content type="html">&lt;p&gt;I&amp;#x27;m new to Gradiated. I joined on Monday (three days ago). The team is small (there&amp;#x27;s six of us), and we&amp;#x27;re all here in Cambridge this week. It&amp;#x27;s more or less my job now to understand what the team is working on and write about it.&lt;/p&gt;
&lt;h2&gt;Write to whom?&lt;/h2&gt;
&lt;p&gt;Gradiated exists to deliver AI inference that is cheap and energy efficient. Anyone who cares how inference can get cheaper or why tokens per joule is a useful metric should be able to follow along. The interesting developments are in the technical details, and that&amp;#x27;s hard to follow without a background in chips, inference, and models. We&amp;#x27;d like for it not to be hard to follow. I&amp;#x27;m not an expert in any of the above, I&amp;#x27;m a software engineer, and whatever I need to learn to be able to follow the work, we should likely write about.&lt;/p&gt;
&lt;h2&gt;What&amp;#x27;s going on around here?&lt;/h2&gt;
&lt;p&gt;We&amp;#x27;ve just started selling inference on open-source models through an API directly to customers. We rented 24 top grade GPUs (B300s), self-hosted several open-source models, and set up API access to be self-serve.&lt;/p&gt;
&lt;p&gt;With the infrastructure up and running we&amp;#x27;re focused on building our customer base. Perhaps this is obvious, but we pay for our GPUs per hour whether they&amp;#x27;re used or not, so while we have GPU capacity to spare we offload it to an inference marketplace. Our ✨first revenue arrived this week, it was from the marketplace.&lt;/p&gt;
&lt;p&gt;Selling inference is only part of a much larger plan. It allows us to start &lt;em&gt;learning&lt;/em&gt; what the real levers of cost are on serving production inference workflows. We can observe the current drivers of cost, and experiment with optimizations we think would be high yielding. This week I caught up on two such experiments.&lt;/p&gt;
&lt;h2&gt;Post-training for PostHog AI&lt;/h2&gt;
&lt;p&gt;PostHog is one of our first customers. They have an agent that lets you chat about your data. It uses Anthropic&amp;#x27;s Sonnet 5.5 and it costs PostHog $100,000 in tokens to run each month. The spend is significant enough for them to wonder how they can save money without sacrificing performance.&lt;/p&gt;
&lt;p&gt;To start, we sent Josh our co-founder as a Forward Deployed Engineer to investigate and benchmark. The idea is to gauge how open-source models perform vs. Sonnet on recent data from production. The expectation is not that open-source models out of the box will match the frontier model. More practically, we want to know how big is the difference in quality on this specific work, and how much can we close that gap?&lt;/p&gt;
&lt;p&gt;Open-weight models, by nature of having their weights published, allow you to continue training the model. In pre-training, the model learns to perform well on a wide variety of tasks, and is subsequently post-trained to improve the model&amp;#x27;s behavior and knowledge in more targeted areas. You can post-train a model to teach it how to call your specific tools, and you can also post-train to teach the model what good looks like on your specific work.&lt;/p&gt;
&lt;p&gt;You can try at least. Josh has been running an initial experiment where we post-train &lt;a href=&quot;https://huggingface.co/Qwen/Qwen3.8-27B&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Qwen&lt;/a&gt;, a smaller open-source model to learn from production traces where Sonnet performed well. The details below.&lt;/p&gt;
&lt;h3&gt;How did we post-train?&lt;/h3&gt;
&lt;p&gt;We did Supervised Fine-Tuning (SFT), a common first-try approach. We built a dataset that started with 5000 production traces, anonymized the data (this was hard, if you&amp;#x27;re curious let me know) and filtered that down to around 1000 conversations where the differences between Sonnet and Qwen would be most observable.&lt;/p&gt;
&lt;h3&gt;Expectations&lt;/h3&gt;
&lt;p&gt;There is &lt;a href=&quot;https://arxiv.org/abs/2305.15717&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;literature&lt;/a&gt; suggesting using SFT in a situation like this probably won&amp;#x27;t work and might actually degrade model performance, but that&amp;#x27;s not a guarantee, so it&amp;#x27;s worth trying anyways.&lt;/p&gt;
&lt;h3&gt;Results&lt;/h3&gt;
&lt;div class=&quot;sf-spread&quot;&gt;&lt;div class=&quot;sf-text&quot;&gt;&lt;p&gt;We did actually observe this. After our SFT experiment, the resulting model performed the same or slightly worse than base Qwen without post-training. With 18 tasks, a difference of one or two is indistinguishable from noise, but there&amp;#x27;s no sign that SFT helped.&lt;/p&gt;&lt;/div&gt;&lt;figure class=&quot;sf&quot;&gt;&lt;div class=&quot;sf-chart&quot;&gt;&lt;p class=&quot;sf-title&quot;&gt;Tasks Qwen passed, out of 18&lt;/p&gt;&lt;div class=&quot;sf-plot&quot;&gt;&lt;ol aria-hidden=&quot;true&quot; class=&quot;sf-ticks&quot;&gt;&lt;li style=&quot;--at:0&quot;&gt;0&lt;/li&gt;&lt;li style=&quot;--at:0.3333333333333333&quot;&gt;6&lt;/li&gt;&lt;li style=&quot;--at:0.6666666666666666&quot;&gt;12&lt;/li&gt;&lt;li style=&quot;--at:1&quot;&gt;18&lt;/li&gt;&lt;/ol&gt;&lt;ul class=&quot;sf-bars&quot;&gt;&lt;li class=&quot;sf-bar sf-bar--base&quot; style=&quot;--h:0.2777777777777778&quot;&gt;&lt;span class=&quot;sf-value&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;sf-fill&quot;&gt;&lt;/span&gt;&lt;span class=&quot;sf-label&quot;&gt;Before&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;sf-bar&quot; style=&quot;--h:0.2222222222222222&quot;&gt;&lt;span class=&quot;sf-value&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;sf-fill&quot;&gt;&lt;/span&gt;&lt;span class=&quot;sf-label&quot;&gt;1&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;sf-bar&quot; style=&quot;--h:0.16666666666666666&quot;&gt;&lt;span class=&quot;sf-value&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;sf-fill&quot;&gt;&lt;/span&gt;&lt;span class=&quot;sf-label&quot;&gt;2&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;sf-bar&quot; style=&quot;--h:0.2777777777777778&quot;&gt;&lt;span class=&quot;sf-value&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;sf-fill&quot;&gt;&lt;/span&gt;&lt;span class=&quot;sf-label&quot;&gt;3&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;p class=&quot;sf-axis&quot;&gt;Rounds of training (epochs)&lt;/p&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h3&gt;Why might it not be working?&lt;/h3&gt;
&lt;p&gt;The data used in post-training was a paired list where each pair is a user&amp;#x27;s question and Sonnet&amp;#x27;s reply. SFT trains Qwen to answer like the frontier model. Ideally Qwen learns the functionality that made Sonnet&amp;#x27;s answers useful, but this isn&amp;#x27;t always the case.&lt;/p&gt;
&lt;p&gt;For example, Sonnet often replies with confidence, which makes sense given it&amp;#x27;s a highly capable model. SFT can result in Qwen learning to &lt;a href=&quot;https://thinkingmachines.ai/blog/on-policy-distillation/#:~:text=style%20and%20confidence,factual%20accuracy&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;copy confidence&lt;/a&gt; without the functional gains to match it.&lt;/p&gt;
&lt;p&gt;Qwen may be able to solve the problem, but if it tries to solve the problem like Sonnet it might end up just sounding like Sonnet.&lt;/p&gt;
&lt;h3&gt;How sure are we that this is what&amp;#x27;s happening?&lt;/h3&gt;
&lt;p&gt;Medium confidence. It makes sense that this is what could be happening. It&amp;#x27;s a concern with &amp;quot;off-policy&amp;quot; training. &amp;quot;Off&amp;quot; because it&amp;#x27;s learning from another model and not itself. We could try to probe at why it&amp;#x27;s performing poorly, but that&amp;#x27;s a new experiment.&lt;/p&gt;
&lt;p&gt;Josh is now working on &amp;quot;on-policy&amp;quot; post-training methods. &amp;quot;On&amp;quot; meaning Qwen can learn from its own good and bad attempts at responding to a question. Results pending.&lt;/p&gt;
&lt;h2&gt;FPGAs&lt;/h2&gt;
&lt;p&gt;Aidan is working on a long-term project. It&amp;#x27;s a knowledge building endeavor, where instead of studying how to optimally use existing hardware, he&amp;#x27;s focused on what might be possible if every part of the hardware chain was open for exploration.&lt;/p&gt;
&lt;p&gt;He gives the team weekly lectures, which feels like a special way to learn. This week he&amp;#x27;s working with an FPGA (field-programmable gate array) chip. Unlike a CPU or GPU, where the circuit is fixed and you write software for it, an FPGA lets you wire the circuit yourself and re-wire it whenever you like. He&amp;#x27;s found a small language model that fits in the on-chip memory and the model tells jokes. We&amp;#x27;re curious how fast it can tell the jokes, how much heat that generates and what&amp;#x27;s the cost of doing so.&lt;/p&gt;
&lt;p&gt;We&amp;#x27;ve yet to see the jokes because finding a charger for the FPGA is reportedly much harder than programming it to serve the model. More on this when we can find one.&lt;/p&gt;
&lt;div class=&quot;gr-coda&quot;&gt;&lt;p&gt;The week was fast.
The kind of content we&amp;#x27;ll produce is still being shaped. If there&amp;#x27;s something you&amp;#x27;re interested in understanding well, email me at &lt;a href=&quot;mailto:charley@gradiated.com&quot;&gt;charley@gradiated.com&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</content>
  </entry>
  <entry>
    <title>October 2026: Starting on hard mode</title>
    <id>https://gradiated.com/library/2026-10-starting-on-hard-mode/</id>
    <link rel="alternate" type="text/html" href="https://gradiated.com/library/2026-10-starting-on-hard-mode/" />
    <link rel="enclosure" type="image/webp" href="https://gradiated.com/brand/library/mission-wide.webp" />
    <media:thumbnail url="https://gradiated.com/brand/library/mission-wide.webp" />
    <published>2026-10-23T00:00:00Z</published>
    <updated>2026-10-23T00:00:00Z</updated>
    <author><name>James Hawkins</name></author>
    <summary>PostHog's going well. Really well. To the point where it's the literal dream to build a company like this for the majority of founders I meet. And…</summary>
    <content type="html">&lt;h2&gt;Starting Gradiated&lt;/h2&gt;
&lt;p&gt;PostHog&amp;#x27;s going well. &lt;em&gt;Really&lt;/em&gt; well. To the point where it&amp;#x27;s the literal dream to build a company like this for the majority of founders I meet. And yet, I&amp;#x27;m now focused on Gradiated, which helps companies run open-weight models. Why mess with a good thing?&lt;/p&gt;
&lt;p&gt;To &lt;em&gt;not&lt;/em&gt; mess with a good thing.&lt;/p&gt;
&lt;p&gt;As PostHog gets bigger, we want to increase the size of the bets we take without sacrificing focus and bandwidth on the core products that customers are paying for today. Yet if we don&amp;#x27;t build new things, we create a risk that something else will come along and disrupt us.&lt;/p&gt;
&lt;h2&gt;The importance of hard mode at the start&lt;/h2&gt;
&lt;p&gt;I started by doing cold outbound sales myself. This is definitely sales on hard mode, especially given our developer focus - an audience who stereotypically at least &lt;em&gt;hate&lt;/em&gt; cold messages from random vendors. There were lots of &amp;quot;easier&amp;quot; options: I could have hired someone to do this, or focused on selling to existing PostHog customers.&lt;/p&gt;
&lt;p&gt;The reason I chose to do this manually was that, in the earliest stages, the focus is learning, not scaling. We can have all the confidence in the world about our product strategy &lt;em&gt;until&lt;/em&gt; customers tell us otherwise. Cold outbound gives us a quick feedback loop: message potential customers, then see what they do next, if anything.&lt;/p&gt;
&lt;p&gt;Within the first couple of days, this led to a big realization: most software teams, especially early on, aren&amp;#x27;t particularly good at implementing open-weight models instead of frontier ones. Most will take an existing frontier model they&amp;#x27;re using in their product, swap it out for something like DeepSeek, and then be disappointed by the results.&lt;/p&gt;
&lt;p&gt;This changed both our website and the product. We now lead with: start by working with us to get open-weight models working successfully for you, &lt;em&gt;then&lt;/em&gt; we can do the clever stuff around GEPA, RL, chips and so on. Right now that means doing forward-deployed work with customers rather than trying to scale too early.&lt;/p&gt;
&lt;p&gt;Since making these tweaks, we&amp;#x27;ve found it much easier to get meetings, and the majority of those meetings have turned into deals in our small current sample. We could have wasted months going in the wrong direction without this feedback.&lt;/p&gt;
&lt;p&gt;The other meta point is that Josh, ex-PostHog engineer and my cofounder at Gradiated, pushed us to &amp;quot;just sell inference for open-weight models&amp;quot; instead of starting with RL. And it worked. This gets us into the game and starts generating the data customers will later need us to use to train their own models. Consider this your should-be-daily reminder to interact with customers as aggressively as possible unless it directly takes you in the wrong direction. Even SpaceX, focused on making life multiplanetary, started with a relatively simple satellite-launching business.&lt;/p&gt;
&lt;h2&gt;What early customer work actually looks like&lt;/h2&gt;
&lt;p&gt;On product, we&amp;#x27;ve been taking the same approach: our focus is &lt;em&gt;learning&lt;/em&gt;, not &lt;em&gt;efficiency&lt;/em&gt;. When a customer wants to work with us, we send an NDA, then deploy Josh as a forward-deployed engineer. Having direct code access gives us exactly the right environment to test new models, instead of asking customers to try things on our behalf. It also forces us to tackle the practical problems ourselves rather than passing off work that should really become a product feature. It&amp;#x27;s been pleasingly easy to get access like this, partly because of our connection to PostHog. That&amp;#x27;s also why we take security seriously from day one: we&amp;#x27;ve a reputation to uphold.&lt;/p&gt;
&lt;p&gt;For example, the implementation work taught us that you need to adjust prompts for a new model. So we built a labelling suite to get feedback more quickly and concretely than relying on customers to adapt their prompts based on vibes.&lt;/p&gt;
&lt;h2&gt;You have to start &lt;em&gt;really&lt;/em&gt; small&lt;/h2&gt;
&lt;p&gt;I want to emphasize just how puny the first customers were. We actually started through an implementation onto one of Josh&amp;#x27;s side projects - around 700 requests in a day, or only about $0.50 of daily revenue at our prices. I&amp;#x27;ve built a company worth well over $1bn, and &lt;em&gt;yes&lt;/em&gt;, I was very excited to see this happening. You must take things one practical step at a time.&lt;/p&gt;
&lt;h2&gt;What we&amp;#x27;re working on next&lt;/h2&gt;
&lt;p&gt;We&amp;#x27;re seeing customers fall into two buckets, reflecting where they are in their journey with open-weight models. If they&amp;#x27;re pre-product-market fit, they are more focused on quality. This is rational: if you have no customers, all you care about is figuring out how to get them, no matter the cost. If they already have product-market fit, model costs usually become important very quickly.&lt;/p&gt;
&lt;p&gt;We are trying to figure out whether we should land customers early, during the quality phase, where we can give them better tools for developing prompts, or later, during the cost phase, when things like RL or GEPA are far more important.&lt;/p&gt;
&lt;p&gt;This has very large implications. Getting in early is a huge competitive advantage, but later is where the money usually ends up. Perhaps we&amp;#x27;ll do both: ElevenLabs is a great example of a company that managed enterprise sales &lt;em&gt;and&lt;/em&gt; product-led growth from the start. Whatever we do, we need an ultra-clear view of our ideal customer profile.&lt;/p&gt;
&lt;h2&gt;Building the team&lt;/h2&gt;
&lt;p&gt;We want to bring across the principles behind what worked at PostHog, not blindly copy its playbooks. PostHog has a wide product, so a wide, flat organization works well. Gradiated&amp;#x27;s product strategy is deep: from a customer&amp;#x27;s perspective it should just be a base URL, while we optimize everything down to the hardware and data center level.&lt;/p&gt;
&lt;p&gt;That calls for a different structure. We want to work in person as much as possible, and for most of the early team to understand the whole stack, from transistors through to token prediction.&lt;/p&gt;
&lt;p&gt;So far:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I&amp;#x27;m finding customers.&lt;/li&gt;
&lt;li&gt;Josh owns product and customer implementations.&lt;/li&gt;
&lt;li&gt;Aidan leads our work from model behavior through to chip microarchitecture.&lt;/li&gt;
&lt;li&gt;Scott runs ops and hiring.&lt;/li&gt;
&lt;li&gt;Shmo leads brand design.&lt;/li&gt;
&lt;li&gt;Charley, when she starts a week today, will write about chips, inference and models to build our audience online&lt;/li&gt;
&lt;li&gt;Tim is acting as a board member&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Our top hiring priority now is infrastructure to increase Josh&amp;#x27;s bandwidth for product work.&lt;/p&gt;
&lt;h2&gt;Getting compute is part of building the business&lt;/h2&gt;
&lt;p&gt;After a recent trip to San Francisco, it became clear how crazy the GPU market is. It&amp;#x27;s often a case of DMing some rando from X and then transferring millions of dollars to them. It&amp;#x27;s standard for providers to have uptime guarantees of 85% (!!!!) It &lt;em&gt;is&lt;/em&gt; the wild west at the moment.&lt;/p&gt;
&lt;p&gt;But access to scarce GPUs cannot be our only advantage. Scarcity will change, and a large balance sheet can always buy more compute. We would rather invest in a fundamental technological advantage: getting more useful work out of every GPU we have.&lt;/p&gt;
&lt;p&gt;That may produce slower revenue growth in the short term than simply buying as much compute as possible. We think it gives us a much stronger business in the long term.&lt;/p&gt;
&lt;h2&gt;What this means for PostHog&lt;/h2&gt;
&lt;p&gt;Tim has gradually been running more and more of PostHog over the last couple of years as I&amp;#x27;ve focused more on zero-to-one products, including PostHog AI, self-driving, the desktop app, the support product and our AI research team. We are acknowledging what is already true: Tim is running PostHog, and I am focused on new products.&lt;/p&gt;
&lt;p&gt;Gradiated is how we create new products without pulling team members away from the products customers already rely on. It has a separate brand and Slack, and we are using as little internal resource as possible – &lt;a href=&quot;https://posthog.com/handbook/gradiated&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;more on how that works&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;That means while Tim focuses on data, data, data at PostHog, I&amp;#x27;m doing cold outreach and hiring myself, and Josh is implementing the product for customers as a forward-deployed engineer.&lt;/p&gt;
&lt;p&gt;If you&amp;#x27;re a potential customer or just have any thoughts, I&amp;#x27;d love to hear from you: james at you can guess it dot com.&lt;/p&gt;</content>
  </entry>
  <entry>
    <title>How do we print a transistor onto silicon?</title>
    <id>https://gradiated.com/library/sand-to-thought/fabricating-a-transistor/</id>
    <link rel="alternate" type="text/html" href="https://gradiated.com/library/sand-to-thought/fabricating-a-transistor/" />
    <link rel="enclosure" type="image/jpeg" href="https://gradiated.com/og/library--sand-to-thought--fabricating-a-transistor.jpg" />
    <media:thumbnail url="https://gradiated.com/og/library--sand-to-thought--fabricating-a-transistor.jpg" />
    <published>2026-10-21T00:00:00Z</published>
    <updated>2026-10-21T00:00:00Z</updated>
    <author><name>Dr Aidan McConnell</name></author>
    <summary>Follow a silicon wafer between machines as patterns, dopants and thin films become a working logic gate.</summary>
  </entry>
  <entry>
    <title>How to get an answer out of sand</title>
    <id>https://gradiated.com/library/sand-to-thought/how-to-get-an-answer-out-of-sand/</id>
    <link rel="alternate" type="text/html" href="https://gradiated.com/library/sand-to-thought/how-to-get-an-answer-out-of-sand/" />
    <link rel="enclosure" type="image/jpeg" href="https://gradiated.com/og/library--sand-to-thought--how-to-get-an-answer-out-of-sand.jpg" />
    <media:thumbnail url="https://gradiated.com/og/library--sand-to-thought--how-to-get-an-answer-out-of-sand.jpg" />
    <published>2026-10-14T00:00:00Z</published>
    <updated>2026-10-14T00:00:00Z</updated>
    <author><name>Dr Aidan McConnell</name></author>
    <summary>An illustrated journey through the semiconductor stack, starting with silicon, switches and circuits that calculate and remember.</summary>
  </entry>
  <entry>
    <title>Announcing Carat: An inference engine designed for Gemma 4</title>
    <id>https://gradiated.com/library/gemma-inference-engine/</id>
    <link rel="alternate" type="text/html" href="https://gradiated.com/library/gemma-inference-engine/" />
    <link rel="enclosure" type="image/jpeg" href="https://gradiated.com/og/library--gemma-inference-engine.jpg" />
    <media:thumbnail url="https://gradiated.com/og/library--gemma-inference-engine.jpg" />
    <published>2026-09-02T00:00:00Z</published>
    <updated>2026-09-02T00:00:00Z</updated>
    <author><name>Josh Snyder</name></author>
    <summary>Getting started with inference is easy. Rent a few NVIDIA GPUs, run vLLM or SGLang, and you’re good to go. But if you already know which model you’ll…</summary>
    <content type="html">&lt;p&gt;Getting started with inference is easy. Rent a few NVIDIA GPUs, run vLLM or SGLang, and you’re good to go. But if you already know which model you’ll run, how much performance are you leaving on the table by using an engine built for everything else too?&lt;/p&gt;
&lt;p&gt;We built Carat, a C++/CUDA inference engine for Gemma 4, to find out. Gemma’s fixed sliding window and shared KV heads let us replace page lookups with ring buffers and group attention queries into larger matrix multiplications. Here’s what we learned.&lt;/p&gt;
&lt;h2&gt;Replacing page lookups with a ring buffer&lt;/h2&gt;
&lt;p&gt;One of the core things an inference engine needs to optimize is KV cache reuse for attention layers. The KV cache for a session includes intermediate state from the attention calculations, and we store it to avoid recomputing it on every forward pass of the model to generate a new token.&lt;/p&gt;
&lt;p&gt;As context windows grow larger, the bandwidth used to transfer the KV cache begins to dominate relative to the model weights, and so KV cache optimization is one of the biggest targets for increasing model throughput.&lt;/p&gt;
&lt;p&gt;Unlike standard attention that attends across all previous tokens, &lt;a href=&quot;https://huggingface.co/google/gemma-4-31B-it/blob/main/config.json&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Gemma uses a 1024-token sliding window for attention in 50 of its 60 transformer layers&lt;/a&gt;.&lt;/p&gt;
&lt;figure class=&quot;gemma-figure&quot; aria-labelledby=&quot;_R_6qai_&quot;&gt;&lt;header&gt;&lt;h3 id=&quot;_R_6qai_&quot;&gt;Attention layers in Gemma 4&lt;/h3&gt;&lt;p&gt;Gemma splits its 60 layers into 10 groups of six layers. Five layers use a short attention window, then one looks across the full history. That pattern repeats ten times.&lt;/p&gt;&lt;/header&gt;&lt;div class=&quot;gx-model-flow&quot;&gt;&lt;div&gt;&lt;strong&gt;Input tokens&lt;/strong&gt;&lt;span&gt;Convert token IDs into vectors&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;gx-model-arrow&quot; aria-hidden=&quot;true&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;18&quot; height=&quot;18&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.5&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-arrow-down&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M12 5v14&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m19 12-7 7-7-7&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;span class=&quot;gx-footnote&quot;&gt;Layers run left to right, then continue on the next row.&lt;/span&gt;&lt;section class=&quot;gx-model-layers&quot; aria-label=&quot;60 layers: ten groups of five local layers followed by one global layer&quot;&gt;&lt;div class=&quot;gx-layer-row&quot;&gt;&lt;span&gt;1&lt;!-- --&gt;–&lt;!-- --&gt;6&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 1: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 2: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 3: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 4: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 5: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-global &quot; title=&quot;Layer 6: global attention&quot;&gt;G&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;gx-layer-row&quot;&gt;&lt;span&gt;7&lt;!-- --&gt;–&lt;!-- --&gt;12&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 7: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 8: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 9: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 10: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 11: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-global &quot; title=&quot;Layer 12: global attention&quot;&gt;G&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;gx-layer-row&quot;&gt;&lt;span&gt;13&lt;!-- --&gt;–&lt;!-- --&gt;18&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 13: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 14: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 15: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 16: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 17: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-global &quot; title=&quot;Layer 18: global attention&quot;&gt;G&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;gx-layer-row&quot;&gt;&lt;span&gt;19&lt;!-- --&gt;–&lt;!-- --&gt;24&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 19: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 20: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 21: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 22: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 23: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-global &quot; title=&quot;Layer 24: global attention&quot;&gt;G&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;gx-layer-row&quot;&gt;&lt;span&gt;25&lt;!-- --&gt;–&lt;!-- --&gt;30&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 25: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 26: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 27: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 28: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 29: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-global &quot; title=&quot;Layer 30: global attention&quot;&gt;G&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;gx-layer-row&quot;&gt;&lt;span&gt;31&lt;!-- --&gt;–&lt;!-- --&gt;36&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 31: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 32: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 33: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 34: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 35: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-global &quot; title=&quot;Layer 36: global attention&quot;&gt;G&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;gx-layer-row&quot;&gt;&lt;span&gt;37&lt;!-- --&gt;–&lt;!-- --&gt;42&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 37: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 38: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 39: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 40: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 41: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-global &quot; title=&quot;Layer 42: global attention&quot;&gt;G&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;gx-layer-row&quot;&gt;&lt;span&gt;43&lt;!-- --&gt;–&lt;!-- --&gt;48&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 43: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 44: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 45: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 46: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 47: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-global &quot; title=&quot;Layer 48: global attention&quot;&gt;G&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;gx-layer-row&quot;&gt;&lt;span&gt;49&lt;!-- --&gt;–&lt;!-- --&gt;54&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 49: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 50: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 51: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 52: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 53: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-global &quot; title=&quot;Layer 54: global attention&quot;&gt;G&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;gx-layer-row&quot;&gt;&lt;span&gt;55&lt;!-- --&gt;–&lt;!-- --&gt;60&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 55: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 56: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 57: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 58: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-local is-selected&quot; title=&quot;Layer 59: local attention&quot;&gt;L&lt;/span&gt;&lt;span class=&quot;gx-model-layer is-global &quot; title=&quot;Layer 60: global attention&quot;&gt;G&lt;/span&gt;&lt;/div&gt;&lt;/section&gt;&lt;span class=&quot;gx-model-arrow&quot; aria-hidden=&quot;true&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;18&quot; height=&quot;18&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.5&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-arrow-down&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M12 5v14&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m19 12-7 7-7-7&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;div&gt;&lt;strong&gt;Next-token scores&lt;/strong&gt;&lt;span&gt;Choose a token, then repeat&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;gx-before-after&quot; role=&quot;group&quot; aria-label=&quot;Layer attention type&quot;&gt;&lt;/div&gt;&lt;section class=&quot;gx-panel gx-model-detail&quot; aria-live=&quot;polite&quot;&gt;&lt;h4&gt;Read the latest 1,024 tokens&lt;/h4&gt;&lt;div class=&quot;gx-history-label&quot;&gt;&lt;span&gt;Start of conversation&lt;/span&gt;&lt;span class=&quot;gx-history-current&quot;&gt;Current token&lt;!-- --&gt; &lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;12&quot; height=&quot;12&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.8&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-arrow-down&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M12 5v14&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m19 12-7 7-7-7&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;gx-model-history&quot; role=&quot;img&quot; aria-label=&quot;Latest 1,024 of 6,144 token positions visible&quot;&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;is-visible&quot;&gt;&lt;/span&gt;&lt;span class=&quot;is-visible&quot;&gt;&lt;/span&gt;&lt;span class=&quot;is-visible&quot;&gt;&lt;/span&gt;&lt;span class=&quot;is-visible&quot;&gt;&lt;/span&gt;&lt;span class=&quot;is-visible&quot;&gt;&lt;/span&gt;&lt;span class=&quot;is-visible&quot;&gt;&lt;/span&gt;&lt;span class=&quot;is-visible&quot;&gt;&lt;/span&gt;&lt;span class=&quot;is-visible&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;Reuse the old slots.&lt;/strong&gt; &lt;!-- --&gt;These layers no longer read keys and values outside the window. A 1,024-slot ring can replace old entries as new tokens arrive.&lt;/p&gt;&lt;/section&gt;&lt;/figure&gt;
&lt;p&gt;Building Carat specifically for Gemma lets us carry model-specific decisions through the cache layout, attention kernels and runtime.&lt;/p&gt;
&lt;p&gt;SGLang builds indices for the recent window from the request&amp;#x27;s token mapping, and then translates those into local-cache locations. The attention kernel then loads those indices and reads KV values at the resulting addresses. The slots can be scattered, and paging allows for efficient use of memory rather than reserving the maximum context length in memory.&lt;/p&gt;
&lt;p&gt;Carat instead exploits the token-window architecture specific to the model and gives each request a fixed ring for its local history. A token’s absolute position determines its slot modulo the window size.&lt;/p&gt;
&lt;p&gt;When the window advances, a new token reuses an old slot without shifting the remaining data.&lt;/p&gt;
&lt;figure class=&quot;gemma-figure&quot; aria-labelledby=&quot;_R_bqai_&quot;&gt;&lt;header&gt;&lt;h3 id=&quot;_R_bqai_&quot;&gt;Designing the KV cache to fit the model&lt;/h3&gt;&lt;p&gt;Knowing the model architecture up front allows you to design the inference engine around it.&lt;/p&gt;&lt;/header&gt;&lt;div class=&quot;gx-before-after&quot; role=&quot;group&quot; aria-label=&quot;Attention cache implementation&quot;&gt;&lt;/div&gt;&lt;div class=&quot;gx-two-panels gx-cache-comparison &quot;&gt;&lt;section class=&quot;gx-panel&quot;&gt;&lt;h4&gt;1. Lookup the token slot&lt;/h4&gt;&lt;div class=&quot;gx-page-map&quot;&gt;&lt;div&gt;&lt;span&gt;Token &lt;!-- --&gt;1&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;14&quot; height=&quot;14&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-arrow-right&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M5 12h14&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m12 5 7 7-7 7&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;strong&gt;slot &lt;!-- --&gt;2&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;Token &lt;!-- --&gt;2&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;14&quot; height=&quot;14&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-arrow-right&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M5 12h14&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m12 5 7 7-7 7&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;strong&gt;slot &lt;!-- --&gt;11&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;Token &lt;!-- --&gt;3&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;14&quot; height=&quot;14&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-arrow-right&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M5 12h14&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m12 5 7 7-7 7&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;strong&gt;slot &lt;!-- --&gt;5&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;Token &lt;!-- --&gt;4&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;14&quot; height=&quot;14&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-arrow-right&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M5 12h14&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m12 5 7 7-7 7&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;strong&gt;slot &lt;!-- --&gt;14&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;Token &lt;!-- --&gt;5&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;14&quot; height=&quot;14&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-arrow-right&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M5 12h14&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m12 5 7 7-7 7&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;strong&gt;slot &lt;!-- --&gt;0&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;Token &lt;!-- --&gt;6&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;14&quot; height=&quot;14&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-arrow-right&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M5 12h14&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m12 5 7 7-7 7&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;strong&gt;slot &lt;!-- --&gt;9&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;Token &lt;!-- --&gt;7&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;14&quot; height=&quot;14&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-arrow-right&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M5 12h14&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m12 5 7 7-7 7&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;strong&gt;slot &lt;!-- --&gt;7&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;Token &lt;!-- --&gt;8&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;14&quot; height=&quot;14&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-arrow-right&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M5 12h14&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m12 5 7 7-7 7&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;strong&gt;slot &lt;!-- --&gt;12&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;SGLang stores a mapping for each token to a cache slot in memory.&lt;/p&gt;&lt;/section&gt;&lt;section class=&quot;gx-panel&quot;&gt;&lt;h4&gt;2. Slots in the shared pool&lt;/h4&gt;&lt;div class=&quot;gx-shared-pool&quot;&gt;&lt;div class=&quot;gx-token is-new&quot;&gt;&lt;small&gt;slot &lt;!-- --&gt;0&lt;/small&gt;&lt;strong&gt;5&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;gx-token &quot;&gt;&lt;small&gt;slot &lt;!-- --&gt;1&lt;/small&gt;&lt;strong&gt;—&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;gx-token is-new&quot;&gt;&lt;small&gt;slot &lt;!-- --&gt;2&lt;/small&gt;&lt;strong&gt;1&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;gx-token &quot;&gt;&lt;small&gt;slot &lt;!-- --&gt;3&lt;/small&gt;&lt;strong&gt;—&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;gx-token &quot;&gt;&lt;small&gt;slot &lt;!-- --&gt;4&lt;/small&gt;&lt;strong&gt;—&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;gx-token is-new&quot;&gt;&lt;small&gt;slot &lt;!-- --&gt;5&lt;/small&gt;&lt;strong&gt;3&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;gx-token &quot;&gt;&lt;small&gt;slot &lt;!-- --&gt;6&lt;/small&gt;&lt;strong&gt;—&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;gx-token is-new&quot;&gt;&lt;small&gt;slot &lt;!-- --&gt;7&lt;/small&gt;&lt;strong&gt;7&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;gx-token &quot;&gt;&lt;small&gt;slot &lt;!-- --&gt;8&lt;/small&gt;&lt;strong&gt;—&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;gx-token is-new&quot;&gt;&lt;small&gt;slot &lt;!-- --&gt;9&lt;/small&gt;&lt;strong&gt;6&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;gx-token &quot;&gt;&lt;small&gt;slot &lt;!-- --&gt;10&lt;/small&gt;&lt;strong&gt;—&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;gx-token is-new&quot;&gt;&lt;small&gt;slot &lt;!-- --&gt;11&lt;/small&gt;&lt;strong&gt;2&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;gx-token is-new&quot;&gt;&lt;small&gt;slot &lt;!-- --&gt;12&lt;/small&gt;&lt;strong&gt;8&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;gx-token &quot;&gt;&lt;small&gt;slot &lt;!-- --&gt;13&lt;/small&gt;&lt;strong&gt;—&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;gx-token is-new&quot;&gt;&lt;small&gt;slot &lt;!-- --&gt;14&lt;/small&gt;&lt;strong&gt;4&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;gx-token &quot;&gt;&lt;small&gt;slot &lt;!-- --&gt;15&lt;/small&gt;&lt;strong&gt;—&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;Attention looks up the address for each slot, then reads the KV data at those addresses, which may be scattered randomly.&lt;/p&gt;&lt;/section&gt;&lt;/div&gt;&lt;/figure&gt;
&lt;p&gt;This, alongside other improvements to how attention is handled in Carat, reduced the time-per-output-token (TPOT) from 35.92 ms to 24.96 ms&lt;sup&gt;&lt;a href=&quot;#user-content-fn-tpot-method&quot; id=&quot;user-content-fnref-tpot-method&quot; data-footnote-ref=&quot;true&quot; aria-describedby=&quot;footnote-label&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;.&lt;/p&gt;
&lt;h2&gt;More FLOPs can be faster&lt;/h2&gt;
&lt;p&gt;The sliding-window ring only helps for Gemma’s local layers. The ten global layers still need the full context, and their attention matrices grow with the conversation length.&lt;/p&gt;
&lt;p&gt;Looking at inputs from our dataset, Gemma 4’s global query-key multiplication did not scale smoothly with input length. It was spiky. One input with 6,005 keys took 0.830 ms which was longer than expected and global attention layers became a bottleneck. We experimented with padding the K matrix here to see if more FLOPs could improve performance.&lt;/p&gt;
&lt;figure class=&quot;gemma-figure&quot; aria-labelledby=&quot;_R_gqai_&quot;&gt;&lt;header&gt;&lt;h3 id=&quot;_R_gqai_&quot;&gt;More FLOPs is better.&lt;/h3&gt;&lt;p&gt;Padding the K matrix to be a multiple of 64 improves the execution speed significantly.&lt;/p&gt;&lt;/header&gt;&lt;div class=&quot;gx-controls&quot;&gt;&lt;div class=&quot;gx-switch&quot; role=&quot;group&quot; aria-label=&quot;Matrix extent&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-heading&quot;&gt;&lt;span&gt;Earlier columns omitted&lt;/span&gt;&lt;span class=&quot;gx-label-with-icon&quot;&gt;Last 64 columns&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;12&quot; height=&quot;12&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-arrow-down&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M12 5v14&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m19 12-7 7-7-7&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix&quot; role=&quot;img&quot; aria-label=&quot;6016 physical columns. 11 padded columns excluded from attention.&quot;&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5952: visible&quot;&gt;&lt;span&gt;5952&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5953: visible&quot;&gt;&lt;span&gt;5953&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5954: visible&quot;&gt;&lt;span&gt;5954&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5955: visible&quot;&gt;&lt;span&gt;5955&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5956: visible&quot;&gt;&lt;span&gt;5956&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5957: visible&quot;&gt;&lt;span&gt;5957&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5958: visible&quot;&gt;&lt;span&gt;5958&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5959: visible&quot;&gt;&lt;span&gt;5959&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5960: visible&quot;&gt;&lt;span&gt;5960&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5961: visible&quot;&gt;&lt;span&gt;5961&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5962: visible&quot;&gt;&lt;span&gt;5962&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5963: visible&quot;&gt;&lt;span&gt;5963&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5964: visible&quot;&gt;&lt;span&gt;5964&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5965: visible&quot;&gt;&lt;span&gt;5965&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5966: visible&quot;&gt;&lt;span&gt;5966&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5967: visible&quot;&gt;&lt;span&gt;5967&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5968: visible&quot;&gt;&lt;span&gt;5968&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5969: visible&quot;&gt;&lt;span&gt;5969&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5970: visible&quot;&gt;&lt;span&gt;5970&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5971: visible&quot;&gt;&lt;span&gt;5971&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5972: visible&quot;&gt;&lt;span&gt;5972&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5973: visible&quot;&gt;&lt;span&gt;5973&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5974: visible&quot;&gt;&lt;span&gt;5974&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5975: visible&quot;&gt;&lt;span&gt;5975&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5976: visible&quot;&gt;&lt;span&gt;5976&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5977: visible&quot;&gt;&lt;span&gt;5977&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5978: visible&quot;&gt;&lt;span&gt;5978&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5979: visible&quot;&gt;&lt;span&gt;5979&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5980: visible&quot;&gt;&lt;span&gt;5980&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5981: visible&quot;&gt;&lt;span&gt;5981&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5982: visible&quot;&gt;&lt;span&gt;5982&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5983: visible&quot;&gt;&lt;span&gt;5983&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5984: visible&quot;&gt;&lt;span&gt;5984&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5985: visible&quot;&gt;&lt;span&gt;5985&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5986: visible&quot;&gt;&lt;span&gt;5986&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5987: visible&quot;&gt;&lt;span&gt;5987&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5988: visible&quot;&gt;&lt;span&gt;5988&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5989: visible&quot;&gt;&lt;span&gt;5989&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5990: visible&quot;&gt;&lt;span&gt;5990&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5991: visible&quot;&gt;&lt;span&gt;5991&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5992: visible&quot;&gt;&lt;span&gt;5992&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5993: visible&quot;&gt;&lt;span&gt;5993&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5994: visible&quot;&gt;&lt;span&gt;5994&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5995: visible&quot;&gt;&lt;span&gt;5995&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5996: visible&quot;&gt;&lt;span&gt;5996&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5997: visible&quot;&gt;&lt;span&gt;5997&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5998: visible&quot;&gt;&lt;span&gt;5998&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 5999: visible&quot;&gt;&lt;span&gt;5999&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 6000: visible&quot;&gt;&lt;span&gt;6000&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 6001: visible&quot;&gt;&lt;span&gt;6001&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 6002: visible&quot;&gt;&lt;span&gt;6002&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 6003: visible&quot;&gt;&lt;span&gt;6003&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-visible&quot; title=&quot;Key 6004: visible&quot;&gt;&lt;span&gt;6004&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-padding&quot; title=&quot;Key 6005: padding&quot;&gt;&lt;span&gt;6005&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-x&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M18 6 6 18&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m6 6 12 12&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-padding&quot; title=&quot;Key 6006: padding&quot;&gt;&lt;span&gt;6006&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-x&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M18 6 6 18&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m6 6 12 12&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-padding&quot; title=&quot;Key 6007: padding&quot;&gt;&lt;span&gt;6007&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-x&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M18 6 6 18&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m6 6 12 12&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-padding&quot; title=&quot;Key 6008: padding&quot;&gt;&lt;span&gt;6008&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-x&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M18 6 6 18&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m6 6 12 12&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-padding&quot; title=&quot;Key 6009: padding&quot;&gt;&lt;span&gt;6009&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-x&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M18 6 6 18&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m6 6 12 12&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-padding&quot; title=&quot;Key 6010: padding&quot;&gt;&lt;span&gt;6010&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-x&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M18 6 6 18&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m6 6 12 12&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-padding&quot; title=&quot;Key 6011: padding&quot;&gt;&lt;span&gt;6011&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-x&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M18 6 6 18&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m6 6 12 12&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-padding&quot; title=&quot;Key 6012: padding&quot;&gt;&lt;span&gt;6012&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-x&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M18 6 6 18&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m6 6 12 12&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-padding&quot; title=&quot;Key 6013: padding&quot;&gt;&lt;span&gt;6013&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-x&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M18 6 6 18&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m6 6 12 12&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-padding&quot; title=&quot;Key 6014: padding&quot;&gt;&lt;span&gt;6014&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-x&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M18 6 6 18&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m6 6 12 12&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;div class=&quot;gx-matrix-cell is-padding&quot; title=&quot;Key 6015: padding&quot;&gt;&lt;span&gt;6015&lt;/span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-x&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M18 6 6 18&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m6 6 12 12&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;gx-legend&quot;&gt;&lt;span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-check&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M20 6 9 17l-5-5&quot;&gt;&lt;/path&gt;&lt;/svg&gt;visible key&lt;/span&gt;&lt;span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-x&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M18 6 6 18&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m6 6 12 12&quot;&gt;&lt;/path&gt;&lt;/svg&gt;padding masked&lt;/span&gt;&lt;span&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-circle-dashed&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M10.1 2.182a10 10 0 0 1 3.8 0&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M13.9 21.818a10 10 0 0 1-3.8 0&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M17.609 3.721a10 10 0 0 1 2.69 2.7&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M2.182 13.9a10 10 0 0 1 0-3.8&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M20.279 17.609a10 10 0 0 1-2.7 2.69&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M21.818 10.1a10 10 0 0 1 0 3.8&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M3.721 6.391a10 10 0 0 1 2.7-2.69&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M6.391 20.279a10 10 0 0 1-2.69-2.7&quot;&gt;&lt;/path&gt;&lt;/svg&gt;not allocated&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;gx-bars&quot;&gt;&lt;span class=&quot;gx-eyebrow&quot;&gt;Measured time · global attention QK&lt;/span&gt;&lt;div&gt;&lt;label&gt;6,005 keys &lt;strong&gt;0.830 ms&lt;/strong&gt;&lt;/label&gt;&lt;i style=&quot;width:100%&quot;&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;label&gt;6,016 keys &lt;strong&gt;0.105 ms&lt;/strong&gt;&lt;/label&gt;&lt;i class=&quot;gx-fast-bar&quot; style=&quot;width:12.650602409638555%&quot;&gt;&lt;/i&gt;&lt;/div&gt;&lt;/div&gt;&lt;p class=&quot;gx-footnote&quot;&gt;Measured on a H200 with BF16 Q and K matricies.&lt;/p&gt;&lt;/figure&gt;
&lt;p&gt;The figure shows the last 64 columns of the key matrix. Switching from Exact to Padded adds eleven columns that are not useful in the attention calculation: the preallocated cache tail is zero-initialized and the causal mask gives those columns zero weight, so the output is unchanged.&lt;/p&gt;
&lt;p&gt;Rounding the dimensions of K up to the next multiple of 64 and masking the future positions resulted in a 7.9x performance improvement for QK calculations.&lt;/p&gt;
&lt;div class=&quot;my-7 max-w-[760px]&quot;&gt;&lt;div class=&quot;flex flex-wrap items-end justify-between gap-x-5 border-b border-line&quot;&gt;&lt;div aria-label=&quot;Code examples&quot; class=&quot;flex gap-6&quot; role=&quot;tablist&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div aria-labelledby=&quot;_R_jqai_-tab-0&quot; class=&quot;pt-3 [&amp;amp;_[data-docs-code-block]]:my-0&quot; id=&quot;_R_jqai_-panel-0&quot; role=&quot;tabpanel&quot;&gt;&lt;div class=&quot;docs-code-block relative my-[27px]&quot; data-docs-code-block=&quot;true&quot;&gt;&lt;pre class=&quot;m-0 overflow-x-auto rounded-xl border border-[var(--code-border)] bg-[var(--code-bg)] px-6 py-[22px] pr-24 font-site-mono text-[12.5px] leading-[1.72] text-[var(--code-fg)] shadow-[var(--code-shadow)] max-[500px]:px-4 max-[500px]:py-[18px] max-[500px]:text-[11.5px] &quot;&gt;&lt;code class=&quot;bg-transparent p-0 font-inherit hljs language-cpp&quot;&gt;&lt;span class=&quot;hljs-type&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;hljs-type&quot;&gt;int&lt;/span&gt; key_count = context_length + proposal_count; &lt;span class=&quot;hljs-comment&quot;&gt;// 6,005&lt;/span&gt;

&lt;span class=&quot;hljs-comment&quot;&gt;// BF16 matrix multiplication through cuBLASLt.&lt;/span&gt;
&lt;span class=&quot;hljs-built_in&quot;&gt;qk_matmul&lt;/span&gt;(queries, key_cache, scores, key_count);

&lt;span class=&quot;hljs-comment&quot;&gt;// Each query can attend only up to its own position.&lt;/span&gt;
&lt;span class=&quot;hljs-built_in&quot;&gt;causal_softmax&lt;/span&gt;(scores, query_positions, key_count);

&lt;span class=&quot;hljs-built_in&quot;&gt;pv_matmul&lt;/span&gt;(scores, value_cache, output, key_count);
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;At 6,005 keys, &lt;a href=&quot;https://docs.nvidia.com/cuda/cublas/#using-the-cublaslt-api&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;cuBLASLt&lt;/a&gt; uses a conventional kernel with ordinary floating-point multiply-add instructions. At 6,016 keys, it used a &lt;a href=&quot;https://developer.nvidia.com/blog/nvidia-hopper-architecture-in-depth/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Hopper Tensor Core&lt;/a&gt; kernel with HGMMA instructions, which is built to be significantly more efficient at matrix multiplications.&lt;/p&gt;
&lt;p&gt;Adding a few masked columns and increasing slightly the number of FLOPs in the calculation can significantly improve the speed by pushing it to take a different route through the hardware. This matches our experience optimizing inference, counting FLOPs is a poor predictor of execution time, and the fastest configuration is often counter-intuitive.&lt;/p&gt;
&lt;h2&gt;Doing it all in one kernel can be slower&lt;/h2&gt;
&lt;p&gt;Up until now, we’ve focused on making the target model’s forward pass faster. Speculative decoding lets the target model check several proposed tokens together in a single forward pass, amortizing the cost of reading weights and loading the KV cache from memory.&lt;/p&gt;
&lt;p&gt;Speculative verification sits between ordinary decoding and prompt processing. Instead of attending with one new token or thousands, the target model checks a handful of proposed positions together.&lt;/p&gt;
&lt;p&gt;For Gemma&amp;#x27;s global-attention layers, the SGLang version we tested uses one fused attention kernel for each query head. Each head processes its four query positions against the cached history in chunks, calculating attention scores, applying softmax, and combining values within the same kernel.&lt;/p&gt;
&lt;p&gt;Carat instead groups the eight query heads that share each KV head. With four positions per head, each group has 32 query rows to process against the same cached keys and values. Carat performs that work using batched matrix multiplications: one to calculate attention scores, followed by softmax, then another to combine the values.&lt;/p&gt;
&lt;figure class=&quot;gemma-figure sa-explorer&quot; aria-labelledby=&quot;_R_rqai_-title&quot;&gt;&lt;header&gt;&lt;h3 id=&quot;_R_rqai_-title&quot;&gt;Optimizing attention for speculative decoding&lt;/h3&gt;&lt;p&gt;Eight query heads share one KV head. Each head has four query positions on a forward pass with speculative decoding.&lt;/p&gt;&lt;/header&gt;&lt;div class=&quot;sa-tabs&quot; role=&quot;group&quot; aria-label=&quot;Attention implementation&quot;&gt;&lt;/div&gt;&lt;div class=&quot;sa-work&quot;&gt;&lt;section class=&quot;sa-queries&quot; aria-label=&quot;Query arrangement&quot;&gt;&lt;h4&gt;Four positions for each head&lt;/h4&gt;&lt;svg viewBox=&quot;0 0 220 450&quot; role=&quot;img&quot; aria-label=&quot;Eight head rows, each with positions q0 through q3.&quot;&gt;&lt;text x=&quot;64&quot; y=&quot;24&quot; text-anchor=&quot;middle&quot; class=&quot;sa-axis&quot;&gt;q&lt;!-- --&gt;0&lt;/text&gt;&lt;text x=&quot;107&quot; y=&quot;24&quot; text-anchor=&quot;middle&quot; class=&quot;sa-axis&quot;&gt;q&lt;!-- --&gt;1&lt;/text&gt;&lt;text x=&quot;150&quot; y=&quot;24&quot; text-anchor=&quot;middle&quot; class=&quot;sa-axis&quot;&gt;q&lt;!-- --&gt;2&lt;/text&gt;&lt;text x=&quot;193&quot; y=&quot;24&quot; text-anchor=&quot;middle&quot; class=&quot;sa-axis&quot;&gt;q&lt;!-- --&gt;3&lt;/text&gt;&lt;text x=&quot;12&quot; y=&quot;61&quot; class=&quot;sa-axis&quot;&gt;h&lt;!-- --&gt;0&lt;/text&gt;&lt;text x=&quot;12&quot; y=&quot;109&quot; class=&quot;sa-axis&quot;&gt;h&lt;!-- --&gt;1&lt;/text&gt;&lt;text x=&quot;12&quot; y=&quot;157&quot; class=&quot;sa-axis&quot;&gt;h&lt;!-- --&gt;2&lt;/text&gt;&lt;text x=&quot;12&quot; y=&quot;205&quot; class=&quot;sa-axis&quot;&gt;h&lt;!-- --&gt;3&lt;/text&gt;&lt;text x=&quot;12&quot; y=&quot;253&quot; class=&quot;sa-axis&quot;&gt;h&lt;!-- --&gt;4&lt;/text&gt;&lt;text x=&quot;12&quot; y=&quot;301&quot; class=&quot;sa-axis&quot;&gt;h&lt;!-- --&gt;5&lt;/text&gt;&lt;text x=&quot;12&quot; y=&quot;349&quot; class=&quot;sa-axis&quot;&gt;h&lt;!-- --&gt;6&lt;/text&gt;&lt;text x=&quot;12&quot; y=&quot;397&quot; class=&quot;sa-axis&quot;&gt;h&lt;!-- --&gt;7&lt;/text&gt;&lt;g class=&quot;sa-query&quot; style=&quot;transform:translate(46px, 41px)&quot;&gt;&lt;rect width=&quot;36&quot; height=&quot;31&quot; rx=&quot;3&quot; fill=&quot;var(--sa-head-0)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;18&quot; y=&quot;20&quot; text-anchor=&quot;middle&quot; class=&quot;sa-cell-label&quot;&gt;q0&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;sa-query&quot; style=&quot;transform:translate(89px, 41px)&quot;&gt;&lt;rect width=&quot;36&quot; height=&quot;31&quot; rx=&quot;3&quot; fill=&quot;var(--sa-head-0)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;18&quot; y=&quot;20&quot; text-anchor=&quot;middle&quot; class=&quot;sa-cell-label&quot;&gt;q1&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;sa-query&quot; style=&quot;transform:translate(132px, 41px)&quot;&gt;&lt;rect width=&quot;36&quot; height=&quot;31&quot; rx=&quot;3&quot; fill=&quot;var(--sa-head-0)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;18&quot; y=&quot;20&quot; text-anchor=&quot;middle&quot; class=&quot;sa-cell-label&quot;&gt;q2&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;sa-query&quot; style=&quot;transform:translate(175px, 41px)&quot;&gt;&lt;rect width=&quot;36&quot; height=&quot;31&quot; rx=&quot;3&quot; fill=&quot;var(--sa-head-0)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;18&quot; y=&quot;20&quot; text-anchor=&quot;middle&quot; class=&quot;sa-cell-label&quot;&gt;q3&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;sa-query&quot; style=&quot;transform:translate(46px, 89px)&quot;&gt;&lt;rect width=&quot;36&quot; height=&quot;31&quot; rx=&quot;3&quot; fill=&quot;var(--sa-head-1)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;18&quot; y=&quot;20&quot; text-anchor=&quot;middle&quot; class=&quot;sa-cell-label&quot;&gt;q0&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;sa-query&quot; style=&quot;transform:translate(89px, 89px)&quot;&gt;&lt;rect width=&quot;36&quot; height=&quot;31&quot; rx=&quot;3&quot; fill=&quot;var(--sa-head-1)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;18&quot; y=&quot;20&quot; text-anchor=&quot;middle&quot; class=&quot;sa-cell-label&quot;&gt;q1&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;sa-query&quot; style=&quot;transform:translate(132px, 89px)&quot;&gt;&lt;rect width=&quot;36&quot; height=&quot;31&quot; rx=&quot;3&quot; fill=&quot;var(--sa-head-1)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;18&quot; y=&quot;20&quot; text-anchor=&quot;middle&quot; class=&quot;sa-cell-label&quot;&gt;q2&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;sa-query&quot; style=&quot;transform:translate(175px, 89px)&quot;&gt;&lt;rect width=&quot;36&quot; height=&quot;31&quot; rx=&quot;3&quot; fill=&quot;var(--sa-head-1)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;18&quot; y=&quot;20&quot; text-anchor=&quot;middle&quot; class=&quot;sa-cell-label&quot;&gt;q3&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;sa-query&quot; style=&quot;transform:translate(46px, 137px)&quot;&gt;&lt;rect width=&quot;36&quot; height=&quot;31&quot; rx=&quot;3&quot; fill=&quot;var(--sa-head-2)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;18&quot; y=&quot;20&quot; text-anchor=&quot;middle&quot; class=&quot;sa-cell-label&quot;&gt;q0&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;sa-query&quot; style=&quot;transform:translate(89px, 137px)&quot;&gt;&lt;rect width=&quot;36&quot; height=&quot;31&quot; rx=&quot;3&quot; fill=&quot;var(--sa-head-2)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;18&quot; y=&quot;20&quot; text-anchor=&quot;middle&quot; class=&quot;sa-cell-label&quot;&gt;q1&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;sa-query&quot; style=&quot;transform:translate(132px, 137px)&quot;&gt;&lt;rect width=&quot;36&quot; height=&quot;31&quot; rx=&quot;3&quot; fill=&quot;var(--sa-head-2)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;18&quot; y=&quot;20&quot; text-anchor=&quot;middle&quot; class=&quot;sa-cell-label&quot;&gt;q2&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;sa-query&quot; style=&quot;transform:translate(175px, 137px)&quot;&gt;&lt;rect width=&quot;36&quot; height=&quot;31&quot; rx=&quot;3&quot; fill=&quot;var(--sa-head-2)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;18&quot; y=&quot;20&quot; text-anchor=&quot;middle&quot; class=&quot;sa-cell-label&quot;&gt;q3&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;sa-query&quot; style=&quot;transform:translate(46px, 185px)&quot;&gt;&lt;rect width=&quot;36&quot; height=&quot;31&quot; rx=&quot;3&quot; fill=&quot;var(--sa-head-3)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;18&quot; y=&quot;20&quot; text-anchor=&quot;middle&quot; class=&quot;sa-cell-label&quot;&gt;q0&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;sa-query&quot; style=&quot;transform:translate(89px, 185px)&quot;&gt;&lt;rect width=&quot;36&quot; height=&quot;31&quot; rx=&quot;3&quot; fill=&quot;var(--sa-head-3)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;18&quot; y=&quot;20&quot; text-anchor=&quot;middle&quot; class=&quot;sa-cell-label&quot;&gt;q1&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;sa-query&quot; style=&quot;transform:translate(132px, 185px)&quot;&gt;&lt;rect width=&quot;36&quot; height=&quot;31&quot; rx=&quot;3&quot; fill=&quot;var(--sa-head-3)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;18&quot; y=&quot;20&quot; text-anchor=&quot;middle&quot; class=&quot;sa-cell-label&quot;&gt;q2&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;sa-query&quot; style=&quot;transform:translate(175px, 185px)&quot;&gt;&lt;rect width=&quot;36&quot; height=&quot;31&quot; rx=&quot;3&quot; fill=&quot;var(--sa-head-3)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;18&quot; y=&quot;20&quot; text-anchor=&quot;middle&quot; class=&quot;sa-cell-label&quot;&gt;q3&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;sa-query&quot; style=&quot;transform:translate(46px, 233px)&quot;&gt;&lt;rect width=&quot;36&quot; height=&quot;31&quot; rx=&quot;3&quot; fill=&quot;var(--sa-head-4)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;18&quot; y=&quot;20&quot; text-anchor=&quot;middle&quot; class=&quot;sa-cell-label&quot;&gt;q0&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;sa-query&quot; style=&quot;transform:translate(89px, 233px)&quot;&gt;&lt;rect width=&quot;36&quot; height=&quot;31&quot; rx=&quot;3&quot; fill=&quot;var(--sa-head-4)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;18&quot; y=&quot;20&quot; text-anchor=&quot;middle&quot; class=&quot;sa-cell-label&quot;&gt;q1&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;sa-query&quot; style=&quot;transform:translate(132px, 233px)&quot;&gt;&lt;rect width=&quot;36&quot; height=&quot;31&quot; rx=&quot;3&quot; fill=&quot;var(--sa-head-4)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;18&quot; y=&quot;20&quot; text-anchor=&quot;middle&quot; class=&quot;sa-cell-label&quot;&gt;q2&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;sa-query&quot; style=&quot;transform:translate(175px, 233px)&quot;&gt;&lt;rect width=&quot;36&quot; height=&quot;31&quot; rx=&quot;3&quot; fill=&quot;var(--sa-head-4)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;18&quot; y=&quot;20&quot; text-anchor=&quot;middle&quot; class=&quot;sa-cell-label&quot;&gt;q3&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;sa-query&quot; style=&quot;transform:translate(46px, 281px)&quot;&gt;&lt;rect width=&quot;36&quot; height=&quot;31&quot; rx=&quot;3&quot; fill=&quot;var(--sa-head-5)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;18&quot; y=&quot;20&quot; text-anchor=&quot;middle&quot; class=&quot;sa-cell-label&quot;&gt;q0&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;sa-query&quot; style=&quot;transform:translate(89px, 281px)&quot;&gt;&lt;rect width=&quot;36&quot; height=&quot;31&quot; rx=&quot;3&quot; fill=&quot;var(--sa-head-5)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;18&quot; y=&quot;20&quot; text-anchor=&quot;middle&quot; class=&quot;sa-cell-label&quot;&gt;q1&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;sa-query&quot; style=&quot;transform:translate(132px, 281px)&quot;&gt;&lt;rect width=&quot;36&quot; height=&quot;31&quot; rx=&quot;3&quot; fill=&quot;var(--sa-head-5)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;18&quot; y=&quot;20&quot; text-anchor=&quot;middle&quot; class=&quot;sa-cell-label&quot;&gt;q2&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;sa-query&quot; style=&quot;transform:translate(175px, 281px)&quot;&gt;&lt;rect width=&quot;36&quot; height=&quot;31&quot; rx=&quot;3&quot; fill=&quot;var(--sa-head-5)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;18&quot; y=&quot;20&quot; text-anchor=&quot;middle&quot; class=&quot;sa-cell-label&quot;&gt;q3&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;sa-query&quot; style=&quot;transform:translate(46px, 329px)&quot;&gt;&lt;rect width=&quot;36&quot; height=&quot;31&quot; rx=&quot;3&quot; fill=&quot;var(--sa-head-6)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;18&quot; y=&quot;20&quot; text-anchor=&quot;middle&quot; class=&quot;sa-cell-label&quot;&gt;q0&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;sa-query&quot; style=&quot;transform:translate(89px, 329px)&quot;&gt;&lt;rect width=&quot;36&quot; height=&quot;31&quot; rx=&quot;3&quot; fill=&quot;var(--sa-head-6)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;18&quot; y=&quot;20&quot; text-anchor=&quot;middle&quot; class=&quot;sa-cell-label&quot;&gt;q1&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;sa-query&quot; style=&quot;transform:translate(132px, 329px)&quot;&gt;&lt;rect width=&quot;36&quot; height=&quot;31&quot; rx=&quot;3&quot; fill=&quot;var(--sa-head-6)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;18&quot; y=&quot;20&quot; text-anchor=&quot;middle&quot; class=&quot;sa-cell-label&quot;&gt;q2&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;sa-query&quot; style=&quot;transform:translate(175px, 329px)&quot;&gt;&lt;rect width=&quot;36&quot; height=&quot;31&quot; rx=&quot;3&quot; fill=&quot;var(--sa-head-6)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;18&quot; y=&quot;20&quot; text-anchor=&quot;middle&quot; class=&quot;sa-cell-label&quot;&gt;q3&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;sa-query&quot; style=&quot;transform:translate(46px, 377px)&quot;&gt;&lt;rect width=&quot;36&quot; height=&quot;31&quot; rx=&quot;3&quot; fill=&quot;var(--sa-head-7)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;18&quot; y=&quot;20&quot; text-anchor=&quot;middle&quot; class=&quot;sa-cell-label&quot;&gt;q0&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;sa-query&quot; style=&quot;transform:translate(89px, 377px)&quot;&gt;&lt;rect width=&quot;36&quot; height=&quot;31&quot; rx=&quot;3&quot; fill=&quot;var(--sa-head-7)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;18&quot; y=&quot;20&quot; text-anchor=&quot;middle&quot; class=&quot;sa-cell-label&quot;&gt;q1&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;sa-query&quot; style=&quot;transform:translate(132px, 377px)&quot;&gt;&lt;rect width=&quot;36&quot; height=&quot;31&quot; rx=&quot;3&quot; fill=&quot;var(--sa-head-7)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;18&quot; y=&quot;20&quot; text-anchor=&quot;middle&quot; class=&quot;sa-cell-label&quot;&gt;q2&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;sa-query&quot; style=&quot;transform:translate(175px, 377px)&quot;&gt;&lt;rect width=&quot;36&quot; height=&quot;31&quot; rx=&quot;3&quot; fill=&quot;var(--sa-head-7)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;18&quot; y=&quot;20&quot; text-anchor=&quot;middle&quot; class=&quot;sa-cell-label&quot;&gt;q3&lt;/text&gt;&lt;/g&gt;&lt;/svg&gt;&lt;div class=&quot;sa-query-feed&quot; aria-hidden=&quot;true&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;20&quot; height=&quot;20&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-arrow-right&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M5 12h14&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m12 5 7 7-7 7&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/div&gt;&lt;/section&gt;&lt;section class=&quot;sa-execution&quot; aria-label=&quot;SGLang execution structure&quot;&gt;&lt;h4&gt;Eight heads, working in parallel&lt;/h4&gt;&lt;div class=&quot;sa-fused sa-independent&quot;&gt;&lt;div class=&quot;sa-head-flow&quot; style=&quot;background-color:color-mix(in srgb, var(--sa-head-1) 8%, var(--paper))&quot; aria-label=&quot;Head 1: independent attention calculation&quot;&gt;&lt;div class=&quot;sa-fusion-label&quot;&gt;&lt;strong style=&quot;color:var(--sa-head-1)&quot;&gt;Head &lt;!-- --&gt;1&lt;/strong&gt;&lt;strong&gt;Fused&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;sa-equation&quot;&gt;&lt;div class=&quot;sa-operand &quot;&gt;&lt;strong&gt;Q&lt;/strong&gt;&lt;div class=&quot;sa-matrix  sa-single-head&quot; aria-hidden=&quot;true&quot;&gt;&lt;div style=&quot;background-color:var(--sa-head-1)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--sa-head-1)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--sa-head-1)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--sa-head-1)&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;span&gt;4 × d&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;sa-operator&quot;&gt;×&lt;/span&gt;&lt;div class=&quot;sa-operand sa-wide&quot;&gt;&lt;strong&gt;Kᵀ chunk&lt;/strong&gt;&lt;div class=&quot;sa-matrix sa-short &quot; aria-hidden=&quot;true&quot;&gt;&lt;div style=&quot;background-color:var(--muted)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--muted)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--muted)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--muted)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--muted)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--muted)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--muted)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--muted)&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;span&gt;d × C&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;sa-operator&quot;&gt;=&lt;/span&gt;&lt;div class=&quot;sa-operand sa-wide&quot;&gt;&lt;strong&gt;Scores&lt;/strong&gt;&lt;div class=&quot;sa-matrix  sa-single-head&quot; aria-hidden=&quot;true&quot;&gt;&lt;div style=&quot;background-color:var(--sa-head-1)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--sa-head-1)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--sa-head-1)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--sa-head-1)&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;span&gt;4 × C&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;sa-head-softmax&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-arrow-down&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M12 5v14&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m19 12-7 7-7-7&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;strong&gt;Mask + softmax&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;sa-equation&quot;&gt;&lt;div class=&quot;sa-operand sa-wide&quot;&gt;&lt;strong&gt;Weights&lt;/strong&gt;&lt;div class=&quot;sa-matrix  sa-single-head&quot; aria-hidden=&quot;true&quot;&gt;&lt;div style=&quot;background-color:var(--sa-head-1)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--sa-head-1)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--sa-head-1)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--sa-head-1)&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;span&gt;4 × C&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;sa-operator&quot;&gt;×&lt;/span&gt;&lt;div class=&quot;sa-operand &quot;&gt;&lt;strong&gt;V chunk&lt;/strong&gt;&lt;div class=&quot;sa-matrix sa-short &quot; aria-hidden=&quot;true&quot;&gt;&lt;div style=&quot;background-color:var(--muted)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--muted)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--muted)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--muted)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--muted)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--muted)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--muted)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--muted)&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;span&gt;C × d&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;sa-operator&quot;&gt;=&lt;/span&gt;&lt;div class=&quot;sa-operand &quot;&gt;&lt;strong&gt;Partial output&lt;/strong&gt;&lt;div class=&quot;sa-matrix  sa-single-head&quot; aria-hidden=&quot;true&quot;&gt;&lt;div style=&quot;background-color:var(--sa-head-1)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--sa-head-1)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--sa-head-1)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--sa-head-1)&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;span&gt;4 × d&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;sa-head-flow&quot; style=&quot;background-color:color-mix(in srgb, var(--sa-head-2) 8%, var(--paper))&quot; aria-label=&quot;Head 2: independent attention calculation&quot;&gt;&lt;div class=&quot;sa-fusion-label&quot;&gt;&lt;strong style=&quot;color:var(--sa-head-2)&quot;&gt;Head &lt;!-- --&gt;2&lt;/strong&gt;&lt;strong&gt;Fused&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;sa-equation&quot;&gt;&lt;div class=&quot;sa-operand &quot;&gt;&lt;strong&gt;Q&lt;/strong&gt;&lt;div class=&quot;sa-matrix  sa-single-head&quot; aria-hidden=&quot;true&quot;&gt;&lt;div style=&quot;background-color:var(--sa-head-2)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--sa-head-2)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--sa-head-2)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--sa-head-2)&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;span&gt;4 × d&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;sa-operator&quot;&gt;×&lt;/span&gt;&lt;div class=&quot;sa-operand sa-wide&quot;&gt;&lt;strong&gt;Kᵀ chunk&lt;/strong&gt;&lt;div class=&quot;sa-matrix sa-short &quot; aria-hidden=&quot;true&quot;&gt;&lt;div style=&quot;background-color:var(--muted)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--muted)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--muted)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--muted)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--muted)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--muted)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--muted)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--muted)&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;span&gt;d × C&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;sa-operator&quot;&gt;=&lt;/span&gt;&lt;div class=&quot;sa-operand sa-wide&quot;&gt;&lt;strong&gt;Scores&lt;/strong&gt;&lt;div class=&quot;sa-matrix  sa-single-head&quot; aria-hidden=&quot;true&quot;&gt;&lt;div style=&quot;background-color:var(--sa-head-2)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--sa-head-2)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--sa-head-2)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--sa-head-2)&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;span&gt;4 × C&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;sa-head-softmax&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;16&quot; height=&quot;16&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-arrow-down&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M12 5v14&quot;&gt;&lt;/path&gt;&lt;path d=&quot;m19 12-7 7-7-7&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;strong&gt;Mask + softmax&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;sa-equation&quot;&gt;&lt;div class=&quot;sa-operand sa-wide&quot;&gt;&lt;strong&gt;Weights&lt;/strong&gt;&lt;div class=&quot;sa-matrix  sa-single-head&quot; aria-hidden=&quot;true&quot;&gt;&lt;div style=&quot;background-color:var(--sa-head-2)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--sa-head-2)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--sa-head-2)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--sa-head-2)&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;span&gt;4 × C&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;sa-operator&quot;&gt;×&lt;/span&gt;&lt;div class=&quot;sa-operand &quot;&gt;&lt;strong&gt;V chunk&lt;/strong&gt;&lt;div class=&quot;sa-matrix sa-short &quot; aria-hidden=&quot;true&quot;&gt;&lt;div style=&quot;background-color:var(--muted)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--muted)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--muted)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--muted)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--muted)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--muted)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--muted)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--muted)&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;span&gt;C × d&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;sa-operator&quot;&gt;=&lt;/span&gt;&lt;div class=&quot;sa-operand &quot;&gt;&lt;strong&gt;Partial output&lt;/strong&gt;&lt;div class=&quot;sa-matrix  sa-single-head&quot; aria-hidden=&quot;true&quot;&gt;&lt;div style=&quot;background-color:var(--sa-head-2)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--sa-head-2)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--sa-head-2)&quot;&gt;&lt;/div&gt;&lt;div style=&quot;background-color:var(--sa-head-2)&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;span&gt;4 × d&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;sa-head-omission&quot; aria-label=&quot;Other heads omitted&quot;&gt;&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; width=&quot;22&quot; height=&quot;22&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; class=&quot;lucide lucide-ellipsis&quot; aria-hidden=&quot;true&quot;&gt;&lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;1&quot;&gt;&lt;/circle&gt;&lt;circle cx=&quot;19&quot; cy=&quot;12&quot; r=&quot;1&quot;&gt;&lt;/circle&gt;&lt;circle cx=&quot;5&quot; cy=&quot;12&quot; r=&quot;1&quot;&gt;&lt;/circle&gt;&lt;/svg&gt;&lt;/div&gt;&lt;p class=&quot;sa-small sa-dimensions&quot;&gt;C = tokens in one chunk · d = head width&lt;/p&gt;&lt;/div&gt;&lt;/section&gt;&lt;/div&gt;&lt;div class=&quot;gx-bars sa-measurement&quot; aria-live=&quot;polite&quot; aria-atomic=&quot;true&quot;&gt;&lt;h4&gt;Measured global-attention core&lt;/h4&gt;&lt;div&gt;&lt;label&gt;SGLang &lt;strong&gt;1.60 ms&lt;/strong&gt;&lt;/label&gt;&lt;i style=&quot;width:100%&quot; aria-hidden=&quot;true&quot;&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;label&gt;Carat &lt;strong&gt;0.099 ms&lt;/strong&gt;&lt;/label&gt;&lt;i class=&quot;gx-fast-bar&quot; style=&quot;width:6.1875%&quot; aria-hidden=&quot;true&quot;&gt;&lt;/i&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;
&lt;p&gt;SGLang keeps the calculation fused and split by head, while Carat groups heads and positions and separates the calculation into matrix operations. At this verification shape, those matrix operations run much faster, even after accounting for the extra memory traffic from storing intermediate scores.&lt;/p&gt;
&lt;p&gt;In a controlled global-attention benchmark, SGLang’s production-style attention core took 1.60 ms, compared with 0.099 ms for Carat. Even with the padding optimization from the previous section disabled, Carat took 0.165 ms, 9.7× faster.&lt;/p&gt;
&lt;p&gt;Across the complete serving workload, Carat produced 350.8 output tokens/s versus SGLang’s 209.8, a 67.2% increase, while reducing TPOT from 15.22 ms to 7.46 ms.&lt;/p&gt;
&lt;h2&gt;Design the inference engine around the model&lt;/h2&gt;
&lt;p&gt;Carat demonstrates that the best performance means designing the engine around the model, all the way down.&lt;/p&gt;
&lt;p&gt;Abstractions exist throughout the inference stack, and they serve a purpose - allowing software to be reusable and easy to maintain.&lt;/p&gt;
&lt;p&gt;Agents allow us to build much faster than before, and using them we&amp;#x27;re able to build more from scratch on a per-model basis, reducing the wasted performance lost from unnecessary abstractions.&lt;/p&gt;
&lt;p&gt;Building Carat based on that thesis delivers 67% more output tokens per second and 51% lower TPOT than SGLang in our benchmarks.&lt;/p&gt;
&lt;section data-footnotes=&quot;true&quot; class=&quot;footnotes&quot;&gt;&lt;h2 class=&quot;sr-only&quot; id=&quot;footnote-label&quot;&gt;Footnotes&lt;/h2&gt;
&lt;ol&gt;
&lt;li id=&quot;user-content-fn-tpot-method&quot;&gt;
&lt;p&gt;Measured on an NVIDIA H200 using Gemma 4 31B, with BF16 weights and KV cache, without quantization or &lt;a href=&quot;https://arxiv.org/abs/2211.17192&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;speculative decoding&lt;/a&gt;. Each of 16 concurrent requests contained 8,192 input tokens and generated 1,024 output tokens. &lt;a href=&quot;#user-content-fnref-tpot-method&quot; data-footnote-backref=&quot;&quot; aria-label=&quot;Back to reference 1&quot; class=&quot;data-footnote-backref&quot;&gt;↩&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/section&gt;</content>
  </entry>
  <entry>
    <title>Thesis</title>
    <id>https://gradiated.com/library/our-thesis/</id>
    <link rel="alternate" type="text/html" href="https://gradiated.com/library/our-thesis/" />
    <link rel="enclosure" type="image/png" href="https://gradiated.com/assets/editorial/thesis-v2.png" />
    <media:thumbnail url="https://gradiated.com/assets/editorial/thesis-v2.png" />
    <published>2026-07-13T00:00:00Z</published>
    <updated>2026-07-13T00:00:00Z</updated>
    <author><name>James Hawkins</name></author>
    <summary>Intelligence is still extraordinarily early. Frontier labs claim AGI, yet economic growth remains ordinary. The models exist; the products and…</summary>
    <content type="html">&lt;p&gt;Intelligence is still extraordinarily early. Frontier labs claim AGI, yet economic growth remains ordinary. The models exist; the products and infrastructure that turn them into useful work mostly do not. The engine may be running, but the car is not built.&lt;/p&gt;&lt;p&gt;Most AI software still waits for a person to ask a question. That will change. Software is becoming increasingly proactive: it can research, plan, use tools, and keep working in the cloud for hours. We think this will create enormous demand for inference over time. But that does not mean there is enormous demand for another provider of open-weight models today. Having GPUs and serving a model well gives nobody a reason to choose us on its own.&lt;/p&gt;&lt;p&gt;Electricity followed a similar path. Factories first replaced steam engines with electric motors to do the same work more cheaply. Once power became cheap and widely available, it reorganized industry and made entirely new products possible. Intelligence will do the same, but only when it becomes practical to use far more of it.&lt;/p&gt;&lt;p&gt;If intelligence becomes as important as electricity, who controls it matters enormously. We don&amp;#x27;t want a world where a handful of companies get to decide what everyone else can build, on what terms, and at what price. The more work we entrust to models, the more power we hand to whoever controls them.&lt;/p&gt;&lt;p&gt;We think people should be able to run, adapt, and build businesses around models they can keep using independently of the company that created them. Intelligence should be something people can build on everywhere. That is the future we want Gradiated to help create.&lt;/p&gt;&lt;h2&gt;The Quality:Cost ratio is the bottleneck&lt;/h2&gt;&lt;p&gt;We initially expected customers to be very sensitive to inference prices. In practice, it turned out that the harder question is whether they can use an open-weight model at all. If it already costs a tenth of the frontier model they use, making it another 20% cheaper matters little if their agent stops working.&lt;/p&gt;&lt;p&gt;As models become more capable, people give them more complex jobs. The quality bar keeps moving. Growth in open-model token volume on a marketplace does not tell us whether those models can do a particular customer&amp;#x27;s work, and a good benchmark score does not settle that either. Intelligence is multidimensional. We need to measure the things that matter for the job.&lt;/p&gt;&lt;p&gt;But believing in open models doesn&amp;#x27;t make them good enough. Customers shouldn&amp;#x27;t have to accept a worse agent to support a more open future. Our job is to make open models a practical choice: get them to do useful work reliably, at a cost that makes switching worthwhile.&lt;/p&gt;&lt;h2&gt;Inference should fit the work&lt;/h2&gt;&lt;p&gt;Working with customers has shown us that many teams do not have good evals for their agents. Even sophisticated teams often ship changes because they seem better. Before we can tell whether a cheaper model is good enough, we need a useful way to tell whether we have made the agent worse.&lt;/p&gt;&lt;p&gt;Production traces and the customer&amp;#x27;s codebase are a useful starting point. They contain the inputs, situations, and failures that actually occur, which are hard to invent from scratch. With multiple customers, we have used them to build evals and reinforcement learning environments around the work their agents do.&lt;/p&gt;&lt;p&gt;Gradiated is building tools to turn that understanding into models shaped around particular workloads. We start with custom trained decision models - these can understand based on production workloads if a given prompt is simple or hard, and thus where to send it, and can route and learn dynamically.&lt;/p&gt;&lt;p&gt;The second step is developing post trained models for people cost- effectively. We do this by optimizing prompts against the environment first, then fine-tuning a model using the results. Here it&amp;#x27;s early, but the initial results are promising. Making this reliable and economical across customer workloads is the work ahead.&lt;/p&gt;&lt;h2&gt;Training has to pay for itself&lt;/h2&gt;&lt;p&gt;A technically successful experiment can still be a bad deal. If a company spends $1K a month on inference, spending $30K on training is difficult to justify even if its inference bill falls close to zero. The quality gain, training cost, serving cost, and time to benefit all matter.&lt;/p&gt;&lt;p&gt;We want the quickest economical route to a model that does the job. Sometimes prompt optimization may be enough. Sometimes fine-tuning may make sense. The customer needs a working agent on secure, reliable infrastructure, with economics that justify changing what they already use.&lt;/p&gt;&lt;p&gt;All of this we gradually want to evolve into an SDK rather than us doing this work manually.&lt;/p&gt;&lt;h2&gt;Start with a specific job&lt;/h2&gt;&lt;p&gt;Our early inference traction has come from specific use cases. We think there is a better business in getting a model to do one particular job well than in offering the same general-purpose model as a dozen other providers.&lt;/p&gt;&lt;p&gt;Nor does an open model need to replace a frontier model across an entire workload. A router trained around a customer&amp;#x27;s work could send simpler tasks to an open model and leave harder tasks with the frontier model. We are exploring whether this is a more practical starting point than trying to close the whole quality gap through training.&lt;/p&gt;&lt;p&gt;We plan to release specialized models for problems we have experienced ourselves through the software development lifecycle - for things such as merging diffs, CI, cybersecurity or routing. We think useful models can earn distribution and bring customers to our tools for training bespoke models, and we can start with the smaller, simpler models. Later, we will make money by running inference on those models.&lt;/p&gt;&lt;h2&gt;Make the economics work&lt;/h2&gt;&lt;p&gt;Optimization remains important. Better runtimes, kernels, scheduling, and infrastructure improve our margins and can improve reliability. Those improvements become much more valuable once we have customers with useful work for the models to do.&lt;/p&gt;&lt;p&gt;We will avoid large compute commitments ahead of demonstrated demand. Buying or leasing GPUs does not solve the problem of finding something valuable to do with them. Over time, sufficiently large and stable workloads may justify specialist hardware or our own silicon. That decision should follow the workload and the economics.&lt;/p&gt;&lt;p&gt;The sequence is:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Find a specific job that matters to a customer.&lt;/li&gt;&lt;li&gt;Build evals that tell us whether we are doing it well.&lt;/li&gt;&lt;li&gt;Improve prompts, models, or routing until the quality and economics make sense.&lt;/li&gt;&lt;li&gt;Serve the workload reliably and earn more demand.&lt;/li&gt;&lt;li&gt;Optimize the underlying systems as that demand grows.&lt;/li&gt;&lt;/ol&gt;&lt;h2&gt;Why now&lt;/h2&gt;&lt;p&gt;Teams are giving agents increasingly complex work, but many still lack a reliable way to evaluate them or adapt models to their own tasks. This means they spend more and more on frontier models, with large chunks of this spend being totally needless. We think helping customers cross that gap is a useful business to build now.&lt;/p&gt;&lt;p&gt;If Gradiated succeeds, every workload gets the intelligence it actually needs: accurate, fast, and cheap, in the combination that matters for that work. As we do this, we&amp;#x27;ll ship many useful open source models and make it economical for companies to develop models around their own work. More people will be able to build with intelligence they can run, change, and control.&lt;/p&gt;&lt;p&gt;We believe in an open source, distributed model future, with millions of companies making intelligence useful in different ways. Getting more useful work from each unit of compute, and giving much freer access to as many models as possible will let more people and systems research, build, understand, and do more. We don&amp;#x27;t want the world&amp;#x27;s capacity to do those things to depend on the permission of a few frontier labs.&lt;/p&gt;</content>
  </entry>
</feed>
