site + contract
Documentation, evaluation JSON, 4 MB request guard, typed validation, authentication forwarding, and a 25 second upstream timeout.
A deployment pattern faithful to the verified public model: Vercel owns the contract and control plane; a separate CUDA service owns inference.
OCR and layout metadata are optional caller context, not claimed internal model stages. This describes the public API and deployment boundary—not undisclosed model internals.
The frontend stays fast and globally available without pretending a serverless function is a GPU runtime.
Documentation, evaluation JSON, 4 MB request guard, typed validation, authentication forwarding, and a 25 second upstream timeout.
LAYA_VISION_BACKEND_URL and an optional bearer token connect the two planes. Without them, the gateway returns a truthful 503.
A containerized Python service loads the pinned checkpoint, groups questions by image, and returns the documented typed result schema.
On the verified RTX 3090 run, a single question took 112.9 ms median. Eighteen questions sharing an image took 154.7 ms median, delivering 112.9 questions per second.
| Path | Questions | Median latency | Effective throughput |
|---|---|---|---|
| Single call | 1 | 112.9 ms | — |
| Shared-prefix group | 18 | 154.7 ms | 112.9 q/s |