Xai Machine Learning Engineer Interview Questions
Practice the exact questions companies are asking right now.
Identify all bad nodes with group tests
You have N nodes. Each node is either good or bad (unknown to you). You can call a function test(S) on a subset of nodes S: - test(S) = True iff all n...
Implement dynamic batching for token decoding
You are given a black-box “simulated language model” interface that can advance many sequences in a batch. Model interface - Tokens are integers. - mo...
Design O(1) random-sampling set
Design a data structure that supports insert(x), remove(x), and get_random() that returns a uniformly random element among the present items, all in e...
Implement a trie-based tokenizer
Design and Implement a Trie-Based Subword Tokenizer for LLM Pretraining Context You are building a subword tokenizer for a large-scale LLM pretraining...
Validate normalized palindromes with variants
Implement a function isNormalizedPalindrome(s) that returns true if s reads the same forward and backward after removing non‑alphanumeric characters a...
Describe your research and contributions
10–15 Minute Research Project Overview (Technical Screen) Context You are interviewing for a Machine Learning Engineer role. Prepare a concise, techni...
Design a house-price prediction workflow
Predicting Home Sale Prices: End-to-End ML Design Context You have historical home-sale records with features such as lot area, year built, number of ...