InterviewStack.io LogoInterviewStack.io

NLP system deployment and efficiency Questions

Discuss deploying language models in production: batch vs. online serving, latency budgets, memory requirements, quantization and distillation for efficiency. Understand inference optimization for large models. Discuss monitoring and handling model degradation.

HardSystem Design
35 practiced
Design an architecture for on-device personalization of a language model under privacy constraints (no raw text leaves device). Consider approaches: local fine-tuning, adapters/LoRA updates, federated learning, encrypted aggregation, and how to merge per-device updates into global models. Discuss inference-time merging (e.g., posterior averaging, adapters) and safeguards against data poisoning.
HardSystem Design
33 practiced
Design a CI/CD pipeline for ML model deployments that ensures reproducibility, artifact provenance, schema checks, automated performance/regression tests, canary rollouts, and automatic rollback. Include tools you'd use for artifact storage (weights, tokenizer, config), data validation, test datasets, and how you'd gate promotion to production.
EasyTechnical
37 practiced
Explain the difference between data drift and concept drift in the context of an NLP classifier deployed in production. Give two concrete examples of each for an intent classifier and propose statistical tests or detectors you could implement to detect these drifts online.
HardTechnical
39 practiced
Compare gRPC, HTTP/REST (JSON), and a custom binary protocol for high-throughput, low-latency model inference. Discuss serialization cost, streaming/token-by-token responses, connection overhead, load balancing, and how protocol choice affects client SDK design. If designing a new protocol, outline the key features and why they're necessary.
EasyTechnical
32 practiced
An online Q&A API shows high latency for repeated identical queries. Describe a practical caching strategy to reduce latency and GPU compute for this scenario. Specify: cache key design, where to place the cache (edge, application, model-server), TTL and stale-while-revalidate policies, invalidation rules when underlying models update, and how to handle cache consistency across multiple regions.

Unlock Full Question Bank

Get access to hundreds of NLP system deployment and efficiency interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.