D-OCR-preview / VALIDATION.md
HasinManjare's picture
Add standalone auto-download CPU/GPU Docker and Compose setup
b7c9c38 verified
|
Raw History Blame
3.42 kB

Preview validation

Validated on 2026-11-24. No additional training or quantization was performed.

Check Result
Tensor-only recognizer export All 763 tensors bitwise equal to the evaluated source checkpoint
Standalone CPU Docker build Passed; dependency consistency check passed
Offline CPU Docker API Passed with networking disabled and only release assets mounted
Authentication Missing key rejected (401); valid key accepted
Model startup Layout, text detector, recognizer and table structure warmups passed
CPU real page 13 blocks, 554 text characters, 74.85 seconds
CPU output views Reading HTML 1387 characters; original-layout HTML 6654 characters
Compiled GPU runtime with release weights Passed on NVIDIA GeForce RTX 5060 Ti
GPU real page 13 blocks, 554 text characters, 6.46 seconds
GPU Docker target Recipe provided; image build and GPU container execution not validated on this host
Source exclusion Runtime archive contains compiled modules only; no Python/browser application source

The CPU and GPU page checks verify execution and nonempty layout outputs. They are not layout-accuracy or transcription-accuracy measurements. CUDA recognition was tested using the compiled runtime in the local GPU environment; this host lacks NVIDIA Container Toolkit, so no GPU-container success is claimed.

The published 448-crop comparison in evaluation.json was measured before packaging. The exported recognizer tensors are unchanged. It is a local regression comparison with unverified training/test independence, not a certified unseen benchmark. Full-page layout and table accuracy have not been scored.

Automatic-download packaging — 25 November 2026

  • Compared the public repository inventory with all current runtime model paths. The four weight files are present; SigLIP2 (437 tensors), Qwen (320 tensors), and the connector (6 tensors) share the recognizer checkpoint.
  • A clean standalone CPU build downloaded every required asset directly from D-OCR/D-OCR-preview at revision 4b557b4626bdfb39db3d7a0aed120a853092c0db. All downloaded sizes and SHA-256 checks passed. Runtime extraction, dependency installation, pip check, and assembly of the CPU image layers passed.
  • Docker's final image unpack failed because the host Docker storage disk ran out of space. The new image was removed and only this build's cache was cleaned up. End-to-end execution of the new automatic-download image is not validated. The earlier CPU/runtime checks above do not replace that missing check.
  • Both new Compose configurations validate. Five downloader tests pass, covering complete assets, checksum failure, cache reuse/repair, missing components and unsafe manifest paths. Independent packaging review found no blocking defect.
  • The full source test suite completed with 166 passed, 2 failed. Failures: test_new_data.py::test_tfrecord_crc_and_bytes_features (missing google_crc32c) and test_siglip_qwen_cpu.py::test_cpu_int8_preserves_original_and_runs_hybrid_decoder (the local GPU environment invokes Triton on CPU tensors). Neither code path was changed; the released CPU service uses FP32, not experimental INT8.
  • The new GPU Docker recipe and Compose are supplied, but GPU image build and execution remain unvalidated. This host has no NVIDIA Container Toolkit.