Is Your LLM API Quantized? A Practical Guide to Verification

    This article explains how to determine whether a model served through an API has been swapped or quantized. It separates the question into two independent claims—model identity and numerical precision—and shows how to use a structured call ledger to rule out identity substitution. It then explains why re-quantizing an already low-bit baseline is not practical, lists four real sources of perceived quality differences, and outlines a reproducible control-variable verification plan. The takeaway is to build model call observability first, then optimize.

    1. Split the Question into Two Independent Claims

    The question “is the model behind this coding tool’s API a quantized version?” is hard to answer because it mixes two completely different things:

    1. Identity: Does the model name returned by the upstream match the requested model name, or was it replaced, downgraded, or routed to a different spec in between?
    2. Precision: Have the returned weights undergone additional low-bit quantization?

    Identity is a factual question that logs can settle. Precision is an engineering question that depends on the weight source and the inference stack. Mixing the two leads to leaps in logic, such as “it feels slow, so it must be quantized.” The rigorous approach is to first rule out identity substitution with a ledger, then discuss whether there is any room to push precision lower, and only then look at where the perceived difference actually comes from.

    2. Replace Subjective Impressions with a Call Ledger

    Subjective impressions are nearly useless when many people, time slots, and tasks are mixed together. The reliable evidence is structured records kept on your own gateway side, one line per call, with at least four fields:

    1. ts | requested_model | upstream_model | protocol_path | ttft_ms
    2. 2026-11-12T10:03:11Z | deepseek-v4.1-flash | deepseek-v4.1-flash | openai-compatible | 412

    Once grouped by channel, the interpretation rules are clear:

    • Returned name exactly matches the requested name, with a large enough sample: there is no sign of renaming, so model substitution is very unlikely. If the middle layer had swapped in a different spec, this column could not stay consistent over time.
    • A fixed suffix appears: suspect an upstream versioned release first, not platform-side processing. A common industry practice is to publish a mirrored version with a date or number suffix when releasing an update, while keeping the main name as a stable entry point so the calling method does not change.
    • A clearly different dedicated suffix appears: this usually corresponds to a scheduling identifier for a subscription channel or a dedicated resource pool. It has nothing to do with quantization and reflects resource isolation and billing differences.

    Note that a ledger can only prove “the name did not change”; it cannot prove on its own that “the precision did not change.” Its value is pulling the question back from guesswork onto a verifiable evidence chain.

    3. Why “Quantizing Once More” Does Not Hold Up

    To judge whether precision can be pushed lower, you need to know where the baseline starts. The release form of current mainstream flagship models is already low-bit weights: routed experts generally use 4-bit-level mixed-precision checkpoints, while attention, shared experts, multimodal, and multi-token prediction modules retain higher precision. Optimizations from hardware vendors on top of this are typically finer-grained group scaling layouts and support for wider numerical formats, not further compressing expert weights to 3-bit or 2-bit.

    Pushing lower has structural costs:

    • Below 4-bit, you usually end up with generic formats that do not rely on native hardware low-bit acceleration, so values must be dequantized back to higher precision before computation.
    • The result is unfavorable on both compute and memory: little memory is saved, and latency actually rises.
    • Precision loss is amplified on long-context, multi-step reasoning, and code tasks, making format errors and instruction drift more likely.

    For these reasons, commercial inference services have no incentive to apply another lossy compression pass on top of an already 4-bit baseline. “Not quantized” is only one step in a process of elimination, not an explanation for perceived differences.

    4. Four Real Sources of Perceived Differences

    4.1 Time to First Token and Scheduling Queues

    Shared resource pools queue up during peak hours, and time-to-first-token fluctuation is far larger than steady-state throughput differences. The way to check is to fix the prompt and the time slot, take multiple samples, and compare time-to-first-token percentiles rather than total elapsed time.

    4.2 Context Length and Cache Hits

    Different entry points handle context windows, caching strategies, and system prompt injection differently. On a cache miss, a long prefix significantly raises time to first token; a truncated context shows up directly as “worse answers.”

    4.3 Sampling Parameters and Post-Processing

    Temperature, top_p, max output length, stop sequences, and tool call parsing—any difference in these changes output style and success rate. Many cases of “the model got dumber” are really just different parameter templates.

    4.4 Routing and Fallback Policies

    Some entry points switch to a backup spec or shorten the context under heavy load. Such policies usually do not show up in the model name and can only be found through controlled experiments.

    5. A Reproducible Verification Plan

    The recommended approach is “control variables plus blind evaluation”:

    1. Fixed set: 50 real tasks (code completion / refactoring / long-document summarization / structured output)
    2. Controls: temperature=0, fixed max_tokens, same system prompt, same time slot
    3. Recorded: upstream_model, ttft, total elapsed time, cache hit, pass rate
    4. Decision: first check whether the identity column matches, then compare pass rate and latency percentiles

    If the identity column matches exactly and the parameters are identical, but the pass rate still shows a stable gap, the focus should shift to context injection and the tool call chain rather than continued suspicion of quantization. The direction more worth investing in engineering-wise is building model call observability: a unified gateway, unified log fields, and a unified evaluation set, so every model change is traceable and comparable. This is also the practice Baidu AI Cloud has consistently emphasized in general capabilities such as model serving, monitoring and alerting, and logging—build the evidence chain first, then talk about optimization.