Zero Labs
Industry News / Technology

Treating ML Inference as a System, Not a Function Call

Source · Towards AI By Aditya Pratap Singh

From the publisher’s feed, collected in the ZeroLabs newsroom.

Designing and benchmarking a production-grade Shape-E — based text-to-3D pipelineIf you’ve ever listened to a car engine with the hood closed, you know the sound tells you almost nothing. It runs, it moves, and usually that’s enough. But the moment something feels off, you open the hood — not to admire the engine, but to understand what’s actually happening underneath.Most ML inference systems run with the hood closed. Tesseract’s v1 was no exception at first, but the v1.2 started when I decided to open it.Over the last year, the pace of applied AI has accelerated to the point where it’s easy to confuse movement with progress.New models, new abstractions, new tools — each promising to simplify what came before.I was trying to move fast too. Trying to build, wire and run to grab more knowledge that felt endless. But at some point, I realized I understood what the system did, but not how it behaved once it was running.That pause, the decision to stop adding surface area and start understanding the system underneath — is where this project’s v1.2 really began.In practice, inference pipelines are often treated as a black box: run a few uncontrolled benchmarks, report a number, move on. Warm-up effects are ignored, configurations are hand-waved, and results are compared as if they exist independently of context.This post documents what it took to design, build, freeze, and benchmark Tesseract — a text-to-3D inference system‘s v1.2— by treating inference as an engineering and research problem rather than a demo.This is not a launch post. It’s a systems write-up. Well because,Most machine learning systems work.Far fewer are actually understood.What Tesseract Is (and What It Is Not)Before going further, it’s worth being explicit about what Tesseract is, and more importantly what it is not.Tesseract is a production-grade ML inference system for text-to-3D mesh generation.(“Production-grade” here refers to system design and execution discipline, not deployment scale or organizational maturity.)Concretely, Tesseract is:A diffusion-based 3D generation pipeline built on the Shape-E family of modelsExposed through an asynchronous FastAPI service and a CLI, sharing the same execution path used for benchmarkingStateless by design, with each request fully determined by its inputs and configurationEntirely config-driven, making inference behavior reproducible and comparable across runsInstrumented to make latency, memory usage, and configuration effects observable rather than implicitJust as importantly, Tesseract is not:A research paper or a model contributionA real-time or low-latency inference systemA system designed for immediate, on-the-go, or always-on deployment scenariosAn enterprise serving platform with SLAs, autoscaling, or throughput guaranteesA claim of optimal performance or state-of-the-art efficiencyIts scope is narrower and more deliberate.Tesseract exists to make inference behavior legible — to expose how latency, memory, configuration, and hardware interact once a diffusion model leaves the notebook and becomes a system. In practice, this makes Tesseract less useful as an asset generator and more useful as a tool for understanding inference behavior inside a real execution pipeline.If it does anything well, it is this:It turns inference from a black box into something that can be reasoned about, measured, and explained.Why I Built ThisWell, Tesseract originally started as an internship assignment. What changed early on, though, was the question I was optimizing for. Instead of asking “what would satisfy the requirement?” I started asking “how would a senior engineer I respect approach this?” — and then tried to build it as close as I could to that.That shift pushed me toward things I hadn’t been forced to think about before: modularity, separation of concerns, dependency boundaries, clear execution paths, explicit configuration, stateless behavior, structured logging, predictable outputs and more.It was the first time I treated the system as something with edges, not just something that ran.Not because the assignment demanded it, but because that’s what serious systems tended to have.Tesseract v1 emerged from that phase as my first attempt at building an ML pipeline the way I imagined more experienced engineers would.One early constraint came from the model itself. Tesseract is built on OpenAI’s Shape-E, which is unapologetically research-first code. I initially tried to extract only the pieces I needed, but the deeper I dug, the more tightly coupled things became.Past a point, “minimal integration” just meant re-implementing half the project poorly. I eventually treated Shape-E as a black-box dependency: pulled in intact, bounded clearly, and left alone. That decision wasn’t about convenience — it was about drawing a clean system boundary and taking responsibility only for the behavior on my side of it.For a while, that felt sufficient.Then it stopped.Once the system stabilized, I realized I was missing something — that I needed to go a step further. But exactly what?It took a while to see it. I couldn’t clearly explain the system end-to-end, not just how it ran, but why it behaved the way it did. The request lifecycle lived partly in my head. Design decisions were implicit rather than articulated. Trade-offs existed, but they weren’t written down anywhere.And that lack of clarity showed up immediately once I tried to reason about behavior. The system was relying on intuition for things that deserved evidence. Latency felt assumed. Warm-up behavior was implicit. Configuration choices were justified more by habit than measurement.And now v1.2 exists because of that discomfort.Not to make Tesseract faster — but to understand it.System Architecture (High-Level)At a high level, Tesseract consists of:Async serving layer to prevent API-level blockingStateless request handling for reproducibilityConfig-driven execution with no implicit defaultsDevice-aware runtime with explicit GPU/CPU selectionStructured logging and deterministic artifact isolationHigh-level system architecture of TesseractThe architecture is intentionally boring. What matters is how these pieces actually behave together.Tesseract is structured as a thin serving layer wrapped around a single, explicit inference pipeline built on OpenAI’s Shape-E models. There are two entry points — an asynchronous API and a custom CLI — but they are deliberately not two systems. Both converge into the same execution path, share the same configuration resolution, and invoke the same inference logic. Multiple interfaces are easy to add. Multiple behaviors are not.Once a request enters the system, it becomes self-contained. The prompt(s), configuration, and execution context fully determine what happens next. There is no hidden global state, no cross-request coupling, and no implicit defaults carried over from previous runs.At a high level, a request moves through validation, configuration resolution, device selection, model execution, optional latent reuse, decoding, and deterministic artifact emission.The pipeline itself is linear and explicit: input validation, configuration resolution, device selection, model loading or reuse, diffusion-based latent generation, optional latent reuse, mesh decoding, and deterministic output serialization. Each stage has a clear boundary, both in code and in logs. So if something fails, it fails locally and visibly.Latent generation and mesh decoding are treated as distinct phases. Generated latents can optionally be persisted and resumed later, allowing decoding to be rerun without repeating the diffusion process. This separation emerged from a practical constraint I experienced during multiple test runs of the pipeline: decoding failures should not invalidate minutes of upstream computation.Making intermediate state explicit turned a fragile pipeline into a debuggable one. Whether latents are generated fresh or resumed is part of the execution context and is logged accordingly.The system also supports batched prompts, but batching is treated as a configuration choice rather than a throughput abstraction. A batch is not a shortcut — it is a deliberate way to surface how memory pressure, latency, and output handling change when multiple prompts are resolved together. In practice, batching forces the pipeline to either behave coherently or fail loudly, which made it a useful diagnostic tool.Asynchronous execution exists only at the serving layer. Inference itself remains synchronous and blocking by design. This separation prevents request-level concurrency from interfering with inference behavior and keeps performance characteristics attributable to the model and configuration, not the serving mechanism.Configuration is first-class throughout the system. Batch size, sampling steps, precision, device selection, output formats, and resume behavior are resolved once, logged, and passed through unchanged.GPU execution is preferred, but not assumed. The runtime explicitly selects the execution device and surfaces that decision in logs and artifacts. CPU fallback exists for correctness and portability, not performance. That distinction is architectural, not incidental.Finally, the pipeline supports a dry-run mode. In this mode, configuration resolution, validation, device selection, and execution planning all occur without running the model itself. This made it possible to verify that the system would behave correctly before committing to expensive inference, and ensured that configuration errors failed early rather than minutes into execution.There are no hidden caches, no implicit optimizations, and no clever shortcuts. At the time, this was about clarity, not benchmarking. In retrospect, it’s exactly what made the system measurable later. Once the system stopped hiding its own state, it became something that could actually be reasoned about end-to-end.Design Decisions and Trade-offsThis section isn’t a list of best practices.It’s a record of decisions that emerged while trying to keep the system functionable while still being understandable long before it ever becomes fast.Statelessness over ConvenienceDecision:Tesseract is stateless across inference runs.Why:Hidden global state makes systems feel faster right up until they become impossible to reason about. Statelessness forced every run to be fully determined by its inputs and configuration. That meant no silent coupling between experiments, no state leaking across requests, and no ambiguity about why two runs behaved differently.Reproducibility stopped being aspirational and became mechanical.Cost:Repeated work. Slight per-request overhead. No cross-request caching.What This Decision Taught Me (and Where It Broke Down):What became clear over time was that statelessness is most valuable when you’re still trying to understand a system. It’s less attractive once you’re confident about behavior and optimizing for throughput. In early stages, clarity compounds faster than performance ever will. Later, you can choose where state is worth reintroducing — deliberately.Asynchronous Serving, Synchronous InferenceDecision:The serving layer is asynchronous. The inference pipeline is not.Why:Inference is heavy, blocking, and GPU-bound. Treating it as async doesn’t make it faster — it just makes attribution harder. Keeping inference synchronous ensured that latency characteristics came from the model and configuration, not scheduling artifacts.Async exists only at the boundary. It prevents request starvation and allows concurrency without contaminating inference behavior.Cost:More control flow complexity in the serving layer.What This Decision Taught Me (and Where It Broke Down):This reinforced something I hadn’t fully appreciated before: async is most valuable at system edges, not in the core. When everything is async, nothing is explainable. When async is constrained, concurrency becomes explicit instead of accidental.Config-Driven EverythingDecision:All essential runtime behavior is driven by explicit configuration. No magic defaults buried in code.Why:Defaults encode assumptions, and assumptions quietly shape benchmarks. If performance depends on configuration — and it does — then configuration needs to be visible, versioned, and logged.This shifted how I thought about experiments. The code stopped “deciding” performance. The configuration did.Cost:More surface area. More parameters to think about.What This Decision Taught Me (and Where It Broke Down):Config-driven systems feel verbose early and indispensable later. They slow you down at first, then quietly prevent entire classes of confusion. Once you can no longer attribute behavior to a specific configuration, the results stop being trustworthy.Explicit GPU / CPU FallbackDecision:GPU execution is preferred, but never assumed. CPU fallback exists explicitly.Why:Correctness and portability mattered more than performance guarantees. The runtime surfaces its device choice clearly and behaves the same way regardless — just much slower on CPU.This wasn’t about pretending CPU inference was viable. It was about making degradation honest instead of implicit.Cost:CPU inference is impractical for real workloads.What This Decision Taught Me (and Where It Broke Down):Fallback paths are often treated as afterthoughts. Making them explicit forces you to confront what “correct but slow” actually means — and whether that trade-off is acceptable for your use case.What became clear only in hindsight was how misleading early confidence can be. Shortcuts tend to create a feeling of progress long before a system deserves it. Removing them felt like slowing down, but it was the moment the system became stable enough to interrogate. Until that point, nothing I observed could be trusted as evidence — only as behavior that hadn’t yet been tested.From Stability to QuestionsI didn’t start this project thinking about benchmarks.For a long time, I thought I was done. The system ran. Requests flowed end to end. Failures were visible. Configurations were explicit. I could point to every stage in the pipeline and explain what it did.That’s usually where projects stop.What changed was that once the system stopped moving, it stopped being forgiving. The instant question became: What am I still missing? Small things that used to ‘feel fine’ started standing out. Latency wasn’t wrong, but it was unexplained. Warm-up behavior existed, but only implicitly. Configuration choices worked, but mostly because I was used to them.I realized I could run the system reliably — but I couldn’t explain its behavior with the confidence I wanted.That gap showed up the moment I tried to ask a simple question and couldn’t answer it without guessing:“Well if this feels slow or expensive, where exactly is that coming from?”That question kept repeating itself, and intuition stopped being enough.This was the point where benchmarking stopped feeling like a feature and started feeling like a forcing function. The attempt to measure the system immediately exposed what hadn’t been made explicit yet. Architecture had to be frozen. Execution paths had to be unambiguous. Design decisions had to move out of my head and onto the page.Only then did the questions begin to sharpen.Before measuring anything, I learnt that I had to list all of what could possibly be responsible and had to admit I didn’t yet know what I was trying to explain. Time spent. Resources stressed. How behavior changed as inputs grew. Everything else was downstream of that. Performance work, I learned, doesn’t start with numbers — it starts with constrained imagination.From there, few of the questions became concrete:Where does wall-clock time actually go once the pipeline starts running?How much performance difference a GPU accelerated versus CPU run would have?Which configuration parameters materially affect behavior and performance, and which ones just feel important?When does GPU memory stabilize, and why does it sometimes surprise you?What does “slow” even mean in this system — latency, warm-up, or scaling?Once those questions were clear, the shape of the benchmarks followed almost automatically.This is also where a subtle distinction clicked for me. Depending on where you are when you’re reading this, it might feel obvious — or not at all. Benchmarking is not system development. Benchmark code doesn’t need to be elegant or endlessly modular. It needs to be precise.You don’t optimize for flexibility or edge cases; you optimize for isolation.The goal isn’t to build a beautiful benchmark suite.It’s to build one you can trust when it tells you something uncomfortable.The benchmarks in v1.2 weren’t added to decorate the project. They emerged because, once the system became legible, not measuring it felt irresponsible.The next sections focus on what I measured, how I chose to measure it, and what changed once the answers stopped being hypothetical.Benchmarking Approach (Deliberately Scoped)Once the questions were clear, the benchmarking approach almost chose itself.I didn’t try to measure everything. And I didn’t try to compare Tesseract against other systems. All of those would have added surface area without improving understanding.Instead, I treated benchmarking as a diagnostic tool, not a scoreboard.More than anything, it made the scope of optimization explicit — what was being improved, what was intentionally left alone, and why.The goal was simple:If the system misbehaved, would these measurements let me explain why?This was not load testing.Not stress testing.Not a claim about real-world throughput.It was controlled, diagnostic/ablation-style benchmarking — designed to isolate causes, not produce impressive numbers.A few principles guided every benchmark run:Only one variable changed at a time. If two things moved together — the result was noise.Warm-up runs were excluded from measurement, Early numbers are optimistic in the same way first impressions are.CPU and GPU runs shared identical configurations, If behavior changed, it had to be attributable to the device — not to a different code path.Raw per-run outputs were preserved alongside aggregates, If a number looked suspicious, I wanted to be able to trace it back to a concrete run.Results were reported as mean ± sample standard deviation, Best-case runs are motivational. Variance is informative.This is where another lesson landed — one I wish I’d internalized earlier.Benchmarking code is not system code.It doesn’t need deep abstractions, layered modules, or exhaustive edge handling. In fact, those things actively get in the way. Benchmark scripts should be boring, direct, and slightly uncomfortable to read from a production POV, Contrary to what Tesseract had been selling up until now. Fewer functions. Fewer conditionals. Less cleverness.The job is to reduce ambiguity for future you.Configurations did most of the work. Instead of hardcoding scenarios, I defined baselines and variations explicitly — what stays fixed, what is allowed to change, and why. Not every combination was tested. Only the ones that answered a question. Anything else would have generated noise dressed up as thoroughness.An intuition I developed was:Benchmarking without causal isolation is just storytelling.Engineering begins when the story survives repetition.And to make the process inspectable, I added walkthrough notebooks — not to explore results interactively, but to show the path from configuration to execution to numbers. If someone wanted to reproduce or challenge a result, they wouldn’t need to reverse-engineer intent.This section isn’t about claiming that this is “the right way” to benchmark.It’s about being explicit about what this benchmarking is — and what it intentionally is not.Once that boundary was drawn, the measurements themselves became easier to reason about.If you’re new to benchmarking, this is the framing that helped me most:don’t start by asking “what should I measure?”start by asking “if this system misbehaves, what would I need to know to explain it?”The metrics, test matrix, and environment details follow from that question almost mechanically. When they don’t, it’s usually a sign the question wasn’t clear yet.The next section moves from method to substance: what I measured, why those metrics mattered, and what the system revealed once the numbers stopped being hypothetical.What Was Measured (and Why)Once the questions were clear, the measurements stopped being arbitrary. I wasn’t trying to characterize everything the system could do. I was trying to measure just enough to explain its behavior when something felt slow, expensive, or surprising.That constraint shaped what I chose to measure.End-to-End Latency (and Where It Comes From)The first metric was obvious, but still easy to misuse: end-to-end latency.Not because the number itself was interesting, but because it framed the question every user eventually asks — “why did this take so long?”Rather than treating latency as a single opaque value, I measured it in a way that made attribution possible. The goal wasn’t to minimize it. It was to understand which parts of the pipeline dominated wall-clock time once inference actually started.If latency moved, I wanted to know where it moved — not just that it did.Inference-Only Latency vs System OverheadRelated to that was a second, more surgical split: inference-only latency versus everything else.This distinction mattered more than I expected. It separated time spent inside the model from time spent around it — configuration resolution, I/O, serialization, and orchestration.That separation made one thing very clear early on: most perceived slowness had nothing to do with FastAPI, async handling, or “framework overhead.” Once inference began, the model dominated the timeline. Everything else was rounding error.GPU vs CPU ExecutionCPU execution was never meant to be fast, but it was important to measure anyway.The point wasn’t to prove GPUs are faster — we already know that. It was to make the performance gap explicit under identical configurations and execution paths. Same code. Same parameters. Different device.That comparison anchored expectations. CPU fallback remained correct and portable, but no longer ambiguous. “Correct but impractical” stopped being a vague idea and became a quantified reality.Batch Size ScalingBatch size was measured not as a throughput optimization, but as a stressor.Increasing batch size changes memory pressure, latency shape, and failure modes all at once. Measuring how latency and memory scaled with batch size helped surface whether the pipeline behaved predictably under load — or whether it fell apart quietly.It also reinforced a lesson I didn’t fully appreciate before: batching is not a free win. It’s a trade-off that needs to be visible, not assumed.Sampling Steps and Configuration SensitivitySampling steps were measured because they are one of the few configuration knobs that reliably move both quality and cost.Here the goal was simple: understand how sensitive inference time was to configuration changes that users are likely to touch. If a parameter materially affects performance, it deserves to be surfaced, logged, and explained.If it doesn’t, it probably shouldn’t be emphasized.Prompt ComplexityPrompt complexity was measured to test an assumption I hadn’t questioned enough: that longer or more complex prompts may necessarily dominate runtime.In practice, the effect existed — but not always where intuition suggested. Measuring it clarified when prompt complexity mattered, when it didn’t, and why it was rarely the first place to look when performance felt off.GPU Memory Usage Over TimeFinally, GPU memory.Not just peak usage — but when memory stabilized.This turned out to be more informative than a single max value. Watching memory behavior across warm-up and steady-state runs exposed patterns that would have been invisible otherwise. It also made it easier to reason about batch limits, failure modes, and why some runs failed only after “working fine” once.What I Didn’t Measure (On Purpose)Equally important: I didn’t measure output quality, throughput under concurrent users, distributed scaling, or cost optimization.Not because those things don’t matter — but because they wouldn’t have answered the questions this version of the system was asking.Measuring something that doesn’t inform a decision isn’t thoroughness. It’s noise. If there’s a single takeaway here — especially if you’re newer to this kind of work, it’s this:You don’t measure to be comprehensive.You measure to be explainable.The next section looks at what these measurements actually revealed — and which assumptions didn’t survive contact with the numbers.Results & InterpretationThis section isn’t about listing numbers.The tables already do that.What mattered more to me was answering three questions for every result:What did I expect to see?What actually happened?What did that change in how I understand the system?Any number that didn’t change my understanding didn’t earn a place here.Inference Dominates End-to-End LatencyWhat I expected:Inference would be the slow part, but I assumed system overhead would still be visible.What I saw:Under the baseline configuration, inference accounted for the large majority of total end-to-end latency. On GPU, inference averaged ~4.94 s, while total request time averaged ~6.07 s.What changed:This clarified where optimization effort actually belongs. If the system feels slow, the answer is almost never in request handling, configuration resolution, or serialization. The bottleneck lives squarely inside the model execution path.The serving layer mattered for correctness and concurrency — not speed. That distinction stopped being theoretical once the numbers made it obvious.GPU vs CPU: Not Subtle, and That’s the PointWhat I expected:A large gap. Everyone expects GPUs to win here.What I saw:The gap wasn’t just large — it was categorical. GPU inference completed in ~4.9 s, while CPU inference required ~1,635 s (about 27 minutes), a literal ~330x slowdown under the same configuration. End-to-end latency followed the same pattern.What changed:CPU fallback stopped being something I mentally treated as “usable in a pinch.” It became what it actually is: a correctness path, not a performance path.Making that explicit mattered. It prevented unspoken assumptions about where the system could reasonably be used — and where it very clearly could not.Batch Size Scaling Was PredictableWhat I expected:Higher batch sizes would increase latency and memory usage, but I wasn’t sure how cleanly.What I saw: Inference latency scaled roughly linearly:Batch size 1 → ~4.94 sBatch size 2 → ~10.13 sBatch size 4 → ~20.63 sMemory usage increased monotonically but predictably.What changed:Predictable scaling is a quiet success. When scaling behavior is boring, it usually means the system is doing exactly what you think it’s doing.It also reinforced that batching isn’t a free optimization. It’s a deliberate trade-off between throughput, latency, and memory pressure — not a magic lever.Sampling Steps Actually Mattered (No Surprise — Still Important)What I expected:Sampling steps would be a primary driver of inference time.What I saw:Increasing sampling steps from 15 → 64 increased inference latency from ~4.94 s to ~23.63 s, again — almost linear, with end-to-end latency rising accordingly.Peak GPU memory usage, however, remained effectively unchanged at ~5.05 GiB.What changed:This separated compute cost from memory cost cleanly. Sampling depth is a latency–quality trade-off, not a memory one. That distinction matters when reasoning about constraints.It also confirmed that this parameter deserves to be surfaced clearly — not buried behind defaults.Prompt Complexity Mattered Less Than I ExpectedWhat I expected:More complex prompts would noticeably affect runtime.What I saw:Inference latency remained nearly invariant:Simple → ~4.94 sMedium → ~4.92 sComplex → ~4.96 sVariations stayed within run-to-run variance.What changed:This recalibrated where I’d look first when performance felt off. Prompt complexity wasn’t irrelevant — it just wasn’t the lever my intuition kept reaching for.That intuition turned out to be wrong more often than I was comfortable admitting.GPU Memory Stabilized Earlier — and More Cleanly — Than ExpectedWhat I expected:Peak GPU memory would be noisy and hard to reason about.What I saw:After warm-up, memory usage stabilized with extremely low variance. Under baseline conditions, steady-state usage settled around ~5.1 GiB, increasing to ~6.36 GiB at batch size 4.What changed:Memory behavior became predictable — and therefore explainable. Single-run measurements stopped being tempting, because warm-up effects clearly distorted early readings.A Pattern EmergedAcross all of these results, one pattern kept repeating:When the system behaved predictably, it was usually because a design decision had already constrained it.When it surprised me, it was almost always where assumptions had gone unexamined.That’s not a benchmarking insight.That’s a systems insight.The next section focuses on the moments where those surprises were sharp enough to stick — the things that didn’t behave the way my intuition said they would.What Surprised MeA few things stood out once the numbers stopped being hypothetical.None of them were dramatic. That’s kind of the point.Warm-up mattered more than I expected.The first run was consistently slower — not by a little, but enough to distort any naïve average. Ignoring it didn’t make the system faster; it just made the story nicer.Prompt complexity barely touched inference.I expected longer or “more complex” prompts to show up somewhere in the runtime. They didn’t.That was a useful reminder that intuition formed at the model level doesn’t always survive at the system level.GPU memory stabilized later than I thought.Peak memory usage often appeared after the system had already “settled.” Once it stabilized, though, variance was almost nonexistent. That combination — late stabilization, then extreme consistency — was not what I expected going in.Some “obvious” knobs barely moved the needle.A few configuration changes that felt important turned out to be mostly cosmetic from a performance perspective. Others mattered a lot more than I was comfortable admitting. The uncomfortable part wasn’t the result — it was realizing how easily confidence forms before evidence does.If there’s a pattern here, it’s this:The system wasn’t surprising once it was visible.My assumptions were.Failure Modes and LimitationsThis section exists for one reason: to make it clear what conclusions should not be drawn from the results above.Not because the system is incomplete — but because boundaries are part of honest engineering.Tesseract is single-node by design.There is no distributed execution, no sharding, and no multi-GPU orchestration. Measuring multi-node scaling here would be meaningless, because the system does not implement the primitives required to make such measurements interpretable. This wasn’t postponed — it was intentionally excluded.This is not a real-time or interactive system.Diffusion-based 3D generation is slow in ways that architecture alone can’t fix. Cold starts are expensive. Inference dominates end-to-end latency. Nothing in v1.2 is optimized for responsiveness or user-facing interactivity, and claiming otherwise would blur the line between systems engineering and wishful thinking.CPU execution is correct, not practical.CPU fallback exists to preserve correctness and portability, not usability. The benchmarks make that trade-off explicit: execution works, but takes tens of minutes. That’s not a failure of optimization — it’s a consequence of the workload. If CPU performance mattered here, the system itself would need to be fundamentally different.Throughput and high-concurrency behavior are out of scope.The benchmarks deliberately avoid high-QPS load testing. The goal was to understand where time and memory go inside a single execution, not how the system behaves under traffic pressure. Those are different questions, and answering one does not give you the other for free.Output quality is not evaluated.Mesh fidelity, visual quality, and model comparison are intentionally excluded. These are properties of the underlying Shape-E models, not of the inference system around them. Including quality metrics here would conflate model behavior with system behavior — and make both harder to reason about.Senior engineers maybe don’t earn trust by claiming completeness — they earn it by drawing boundaries deliberately.Every non-goal here exists because measuring it would either misrepresent the system, fail to inform a design decision, or create expectations the system was never meant to meet. If Tesseract feels slow, expensive, or limited — the benchmarks above are meant to help explain why.If your goal is large-scale serving, real-time generation, or production SLAs — this is the wrong system, and that’s an honest outcome, not a shortcoming.One thing this section taught me — and something I wish I had internalized earlier — is that writing down what a system does not do is just as important as listing what it does.If you’re new to building or benchmarking systems, this is a useful mental shift I gave myself: you’re not limiting your work by drawing boundaries — you’re making it legible. And legibility is what lets other people reason about your results without guessing what you meant.The next section zooms back out again — away from Tesseract itself — to why this kind of boundary-aware benchmarking matters beyond this project.Why This Matters Beyond TesseractWhat this project kept circling back to — often uncomfortably — is that most failures in applied ML don’t come from weak models. They come from weak understanding.Evaluation is sloppy. Assumptions live in people’s heads. Benchmarks get read as conclusions instead of clues. Numbers move, confidence rises, and very little actually gets explained.Treating inference as a system, not a function call, changes that posture. You stop asking “is it fast?” and start asking “why does it behave this way?” Latency becomes traceable instead of mystical. Resource usage becomes something you can point at. Trade-offs stop being vibes and start being written down.That shift matters whether you’re doing research or engineering. For research, it makes conclusions harder to overstate and easier to reproduce. For engineering, it reduces the number of surprises that only show up after deployment. In both cases, it replaces storytelling with attribution.One small but important consequence of this mindset is knowing when to stop. Tesseract v1.2 is frozen not because it’s complete, or optimal, or ready for the world — but because it’s finally honest enough to evaluate. The questions it can answer are clear. The ones it can’t are written down. Anything added after this point would change the object being measured.If there’s a broader takeaway here, it’s this: Progress in ML systems often comes less from adding capability and more from removing ambiguity. Once a system can explain itself, improving it becomes a choice — not a guess.Closing ThoughtIf there’s one thing this project left me with, it’s this:Inference systems rarely fail because the models are slow.They fail because, once the code runs, we stop asking careful questions.Tesseract didn’t start as an attempt to be impressive. It started as an attempt to be understandable. Everything that followed — architecture choices, trade-offs, benchmarks — came from trying to reduce the gap between what the system does and why it behaves the way it does. Once that gap closes, progress stops feeling like guesswork.This write-up isn’t meant as a prescription, or a claim about how systems should be built. It’s simply a record of what changed in my own thinking when I treated inference as something to reason about, not just invoke. If that framing helps you pause, even briefly, before accepting a number or a graph at face value, then it’s done its job.The full repository, benchmarking scripts, raw results, and walkthrough notebooks live here: GitHub: https://github.com/AdityaSinghDevs/tesseractThat’s the artifact. The rest is just questions — kept alive a little longer than usual.And as Peter Drucker said:You can’t improve what you don’t measure.Treating ML Inference as a System, Not a Function Call was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.