SpinTheMic
Pro

Interview practice question

Transformer classifier too slow for real-time chat

Machine Learning · NLP · Intermediate

Your BERT-based classifier is too slow for real-time chat moderation at peak load. How do you speed it up?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Distill into smaller model (DistilBERT-style or tiny encoder).
  • Quantize to INT8; use ONNX Runtime.
  • Shorter max sequence length for short messages.
  • Dynamic batching on GPU.
  • Cascade: cheap model first, heavier model for borderline cases.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics