nemo_automodel.components.datasets.llm.retrieval_distill_collator
nemo_automodel.components.datasets.llm.retrieval_distill_collator
Module Contents
Classes
Functions
API
Collator for bi-encoder distillation with explicit positive/negative splits.
_teacher_cache
teacher_cache
Lazy memory-mapped teacher embedding cache.
This reads the cache format produced by
ministral3_distillation/scripts/precompute_teacher_embeddings.py:
queries.npy, docs.npy, index.json, and manifest.json.
Lookups are keyed by raw query/document text content hashes.
_docs
_queries
dim
doc_hashes
dtype
manifest
num_docs
num_queries
query_hashes
SHA-256 digest compatible with ministral3_distillation teacher caches.