fdem-9b-FP8

fdem fills a list of fields from one document: text, a page image or one PDF page. It returns one typed value per field. The model is trained to return null for a field the document does not state, and the response gives the reason. Use it through the fdem Python package, which builds the prompt the model was trained on and checks and converts its answers.

An FP8 checkpoint of fdem-9b for vLLM, made with llm-compressor (scheme FP8_DYNAMIC, no calibration data) from the bf16 release weights. On Ada, Hopper and Blackwell GPUs vLLM computes in FP8. On an A100, which has no FP8 math, vLLM keeps the weights in FP8 and computes in 16-bit, which saves memory but not time.

Usage

git clone https://github.com/davidleitw/fdem && cd fdem
pip install . vllm==0.33.0
hf download davidleitw/fdem-9b-FP8 --local-dir fdem-9b-FP8
MODEL_DIR=fdem-9b-FP8 ./examples/serve_vllm.sh        # vLLM on :8091, the fdem API on :8000

examples/serve_vllm.sh passes --dtype bfloat16; vLLM reads the FP8 scheme from this repository's config. Requests are the same as for fdem-9b.

API reference: docs/api.md. Recipes: docs/cookbook.md.

Scores

Measured on this variant itself, on the fdem benchmark, with fdem as the client. Do not assume the bf16 scores of fdem-9b. "Same answer as bf16" is the share of fields where this variant's answer equals the bf16 model's.

Set Right Wrong Blank Filled empty fields Same answer as bf16
Held-back, English (2,957 stated / 218 empty) 2,902 18 37 8 / 218 99.8%
Held-back, Chinese DRCD (948) 916 22 10 - 98.3%
Held-back, Japanese JaWildText (1,077 / 156) 1,027 48 2 5 / 156 99.3%
Real-usage (1,757 / 389) 1,596 112 49 21 / 389 97.6%

Speed and peak memory, measured on one RTX 5090 with vLLM 0.33.0 on 200 benchmark documents sent as text: a median 0.442 s per document one request at a time (bf16: 0.557 s) and 8.3 documents per second at 32 requests in flight (bf16: 5.6). GPU memory in use peaked at 27.6 GiB, as with bf16, because vLLM takes up to 90% of the card for weights and cache (--gpu-memory-utilization 0.90); the FP8 weights take 14.0 GB, against 19.3 GB in bf16. All tables: docs/results.md.

Intended use

Pulling typed fields (names, numbers, dates, times, durations, lists and tables) out of invoices, receipts, forms, contracts, statements, filings, notices and web pages, where an empty answer is better than a guessed one. Check the answers that matter: spans, null_reasons and confidence in each response point to the ones worth a second look.

Out of scope: decisions about people made without human review (credit, hiring, benefits), identifying people in documents, and multi-page reasoning across a whole PDF.

Limitations

  • One page per request. Up to 20 fields, 200,000 characters of text and 16,384 tokens per request. Field names must be English.
  • Measured on English, Chinese (mostly Traditional) and Japanese (receipts as text). Other languages are untested.
  • confidence comes from token probabilities; use it to sort answers for review, not as the chance of being right.
  • Scores hold only with fdem building the prompt. Calling the weights with your own prompt, directly or through vLLM's own API, is not measured.
  • A compressed variant can give a different answer from the bf16 model on some fields; the table above says how often.

Licence

The weights are released under Apache-2.0, the licence of the base model Qwen3.5-9B (also Apache-2.0). The training data and training code are not part of this release. The benchmark documents keep their sources' licences, listed in the benchmark README.

Citation

@software{lei2026fdem,
  author  = {Lei, David},
  title   = {{FDEM}: Field-level Data Extraction Model},
  version = {0.1.0},
  year    = {2026},
  url     = {https://github.com/davidleitw/fdem}
}
Downloads last month
9
Safetensors
Model size
10B params
Tensor type
BF16
Β·
F8_E4M3
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for davidleitw/fdem-9b-FP8

Finetuned
Qwen/Qwen3.5-9B
Quantized
(4)
this model

Collection including davidleitw/fdem-9b-FP8