Docs: add an easy-to-find, end-to-end embedding (bi-encoder) training tutorial
Problem
Embedding/retrieval training is well-supported in code, but its docs are thinner and harder to find than the LLM/VLM paths. tutorials/ has only llama-peft and nemotron-parse — no embedding entry — so a new user won't discover it. The material that exists is scattered (docs/model-coverage/embedding/index.md, docs/guides/llm/retrieval-dataset.md, examples/retrieval/bi_encoder/), and the closest walkthrough (.../llama_embed_nemotron_8b/README.md) is a full-8B reproduction recipe, not a learning tutorial.
Ask
Add one discoverable, end-to-end embedding tutorial — under tutorials/ and linked from the embedding docs index — that:
- starts on a small model/dataset (
bi_encoder/llama3_2_1b.yaml) runnable in minutes on 1–2 GPUs; - explains the concepts, not just commands: bi- vs cross-encoder, the contrastive objective (in-batch + hard negatives), bidirectional conversion (
NeMoAutoModelBiEncoder) vs HF fallback, pooling; - shows the dataset format hands-on (query/(positive, negatives)) + hard-negative mining (
data_utils/mine_hard_negatives.py); - shows expected output (loss + a quick retrieval/eval check) and how to use the embeddings.
Acceptance
A new user goes from zero to a working embedding model via one page, reachable from tutorials/ and the embedding docs.
Pointers
examples/retrieval/bi_encoder/, examples/retrieval/data_utils/, docs/model-coverage/embedding/index.md, docs/guides/llm/retrieval-dataset.md, nemo_automodel/recipes/retrieval/.
Hey @HuiyingLi, put together an end-to-end tutorial notebook and reference config for TrainBiEncoderRecipe in #4154 covering the concepts, dataset format, training config, and similarity evaluation.