GravityOCR + GLM-SigLiT V4.0 (siglit_head.safetensors)
Unified V4.0 GLM-SigLiT (5.86 MB) lightweight spatial-context projection & zero-shot text alignment head distilled jointly over both trillionlabs/GravityOCR-KO and trillionlabs/GravityOCR CogViT post_layernorm_14x14 vision backbones.
- 14 Domains: 7 industrial domains (
power_plant,aidc,building_mep,electrical,fire_safety,semiconductor_fab,water_plant) + 7 document domains (civil,education,healthcare,enterprise,legal,logistics,finance). - 8 Languages: Chinese (
zh), English (en), French (fr), Spanish (es), Russian (ru), German (de), Japanese (ja), Korean (ko). - Robustness: Trained across clean synthetic, public real benchmarks (FUNSD, DocLayNet), P&ID/MEP engineering sheets, and rough/handwritten/fax/redline degradations (
--ctx-gate-max 0.024+ depthwise3x3spatial_conv).
Contents
siglit_head.safetensors(5.86 MB): Unified V4.0 vision + text projection head compatible with bothGravityOCR-KOandGravityOCR.config.json: V4.0 model, dual-backbone, 8-language, and 14-domain metadata.zoro-gravity/crop_probe.bin: 5-class (form,sign,table,title,guide) Ridge visual anchor trained across 971,968 dual-backbone train patches (held-outforms_testAUC:form 0.976,sign 0.996,table 0.993,title 0.996,guide 0.976).blueprint-sandbox/crop_probe.bin: 5-class Ridge visual anchor trained across 1,133,248 dual-backbone + P&ID train patches (held-outforms_testAUC:form 0.976,sign 0.996,table 0.993,title 0.995,guide 0.976).blueprint-sandbox/symbol_dict.bin: 11-class (10industrial equipment symbols +none) P&ID symbol dictionary (0.996overall top-1259/260,189/200accepted =189right /0wrong /0/60neg FAR,32/32master detections onPID-101..105).
Dual-Backbone Selecting in Rust Apps
Set environment variable to choose the active OCR backbone:
BLUEPRINT_OCR_MODEL=GravityOCR-KO(orgocr, default) /BLUEPRINT_OCR_MODEL=GravityOCRZOROGRAVITY_OCR_MODEL=GravityOCR-KO(orgocr, default) /ZOROGRAVITY_OCR_MODEL=GravityOCR
Benchmark Results (Held-out Suites 1-12: V3.2 vs V4.0)
| 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 |
Per-Language AUC (Suites 11 & 12)
| Lang | KO Suite 11 Clean | KO Suite 12 Rough | Base Suite 11 Clean | Base Suite 12 Rough |
|---|---|---|---|---|
zh | 0.9960 | 0.9935 | 0.9954 | 0.9936 |
en | 0.9979 | 0.9939 | 0.9971 | 0.9943 |
fr | 0.9977 | 0.9952 | 0.9974 | 0.9954 |
es | 0.9977 | 0.9943 | 0.9977 | 0.9939 |
ru | 0.9974 | 0.9948 | 0.9971 | 0.9945 |
de | 0.9976 | 0.9952 | 0.9975 | 0.9954 |
ja | 0.9957 | 0.9926 | 0.9959 | 0.9931 |
ko | 0.9966 | 0.9923 | 0.9970 | 0.9923 |
PyTorch <-> Rust Parity (ROCm gfx1032)
GravityOCR-KO(gocr):max_patch_diff = 4.42e-5,max_pooled_diff = 1.02e-5,max_text_diff = 1.49e-7GravityOCR:max_patch_diff = 4.59e-5,max_pooled_diff = 1.72e-5,max_text_diff = 1.79e-7- Zero-shot
forms_testsmooth AUC:KO 0.986 / EN 0.986(GravityOCR-KO),KO 0.985 / EN 0.985(GravityOCR).
Showcases & Production Usage
- Qntology/blueprint-sandbox: On-device 7-domain industrial engineering control console (
BuildingMep,Electrical,FireSafety,PowerPlant,AiDataCenter,SemiconductorFab,WaterPlant) across 8 UI/OCR languages (ko,en,zh,ja,fr,es,de,ru) with P&ID delta reading (delta_probe), KKS/DCIM/SEMI/ISA extraction, and symbol dictionary matching (symbol_dict.bin). - Qntology/zoro-gravity: On-device 7-domain 5-Gate document & grievance review engine (
Civil,Education,Healthcare,Enterprise,Legal,Logistics,Finance) across 8 languages, using CogViT + GLM-SigLiT V4.0 for layout crop planning and OCR. - Qntology/candle-rocm-vulkan: Rust Candle fork providing Windows/Linux AMD ROCm (HIP SDK 7.2) and cross-platform Vulkan compute kernels.
Hardware Performance Verification (AMD Radeon RX 6600, 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) |
License & Attribution
- Apache License 2.0 (
LICENSE): Copyright 2026 Qntology — covers Qntology's GLM-SigLiT V4.0 head, crop probes, symbol dictionary, GGUF conversions, and synthetic datasets. - MIT License (
LICENSE-UPSTREAM-MIT): Preserves upstreamtrillionlabs/GravityOCR-KO,trillionlabs/GravityOCR, andzai-org/GLM-OCRcopyright and permission notices. - Distillation Notice (
NOTICE): Apache-2.0 Section 4(d) attribution forgoogle/siglip2-so400m-patch16-naflex(Apache-2.0) used solely as an offline training-time relational distillation teacher (zero SigLIP 2 weights bundled).