Evaluate YAML Reference#
The tokenizer_extension/evaluate step ships src/nemotron/steps/tokenizer_extension/evaluate/config/default.yaml as its starter configuration.
This page lists the keys you can override with nemotron steps run tokenizer_extension/evaluate key=value dotlists, with the full file inlined below.
Default Configuration File#
# Tokenizer fertility on an eval corpus. CPU-only.
tokenizer: ./output/tokenizer_extension/replace # HF id or a local extended-tokenizer dir
label: replace-30k # free-text tag recorded in the output JSON
trust_remote_code: true
# Independent eval corpus (keep distinct from the extend training corpus).
corpus:
hf_dataset: ai4bharat/samanantar
hf_config: hi
hf_split: train
path: null # or a local parquet dir / jsonl glob
glob: "*.parquet"
text_field: tgt # samanantar Hindi text column
num_docs: 0 # 0 = full corpus
skip_docs: 0 # skip first N (avoid train overlap when eval==train source)
batch_size: 1000
output: ./output/eval/fertility_replace.json
Keys Grouped by Concern#
Tokenizer and Output#
Key |
Default |
Description |
|---|---|---|
|
|
Hugging Face identifier or local tokenizer directory to score. |
|
|
Free-text tag recorded in the output JSON. Defaults to the |
|
|
Passed to |
|
|
Documents tokenized per batch. |
|
|
Report path. |
Corpus#
Set either corpus.hf_dataset or corpus.path; the corpus_source_unset error is raised when neither is set.
Keep the evaluation corpus distinct from the corpus that trained the extension.
Key |
Default |
Description |
|---|---|---|
|
|
Dataset identifier. |
|
|
Dataset configuration. |
|
|
Split to read. |
|
|
Local Parquet directory or glob, or JSON Lines path. |
|
|
File pattern applied when |
|
|
Text column. The |
|
|
Documents to score; |
|
|
Leading documents to skip, to avoid overlap with the training slice when both share a source. |