Skip to content
DeepForgeby svx
Advancedllmnlptransformersragevaluationinference

LLM Engineering

45 problems·~12h·5 stages

Build and operate language models end to end: tokenization, embeddings, transformer internals, decoding and serving, then retrieval-augmented generation and evaluation. Every stage is implemented in pure Python, from byte-level BPE counts to KV-cache sizing and nDCG. Take it after Deep Learning Essentials and NLP Starter.

Your progress

0/45 · 0%

Path readiness 0%Easy 0% · Medium 0% · Hard 0%

Continue path · Byte-Level BPE Token Count

What you will learn

  • Tokenize and measure text with BPE, fertility, and vocabulary budgets
  • Train and inspect embeddings, including negative sampling and pooling
  • Build transformer internals: attention, norms, and gated activations
  • Serve models with KV caches and decode with modern sampling strategies
  • Evaluate RAG pipelines with retrieval and ranking metrics

1Tokenization and Vocabulary

0/9

Everything starts at the tokenizer: byte-level BPE token counts, pair frequencies, vocabulary growth and merge savings, WordPiece pieces, tokenizer fertility, characters per token, vocabulary coverage, special-token budgets, and chunk lengths.

Stage checkpoint

0/2 to pass

A checkpoint is a short retrieval test drawn from this stage: solve 2 of 3 from memory to mark the stage complete. The stage stays open either way.

Tried this set and did not pass? Record it — the next set swaps in fresh problems from the same stage.
LabRecommended next stepSpam FilterMedium

2Embeddings and Representations

0/8

Tokens become vectors: skip-gram context pairs, CBOW averaging, negative-sampling probabilities, word2vec analogies, top-k cosine ranking, sentence mean pooling, whitening transforms, and rotary position application.

Stage checkpoint

0/2 to pass

A checkpoint is a short retrieval test drawn from this stage: solve 2 of 3 from memory to mark the stage complete. The stage stays open either way.

Tried this set and did not pass? Record it — the next set swaps in fresh problems from the same stage.
LabRecommended next stepSpam FilterMedium

3Transformer Internals

0/9

Inside the block: scaled attention scores, softmax weights, attention scaling factors, entropy and row sums, temperature, cross-attention, RMSNorm, and SwiGLU gating.

Stage checkpoint

0/2 to pass

A checkpoint is a short retrieval test drawn from this stage: solve 2 of 3 from memory to mark the stage complete. The stage stays open either way.

Tried this set and did not pass? Record it — the next set swaps in fresh problems from the same stage.
LabRecommended next stepSpam FilterMedium

4Decoding and Serving

0/9

Generate and serve: greedy decoding, two-step beam search, top-p and top-k filtering, temperature-adjusted entropy, repetition penalties, KV-cache appends and sizing, and continuous batching rounds.

Stage checkpoint

0/2 to pass

A checkpoint is a short retrieval test drawn from this stage: solve 2 of 3 from memory to mark the stage complete. The stage stays open either way.

Tried this set and did not pass? Record it — the next set swaps in fresh problems from the same stage.
LabRecommended next stepSpam FilterMedium

5RAG, Evaluation, and Alignment

0/10

Retrieve, rank, and judge: RAG top-k retrieval, dense passage scores, hybrid score fusion, reciprocal rank fusion, precision and recall at k, MRR, nDCG, expected calibration error, and DPO loss.

Stage checkpoint

0/2 to pass

A checkpoint is a short retrieval test drawn from this stage: solve 2 of 3 from memory to mark the stage complete. The stage stays open either way.

Tried this set and did not pass? Record it — the next set swaps in fresh problems from the same stage.
LabRecommended next stepSpam FilterMedium

Capstone

Collection

Close the path with one real artifact from the catalog.

Modern LLM Pipeline

Tokenization through sampling as one end-to-end pass over the stack.