
Auditing GigaChat 4 and Ling-3.2-air for VRAM, Serving-Stack Fit, and License Coverage
On this page
Permissive licensing does not establish deployment readiness
A permissive license answers one question: what you're allowed to do with the artifact once you have it. It says nothing about whether the artifact loads, whether it fits your VRAM budget, whether the serving stack recognizes its architecture, or whether the whole thing costs less than the API it replaces. What follows is an audit of the reported MIT releases of GigaChat 4 and Ling-3.2-air — license coverage, serving-stack fit, a weight-memory floor, and a measured utility gate — ordered so the cheapest checks run first and every stage has an explicit stop condition.
The supplied reporting says two large models landed under MIT on the same day. TechGig and Pasquale Pillitteri both describe Sber releasing GigaChat 4, a 708B-parameter model under the MIT license. Pillitteri also describes Ant Group releasing Ling-3.2-air, a 124B open-weight model, also MIT. Those are the claims I'm working from — as reported claims, not verified ones.
My position: at this size, license permissiveness is the cheapest thing to verify and the least informative. The expensive questions are memory floor, serving-stack fit, and measured utility. Audit them in the wrong order and you'll burn days of GPU time before hitting a blocker that was visible in a config.json.
Lead with the adoption decision, not the license
GigaChat 4 and Ling-3.2-air each need four independent pieces of evidence before either becomes a deployment candidate:
| Evidence class | Question it answers | Fails how |
|---|---|---|
| License coverage | May we use, modify, and redistribute this specific artifact set? | Repo-level LICENSE doesn't reach a custom modeling file or a redistributed quant |
| Runtime support | Does a pinned serving stack implement this exact architecture? | Server starts, then dies parsing an unknown model_type |
| Memory fit | Does weights + KV cache + workspace fit in the hardware you have? | Fits one request, OOMs at concurrency 8 |
| Operating cost | Is cost per successful request below the alternative? | Cheaper per token, more expensive per answered question |
Each can pass or fail on its own. A model can be MIT, supported by vLLM, and still be economically absurd to self-host. That's not a contradiction; it's the normal case at 700B parameters.
Establish the reported timeline
The discovery trail, plainly: on 29 November 2026, TechGig published "Sber releases GigaChat 4, a 708B-parameter AI model under MIT licence" (timestamped 23:48 UTC), and Pasquale Pillitteri published "Sber releases GigaChat 4, a 708B-parameter model under the MIT license" (11:05 UTC) plus "Ant Group releases Ling-3.2-air, a 124B open-weight model under the MIT license" (11:04 UTC). Timestamps are as the aggregator supplied them.
What that establishes: a claim was published. What it doesn't establish: repository URLs, model card contents, license file text, architecture, tokenizer, published quantization formats, or hardware requirements. I haven't found publisher-controlled artifacts for either release, and I'm not going to invent Hugging Face coordinates for them.
A press report describing a license is not the license. The binding artifact is the LICENSE / LICENSE.md file inside the exact revision you download, plus any NOTICE, third-party notices, or per-file headers. Verify that file, at that commit hash, before planning hardware.
Define the walkthrough scope
This is a reproducible adoption audit with explicit stop conditions. At each stage, the audit either produces evidence or halts:
- Ledger — record reported facts, mark everything else unknown. Stop if no publisher-controlled repository is found.
- License — read the actual license file at a pinned revision. Stop if the license file is missing, or if weights, tokenizer, and custom code carry different terms.
- Artifacts — inspect a downloaded snapshot read-only. Stop if you cannot resolve architecture from
config.json. - Memory floor — compute the weight-only lower bound. Stop if the floor exceeds available VRAM by more than your offload tolerance.
- Stack fit — confirm the pinned server version documents the architecture. Stop if it does not.
- Measurement — staged acceptance tests. Everything before it is arithmetic and reading.
Any number in stages 4 and 6 built from 708B or 124B is calculated from the reported parameter counts, not measured. I mark those as I go. Example command output is labeled as an example.
Build an evidence ledger before choosing hardware
The ledger is a plain table with one rule: a cell is filled only when a primary artifact was opened. Anything else stays unknown.
Compare both reported releases
| Field | GigaChat 4 | Ling-3.2-air |
|---|---|---|
| Publisher (reported) | Sber | Ant Group |
| Reported parameter count | 708B | 124B |
| Reported license | MIT | MIT |
| Release date (reported) | 2026-11-29 | 2026-11-29 |
| Official repository | Unknown — not in supplied material | Unknown — not in supplied material |
| Immutable revision (commit SHA) | Unknown | Unknown |
Architecture / model_type | Unknown — MoE unconfirmed | Unknown — MoE unconfirmed |
| Active vs total parameters | Unknown | Unknown |
| Tokenizer / chat template | Unknown | Unknown |
| Published quantization formats | Unknown | Unknown |
| Weight floor @16-bit (calculated) | 1,416 GB / 1,318.6 GiB | 248 GB / 231.0 GiB |
| Weight floor @4-bit (calculated) | 354 GB / 329.7 GiB | 62 GB / 57.7 GiB |
| Minimum 80 GB devices for weights at 4-bit (calculated) | 5 | 1 |
Two cells in that table are the whole post: "Official repository: unknown" and "Architecture: unknown". Until they're filled, every hardware statement is arithmetic on a number from a news article.
Distinguish reported facts from everything else
Keep four buckets strictly separate, in writing, in the ledger itself:
- Reported — "708B parameters", "MIT", "Sber", "Ant Group". Source: the two 29 November 2026 articles.
- Primary-source verified — the license text at a commit hash; the
architecturesarray inconfig.json; the safetensors index. Nothing in this bucket yet. - Calculated — weight floors, KV-cache estimates, device counts. Derived from reported numbers plus an explicit formula.
- Measured — tokens/second, TTFT, peak VRAM, task accuracy. Requires a working deployment.
The failure mode is silent promotion: quoting "354 GB" in a capacity plan without the word calculated, then having someone buy four GPUs for a model that needs more.
Locate publisher-controlled artifacts
For each model, the evidence you need to open, in order:
- Model card — check that it names the exact variant you intend to serve (base vs instruct vs quantized). A card for
-instructdoes not describe-base. - Repository tree — look for
LICENSE,NOTICE,README.md,config.json,generation_config.json,tokenizer_config.json,special_tokens_map.json,*.safetensors.index.json. - Release notes / changelog — confirms whether the MIT claim applies to the initial release or a later one.
- Commit SHA — record the exact revision.
mainis not evidence.
If the repository doesn't exist, or exists but has no license file, the audit stops at stage 2. Write that down as a blocker with the date and the search path you used. "Evaluation pending" is a legitimate, publishable result.
Audit the license across the complete artifact set
MIT is short and permissive: it grants permission to use, copy, modify, merge, publish, distribute, sublicense, and sell, conditioned on including the copyright notice and permission notice in all copies or substantial portions of the software. It also disclaims warranty. It says nothing about patents or trademarks, and nothing about training data.
MIT is silent on patent grants. That is a difference from Apache-2.0, and it matters if your legal review assumes "permissive = patent peace". A separate patent question may exist and MIT does not answer it.
Map coverage artifact by artifact
A repository-level LICENSE is a claim about the repository. Models are not single artifacts. Audit each piece:
| Artifact | Expected path | Covered by repo LICENSE? | Blocker if unresolved |
|---|---|---|---|
| Weight shards | *.safetensors | Unverified | Provenance of weights vs. any upstream model |
| Model config | config.json | Unverified | Trivial, but must be redistributable |
| Tokenizer assets | tokenizer.json, tokenizer.model, vocab.* | Unverified | Tokenizers are sometimes copied from another project with different terms |
| Chat template | chat_template.jinja or embedded in tokenizer_config.json | Unverified | Templates occasionally carry their own header notice |
| Custom modeling code | modeling_*.py, configuration_*.py | Unverified | Frequently derived from an upstream repo with its own header |
| Inference/serving glue | *.py helpers, requirements.txt | Unverified | May pull copyleft dependencies |
| Quantized redistributions | *-GPTQ, *-AWQ, *-FP8 repos | Unverified | Third-party quantizers add their own terms on top |
| Training data / pipeline | often absent | Not granted | "Open weights" ≠ reproducible training |
The listed paths are generic conventions, not files I've confirmed exist in either release. The point is the method: enumerate candidate artifacts from the snapshot, then check each against the license text and any per-file headers.
## Read-only enumeration of license-relevant files in a pinned local snapshot.
SNAP="$HOME/models/audit/ling-3.2-air" # placeholder path — replace with your verified path
find "$SNAP" -maxdepth 2 -type f \
\( -name 'LICENSE*' -o -name 'NOTICE*' -o -name '*.json' \
-o -name '*.jinja' -o -name '*.py' -o -name '*.md' \) \
-printf '%s\t%p\n' | sort -k2
Any file that appears in that listing and isn't addressed by the license needs its own answer.
Check upstream dependencies and additional terms
Two questions a top-level license file doesn't settle:
- Is the weight tensor set derived from a differently licensed model? A conversion, merge, or distillation can carry upstream obligations. Look for a "built on", "based on", or "derived from" statement in the model card, and follow it.
- Does the serving path pull copyleft code? Your deployment is a distribution question only if you ship it, but a redistributed container image bundling the model distributes everything inside it.
Also separate access to weights from access to a training pipeline. MIT on a weight file grants you rights in that file. It doesn't hand you the data, the data-processing code, or the compute recipe. For most audit purposes that's fine — you want to serve, not reproduce — but say so explicitly instead of letting "MIT" imply reproducibility.
Produce the license-coverage matrix
The deliverable for this stage is one table with an evidence path and an approval blocker per row, signed and dated. A row is approved only when the evidence path is a concrete path inside a commit-pinned snapshot:
ALLOW weights docs/audit/ling/LICENSE@<sha> (opened, MIT text, copyright line present)
ALLOW config docs/audit/ling/config.json@<sha> (no per-file header; covered by repo LICENSE)
BLOCK tokenizer tokenizer.json@<sha> (header references upstream project — legal review)
BLOCK custom code modeling_ling.py@<sha> (no header; provenance unknown)
Approval blockers are the useful output. A matrix with no blockers usually means nobody opened the files.
Inspect model artifacts without executing repository code
Do not run AutoModel.from_pretrained(..., trust_remote_code=True) on an unvetted repository to "see if it works". Custom modeling code executes arbitrary Python at import time, in your process, with your credentials and network access. Inspect first.
Inventory the snapshot with scoped shell and JavaScript
Start with file sizes, because they immediately falsify or support the reported parameter count.
SNAP="$HOME/models/audit/target" # placeholder
find "$SNAP" -type f -name '*.safetensors' -printf '%s\t%f\n' | sort -k2
du -sh --apparent-size "$SNAP"
Checksums next — on a 1.4 TB snapshot, shell sha256sum beats anything you write in Node:
find "$SNAP" -type f -name '*.safetensors' -exec sha256sum {} + | tee "$SNAP/../shard-sha256.txt"
A small JS pass to total the shards and compare against the calculated floor:
import { readdir, stat } from "node:fs/promises";
const dir = process.argv[2];
if (!dir) throw new Error("usage: node audit-shards.mjs <snapshot-dir>");
const names = (await readdir(dir)).filter((n) => n.endsWith(".safetensors")).sort();
let total = 0;
for (const name of names) {
const { size } = await stat(join(dir, name));
total += size;
console.log(name.padEnd(44), (size / 1e9).toFixed(2).padStart(9), "GB");
}
const gib = total / 1024 ** 3;
console.log("-".repeat(60));
console.log(`shards=${names.length} total=${(total / 1e9).toFixed(2)} GB (${gib.toFixed(2)} GiB)`);
console.log(`implied fp16 params ${(total / 2 / 1e9).toFixed(1)}B | implied 4-bit params ${(total / 0.5 / 1e9).toFixed(1)}B`);Read configuration and index metadata
jq '{
architectures,
model_type,
torch_dtype,
num_hidden_layers,
hidden_size,
num_attention_heads,
num_key_value_heads,
head_dim,
max_position_embeddings,
rope_scaling,
quantization_config
}' "$SNAP/config.json"
jq '.metadata, (.weight_map | to_entries | length)' "$SNAP/model.safetensors.index.json"
Fields that change the memory math: num_hidden_layers, num_key_value_heads (multi-query / grouped-query attention changes the KV cache by a large factor), head_dim, max_position_embeddings, torch_dtype, and any quantization_config block. If num_key_value_heads is absent, KV heads typically default to attention heads — but confirm it, don't guess. If quantization_config exists, the file sizes already reflect it, and the 16-bit column of the floor table no longer describes what you downloaded.
Separate total from active parameters
A 708B parameter count does not imply a dense 708B forward pass. If the architecture turns out to be mixture-of-experts:
- Total parameters drive the weight-memory floor. Every expert must be resident (or paged) even if most are idle.
- Active parameters per token drive compute, throughput, and — via routing — some activation workspace.
- Expert parallelism introduces communication volume that doesn't appear in the parameter count at all.
I can't assert that GigaChat 4 at 708B is MoE. The reported number is a parameter count, and the architecture is unconfirmed. The rule stands regardless: resolve architectures and the expert configuration from config.json before you assume either shape.
Show illustrative inventory output
Everything below is EXAMPLE output from a hypothetical snapshot, deliberately labeled. It is not a report from either release.
config.json 1,842 B
model-00001-of-00018.safetensors 78,643,200,000 B ...
model-00018-of-00018.safetensors 41,120,400,000 B ...
tokenizer.json 9,412,338 B
tokenizer_config.json 4,110 B
model.safetensors.index.json 1,204,996 B
------------------------------------------------------------
shards=18 total=1415.94 GB (1318.70 GiB)
implied fp16 params 708.0B | implied 4-bit params 1415.9B
Two sanity checks a real run must pass:
- The implied fp16 parameter count from total bytes should land near the reported parameter count. A large mismatch means the snapshot is quantized, sharded with padding, or not the model the card describes.
- The shard count should divide evenly enough that no single shard is an outlier — an odd-sized shard can indicate a partial download.
Require the real artifact output, with checksums, before any release-specific compatibility claim.
Calculate the weight-memory floor before estimating VRAM
The floor is simple arithmetic, and it's the single most useful number in the audit, because it's a hard lower bound that no serving optimization beats.
weight_bytes ≈ params × (bits_per_param / 8)
Watch the units. Vendor spec sheets and cloud billing quote decimal GB (10⁹ bytes); nvidia-smi and most allocators report binary GiB (2³⁰ bytes). A 354 GB floor is 329.7 GiB — a 7% difference that decides whether you fit on the last card or don't.
Build the weight-floor calculator
const GB = 1e9;
const GiB = 1024 ** 3;
const floor = (params, bits) => (params * (bits / 8)) / GB;
const floorGiB = (params, bits) => (params * (bits / 8)) / GiB;
const cases = [
["GigaChat 4 (reported 708B)", 708e9],
["Ling-3.2-air (reported 124B)", 124e9],
];
for (const [label, params] of cases) {
for (const bits of [16, 8, 4]) {
console.log(
`${label} @ ${bits}-bit: `.padEnd(44),
`${floor(params, bits).toFixed(1)} GB`.padStart(12),
`${floorGiB(params, bits).toFixed(1)} GiB`.padStart(12)
);
}
}
Expected output:
GigaChat 4 (reported 708B) @ 16-bit: 1416.0 GB 1318.6 GiB
GigaChat 4 (reported 708B) @ 8-bit: 708.0 GB 659.3 GiB
GigaChat 4 (reported 708B) @ 4-bit: 354.0 GB 329.7 GiB
Ling-3.2-air (reported 124B) @ 16-bit: 248.0 GB 231.0 GiB
Ling-3.2-air (reported 124B) @ 8-bit: 124.0 GB 115.5 GiB
Ling-3.2-air (reported 124B) @ 4-bit: 62.0 GB 57.7 GiB
Read those as capacity requirements, not recommendations. At 4-bit, GigaChat 4's weights alone need five 80 GB devices (354 ÷ 80 = 4.4, round up). Spread across TP=5, that leaves roughly 9 GB per card for KV cache, activations, CUDA context, and communication buffers — nowhere near enough for a 700B model at any real concurrency. At 16-bit it's 18 devices of 80 GB before overheads. Ling-3.2-air at 4-bit nominally fits one 80 GB card at 62 GB, which is exactly the kind of near-miss that turns into an OOM at concurrency 4.
Why ideal 4-bit arithmetic is optimistic
4.0 bits per parameter is a lower bound, not what a real quantized checkpoint costs:
- Scales and zero points — group-wise quantization stores at least one fp16 scale per group; a 128-element group adds roughly 0.125 bits/param per tensor before any zero-point metadata.
- Unquantized tensors — embeddings,
lm_head, layer norms, and router weights are commonly kept at 16-bit. On a model with a very large vocabulary embedding, this isn't a rounding error. - Padding and alignment — tensor shapes get padded for kernel alignment and shard boundaries.
- Duplicated tensors — pipeline-parallel stages may replicate embeddings or head weights.
So treat params × 4 bits as a floor with a real-world multiplier of roughly 1.05–1.25, depending on the quantization scheme and which tensors were left alone. That multiplier is untested for these specific releases — I have no checkpoint to measure.
Cross-check against actual shard sizes
The measured total from audit-shards.mjs should be within a few percent of params × bits / 8. If measured bytes are dramatically lower than the 16-bit calculation, the release ships quantized weights. If they're higher, suspect fp32 tensors or extra optimizer state shipped by mistake. Either result changes which column of the floor table applies — and neither substitutes for measuring VRAM at runtime.
Never present a weight-only figure as "VRAM needed". The floor tells you whether the project is conceivable on your hardware. The next section tells you whether it is possible.
Add KV cache, concurrency, and runtime memory to the VRAM estimate
KV cache is usually the difference between "fits" and "fits at concurrency 1". The conventional formula for standard multi-head or grouped-query attention:
kv_bytes = 2 × layers × kv_heads × head_dim × tokens × bytes_per_element
The 2 is for the separate K and V tensors. kv_heads is num_key_value_heads, not num_attention_heads, when GQA is in use. tokens is the aggregate live token count across all in-flight requests, not your context window.
Work a hypothetical KV-cache scenario
Because neither config.json is available, the following assumes an architecture — 96 layers, 8 KV heads, head_dim 128, fp16 cache — purely to show the arithmetic shape. It's illustrative, not a claim about either model.
const kvBytes = ({ layers, kvHeads, headDim, tokens, bytesPerElement = 2 }) =>
2 * layers * kvHeads * headDim * tokens * bytesPerElement;
const shape = { layers: 96, kvHeads: 8, headDim: 128 };
const toGiB = (b) => (b / 1024 ** 3).toFixed(1);
console.log("1 req @ 8k tokens:", toGiB(kvBytes({ ...shape, tokens: 8192 })), "GiB");
console.log("32 req @ 8k tokens:", toGiB(kvBytes({ ...shape, tokens: 8192 * 32 })), "GiB");
console.log("1 req @ 128k tokens:", toGiB(kvBytes({ ...shape, tokens: 131072 })), "GiB");
Expected output:
1 req @ 8k tokens: 3.0 GiB
32 req @ 8k tokens: 96.0 GiB
1 req @ 128k tokens: 48.0 GiB
| Scenario | Aggregate tokens | KV cache (fp16) | Note |
|---|---|---|---|
| One request, 8k context | 8,192 | 3.0 GiB | Looks harmless |
| 32 concurrent requests, 8k each | 262,144 | 96 GiB | 32× the tokens, 32× the cache |
| One request, 128k context | 131,072 | 48 GiB | Single request, still large |
The 96 GiB row is the one that kills deployments. Teams size for the single-request number, ship, and then discover that --max-num-seqs 32 needs more memory than the weights.
Two invalidation conditions to state up front: if the model uses an alternative attention layout (sliding-window, cross-layer KV sharing, MLA-style compressed caches, or a paged cache with different element sizes), the conventional formula overstates or understates by a wide margin. Don't reuse the 96-layer example for a confirmed config.json — recompute with the real fields.
Budget the non-weight, non-cache allocations
Beyond weights and KV cache, plan for:
- Activations — grow with batch × sequence length in prefill; the dominant prefill cost.
- Prefill workspace — FlashAttention / chunked-prefill scratch buffers.
- CUDA graphs — captured graphs consume device memory per captured batch size; disabling them frees memory and costs throughput.
- Communication buffers — NCCL buffers for tensor/pipeline/expert parallelism scale with interconnect configuration.
- Allocator fragmentation — PyTorch's caching allocator holds freed blocks; fragmentation under mixed sequence lengths is real.
- Operational headroom — 10–15% is a common default; below that you have no room for a longer-than-expected prompt.
A practical envelope for a tensor-parallel deployment: weights + KV(max_seqs × max_len) + workspace + headroom ≤ usable VRAM per rank. If that inequality needs contortion to hold, the deployment is at its limit on day one.
Summed VRAM is not usable capacity
Eight cards of 80 GB is 640 GB of arithmetic and considerably less than 640 GB of usable model capacity:
- Replicated tensors — embeddings and
lm_headmay be replicated across pipeline stages. - Per-device placement constraints — a layer must fit on one device; you can't split a single tensor across two cards without parallelism support.
- Interconnect — tensor parallelism over PCIe is not the same proposition as NVLink; the parallelism degree you can use may be lower than the degree you need.
- Host offload —
--cpu-offload-gbstyle options move weights to host memory. That's a way to make a model load, not a way to make it fast. Treat any offload number as a throughput cliff, and measure it.
Verify serving-stack fit against exact versions
Architecture support is a documentation claim about a version. "vLLM supports it" is not a deployment fact until you pin the version, the container digest, the driver, and the CUDA runtime.
Build a compatibility matrix
| Stack | Version pin (yours) | Arch documented? | Tokenizer | Quant format | Attention kernels | Parallelism | Status |
|---|---|---|---|---|---|---|---|
| vLLM | unknown | unverified | unverified | unverified | unverified | TP/PP/EP — unverified | Blocked |
| SGLang | unknown | unverified | unverified | unverified | unverified | TP/PP/EP — unverified | Blocked |
| Transformers | unknown | unverified | unverified | unverified | n/a | device_map — unverified | Blocked |
Every cell reads "unverified" because I have no confirmed config.json to check against and no pinned server version to cite. That's the honest state of this audit, and it's the correct starting condition for yours. Fill the Version pin column first — an unpinned row cannot be evaluated, and "latest" is not a version.
Record alongside the matrix, in the same document:
nvidia-smi --query-gpu=name,memory.total,driver_version --format=csv
nvcc --version 2>/dev/null || echo "no local CUDA toolkit"
docker image inspect <image> --format '{{index .RepoDigests 0}}'
python -c "import vllm, torch; print(vllm.__version__, torch.__version__, torch.version.cuda)"
Those four lines are the difference between a compatibility claim and a reproducibility claim.
Treat documented support as a prerequisite, not proof
Documented architecture support means the loader knows the model_type. It doesn't mean the tokenizer round-trips correctly, the quantization kernel exists for your GPU generation, or the attention backend handles your head dimension. Four separate failure modes, and they surface at four different points: load, first token, first long prompt, first concurrent request.
Audit custom-code requirements before enabling remote code
If the model requires trust_remote_code=True, you are executing Python from the repository. Before that happens:
- Read
modeling_*.pyandconfiguration_*.pyin full. Look for network calls,subprocess,eval/exec, filesystem writes outside a cache dir, and environment-variable reads. - Diff the files against their stated upstream. If there's no stated upstream, that's itself a finding.
- Pin the exact commit SHA and record it.
- Run inside a container with no production credentials, no cloud instance role, and egress restricted to what the model load actually requires.
- Prefer a stack version that implements the architecture natively over one that requires the repository's own code.
That's a supply-chain review, not a formality. The threat model is "arbitrary code execution with your IAM role".
Validate templates, tokens, and stop behavior
An OpenAI-compatible /v1/chat/completions endpoint returns OpenAI-shaped JSON. It doesn't guarantee OpenAI-compatible semantics. Verify:
- Chat template — render a multi-turn conversation locally and inspect the exact string. A template that forgets a separator produces plausible-but-wrong output, not an error.
- Special tokens — confirm BOS/EOS ids match the tokenizer files, and that the server isn't adding a BOS the template already added.
- Stop conditions — check that the model's EOS token is in the stop set; otherwise generations run to
max_tokensand you pay for it. - Structured output — if you rely on JSON mode or a grammar-constrained decoder, test it explicitly. Grammar backends differ per stack and per version.
Run a staged acceptance test on a pinned deployment
Use a conditional launch template
The template below is deliberately incomplete. Every value is a placeholder that must be set from verified artifacts, and ${VAR:?} makes the shell fail loudly rather than silently defaulting. Do not copy this into production — check every flag against vllm serve --help for your pinned version, because flag names move between releases.
#!/usr/bin/env bash
set -euo pipefail
: "${MODEL_DIR:?path to a checksum-verified snapshot}"
: "${DTYPE:?set from config.json torch_dtype, e.g. bfloat16}"
: "${TP_SIZE:?set from measured per-device fit, not from hope}"
: "${MAX_LEN:?set from config.json max_position_embeddings or lower}"
: "${MAX_SEQS:?set from the KV-cache budget}"
exec vllm serve "$MODEL_DIR" \
--served-model-name audit-target \
--dtype "$DTYPE" \
--tensor-parallel-size "$TP_SIZE" \
--max-model-len "$MAX_LEN" \
--max-num-seqs "$MAX_SEQS" \
--gpu-memory-utilization 0.90 \
--trust-remote-code=false
If --trust-remote-code=false makes the load fail, that's a finding, not an inconvenience. Go back to the custom-code review.
Increase concurrency in stages and record peak VRAM
- Load only.
--max-model-len 2048 --max-num-seqs 1. Confirm the process stays up and record startup peak VRAM. - One request, tiny budget.
max_tokens: 32. Confirm it returns and thatusagelooks sane. - One request, realistic prompt. Increase to your p95 prompt length. Watch for a step change in VRAM.
- Concurrency sweep. 2 → 4 → 8 → 16, at fixed prompt and output length. Record peak VRAM and whether any request is rejected for cache limits.
- Boundary probe. One request at
max_model_len. This is where prefill workspaces bite.
Record failures with the same care as successes: the exact request, the server log line, and the VRAM at failure.
Capture request telemetry from a small client
const endpoint = process.env.ENDPOINT ?? "http://127.0.0.1:8000/v1/chat/completions";
export async function probe({ promptChars, maxTokens, label }) {
const body = {
model: "audit-target",
messages: [{ role: "user", content: "x".repeat(promptChars) }],
max_tokens: maxTokens,
temperature: 0,
stream: true,
stream_options: { include_usage: true },
};
const t0 = performance.now();
let ttft = null;
let usage = null;
const res = await fetch(endpoint, {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify(body),
});
if (!res.ok || !res.body) {
return { label, status: res.status, error: await res.text(), ttft: null };
}
const reader = res.body.getReader();
const decoder = new TextDecoder();
let buf = "";
while (true) {
const { value, done } = await reader.read();
if (done) break;
buf += decoder.decode(value, { stream: true });
for (const line of buf.split("\n")) {
if (!line.startsWith("data: ")) continue;
const payload = line.slice(6).trim();
if (payload === "[DONE]") continue;
let evt;
try { evt = JSON.parse(payload); } catch { continue; }
if (ttft === null && evt.choices?.[0]?.delta?.content) ttft = performance.now() - t0;
if (evt.usage) usage = evt.usage;
}
buf = buf.slice(buf.lastIndexOf("\n") + 1);
}
return {
label,
status: res.status,
ttftMs: ttft === null ? null : Math.round(ttft),
totalMs: Math.round(performance.now() - t0),
promptTokens: usage?.prompt_tokens ?? null,
completionTokens: usage?.completion_tokens ?? null,
};
}The client logs lengths, timings, and token counts — never prompt text. Keep it that way; prompt bodies are the easiest way to leak customer data into a benchmark log.
Separate the schema from the observations
The results schema, which you fill with real numbers:
| Field | Type | Example |
|---|---|---|
run_id | string | ling-audit-2026-12-02-01 |
model_revision | sha | <commit sha> |
stack_version | string | <pinned> |
prompt_tokens / completion_tokens | int | from usage |
ttft_ms | int | measured |
total_ms | int | measured |
peak_gpu_mem_mib | int | from nvidia-smi sampler |
status | enum | ok / oom / rejected_cache / error |
<pinned> and <commit sha> stay as placeholders in this post because I haven't measured either release. Reporting "unsupported feature X" and "run failed at concurrency 8" alongside the successes is what makes the eventual go/no-go defensible.
Test whether the deployment is useful, not merely loadable
A model that returns tokens is not a model that does your task. This stage is where most self-hosting plans die quietly.
Measure prefill and decode separately
They have different cost drivers and different optimization levers:
- Prefill scales with prompt tokens; it's compute-bound and shows up as TTFT. Long-context RAG hammers prefill.
- Decode scales with output tokens × concurrency; it's memory-bandwidth-bound and shows up as inter-token latency. Chat hammers decode.
Report a distribution, not a mean: p50, p95, p99 TTFT and inter-token latency, at fixed prompt length, fixed output length, fixed concurrency, on named hardware. Run cold (first request after load) and warm (steady state) separately — the first request includes lazy kernel compilation and allocator growth, and averaging it away hides your real cold-start penalty.
Evaluate task quality with a versioned test set
Build 50–200 examples of the actual application task, with expected outputs or a rubric, committed to a repo with a version tag. Then:
- Run the full set against unquantized weights as the baseline.
- Run it against the quantized variant you intend to ship.
- Diff the results.
That diff is your quantization regression report. If fp8 or 4-bit costs 6% on your task, you now know. If it costs 30%, you also know — before the rollout. Never infer quantization quality from a public leaderboard; the degradation is task-specific.
Define acceptance gates
| Gate | Threshold (yours) | Evidence |
|---|---|---|
| Output correctness | ≥ baseline − N% on the versioned set | Diff report |
| TTFT p95 | ≤ budget at target prompt length | Latency distribution |
| Decode p95 | ≥ tokens/s floor | Latency distribution |
| Concurrency | Sustains target RPS without rejected_cache | Sweep log |
| Memory headroom | ≥ 10% free at p99 workload | VRAM sampler |
| Recovery | Survives a worker kill and resumes serving | Failure injection |
| License | Zero open blockers | Coverage matrix |
One good prompt proves nothing. A prompt that works 40 times in a row proves the deployment is loadable and roughly sane.
Compare self-hosting with a verified managed alternative
Confirm the managed endpoint serves the same model
Before comparing, check the provider's model list today and confirm the relevant model is offered, with a version identifier. If the provider serves a different model — a smaller sibling, a fine-tune, a quantized variant — the comparison is still valid for "what should we build on", but it's not a cost comparison of the same system. Document which it is.
Build a workload-based cost worksheet
| Line item | Unit | Quantity | Notes |
|---|---|---|---|
| GPU-hours | $/GPU-hr | GPUs × 730 × (1 / utilization) | Utilization, not capacity, is the divisor |
| Idle capacity | $/month | GPUs held for peak − GPUs used at median | Usually the largest hidden line |
| Storage | $/GB-month | Snapshot size × replicas | 354 GB per copy at 4-bit, per region |
| Networking | $/GB | Egress + interconnect | Cross-AZ traffic on multi-node |
| Redundancy | multiplier | 1.5–2× | A single replica is not a service |
| Engineering | $/month | FTE fraction | Upgrades, incidents, driver pinning |
| Managed input tokens | $/1M | measured volume | From your own usage data |
| Managed output tokens | $/1M | measured volume | Output is usually 3–4× input pricing |
The self-hosting side is dominated by utilization, not by the hourly rate. Serving at 20% utilization means you're paying five times the sticker for every useful second.
Calculate cost per successful request
cost_per_successful_request =
(fleet_hourly_cost × hours)
/ (successful_requests_at_target_latency × hours)
The denominator is the part people get wrong. It excludes requests that timed out, requests that hit rejected_cache under load, and requests whose output failed your quality gate. A fleet doing 5,000 requests/hour with a 12% failure rate and an 8% retry rate has a much worse denominator than the peak-throughput number suggests — which is exactly why comparing theoretical peak tok/s to an API list price produces a confidently wrong answer.
Compare operational properties, not just price
| Dimension | Self-hosted | Managed | Where to verify |
|---|---|---|---|
| Data retention | Your policy, your logs | Provider DPA and retention docs | Provider documentation |
| Region availability | Where you can get GPUs | Provider region list | Provider docs |
| Rate limits | Yours to design | Provider quotas | Account console |
| Version pinning | Commit SHA — fully yours | Provider deprecation policy | Provider changelog |
| Failure blast radius | Yours | Provider's, with their SLA | Contract |
| Model provenance | You verify the files | Provider-asserted | Provider model card |
Version pinning is the quiet advantage of self-hosting: nobody deprecates your weights on a Tuesday. Data retention is the quiet advantage of managed: nobody audits your log pipeline. Use provider documentation for both columns; don't reason from reputation.
Turn the audit into an operational go or no-go decision
Require five pieces of evidence
Ship only when all five exist and are written down:
- Artifact-level license evidence — MIT text opened at a pinned commit, all artifact classes mapped, zero open blockers.
- A pinned compatible runtime — exact server version, container digest, driver, CUDA, with documented architecture support.
- Measured memory headroom — peak VRAM at p99 workload with ≥10% free.
- Acceptable task quality — quantization regression within your threshold on a versioned set.
- A sustainable cost envelope — cost per successful request below the alternative at required latency.
Miss any one and the answer is "not yet", with the specific blocker named.
Add production defenses to the inference endpoint
An inference endpoint is an unauthenticated compute sink by default. Minimum set:
- Authenticated ingress — API keys or mTLS in front of the server; never expose the port directly.
- Request and token limits — cap
max_tokensper request, cap prompt tokens, reject oversized inputs at the edge rather than letting prefill allocate. - Bounded queues — a fixed admission queue with a fast 429 is better than unbounded latency and an OOM cascade.
- Monitoring — VRAM per rank, TTFT/ITL percentiles,
rejected_cachecounts, error rates. Alert on headroom, not just availability. - Dependency patching — pinned doesn't mean frozen forever; a scheduled upgrade path with a rollback-tested image.
- Tested rollback — you've actually gone back to the previous model revision under load, not just written the runbook.
Provisional verdicts
GigaChat 4 (reported 708B, MIT): evaluation pending, with a structural caution. Even at an ideal 4-bit floor of 354 GB / 329.7 GiB — and the real number will be higher — this needs a multi-node or many-GPU deployment with interconnect most teams don't have. The blockers are unresolved artifact provenance, unknown architecture (dense vs MoE changes compute but not the memory floor), and no measured throughput. Don't procure hardware on the strength of a parameter count.
Ling-3.2-air (reported 124B, MIT): evaluation pending, and the more plausible candidate for a single-node deployment. At 4-bit its weights are 62 GB / 57.7 GiB, which nominally fits one 80 GB device — but the KV cache, activations, and headroom from the section above have to fit in the remaining ~18 GB, and that's the number to check before anything else. Unknowns are identical: no confirmed repository, license file, architecture, or measurements.
Neither verdict is "no". Both are "not yet, and here's the list of things that would change it". The single highest-value next step for either model is the same: find the publisher-controlled repository, open LICENSE and config.json at a pinned commit, and fill in the ledger. That costs minutes. Renting eight GPUs to find out does not.
Further Reading and verification sources
The discovery trail, preserved as supplied:
- TechGig, "Sber releases GigaChat 4, a 708B-parameter AI model under MIT licence", 29 November 2026 — report
- Pasquale Pillitteri, "Sber releases GigaChat 4, a 708B-parameter model under the MIT license", 29 November 2026 — report
- Pasquale Pillitteri, "Ant Group releases Ling-3.2-air, a 124B open-weight model under the MIT license", 29 November 2026 — report
Reference material for the audit itself:
- MIT License text (SPDX) — the exact permission and notice-preservation language to check against the repository's
LICENSEfile. - OSI Open Source AI Definition — the distinction between open weights and a reproducible training pipeline, useful when a model card claims "open".
- vLLM documentation — supported architectures, quantization backends, and engine arguments for the version you pin. Check the version selector, not
latest. - SGLang documentation — the equivalent for the SGLang runtime.
- Hugging Face Transformers documentation — model loading,
trust_remote_codesemantics, and tokenizer/chat-template behavior. - safetensors format specification — header layout and dtype metadata, for the artifact inspection step.
No publisher-controlled model card, repository, or license file is linked here, because none was present in the supplied material and I haven't verified one. Add those links only after you've opened them at a specific commit.
More posts

Reflection Beam Throughput and VRAM: What 501B MoE Inference Costs Per Token
A practical look at what Reflection AI's 501B-parameter Beam MoE, with only 23B active parameters per token, actually costs in VRAM, throughput, and dollars per token when self-hosted for agentic coding workloads.

Gating a NixOS 26.11 Upgrade for Node.js Services in CI
A step-by-step CI gating strategy for adopting NixOS 26.11 (Linux 7.3) across Node.js services, covering flake pinning, native addon and ABI regression checks, service compatibility smoke tests, and rollback validation before rollout.

Fitting 120B Parameters on One B200 Is Not the Same as Serving Them
KT's claim that a 120B-parameter Mi:dm K 3.0 Pro runs on a single Nvidia B200 conflates weight fitting with production serving, so this walkthrough separates precision and memory math from KV-cache, context, concurrency, throughput, and cost-per-request capacity planning.
Loading comments…