Cutting AI diagram costs to zero (Autonise intern work)
Ask an LLM to draw an SVG and the geometry falls apart. It has no sense of space or coordinates. Doing it through commercial APIs costs ₹10 to ₹30 a diagram.
The model writes code, not pictures. A small Matplotlib DSL for diagrams, SMILES for molecules, rendered by local compilers. DocLayout-YOLO finds regions in exam papers. I moved inference to a self-hosted Qwen 35B.
- Broken geometry gone. The compiler can't emit what it can't place
- Per-diagram cost down to ₹0 on our own GPUs
- Diagram detector scores 96.7% on the test set
- AI judges contradicted themselves, A beats B beats C beats A. That is why round-robin won