Skip to content

Add locale to target_lang_name in wmt24pp prepare.py - #1980

Merged
bxyu-nvidia merged 1 commit into
NVIDIA-NeMo:mainfrom
thompsonb:wmt24pp_add_locale
Jul 16, 2026
Merged

Add locale to target_lang_name in wmt24pp prepare.py#1980
bxyu-nvidia merged 1 commit into
NVIDIA-NeMo:mainfrom
thompsonb:wmt24pp_add_locale

Conversation

@thompsonb

Copy link
Copy Markdown
Contributor

Adds locale to target_lang_name in wmt24pp prepare.py, consistent with current nemo-skills implementation (https://github.com/NVIDIA-NeMo/Skills/blob/7b3fb04e131b3a31ec00d28b65ff7eea776b5249/nemo_skills/dataset/wmt24pp/prepare.py#L33). Also fixes issue of non-default languages crashing because they were not in _LANG_DISPLAY_NAMES. Added checks that user supplied languages are actually in wmt24pp. Languages codes and names are hardcoded to avoid network calls and dependence on additional packages - this should be fine as wmt24pp will not change languages.

… current nemo-skills implementation. Verify user input lang codes.

Signed-off-by: Brian Thompson <3534106+thompsonb@users.noreply.github.com>
@thompsonb
thompsonb requested a review from gwarmstrong July 10, 2026 00:28
@copy-pr-bot

copy-pr-bot Bot commented Jul 10, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@bxyu-nvidia
bxyu-nvidia merged commit 6d6f6bf into NVIDIA-NeMo:main Jul 16, 2026
10 checks passed
OlegSudakov pushed a commit to OlegSudakov/Gym that referenced this pull request Aug 7, 2026
Adds locale to target_lang_name in wmt24pp prepare.py, consistent with
current nemo-skills implementation
(https://github.com/NVIDIA-NeMo/Skills/blob/7b3fb04e131b3a31ec00d28b65ff7eea776b5249/nemo_skills/dataset/wmt24pp/prepare.py#L33).
Also fixes issue of non-default languages crashing because they were not
in _LANG_DISPLAY_NAMES. Added checks that user supplied languages are
actually in wmt24pp. Languages codes and names are hardcoded to avoid
network calls and dependence on additional packages - this should be
fine as wmt24pp will not change languages.

Signed-off-by: Brian Thompson <3534106+thompsonb@users.noreply.github.com>
Co-authored-by: Brian Thompson <3534106+thompsonb@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants