Quantized GGUF + BF16/Q8/NVFP vision projector runtime bundle for trillionlabs/GravityOCR-KO (pinned to upstream commit bc0e10545a, CogViT patch_embed SHA-256 prefix 4142dde29a3c1b96) paired with the Qntology/GravityOCR-KO-GLM-SigLiT V4.0 head (siglit_head.safetensors, 5.86 MB). Every file in this repository (q8, q4, pyramid, bonsai, nvfp8, nvfp4, and siglit_head.safetensors) is cryptographically verified against the same bc0e10545a weights.
[!NOTE] Downstream upstream revision
trillionlabs/GravityOCR-KO@6c749d4178(m24c_g3,patch_embed21db8a10) shifts CogViT visual features (patch cos 0.842) and is not mixed into this bundle.
gocr-q8.gguf: Q8_0 language decoder (reference baseline, < 0.6% relative linear error).gocr-q4.gguf: Q4_K compact language decoder fallback.mmproj-gocr-bf16.gguf: Exact BF16 CogViT vision projector (347/347 tensors preserved).siglit_head.safetensors: V4.0 dual-backbone GLM-SigLiT head (eval-phrases maxp=384 on out/forms_test: raw AUC 0.979 / 0.995 / 0.994 / 0.997 / 0.984, smooth3x3 AUC 0.970 / 0.994 / 0.995 / 0.987 / 0.984).vision-q8+head), Ternary Bonsai, & NVIDIA NVFP8/NVFP4load_active_on keeps the lossless pyramid (vision-q8+head) tier as the default across all GPUs/CPUs, while nvfp8 (sm_89/sm_90 Ada/Hopper target layout) and nvfp4 (sm_100+ Blackwell target layout) are available via explicit opt-in (ZOROGRAVITY_NV_TIER=nvfp8 or nvfp4; ada/hopper alias to nvfp8, blackwell aliases to nvfp4).
bc0e10545a BF16 weights (token_embd.weight and trimmed 59,200-row output.weight kept Q8_0 in GGUF).imatrix + BlockHessian GPTQ): gocr-pyramid (vision-q8+head), gocr-nvfp8, and gocr-nvfp4 are calibrated using 64 strictly out-of-sample training crops (out/forms, out/ind_v3_train, out/biz_med_legal_train, out/diverse_train), with BlockHessian Cholesky GPTQ (B <= 256) on planar NVFP8/NVFP4 projections and lossless Q8_0 CogViT vision (mmproj).M <= 8 decode, CUDA runs fused single-rounding branchless ALU-decoded NVFP8 / NVFP4 / BonsaiQ2 matvec + fused SwiGLU kernels. 8 < M <= 16 uses exact F32 on-chip tile16, and M > 16 prefill/vision batches dispatch to W8A16 / W4A16 BF16 Tensor Core GEMM (CUDA_R_16BF, CUBLAS_COMPUTE_32F on sm_80+; CUDA_R_16F fallback on sm_75). CogViT and GLM-SigLiT execute GPU-native Chan-Welford LayerNorm + fused 2D RoPE + L2 normalization via vis_ops.sm_86, CUDA 13.3) 218-Crop Benchmark (out/forms_test, bc0e10545a Aligned — Before vs After)Measured over 218 stratified multi-form crops (out/forms_test, ref NLL = 0.02064) with Greedy autoregressive exact match over 64 representative crops against gocr-q8 + mmproj-gocr-bf16 (and previous HF artifacts evaluated on the same 218 crops as "Before"):
| Tier / Variant | Calibration & Vision | File Sizes (GGUF + mmproj + sidecar) |
Decoder VRAM | SigLiT cos (min / mean / patch) |
NLL (ΔNLL Before → After) |
TF Agree (Before → After) | Greedy 64 (Before → After) |
|---|---|---|---|---|---|---|---|
Reference (Q8_0 + BF16) |
q8 |
682.18 + 828.05 MiB (1,510.23 MiB) |
— | 1.00000 / 1.00000 / 1.00000 |
0.02064 (+0.00000) |
100.00% |
64/64 |
pyramid (Default) |
vision-q8+head (imatrix) |
682.27 + 441.33 MiB (1,123.60 MiB) |
589.77 MiB |
0.99901 → 0.99963 / 0.99999 / 0.99920 |
+0.00001 → -0.00035 |
99.94% → 100.00% |
64/64 → 64/64 (71.00s) |
nvfp8 (sm_89/90 opt-in) |
imatrix + BlockHessian GPTQ + Q8_0 vision |
185.02 + 441.33 + 469.02 MiB (1,095.37 MiB) |
561.52 MiB |
0.99858 → 0.99963 / 0.99999 / 0.99920 |
+0.00151 → -0.00076 |
99.60% → 99.94% |
61/64 → 63/64 (66.01s) |
nvfp4 (sm_100+ opt-in) |
imatrix + BlockHessian GPTQ + Q8_0 vision |
185.02 + 441.33 + 344.99 MiB (971.34 MiB) |
437.49 MiB |
0.99858 → 0.99963 / 0.99999 / 0.99920 |
+0.00363 → +0.00203 |
99.54% → 99.60% |
60/64 → 63/64 (65.80s) |
bonsai (gocr-sidecar-bf16) |
bonsai-text+head (F32 rescue/highway runtime) |
381.05 + 441.33 + 82.15 MiB (904.53 MiB) |
377.51 MiB |
0.99924 / 0.99999 / 0.99923 |
0.18404 (+0.16340) |
94.69% |
34/64 (69.01s) |
[!NOTE] Previous README 218-crop table reported earlier baseline numbers (
ref_nll=0.04642;pyramid +0.00037 (63/64),nvfp8 +0.00275 (61/64),nvfp4 +0.00935 (60/64),bonsai +0.22765 (43/64)). In the table above, both Before (prior HF files on current runtime) and After (new calibrated files) were measured head-to-head on the exact same 218 extractedout/forms_testcrops.
CogViT + GPU GLM-SigLiT, RTX 3050 sm_86, 16 Crops out/diverse_eval)| Path | Total (16 crops) |
Per-Crop Latency | SigLiT GPU↔CPU max_abs_diff |
vis_ops=0 vs 1 Parity (6,144 floats) |
|---|---|---|---|---|
Before (ZOROGRAVITY_VIS_OPS=0 + GPU SiglitHead) |
3567.05 ms |
222.94 ms/crop |
4.40e-6 |
— |
After (ZOROGRAVITY_VIS_OPS=1 + GPU SiglitHead) |
3503.91 ms |
218.99 ms/crop |
3.24e-6 |
max_abs_diff = 9.98e-7 · cos = 1.0000000 |
GravityOCR-KO)| Suite | GravityOCR-KO V3.2 | GravityOCR-KO V4.0 | GravityOCR V3.2 | GravityOCR V4.0 |
|---|---|---|---|---|
| Suite 1 Forms CV (LOO AUC) | 0.9689 |
0.9875 |
0.9678 |
0.9866 |
| Suite 1 Forms Held-out 64 AUC | 0.9758 |
0.9895 |
0.9751 |
0.9889 |
| Suite 2 P&ID Master Acc (KO) | 1.0000 |
1.0000 |
1.0000 |
1.0000 |
| Suite 2 P&ID Master Margin (KO) | 0.0546 |
0.1111 |
0.0542 |
0.1153 |
| Suite 2b P&ID Master Acc (EN) | 1.0000 |
1.0000 |
1.0000 |
1.0000 |
| Suite 2b P&ID Master Margin (EN) | 0.1208 |
0.1407 |
0.1199 |
0.1394 |
| Suite 3 Symbols Clean Acc | 0.9900 |
0.9950 |
0.9950 |
0.9950 |
| Suite 3 Symbols Neg FAR | 0.0000 |
0.0000 |
0.0000 |
0.0000 |
| Suite 4a FUNSD Test AUC (EN) | 0.8880 |
0.8818 |
0.8881 |
0.8803 |
| Suite 4b DocLayNet Val AUC (EN) | 0.9174 |
0.9286 |
0.9174 |
0.9331 |
| Suite 5 Diverse Mix (KO+EN) | 0.9746 |
0.9907 |
0.9738 |
0.9910 |
| Suite 5b Diverse Pure EN | 0.9790 |
0.9935 |
0.9793 |
0.9943 |
| Suite 6 Education/Exam | 0.9451 |
0.9831 |
0.9492 |
0.9836 |
| Suite 7 Ranked Industrial | 0.9856 |
0.9955 |
0.9848 |
0.9952 |
| Suite 8 Med/Biz/Legal | 0.9834 |
0.9962 |
0.9829 |
0.9963 |
| Suite 9 V4 New Ind (Semicon/Water) | 0.9769 |
0.9946 |
0.9769 |
0.9946 |
| Suite 10 V4 New Doc (Legal/Log/Fin) | 0.9852 |
0.9980 |
0.9842 |
0.9980 |
| Suite 11 V4 14-Dom x 8-Lang | 0.9665 |
0.9970 |
0.9664 |
0.9968 |
| Suite 12 V4 Rough/Handwritten | 0.9643 |
0.9939 |
0.9635 |
0.9940 |
gfx1032)| Probe / Workload | ROCm (GravityOCR-KO) |
ROCm (GravityOCR) |
Vulkan (GravityOCR-KO) |
Vulkan (GravityOCR) |
|---|---|---|---|---|
delta_probe --no-scans --no-a0 Model Open |
1.5 s |
2.1 s |
1.5 s |
1.8 s |
delta_probe 5-Sheet Master Index (735 KB int8, 384x384) |
1.1 s |
1.4 s |
3.0 s |
3.2 s |
symbol_probe 64p / 256p per crop (520 train + 260 test) |
13.5 ms / 59.5 ms |
— | 70.0 ms / 300.1 ms |
— |
Kernel Self-Tests (rms_norm, rope, flash_attn_d64, decoder_ops) |
PASS (<= 2.0e-7) |
PASS (<= 2.0e-7) |
PASS (<= 1.9e-7) |
PASS (<= 1.9e-7) |
sm_86, CUDA 13.3 — Before vs After)Kernel / Quant Format (blk.*.ffn_gate_up.weight [9216x1536]) |
CUDA ↔ CPU Rel Err (M=1 / M=64) |
CUDA Latency Before (M=1 / M=64) |
CUDA Latency After (M=1 / M=64) |
Speedup (M=1 / M=64) |
Status |
|---|---|---|---|---|---|
Q8_0 (gocr-pyramid / gocr-q8) |
1.6e-7 / 2.2e-4 |
0.092 ms / 0.237 ms |
0.091 ms / 0.241 ms |
1.01x / 0.98x |
PASS (<= 1e-2) |
NVFP8 (gocr-nvfp8, W8A16 BF16 TC at M>16) |
1.9e-7 / 2.3e-3 |
0.133 ms / 0.537 ms |
0.104 ms / 0.531 ms |
1.28x / 1.01x |
PASS (<= 1e-2) |
NVFP4 (gocr-nvfp4, W4A16 BF16 TC at M>16) |
1.6e-7 / 2.4e-3 |
0.126 ms / 0.506 ms |
0.105 ms / 0.768 ms |
1.20x / 0.66x |
PASS (<= 1e-2) |
BonsaiQ2 (gocr-bonsai blk.1, F32 tile16 at M<=16, BF16 TC at M>16) |
1.8e-7 / 2.3e-3 |
0.172 ms / 2.961 ms |
0.157 ms / 0.661 ms |
1.10x / 4.48x |
PASS (<= 1e-2) |
CUDA Kernel Self-Tests (layer_norm, vis_ops, rms_norm, rope, rope_i, flash_attn_d48/d64, flash_attn_causal_d128, decoder_ops, lm_head_argmax_cs) |
0.0e0 .. 1.6e-5 (layer_norm: 5.2e-8, vis_ops: 1.6e-5) |
— | — | — | ALL PASS on CUDA (zero CPU fallback) |
LICENSE): Copyright 2026 Qntology — covers Qntology's GLM-SigLiT V4.0 head, crop probes, symbol dictionary, GGUF conversions, and synthetic datasets.LICENSE-UPSTREAM-MIT): Preserves upstream trillionlabs/GravityOCR-KO, trillionlabs/GravityOCR, and zai-org/GLM-OCR copyright and permission notices.NOTICE): Apache-2.0 Section 4(d) attribution for google/siglip2-so400m-patch16-naflex (Apache-2.0) used solely as an offline training-time relational distillation teacher (zero SigLIP 2 weights bundled).gocr-nvfp8.safetensors 469 MiBgocr-nvfp4.safetensors 345 MiBgocr-sidecar-bf16.safetensors 82 MiBsiglit_head.safetensors 6 MiB