Skip to content
tezvyn:

🤖AI & ML

Artificial intelligence, machine learning, and data science

1166 bites

Test yourself: Top 30 AI & ML interview questionsMultiple choice, with the correct answer and why it is correct on every question. Free, no sign-in.

Everything in AI & ML

intermediate2 min read

Epsilon in differential privacy and its trade-offs

Epsilon is the privacy budget bounding how much one record can change outputs; smaller epsilon means stronger privacy but more noise and lower accuracy.

intermediate2 min read

Declarative vs imperative ML platform design

Declarative GitOps gives auditable, reproducible, reviewable desired-state config with strong governance but a steeper learning curve; imperative SDKs are flexible and fast for scientists but harder to…

intermediate1 min read

Flask/Gunicorn vs Triton/TorchServe for serving

Flask is simple and flexible but lacks dynamic batching, GPU scheduling, and multi-model management; Triton/TorchServe add those plus metrics and versioning.

intermediate2 min read

Hybrid parallelism for large-model training

Split the model itself via tensor or pipeline parallelism so each replica is smaller, shrinking gradient all-reduce; combine with data parallelism in 2D/3D.

intermediate1 min read

Why design ML pipeline steps to be idempotent?

Re-running a step with the same input yields the same result and no duplicate side effects; enables safe retries and backfills.

intermediate1 min read

Concept drift vs data drift in production models

Data drift is a shift in input distribution P(X); concept drift is a shift in the relationship P(Y|X).

intermediate1 min read

What is a model registry and how does it enable CD?

A registry versions models with metadata, lineage, and stage tags; CD watches stage transitions to trigger deploys.

intermediate1 min read

What is shadow deployment for ML models?

New model receives mirrored live traffic but its predictions are logged, not served; validates real-world behavior and latency without user risk.

intermediate1 min read

Three ways to cut LLM inference cost

Quantization to shrink the model, continuous batching with paged attention to raise GPU utilization, and distillation or smaller routed models for easy queries.

intermediate1 min read

Serving for online and batch predictions

A low-latency online path (synchronous, autoscaled, real-time features) and a high-throughput batch path (parallel, cost-optimized, large jobs) sharing one model artifact and feature definitions.

advanced1 min read

Automated rollback for a failed model deploy

Detect failure via health and metric checks, automatically route traffic back to the last known-good version (blue-green or canary), keep the registry entry but unpromote, and alert.

easy1 min read

Stages of an end-to-end ML pipeline

Ingest, validate, preprocess and feature engineer, train, evaluate against a baseline, then register and package for deployment, with gates between stages.

easy1 min read

Detecting data drift on a continuous feature

Data drift is when serving feature distributions shift from training; detect with a Kolmogorov-Smirnov test comparing distributions; a small p-value signals drift to alert on.

advanced1 min read

CI/CD for microservice-based ML systems

Independent per-service pipelines, contract testing to protect interfaces and schemas, and incremental deploys (canary, blue-green); manage data and model contracts, not just code.

advanced1 min read

Fairness and robustness gates in CI/CD

Sliced fairness metrics across subgroups, robustness checks via perturbation and adversarial sets, all compared to thresholds that fail the build.

intermediate1 min read

Diagnosing poor distributed training scaling

Communication overhead (gradient all-reduce, interconnect), data-loading starvation, load imbalance, and small per-GPU batches; profile with the PyTorch profiler and Nsight.

advanced1 min read

Managing model-as-a-feature pipelines

An upstream embedding model becomes a versioned dependency, creating cascading retraining, version skew, latency stacking, and lineage complexity.

intermediate1 min read

Sub-20ms online feature serving

An in-memory key-value store (Redis) as the online feature store, precomputed features, streaming updates, and offline-online consistency.

advanced1 min read

Scalable multi-modal data quality pipeline

Staged distributed pipeline doing schema and integrity checks, modality-specific filtering, dedup, PII and toxicity removal, and metric-gated quarantine.

intermediate1 min read

Versioning a 10TB dataset as code

Treat data like code via content-addressed pointers in Git while bytes live in object storage; dedupe by hashing so versions share unchanged files.

We are hiring for this. Every open role lists the topics its interview covers, so you can prepare for the real thing rather than guessing.

See open roles