How do you design for latency vs quality trade-offs in AI systems?

Technical