/Learn
AIEngine

Everything, in one place.

One curriculum for the principal engineer loop with AI: 13 phases that pull together the posts, interview rounds, deep dives, reels and revision cards. Follow the phases in order or pick a path.

0/140lessons opened
0/11rounds practised
0/154critical Q&A answered
42glossary terms

Learning paths

each step says why it comes next

Crack AI interviews

Four connected paths: AI interview hacks, every new round, a study plan with a final stretch with AI off, and a mock interviewer you build yourself. Plus critical basics to memorise.

React Native too: every React Native page in one place.

Mobile principal in two weeks

Follow Priya's edit from a tap in a basement to her supervisor's tablet, and build each part as you meet it. Each day changes one constraint. You will notice how much you already know.

  1. 1 Basement
  2. 2 Save
  3. 3 Wake-up
  4. 4 Sync run
  5. 5 Collision
  6. 6 Server
  7. 7 Big files
  8. 8 Mock one
  9. 9 Screen
  10. 10 Chat
  11. 11 Payments
  12. 12 Feed
  13. 13 Platform
  14. 14 The loop
Open the programme →

Curriculum

Phase 00 · 0/2FoundationsWhat the OS does to your app and why offline-first is the answer.Not started
Phase 01 · 0/5Local data and the sync protocolSQLite, the outbox, cursors, idempotency and conflicts.Not started
Phase 02 · 0/6Files and background executionResumable transfers and what Android and iOS allow in the background.Not started
Phase 03 · 0/3Front end and React NativeUI architecture, sync-aware screens and the native split.Not started
Phase 04 · 0/4Backend at scaleChange logs, CDC, snapshots, fan-out and protecting the API.Not started
Phase 05 · 0/6Mobile system design roundsSix full rounds: offline, chat, feed, payments, booking, release.Not started
Phase 06 · 0/5AI foundationsLLM internals, inference acceleration, embeddings, adaptation.Not started
Phase 07 · 0/8AI systemsAgents and MCP, integration, team acceleration, and five AI rounds.Not started
Phase 08 · 0/4Interview masteryHow panels score, decision stories, rapid revision.Not started
Phase 09 · 0/29Coding roundFifteen patterns, 45 worked problems, mobile machine coding in Kotlin, and the hacks that save minutes.Not started
Phase 10 · 0/3Behavioral roundProblem-solving questions answered in STAR form, with probes and red flags.Not started
Phase 11 · 0/14Protocol ExplorerFourteen protocols decoded packet by packet: DHCP to SSH.Not started
Phase 12 · 0/51AI systems in depthServing, retrieval, fine-tuning, evals, safety and GPU infrastructure, whole to parts.Not started
Deep diveAll AI systems modules48 modulesDeep divevLLM High-Throughput Engine Architecture35 minDeep diveBlock-Allocated PagedAttention Triton Kernel45 minDeep diveContinuous Batching & Iteration-Level Scheduling15 minDeep diveTensor Parallelism & Ring-AllReduce Communication12 minDeep diveSpeculative Decoding Target-Draft Pair Verifier15 minDeep divevLLM Automatic Prefix Caching Architecture10 minDeep diveFused Flash-Softmax Triton Kernel35 minDeep diveHierarchical Navigable Small World (HNSW) Graphs30 minDeep diveReciprocal Rank Fusion (RRF) Hybrid Search10 minDeep diveParent-Child Hierarchical Context Retrieval14 minDeep diveEntity-Relation Graph Mining & GraphRAG Pipeline40 minDeep diveRedis Vector Semantic Response Caching35 minDeep diveInverted Indexing & BM25 Scoring Engine10 minDeep diveBGE-Reranker Multi-Stage Retrieval Pipeline10 minDeep diveSelective Context Window Token Compression10 minDeep diveLow-Rank Adaptation (LoRA) Weight Decomposition30 minDeep divePyTorch LoRA Linear Layer Implementation35 minDeep diveQLoRA NormalFloat4 & Double Quantization15 minDeep diveDirect Preference Optimization (DPO) Loss Function15 minDeep diveDeepSpeed ZeRO-3 Memory Partitioning35 minDeep divePyTorch Fully Sharded Data Parallel (FSDP)35 minDeep diveMerging LoRA Adapters into Base Model Weights10 minDeep diveUnsloth Gradient Calculation Acceleration10 minDeep diveLLM-as-a-Judge Evaluation & Calibration Architecture25 minDeep diveLlama-Guard Jailbreak & Safety Classifier30 minDeep diveFaithfulness, Answer Relevance & Context Recall Metrics12 minDeep diveGuardrails AI Structured Pydantic Output Validation35 minDeep diveEvaluating Multimodal LLMs on Visual Reasoning35 minDeep diveAutomated Adversarial Red-Teaming Suites35 minDeep diveSLURM GPU Cluster Job Scheduling & Failure Recovery15 minDeep diveAsync Zero-Redundancy Optimizer Checkpointing40 minDeep diveTriton Compiler JIT Codegen Pipeline10 minDeep diveNCCL Inter-Node Transport Protocols & Infiniband10 minDeep diveRay Serve Distributed Actor Deployment35 minDeep divePrompt Patterns: Chain of Thought, Few-Shot, Structured Output12 minDeep diveCLIP and ViT Multimodal Embeddings12 minDeep diveApp Startup: Cold Start From Tap to First Frame15 minDeep diveMobile Observability: Crashes, ANRs, Traces and Rollout Gates15 minDeep diveMobile Security: Tokens, Keystore, Pinning and Tampering15 minDeep diveLive Location Tracking for a Driver App45 minDeep divePush Notification Platform at Scale45 minDeep diveFeature Flag and Experimentation SDK40 minDeep diveReact Native New Architecture: JSI, Fabric, TurboModules and Threads15 minDeep diveReact Native State: Server Cache, Client Store and Render Storms15 minDeep diveModular React Native for Many Apps: The Modularity Ladder15 minDeep diveMemory Leaks in React Native: Three Heaps, One Staircase15 minDeep diveOffline Sync in React Native: What to Persist and Where20 minDeep diveThe 95/5 Rule and Performance Budgets in CI15 minReelsAI systemscourseReelsAI systems quick hitscourse

Glossary

42 terms
Outbox
Table of pending local writes, committed in the same transaction as the data, drained by the sync engine.
Idempotency key
A client-generated ID (op_id) that makes a retried request safe because the server applies it once.
Cursor
The last server sequence number a client has seen; pulls ask for changes after it.
Tombstone
A marker row that records a deletion so other devices can delete too.
410 Gone rebuild
Server answer when a cursor is older than the retained log, telling the client to reload from a snapshot.
WAL
Write-ahead log mode in SQLite: readers do not block the single writer.
Keyset paging
Paging by the last seen key instead of OFFSET, so every page costs the same.
FTS5
SQLite full-text search extension using an inverted index.
HLC
Hybrid logical clock: wall time plus counter that never goes backwards and tracks real time.
CRDT
Data type whose replicas always converge, whatever order updates arrive in.
Optimistic concurrency
Send the version you edited from; the server rejects with 409 if it is stale.
Multipart upload
Splitting a file into independently uploaded and retriable parts, assembled by the store.
Presigned URL
A time-limited URL that lets a client talk to object storage directly.
Range request
HTTP request for part of a file; the basis of resumable downloads.
WorkManager
Android library for deferrable, guaranteed background work.
BGTaskScheduler
iOS framework that runs background tasks at times the system chooses.
Background URLSession
iOS transfer session performed by a system daemon and surviving app termination.
Turbo Module
React Native native module using JSI with a typed spec.
KMP
Kotlin Multiplatform: share Kotlin logic between Android and iOS.
CDC
Change data capture: streaming committed database changes from the log into a queue.
Thundering herd
Many clients retrying at once after an outage; answered with jitter and Retry-After.
KV cache
Stored attention keys and values per token during generation; it limits concurrent requests per GPU.
Continuous batching
Serving technique that adds and removes requests from a running batch every step.
PagedAttention
Managing the KV cache in blocks to cut memory waste.
Quantisation
Storing weights or activations at lower precision to save memory and speed up inference.
Embedding
A vector representing meaning so similar items are close together.
RAG
Retrieval-augmented generation: fetch relevant documents and give them to the model.
Reranker
A model that reads query and candidate together to order results precisely.
LoRA
Fine-tuning by training small adapter matrices instead of all weights.
MCP
Model Context Protocol: a standard for exposing tools and data to AI applications.
Prompt injection
Instructions hidden in content that try to steer a model into unintended actions.
HNSW
Layered small-world graphs that answer nearest-neighbour queries in milliseconds.
BM25
Keyword ranking that rewards rare terms, saturates repeats and discounts long documents.
RRF
Reciprocal rank fusion: merges rankings using positions, not scores.
NF4
4-bit format whose levels follow a normal distribution, used by QLoRA.
DPO
Direct preference optimisation: trains on preference pairs with no reward model.
ZeRO
DeepSpeed's sharding of optimiser state, gradients and weights across GPUs.
FSDP
PyTorch's native sharded training, wrapped per transformer block.
Triton
Python-embedded language and JIT compiler for GPU kernels.
NCCL
NVIDIA's library for moving tensors between GPUs and servers.
GQA
Grouped-query attention: many query heads share fewer key-value heads, shrinking the KV cache.
Eval gate
An automated quality check that a prompt or model change must pass before release.

How each lesson works

the loop
Read

The problem, the analogy and the mechanism, in plain words.

Draw

Diagrams for architecture and flow that you can redraw from memory.

Answer

Practice mode: write your answer, then compare with the model one.

Revise

Critical incident questions and flashcards, tracked in this browser.

AI Engineer · AIEngine