sagelearnai

Transformers Architecture: Scenarios

Questions covered

  1. You need to classify long legal documents (20k tokens) with a model whose context is 4k. Options?
  2. Inference with your Transformer is too slow for real-time use. What can you do?
  3. Your fine-tuned BERT model performs worse than TF-IDF + logistic regression on a small dataset. Why might that be?
  4. You see attention weights concentrating heavily on the first token in many heads. Is that a bug?
  5. How would you adapt a pre-trained English Transformer to a low-resource language?

This lesson is part of AI & ML Interview Prep. Unlock the full course to read it, take the quiz and track your progress.

See plans →

Last reviewed 2026-11-05.