Eval Init YAML Reference#
The tokenizer_extension/eval_init step ships src/nemotron/steps/tokenizer_extension/eval_init/config/default.yaml as its starter configuration.
This page lists the keys you can override with nemotron steps run tokenizer_extension/eval_init key=value dotlists, with the full file inlined below.
The step translates these keys into arguments for bpb.py.
Default Configuration File#
# BPB / perplexity eval of extended checkpoints vs the base model.
# BPB (bits-per-byte) is the cross-vocabulary-comparable metric.
# Nemotron-H and similar architectures ship their modeling code in the model
# repo, so loading them executes that code. Off by default; set true only for
# repos you trust, ideally with a pinned revision.
trust_remote_code: true
base_model: nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-Base-BF16
models:
- ./output/resized_checkpoint
# Local validation corpus (.jsonl with `text_field`, or .txt one doc per line).
data_file: ./data/eval/target_val.jsonl
text_field: text
# max_docs caps the document stream and is tokenizer-independent: use it (or
# -1 = whole corpus) when comparing BPB across tokenizers. A max_tokens budget
# stops each tokenizer after a different amount of text and is NOT comparable.
max_docs: -1
max_tokens: -1
max_length: 2048
stride: 512
dtype: bfloat16
output_json: ./output/eval/bpb_add_subword.json
Keys Grouped by Concern#
Models#
Key |
Default |
Description |
|---|---|---|
|
|
One or more checkpoint paths to score. Required; the |
|
|
Unextended reference model, scored first. The report includes the delta of each model against it. |
|
|
Passed when loading models. The step default is |
|
|
Weight dtype. |
|
unset |
Optional device override. |
Corpus#
Set either data_file or corpus.hf_dataset; the step raises when neither is set.
Key |
Default |
Description |
|---|---|---|
|
|
Local JSON Lines file with |
|
|
Text column for JSON Lines input. |
|
unset |
Streamed Hugging Face dataset, used when |
|
unset |
Dataset configuration for |
|
|
Split for |
|
|
Leading documents to skip for |
Budget and Windowing#
Key |
Default |
Description |
|---|---|---|
|
|
Document cap; |
|
|
Token cap; |
|
|
Permit scoring more than one model under |
|
|
Sliding-window length in tokens. |
|
|
Sliding-window stride in tokens. |
|
|
Report path. |