RU

Interactive ML and LLM Textbook

An interactive textbook for interview preparation: from linear regression and statistics to transformers, RAG and AI agents. Every topic is a plain-language explanation, an interactive visualization, interview questions and a mini-quiz.

The English version is in progress: the interview questions are fully translated, and topics are being translated one by one. Untranslated topics link to the Russian original.

Machine Learning Fundamentals · interview questions

The foundation: how a model learns from data, linear and logistic regression, gradient descent, overfitting and regularization, metrics, trees and ensembles, clustering and dimensionality reduction.

Statistics for ML

The statistics you need to compare models honestly: samples and the central limit theorem, standard error, confidence intervals with a calculator, p-values and hypothesis testing.

Neural Networks · interview questions

Neural networks from a single neuron to convolutional and recurrent architectures: activation functions, backpropagation, optimizers, batches, dropout and batchnorm.

Language Models: From N-grams to the Transformer · interview questions

How models work with text: n-grams, tokenization and BPE, embeddings and word2vec, the attention mechanism, the transformer architecture and modern building blocks RoPE, GQA and MoE.

LLMs: Training and Inference · interview questions

The life cycle of a large language model: pretraining and scaling laws, fine-tuning and LoRA, RLHF and DPO, reasoning models, sampling, inference, distillation, evaluation and working with context.

Multimodal Models · interview questions

Models beyond text: how LLMs see images and hear speech, omni models, OCR, and image and video generation from VAEs and GANs to diffusion models.

Hardware and Deployment

Hardware and deployment: GPUs and VRAM estimates, distributed training with DP, TP, PP and ZeRO, choosing between local models, the cloud and APIs.

Agents and Tools · interview questions

AI agents in practice: tool calling, the agent loop and stopping criteria, memory and planning, multi-agent systems, the MCP protocol and agent evaluation.

RAG: Retrieval + Generation · interview questions

RAG from idea to production: vector search and ANN indexes, vector databases, chunking, hybrid search and reranking, MMR, training embedding models and quality evaluation.

Production and Quality · interview questions

ML in production: ML system design in interviews, recommender systems and ranking, monitoring and drift, A/B tests, safety and guardrails.