How do you balance the trade-offs between model accuracy and inference speed when deploying algorithms to mobile devices or web browsers?