DavidGadyan

AI & Agents · Finance & Quant · Cloud, DevOps & LLMOps

Audit Pro: Inference-Optimized LLM for IFRS Audit Review

By David Gadyan · Published · Updated

Audit Pro cover: the title Audit Pro, the line An LLM first pass on financial reports, the errors and points an auditor should check first, and three points (errors between pages with evidence, IFRS references and points of interest, 76 model setups measured) beside an AI-generated photo of a desk at dusk: a printed balance sheet of an invented company with two totals circled in red, a red pen, and a laptop showing Qwen3-14B AWQ's scores on that report (4 of 4 injected errors found, 3 of 5 findings real, 42.8 s)

An assistant that gives auditors a first pass on a client's IFRS financial report. It reads a PDF, a link or pasted text and drafts the errors (figures that disagree between pages, totals that do not add up, departures from IFRS) and the points of interest worth testing, each with its page, the quoted evidence, the IFRS reference and a suggested procedure, always in one fixed JSON schema. A deterministic checker and a grounding step stop the model from inventing findings, and everything runs on the firm's own GPU, so no report leaves it. A benchmark lab chose the model: 76 configurations of 19 open models measured on one RTX 4090 for quality, latency, throughput and cost, with A/B tests on every technique. Production now serves Qwen3-14B FP8 through an OpenAI-compatible API. FastAPI, a Next.js lab, Docker and Helm, signed images in CI.

The problem

An auditor opens a client's annual report and has to find what is wrong before anything else: a receivables figure in the notes that does not match the balance sheet, a cash-flow statement that does not end at the cash on the balance sheet, a retained-earnings roll-forward that does not tie, a lease or impairment disclosure that IFRS asks for and the report leaves out. Finding these by hand is slow, and it is the same work on every report. General chat models are not an answer: they invent numbers, they cite pages that do not hold the figure, and a client's unpublished financial statements cannot be sent to an outside API.

What I built

A first pass for the auditor, not a verdict. You give Audit Pro a PDF, a link or pasted text. A small multi-agent pipeline returns two lists: errors, such as "the figure 48,138 on page 6 does not correspond with the page 2 value 50,876 for trade receivables", and points of interest, the places an auditor should test, each with the reason, the IFRS reference and a suggested procedure. Findings are drafts for an auditor to verify, and the prompts forbid asserting fraud.

One fixed answer shape. Every response, including failures, follows the same JSON Schema: company, statements found, reporting period and currency, then each error with its page and related pages, statement, line item, category, severity, expected and found figures, the IFRS reference (for example IAS 1.113), the quoted evidence, a confidence, which step detected it and whether it was verified. A partial result (one agent step failed) is marked 206, so a downstream tool or an audit file never receives a half answer that looks complete.

The pipeline.

  1. Ingest reads the PDF page by page, a web page or pasted text, with page and size limits and an SSRF guard for links.
  2. A classifier agent finds the company, currency, unit, period end and the statement type of every page.
  3. An extractor agent turns each page into line items with values for the current and prior period. A value that is not printed on its cited page is dropped.
  4. Deterministic checks, with exact decimal maths and no model: the accounting equation, totals against their components, gross profit and profit for the year, the cash-flow chain from sections to closing cash and the balance-sheet cash, the retained-earnings roll-forward, and the same figure on different pages. These produce the "page X does not correspond with page Y" findings.
  5. IFRS specialist agents run in parallel, each on the pages routed to it: presentation and policies (IAS 1, 8), revenue and receivables (IFRS 15, 9), assets and impairment (IAS 16, 36, 38, IFRS 16), cash flow (IAS 7), and provisions, tax, related parties and events after the period (IAS 37, 12, 24, 10).
  6. Grounding and a critic. A finding's quote must match the cited page, or it is dropped. A critic agent keeps or rejects each survivor and sets its confidence; anything below 0.5 becomes a point of interest instead of an error.
  7. Assemble: remove duplicates, sort by severity, number the errors and validate the answer against the schema.

Every model call asks vLLM for schema-constrained JSON at temperature 0, and the prompt files are hashed into the answer's metadata, so each result says which model, revision and prompt version produced it.

Architecture design

Hover or tap a component to light its path and see what it does.

Choosing the model: 76 setups on one GPU

An audit firm runs this on its own hardware, so the question is which open model, quantization and serving setup gives the most trustworthy findings on one 24 GB card at an acceptable speed and cost. I built a benchmark lab to answer it with measurements.

How a run works. Each configuration is a pinned Hugging Face revision with exact vLLM arguments. The lab checks it fits the GPU, starts vLLM 0.34 on an RTX 4090 rented on Vast.ai ($0.415 an hour), then measures two things. Speed: AIPerf sends 4,000-token requests with 600-token answers straight to the engine at fixed concurrency and records time to first token, latency, tokens per second and peak VRAM. Quality: the full audit pipeline runs over synthetic IFRS reports. A generator builds consistent annual reports for invented companies, injects errors into the printed figures and keeps the exact answer for each one, so scoring needs no LLM judge.

What is scored. Recall (injected errors found), precision (findings that are real errors), numeric accuracy (both disagreeing figures right), page accuracy (the cited page really holds an error), grounding (quoted evidence is really on the page) and schema validity. The quality score is 30% recall, 20% precision, 20% numeric, 15% page and 15% grounding.

The study. 89 configurations were defined and 76 finished with full data: 19 open models in 27 checkpoints from 12 publishers (Qwen, DeepSeek, Meta, Microsoft, OpenAI, IBM, Liquid AI, AllenAI and community quantizers), 10 of them mixtures of experts, in 4-bit AWQ and GPTQ, FP8, MXFP4 and BF16, with and without an FP8 KV cache, with n-gram, suffix, EAGLE-3 and draft-model speculative decoding, and with CUDA graphs, chunked prefill, sequence caps, prefix caching and context lengths varied. Thirteen did not finish: the 32B models could not start in 24 GB, and the rest were lost to an early pipeline crash. These are the picks:

SetupPicked forQualityRecallPer report$ / 1,000 audits
Qwen3-14B FP8, FP8 KV cacheProduction: best quality70.872.0%61 s1.83
Qwen3-14B AWQ, suffix decodingFastest and cheapest at top quality68.669.3%24 s0.69
Qwen3-14B AWQ, EAGLE-3Speed, same answers68.669.3%30 s0.88
Phi-4 FP8Best arithmetic (88.3%)68.570.7%153 s4.53
Qwen3-30B-A3B GPTQ (MoE)Most errors found64.383.8%50 s1.57
Qwen2.5-7B BF16, no prefix cacheThroughput (484 tokens/s)48.740.0%53 s1.56

Time per report is the average for one whole audit through the pipeline (several model calls, about 14,000 tokens), with four reports in progress at once. Cost is GPU rental only: $0.415 an hour over the evaluation's wall time, divided by the reports audited. Suffix decoding brings that to $0.69 per 1,000 audits; production pays $1.83 for FP8, the price of getting more figures right. Qwen2.5-7B reaches 484 tokens per second at 16 concurrent users in BF16 and 671 in 4-bit AWQ, but it finds too few errors for audit work (40% and 12%), so it counts only as a speed result.

0%25%50%75%100%$0$1$2$3$4$5Cost per 1,000 audits (GPU rental)Errors found (recall)↖ better: more errors found for lessproduction pickbest costbest arithmeticthroughput pickmost errors found
Qwen3-14B FP8, FP8 KVproduction pick
Quality score
70.8
Recall
72.0%
Precision
58.4%
Numeric accuracy
70.0%
Page accuracy
90.6%
Grounding
66.2%
Time per report
61 s
$ per 1,000 audits
$1.83
Tokens/s at 4 · 16
154 · 216
Weights
–
Cold start
–
Reports scored
30

Hover, tap or tab to a point, a bar or a column for its numbers; tap a legend entry to show or hide a line.

ConfigurationQuality scoreRecallPrecisionNumeric accuracyPage accuracyGroundingTime per report$ per 1,000 auditsTokens/s, total (4)
Qwen3-14B FP8, FP8 KV (production pick)70.872.0%58.4%70.0%90.6%66.2%61 s$1.83154
Qwen3-14B FP8, n-gram70.270.7%60.3%70.0%87.4%65.3%49 s$1.47107
Qwen3-14B FP8, no prefix cache69.270.7%59.4%70.0%85.3%62.2%70 s$2.12145
Qwen3-14B AWQ, n-gram depth 869.170.7%55.6%60.0%92.7%72.4%46 s$1.37122
Qwen3-14B AWQ, plain AWQ kernel69.170.7%55.6%60.0%92.7%72.4%45 s$1.32198
Qwen3-14B AWQ, max 64 sequences69.170.7%56.1%60.0%93.5%71.3%46 s$1.36198
Qwen3-14B AWQ, prefill chunk 819269.070.7%55.6%60.0%92.7%71.6%45 s$1.34198
Qwen3-14B FP869.070.7%58.9%70.0%84.0%63.0%67 s$2.01145
Qwen3-14B AWQ, eager (no CUDA graphs)68.669.3%55.3%60.0%92.7%72.1%114 s$3.4196
Qwen3-14B AWQ, EAGLE-368.669.3%55.3%60.0%92.7%72.1%30 s$0.88164
Qwen3-14B AWQ, prefill chunk 102468.669.3%55.7%60.0%93.4%70.9%46 s$1.36198
Qwen3-14B AWQ, n-gram depth 268.669.3%55.3%60.0%92.7%72.1%41 s$1.22137
Qwen3-14B AWQ, suffix decoding (best cost)68.669.3%55.3%60.0%92.7%72.1%24 s$0.69177
Qwen3-4B BF16, no prefix cache53.350.7%26.4%50.0%66.9%85.3%43 s$1.25260
Qwen3-4B BF1652.348.0%25.3%53.3%64.6%82.9%42 s$1.28260
Qwen3-4B BF16, n-gram51.549.3%25.3%48.3%60.5%85.7%29 s$0.88226
Qwen3-4B BF16, FP8 KV46.546.7%25.1%43.3%53.2%71.9%37 s$1.14287
Qwen3-8B BF16, FP8 KV39.824.0%47.8%20.0%91.3%35.3%106 s$3.32176
Qwen3-8B BF16, n-gram37.925.3%35.4%25.0%75.4%46.4%69 s$2.11147
Qwen3-14B AWQ, 8k69.170.7%56.1%60.0%93.5%71.3%46 s$1.36198
Qwen3-14B AWQ, draft model68.669.3%55.3%60.0%92.7%72.1%34 s$0.99150
Phi-4 FP8, n-gram68.772.0%65.1%88.3%84.5%24.6%88 s$2.63108
Phi-4 FP8, FP8 KV68.569.3%70.4%86.7%90.4%18.2%132 s$3.94154
Phi-4 FP8 (best arithmetic)68.570.7%64.3%88.3%85.7%26.3%153 s$4.53142
Phi-4 FP8, no prefix cache68.472.0%64.3%88.3%84.1%24.2%155 s$4.58143
Qwen2.5-7B BF16, no prefix cache (throughput pick)48.740.0%67.3%40.0%81.6%20.2%53 s$1.56193
Qwen2.5-7B BF1648.040.0%62.3%38.3%81.1%24.7%51 s$1.53193
Qwen2.5-7B BF16, n-gram46.640.0%57.6%38.3%74.6%28.3%35 s$1.06166
Qwen2.5-7B FP841.337.3%51.7%28.3%65.0%28.7%44 s$1.41314
Qwen2.5-14B FP829.326.7%35.3%11.7%57.4%22.0%127 s$3.82116
Qwen2.5-14B FP8, FP8 KV27.721.3%34.0%10.0%62.3%21.0%133 s$3.95129
Qwen2.5-7B AWQ23.312.0%32.1%10.0%60.7%14.4%27 s$0.88531
Qwen2.5-7B AWQ, n-gram23.012.0%29.0%10.0%61.3%16.1%24 s$0.73373
Qwen3-14B AWQ, 32k68.870.3%61.1%56.7%92.6%68.4%44 s$1.43198
Qwen3-14B AWQ68.570.3%60.4%56.7%92.5%67.6%44 s$1.41198
Qwen3-14B AWQ, n-gram68.270.3%60.4%56.7%92.5%65.8%39 s$1.21134
Qwen3-14B AWQ, no prefix cache68.270.3%60.4%56.7%92.5%65.8%46 s$1.49198
Qwen3-14B AWQ, FP8 KV66.870.3%58.9%56.7%87.5%63.4%44 s$1.40216
Qwen3-14B AWQ, FP8 KV, n-gram66.670.3%58.2%56.7%85.5%65.0%32 s$0.97199
Qwen3-14B AWQ, FP8 KV, 32k65.567.6%54.2%56.7%84.7%69.0%41 s$1.31216
Qwen3-30B-A3B GPTQ, n-gram65.081.1%58.7%73.3%76.0%19.0%48 s$1.45219
Qwen3-30B-A3B GPTQ, no prefix cache65.083.8%52.1%73.3%74.5%23.9%44 s$1.37343
Qwen3-30B-A3B GPTQ (most errors found)64.383.8%51.1%73.3%73.9%21.4%50 s$1.57343
DeepSeek-R1-Distill-14B AWQ63.570.7%59.4%86.7%71.1%16.4%47 s$1.48189
Qwen3-30B-A3B Thinking 2507 AWQ62.359.5%81.1%60.0%86.5%21.6%59 s$1.78330
Qwen3-30B-A3B GPTQ, FP8 KV, 16k60.678.4%48.5%66.7%74.7%19.2%39 s$1.15383
Qwen3-30B-A3B GPTQ, FP8 KV56.773.0%43.7%66.7%65.5%19.1%38 s$1.19383
Qwen3-8B AWQ56.330.6%64.3%62.9%82.7%61.8%35 s–302
Qwen3-30B-A3B AWQ (cognitivecomputations)53.962.2%40.3%60.0%71.4%30.0%48 s$1.46335
Qwen3-30B-A3B 2507 AWQ (cpatonn)52.659.5%49.1%56.7%73.6%17.0%68 s$2.08332
Qwen3-8B AWQ, no prefix cache49.945.9%46.3%46.7%73.2%43.8%54 s$1.76302
Qwen3-8B AWQ, n-gram49.845.9%46.3%46.7%73.2%42.9%39 s$1.25246
Qwen3-4B AWQ, no prefix cache42.243.2%42.0%33.3%66.0%28.6%22 s$0.67424
Qwen3-4B AWQ41.643.2%40.4%33.3%63.5%29.0%20 s$0.62424
Qwen3-8B AWQ, FP8 KV41.535.1%44.1%40.0%67.6%26.7%49 s$1.49471
Qwen3-4B AWQ, n-gram41.543.2%41.2%33.3%62.7%27.9%18 s$0.55320
Llama 3.1 8B AWQ39.640.0%50.8%30.0%65.1%11.0%58 s$1.77323
Granite 4.0 H Tiny BF1636.351.4%16.0%13.3%64.1%36.2%56 s$1.78443
Qwen3-4B AWQ, FP8 KV35.435.1%34.1%26.7%59.1%25.8%19 s$0.60665
Qwen3-30B-A3B 2507 AWQ (stelterlab)27.316.2%37.0%10.0%70.4%16.4%84 s$2.72341
Qwen2.5-7B AWQ, no prefix cache25.611.4%34.9%10.0%71.5%16.5%29 s$0.91376
Granite 3.1 3B-A800M BF1625.532.4%22.7%3.3%69.2%1.0%52 s$1.63528
gpt-oss-20b MXFP4, 16k22.65.4%22.2%6.7%66.7%35.0%141 s$4.30394
gpt-oss-20b MXFP422.55.4%16.7%6.7%58.3%50.0%135 s$4.12393
Qwen1.5-MoE-A2.7B GPTQ19.45.4%42.9%3.3%57.1%0.0%83 s$2.53158
LFM2-8B-A1B BF1616.621.6%16.0%3.3%28.2%13.1%112 s$3.35452
Qwen2.5-14B AWQ, FP8 KV14.05.4%25.0%3.3%33.3%11.4%88 s$2.79113
Qwen2.5-14B AWQ, no prefix cache5.82.7%7.7%0.0%7.7%15.4%83 s$2.74121
Qwen2.5-14B AWQ5.72.7%7.1%0.0%7.1%15.7%80 s$2.65121
Qwen2.5-14B AWQ, n-gram5.62.7%6.7%0.0%6.7%16.7%60 s$1.90107
Granite 3.1 1B-A400M BF160.00.0%0.0%0.0%0.0%0.0%57 s$1.73867
All 71 valid runs on one RTX 4090 with synthetic IFRS reports (five runs with scoring artefacts left out). Switch views for quality against cost, the load curves, any single metric, what each technique changed and the A/B verdicts; the charts start with the top runs and a few contrasting ones.

Under load. The load curves show where one 24 GB card runs out. The 14B models flatten after about 8 concurrent requests: the production model goes from 213 to 216 tokens per second between 8 and 16, and its 95th-percentile time to first token climbs from 2.6 s at 4 to 35 s at 16 because requests queue for KV-cache memory (101,888 tokens fit at a 16k context); Phi-4 FP8 waits 39 s at 16. The 7B and 8B models keep scaling to 16: Qwen2.5-7B AWQ with an FP8 KV cache reaches 963 tokens per second, Llama 3.1 8B 528 and Qwen3-8B 500. For one auditor at a time a 14B model answers each call in about 8 s; a team of eight sharing the card is where a second GPU or a smaller KV cache starts to pay.

Goodput, not peak throughput. Every variant was swept closed-loop at 1 to 16 concurrent requests and once open-loop with Poisson arrivals, recording time to first token (TTFT), inter-token latency (ITL) and request time. Goodput counts only the calls that meet a latency SLO, here TTFT p95 under 2 s and ITL p50 under 50 ms. Under that SLO the production FP8 model serves 0.15 calls per second (2 concurrent requests), the Qwen3-14B AWQ build with suffix decoding 0.30 (4 concurrent), and Phi-4 FP8 0.24. Peak tokens per second would rank them differently: the 14B models reach 216 to 309 tokens per second at 16 users, but by then the first token takes 10 to 40 s.

Goodput on the live production model. An open-loop Poisson sweep against production (90 s per rate, same 4,000-in, 600-out requests, GPU and vLLM metrics sampled every second) shows the knee:

Offered req/sGoodput req/sWithin SLOTTFT p90KV cache peakPreemptionsMean queueGPU power
0.10.067100%0.08 s31%00 s103 W
0.20.133100%1.1 s42%00 s155 W
0.30.201100%1.2 s72%00 s176 W
0.40.26090%2.0 s99%10.2 s195 W
0.60.12539%13.9 s100%144.9 s216 W

Goodput peaks at about 0.26 requests per second; past it the KV cache fills, requests are preempted and queue, and goodput halves while raw throughput still rises a little. That is why capacity is planned on goodput, and why the API admits at most four audits at once, left of the knee. Decode stays memory-bound: memory-controller utilisation 45–81%, power at most 263 W of 450 W, no throttling. (GPU figures are nvidia-smi samples, not Nsight or DCGM profiling counters; achieved rates are below offered because requests still running at the 90 s cut-off are not counted.)

OpenAI conformance. Unit tests and an eight-check smoke test on production cover string and multi-part content, PDF file parts, the chat.completion object with system_fingerprint and usage, streaming chunks ending in [DONE] with an optional usage chunk, the OpenAI error envelope for 401, 400, 415 and 422, /v1/models and three concurrent audits. Not covered yet: cancelling the pipeline when a client disconnects, tool calls and reasoning content (it is a fixed audit task, not a general chat model), and sampling parameters, which are accepted but ignored. Speculative-decoding acceptance rates were not measured; the page reports only their end-to-end effect on real audits.

What the techniques did. Against plain Qwen3-14B AWQ, single runs on the same reports:

  • Suffix decoding was the biggest win. It cut an audit from 44.0 s to 23.5 s (−47%, $0.69 per 1,000 audits); an EAGLE-3 head reached 29.9 s (−32%), a Qwen3-0.6B draft model 33.5 s (−24%) and n-gram 38.5 s at depth 4, 41.3 s at depth 2 and 46.4 s at depth 8, where drafting deeper stops helping. Every one returned the same findings on every paired report. In the random-token load test the same methods look 25–50% slower: audit pages repeat figures and labels a drafter can guess, random tokens do not. Speculative decoding has to be measured on real prompts.
  • 4-bit has an accuracy cost. Qwen3-14B AWQ finds as many errors as the FP8 build and is a third faster, but the paired A/B test rejected it on numeric accuracy: 21 points lower (95% CI −40 to −6). A throughput benchmark would never show that, and it is why production serves FP8.
  • FP8 KV cache plus n-gram made each report 26% faster and 31% cheaper with the same recall, the best result before suffix decoding.
  • FP8 KV cache alone gave 9–24% more throughput under load and room for more users, but did not shorten a single audit. On Phi-4 FP8 it gave 49% more throughput at 16 users and halved the queueing, with the same quality. On Qwen2.5-7B it broke the JSON output completely, so it is tested per model, never switched on by default.
  • CUDA graphs are not optional. In eager mode an audit took 114 s, 2.6 times as long. Chunked prefill at 1,024 or 8,192 tokens, a cap of 64 sequences and an 8k, 16k or 32k context changed nothing measurable at this load.
  • Prefix caching is worth keeping: the agents share long system prompts, and switching it off made audits 5% slower. A 32k context instead of 16k changed nothing measurable.
  • Who quantized the model matters as much as the bit width. The GPTQ 4-bit build of Qwen3-30B-A3B found 84% of errors; four community AWQ 4-bit builds of the same family found 16% to 62%.
  • A mixture of experts is fast per call, not per audit. Qwen3-30B-A3B activates about 3.4B of its 30.5B parameters per token, so one model call takes 4.0 s against 8.1 s for the dense 14B and throughput is about 1.7 times higher, but it writes more per report, so a whole audit takes longer. Its grounding score, under 25% like DeepSeek-R1's and Phi-4's, looks like a measurement issue that is still to be investigated.
  • The GPU is memory-bound. On the 8B model the lab measured 947 GB/s of memory bandwidth, which caps decoding at about 155 tokens per second for 6.1 GB of weights; the engine reached 113, or 73% of that ceiling.

What the A/B tests said. The framework ran 53 paired comparisons with Holm correction and a 2-point non-inferiority margin. It rejected five: Qwen3-14B AWQ against FP8 on numeric accuracy, and four community AWQ builds of Qwen3-30B-A3B whose whole recall confidence interval sat below the margin (for example −70 points, from −86 to −51). The other 48 were inconclusive: every speculative-decoding and engine variant gave identical answers, which changes speed, not findings, and with 15 to 30 documents per run smaller quality differences cannot be proven. None was accepted, and the page says so instead of declaring winners. Speed itself varies 1.7% in tokens per second and 9% in 95th-percentile first-token time between runs on the same host, so the next step is adaptive A/B testing on the target hardware: interleaved runs on one GPU, at least three performance replicates, sequential stopping and successive halving across variants.

Honest limits. The quality gates I set for production (numeric accuracy 98%, page accuracy 95%, grounding 95%, recall 85%, schema validity 99%) are not met by any configuration yet, so these are the best results so far, not a certified model. The scores come from synthetic English reports (15 or 30 documents per run), not an accountant-reviewed golden set, and most rows are single runs. A new champion replaces the old one only when it wins by at least 2 points.

In production

The firm now serves Qwen3-14B FP8 with an FP8 KV cache: the highest quality score (70.8, recall 72%, numeric accuracy 70%) and the figures the AWQ build gets wrong. vLLM loads it offline from a SHA-256-verified model store behind the audit API, which speaks the OpenAI chat-completions format: POST /v1/chat/completions with the report as text or as a base64 PDF file part returns the audit JSON as the message content, with streaming, a usage block, OpenAI-style errors and GET /v1/models. Qwen3-14B AWQ and Phi-4 FP8 sit on disk as fallbacks, a one-minute switch.

A real call from a laptop to the public production API: the health check, the model list, a 401 without the key, a synthetic seven-page PDF sent as a base64 file part with streaming on (53.5 s, 13,763 tokens), the audit JSON and the planted errors for comparison. It caught all four planted errors, the balance-sheet one on the wrong side, and added four findings that were not planted. The wait is shortened; the key and the address appear only as variables.

In the production smoke test a seven-page synthetic PDF for an invented company, Tavush Timber LLC, took 54.6 s and 13,617 tokens across the pipeline's model calls; the same report as text took 52.4 s, and three PDFs sent at once all finished within 56.2 s. It found all four injected errors on the right pages: retained earnings that do not tie between pages 5 and 2, with both exact figures; the current-assets total, with the right printed figure but a wrong expected one; the unbalanced balance sheet, blaming total assets instead of total equity and liabilities; and a cash-basis revenue policy against IFRS 15, reported three times. Six findings for four real issues, plus one point of interest (profit before tax down from 72,740 to 10,089): detection is strong and the figures are the weak spot, the same picture as the benchmark.

The API also runs on a public demo endpoint on the rented RTX 4090 (access on request). Twelve new synthetic annual reports, held out from every benchmark set, went through it from a laptop over the internet, four at a time: 12 of 12 succeeded with schema-valid answers in 58.6 s per audit (56.1 to 61.8 s), about 245 audits an hour on one card and 13,500 tokens per audit. They found 74% of the planted errors (31 of 42), 70% of the 83 findings were real, and 64% of the figures were exact, in line with the offline benchmark for this model (recall 72%, numeric accuracy 70%): the deployed system reproduces the measured quality.

One report, start to finish

A page of the synthetic input report and Qwen3-14B AWQ's result on it

The input is a synthetic annual report for an invented company, Syunik Mining Services OJSC, with four injected errors: total current assets printed as 127,899 instead of 122,644 (page 2), gross profit 74,809 instead of 70,879 (page 3), total equity and liabilities 288,604 instead of 270,552, so the balance sheet does not balance (page 2), and an accounting policy that says property, plant and equipment is not depreciated, against IAS 16.43 (page 6). Qwen3-14B AWQ with a 32k context, the quality pick before the 8k run, read the seven pages in 42.8 seconds and returned valid JSON with five findings. It found all four errors, put four findings on the right page and gave the exact expected and found figures for two of the three arithmetic errors. Two of its five findings were not real errors, so precision on this report was 60%, below the 90% acceptance bar. Across the 15 reports the same model found every error in six, nothing in three, and passed the acceptance bar on one: the reason every finding stays a draft for the auditor.

The lab

The Next.js app is where the model is chosen and served.

  • Lab: pick models, engines and techniques. Several selected launch a test job; one selected deploys it. A capacity planner shows the free VRAM, the weights, the KV cache and how many users fit before anything starts.
  • Experiments: every run, the quality gates it passed or failed, a quality-against-cost chart with the Pareto frontier, and a recommendation per profile (quality, balanced, throughput, cost).
  • A/B decisions: a candidate against its baseline with replicates, bootstrap confidence intervals and Holm-corrected p-values, ending in accept, reject, no benefit or inconclusive.
  • Optimization: speculative decoding acceptance, prefix caching and tenant isolation, chunked prefill, KV cache capacity, the roofline and a batching simulator.
  • Audit a report: upload a report and read the errors and points of interest.
  • Live: GPU and inference tiles, with Grafana dashboards for vLLM, the GPU and audit quality behind them.

Deployment and security

One container image holds vLLM, the API, the dashboard, Prometheus and Grafana for a single GPU server; a Helm chart runs them as separate pods with network policies, non-root containers, read-only file systems and KEDA autoscaling. Model weights are downloaded once to a volume, checked against Hugging Face's SHA-256 hashes, and the engine then runs offline. GitHub Actions builds the images, signs them by digest with cosign, scans them, and packages and signs the Helm chart. 251 tests (154 for the API and pipeline, 97 for scoring, selection and the lab) run without a GPU against a stand-in engine; on 40 synthetic reports the deterministic checks find every error they target, and on 20 clean reports they report nothing.

The API needs a key on every audit and metrics route; the dashboard uses basic auth and keeps the key on the server. Request bodies and prompts are never logged, every answer is validated against the schema before it is returned, and the deploy controller only accepts allow-listed, digest-pinned, signed images. Benchmarks on rented marketplace GPUs use synthetic reports only; real client documents run on the firm's own hardware.

What is next

An accountant-reviewed golden set to replace the synthetic one, adaptive A/B testing with repeated performance runs, suffix decoding on the FP8 production model, OCR for scanned PDFs, Armenian and Russian reports, and per-user access with client-level isolation.

Related projects

← All projects