I built a small OCR worker for the AMD/LabLab challenge using Qwen2.5-VL-7B-Instruct on ROCm. It loads the model once and serves separate CLI calls through a Unix socket. The CLI validates PNG, JPEG and TIFF input and writes a JSON text result.
In a source-code pilot on an AMD Radeon Pro W7900D, all ten published examples matched the expected text after the challenge’s allowed normalization. Fifteen software-contract tests also passed. These results do not establish accuracy on unseen images or GPU execution of the final container image.
The key implementation decision was to report readiness only after model loading and to prevent a second worker from loading another model copy. I would value feedback on how to evaluate startup, request latency and backpressure separately for a persistent OCR worker.
Two practical checks for a persistent ROCm worker:
- Test the CLI contract separately from model quality. I use a fake model for checks such as JSON output, concurrent clients, duplicate-worker prevention and shutdown.
- Measure model loading, the first request and later requests separately. A run with downloaded weights does not measure a full container cold start.
How do you handle backpressure when clients arrive during serialized inference?
One RAG lesson from my AMD/LabLab prototype: check the supporting text before returning an answer.
I verify that citation paths match the evidence keys, that each supporting quote exists in the retrieved text, and that the answer value appears in a quote. If a check fails, I return an empty answer with confidence 0.
These checks confirm text support; they do not prove semantic correctness or repair OCR errors.
How do you test citation chains across multiple files?