Skip to content
RED SAG Skills

Hard Machine Learning Engineer questions

165 questions · 20 points each for a correct first answer.

  1. 1.Great offline, bad in productionhard
  2. 2.Why fp16 needs loss scaling but bf16 usually does nothard
  3. 3.Model does not fit in GPU memoryhard
  4. 4.ROC-AUC after calibrationhard
  5. 5.Better offline metric, worse A/B testhard
  6. 6.L2 penalty versus AdamWhard
  7. 7.A feature that is too goodhard
  8. 8.Tuning an HNSW vector indexhard
  9. 9.KV cache size for one sequencehard
  10. 10.Parameters in a multi-head attention blockhard
  11. 11.view() after a transposehard
  12. 12.Fine-tuning a CNN with batch size 2hard
  13. 13.Why Adam divides by 1 - beta^thard
  14. 14.What ZeRO stage 3 shardshard
  15. 15.Activation checkpointing trade-offhard
  16. 16.Why RoPE encodes relative positionhard
  17. 17.What FlashAttention changeshard
  18. 18.Speculative decoding and output qualityhard
  19. 19.Why serving engines page the KV cachehard
  20. 20.INT8 activations hurt accuracyhard
  21. 21.Why scale distillation loss by T squaredhard
  22. 22.How DPO differs from PPO-based RLHFhard
  23. 23.Fine-tuned model forgets general skillshard
  24. 24.Filtered vector search returns too fewhard
  25. 25.Inputs stable but accuracy fallshard
  26. 26.Retraining on your own recommendationshard
  27. 27.Random ID tops feature importancehard
  28. 28.SMOTE applied before cross-validationhard
  29. 29.LLM judge prefers the first answerhard
  30. 30.Instructions hidden in a retrieved pagehard
  31. 31.Daily cost of an LLM featurehard
  32. 32.Negative R-squared on test datahard
  33. 33.Layers in a plain Python listhard
  34. 34.Momentum update by handhard
  35. 35.Scaling inside dropouthard
  36. 36.Gradient shrink through ten sigmoidshard
  37. 37.Initialising a tanh networkhard
  38. 38.Target after label smoothinghard
  39. 39.Keys prefixed with module.hard
  40. 40.Error from an in-place operationhard
  41. 41.Why .grad is None for an intermediatehard
  42. 42.Calling backward twicehard
  43. 43.Parameters in a depthwise separable convhard
  44. 44.An augmentation that changes the labelhard
  45. 45.Padding in a batch of sentenceshard
  46. 46.Downside of teacher forcinghard
  47. 47.Pre-norm transformer blockshard
  48. 48.Sharing embedding and output weightshard
  49. 49.The reparameterisation trickhard
  50. 50.A GAN that draws one facehard
  51. 51.What a diffusion model learnshard
  52. 52.Pruning that actually runs fasterhard
  53. 53.Reach of sliding-window attentionhard
  54. 54.Area covered by a dilated kernelhard
  55. 55.Why detectors use focal losshard
  56. 56.Attention to padding tokenshard
  57. 57.Triplet loss for one examplehard
  58. 58.Gradient of softmax cross-entropyhard
  59. 59.Gradient of a linear layer's weightshard
  60. 60.BatchNorm on three valueshard
  61. 61.Long-run step size with momentumhard
  62. 62.Adam and a scaled-up losshard
  63. 63.Memory for fp32 Adam traininghard
  64. 64.Very large batches hurt test accuracyhard
  65. 65.Validation loss and accuracy both risehard
  66. 66.Test error falls again with more parametershard
  67. 67.Where gradient descent gets slowhard
  68. 68.Fitting completely random labelshard
  69. 69.Gradient accumulation with BatchNormhard
  70. 70.Backpropagating through a gradienthard
  71. 71.Writing a custom autograd Functionhard
  72. 72.Parameters often excluded from weight decayhard
  73. 73.Compute to train a 1B-parameter modelhard
  74. 74.MSE loss that never improveshard
  75. 75.Idle time in pipeline parallelismhard
  76. 76.Multi-GPU job that hangs foreverhard
  77. 77.Base weights for 13B in 4-bithard
  78. 78.Adam state for a LoRA adapterhard
  79. 79.Merging a QLoRA adapterhard
  80. 80.Rank 256 on 800 exampleshard
  81. 81.What DoRA changeshard
  82. 82.Why rank-stabilised LoRA existshard
  83. 83.Counting optimizer stepshard
  84. 84.Loss on multi-turn chatshard
  85. 85.NaN loss in fp16 fine-tuninghard
  86. 86.Loss jumps then output is gibberishhard
  87. 87.One base, several taskshard
  88. 88.Checkpointing with frozen inputshard
  89. 89.Training loss of 0.02hard
  90. 90.Weight decay on LoRAhard
  91. 91.Averaging loss with accumulationhard
  92. 92.DPO loss for one pairhard
  93. 93.Chosen likelihood falls during DPOhard
  94. 94.Policy writes nonsense that scores wellhard
  95. 95.Teacher and student tokenizers differhard
  96. 96.Softmax at T = 2hard
  97. 97.Off-policy preference datahard
  98. 98.Advantages in a GRPO grouphard
  99. 99.Distilling step-by-step reasoninghard
  100. 100.Safety after a small fine-tunehard
  101. 101.Process and outcome reward modelshard
  102. 102.Less varied answers after RLHFhard
  103. 103.Running DPO in roundshard
  104. 104.DPO directly on a base modelhard
  105. 105.Pairs where both answers are equalhard
  106. 106.Reward model held-out accuracyhard
  107. 107.Merging two fine-tunes of one basehard
  108. 108.Why TIES merging trims and elects signshard
  109. 109.Averaging several fine-tuned runshard
  110. 110.Memory for full-vocabulary logitshard
  111. 111.Fine-tuning with differential privacyhard
  112. 112.Better perplexity, worse task scorehard
  113. 113.Works only with one exact wordinghard
  114. 114.Rank sweep resultshard
  115. 115.Balancing a multilingual data mixhard
  116. 116.Finding mislabelled rowshard
  117. 117.Accuracy loss at 4-bit for servinghard
  118. 118.Model repeats a customer recordhard
  119. 119.Exponential moving average of weightshard
  120. 120.Extending context during fine-tuninghard
  121. 121.Splitting chat logs for evaluationhard
  122. 122.Fine-tuned small model versus APIhard
  123. 123.Offline win, online questionhard
  124. 124.LoRA on a mixture-of-experts modelhard
  125. 125.Why least squares is maximum likelihoodhard
  126. 126.Spam probability from one wordhard
  127. 127.kNN with 2,000 featureshard
  128. 128.Information gain by handhard
  129. 129.Overfitting in leaf-wise treeshard
  130. 130.RBF kernel with a huge gammahard
  131. 131.Margin width of a linear SVMhard
  132. 132.One long straggly clusterhard
  133. 133.Reading a t-SNE plothard
  134. 134.Both errors high and close togetherhard
  135. 135.How Isolation Forest scores anomalieshard
  136. 136.New user in collaborative filteringhard
  137. 137.Weight given by class_weight balancedhard
  138. 138.Coefficient on a log-price modelhard
  139. 139.Promising a delivery time to customershard
  140. 140.Training a stacking meta-modelhard
  141. 141.Forest forecast that goes flathard
  142. 142.How CatBoost encodes categorieshard
  143. 143.A rolling mean that peeks aheadhard
  144. 144.Adding up SHAP valueshard
  145. 145.Dropping gender is not enoughhard
  146. 146.Training a search ranking modelhard
  147. 147.Kernel SVM on ten million rowshard
  148. 148.When nested cross-validation is neededhard
  149. 149.Macro F1 with a weak minority classhard
  150. 150.A metric using all four cellshard
  151. 151.Agreement beyond chancehard
  152. 152.Expected calibration error by handhard
  153. 153.Calibrating with only 300 rowshard
  154. 154.Choosing features before cross-validatinghard
  155. 155.A gap between train and test windowshard
  156. 156.Comparing two models on one test sethard
  157. 157.Is a 1-point gain real?hard
  158. 158.Threshold from error costshard
  159. 159.Quantile loss of one forecasthard
  160. 160.Only approved loans have outcomeshard
  161. 161.What the KS statistic measureshard
  162. 162.Fraud labels that arrive latehard
  163. 163.Twenty metrics, one significanthard
  164. 164.Which metric is stable when base rate shiftshard
  165. 165.Average prediction versus observed ratehard