STACKMODERNE
Efficiency and substrate affinity / GUIDE

Reduce LLM inference costs at system level

Reduce LLM cost through routing, context control, quantization, caching, specialization and deterministic rematerialization.

ENGINEERING THESIS

The largest saving does not always come from a faster model; it can come from avoiding a call or moving a responsibility.

COMMON FAILURE

Optimizing token price without measuring quality, retries and failures merely moves the cost elsewhere.

DECISION

The relevant cost is the cost of a correct and admissible decision from the complete realization.

01 / REALIZATION

What the architecture must make explicit

Cost is reduced at realization level: avoiding calls, shortening context, quantizing, routing or rematerializing a responsibility can matter more than isolated model optimization.

01
Model and quantization
02
Context, cache and retrieval
03
Routing and activation
04
Rematerialized deterministic functions
02 / METHOD

Move from a keyword to an inspectable engineering decision

01

Profile

Measure actual system costs, including retries, transfers, memory and verification.

02

Attribute

Determine which responsibilities still require a powerful model.

03

Transform

Test reduction, quantization, specialization, caching, routing or substitution.

04

Compare

Keep the same capability contract and publish exact hardware conditions.

03 / EVIDENCE GATES

A claim is only as strong as its binding

The gate must evaluate the exact output produced by the exact realization. Integrity, scientific validity and authority are related, but never interchangeable.

G1
Capability preserved
G2
p50/p95/p99 latency
G3
Memory and concurrency
G4
Cost per admissible result
FAQ

Questions that change the design

What does reduce llm inference costs at system level require?

The largest saving does not always come from a faster model; it can come from avoiding a call or moving a responsibility. Cost is reduced at realization level: avoiding calls, shortening context, quantizing, routing or rematerializing a responsibility can matter more than isolated model optimization.

Which evidence should be retained?

At minimum: exact realization identity, inputs and outputs, protocol version, measurements, failure cases and the decision rule. The relevant cost is the cost of a correct and admissible decision from the complete realization.

Does AMF prescribe a particular model?

No. AMF treats the model, runtime, data, tools and deterministic components as candidate materials. Their retention depends on measured contribution and declared constraints.