Prerequisites#
Software#
A Nemotron checkout with the project environment synchronized with
uv sync; see Getting Started With Steps.The optional
tokenizer-extensionextra:$ uv pip install -e '.[tokenizer-extension]'
The extra installs three packages.
indic-nlp-librarysupplies the Devanagari normalizer; a language whose profile uses that normalizer raises anImportErrorwithout it.fasttext-wheelis required formethod: focusininit_embeddingsand is not imported by the other methods.accelerateis required byeval_init. Theeval_initstep loads each model withdevice_map='auto'when a GPU is visible. The generated Lepton, Slurm, and DGX Cloud profiles install these packages at job start-up.
Hardware#
Step |
Resources |
|---|---|
|
CPU only. The BPE trainer holds the word-count table in host memory; the corpus limits in |
|
One GPU for every method except |
|
CPU only. |
|
One GPU. The step scores each model in turn with |
Data and Model Access#
A base checkpoint that Hugging Face
transformerscan load.extendandevaluateread only the tokenizer;init_embeddingsandeval_initload the weights. The shipped defaults usenvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-BF16and its-Base-variant withtrust_remote_code: true; replace them with the checkpoint you extend.A target-language corpus, as a Hugging Face dataset or as local Parquet or JSON Lines files with a text column. The guidebook’s measurements used 10,000 to 100,000 diverse documents.
A held-out evaluation corpus in the target language that is distinct from the training corpus, for
evaluateandeval_init.Network access to Hugging Face, or pre-downloaded models and datasets in the cache for an air-gapped site; see Run Nemotron Steps in an Airgap Environment.
On Lepton, platform secrets supply
HF_TOKENandWANDB_API_KEYto the job. The job spec does not contain the token values. Create each secret once withlep secret create -n HF_TOKEN -v <token>andlep secret create -n WANDB_API_KEY -v <key>. To use secrets with other names, setNEMOTRON_HF_TOKEN_SECRETandNEMOTRON_WANDB_API_KEY_SECRETto those names.
Language Coverage#
The language value must be a registered profile.
The registered names are listed in Add a Language, which also describes how to register a new one.