Repository navigation
feat: add El Salvador and Vietnam persona locales - #1136
Conversation
Signed-off-by: Nabin Mulepati <nmulepati@nvidia.com>
[Medium impact] The PR appears safe to merge; no actionable new issues were found. SummaryAdds El Salvador (
No actionable new issues were found. Tests were not run during this review. Reviews (3) · Last reviewed commit: "fix: preserve new persona demographic fi..." · Reviewed by Greptile |
|
Fern preview: https://nvidia-preview-pr-1136.docs.buildwithfern.com/nemo/datadesigner
|
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
No Critical or Warning findings.
I reviewed all six changed files and traced the shared locale registry through sampler validation, managed dataset loading, CLI discovery, and download construction. Both locales use the existing registry-driven paths, and existing locale entries remain unchanged.
Validation limits: I couldn't execute tests or inspect the published Parquet assets. The added engine and download tests verify loader acceptance and command construction, not the assets' schemas or live sampling behavior.
Note: formal approval is not available for this request, so this review is posted as a comment only.
Review generated by codex. This was a full review. Request a full review with /review reset=true.
3mei
left a comment
There was a problem hiding this comment.
@nabinchha The locale addition itself looks good. One suggestion on the tests:
The sampler validation, engine loader, and download registry all read from NEMOTRON_PERSONAS_DATASET_SIZES, so they don't behave differently per locale. Adding es_SV/vi_VN to the sampler, loader, and download-command tests mostly re-checks the same code path.
Could we instead:
- Keep those mechanism tests on one or two representative locales.
- Treat
test_get_by_code_all_locales(explicit code/size/dataset name) as the single inventory test where new locales get added. - Replace the hardcoded
== 13counts with a comparison against that explicit set, so future locale additions only touchconstants.pyand one test.
Not blocking, we could do this as a follow-up.
Signed-off-by: Nabin Mulepati <nmulepati@nvidia.com>
|
@3mei Thanks for the suggestion! Addressed in 8bd840b: All 89 focused tests and Ruff checks pass. |
| "en_US": "1.24 GB", | ||
| "en_IN": "2.39 GB", | ||
| "en_SG": "0.30 GB", | ||
| "es_SV": "0.74 GB", |
There was a problem hiding this comment.
Please add the new demographic fields to the sampler's field allowlist: care_access, disability_status, income_band, and languages_spoken for es_SV, and household_size for vi_VN. These fields are currently dropped from output, and using them in select_field_values raises ValueError. This differs from existing locales: India's education_degree, Japan's area, and Brazil's race are preserved and filterable, and the UK/Germany addition explicitly extended the allowlist. Please cover the new fields with output-preservation and filtering tests.
There was a problem hiding this comment.
Thanks for catching this! Fixed in 93d735b: added all four es_SV fields and vi_VN household_size to the demographic allowlist. Added regression tests using local Parquet fixtures and the real reader/sampler to verify filtering and output preservation for each field, both with and without synthetic personas. All 160 focused tests and Ruff checks pass. Sex-label normalization remains tracked separately in #1138.
| "ja_JP": "1.69 GB", | ||
| "ko_KR": "2.66 GB", | ||
| "pt_BR": "2.33 GB", | ||
| "vi_VN": "2.58 GB", |
There was a problem hiding this comment.
Please add es_SV and vi_VN to the supported-locale list and the locale parameter table in fern/versions/latest/pages/concepts/person_sampling.mdx. Both locations currently include all 11 existing locales but omit these two, so the documented accepted values will be incomplete after this addition.
There was a problem hiding this comment.
Fixed in 93d735b: both locales are now in the supported-locale list and locale parameter table, and the page also documents their new demographic fields. Internal links across all 90 pages pass validation. Fern check reports zero errors; its only warning is that redirect validation was skipped because the CLI is not authenticated.
andreatnvidia
left a comment
There was a problem hiding this comment.
The locale registration looks good, but field support and documentation need to be completed before merging. Existing locales expose their locale-specific demographic fields through sampled output and filtering; these additions currently leave several fields inaccessible.
The sex-label normalization issue also affects existing locales and is tracked separately in #1138.
Signed-off-by: Nabin Mulepati <nmulepati@nvidia.com>
📋 Summary
Support El Salvador (
es_SV) and Vietnam (vi_VN) in the managed person sampler and persona download CLI now that both prepared NGC assets are published.🔗 Related Issue
Closes #862
🔄 Changes
care_access,disability_status,income_band,languages_spoken(El Salvador), andhousehold_size(Vietnam).🧪 Testing
0.0.1is uploaded for both assets, containinges_SV.parquetandvi_VN.parquetrespectively.✅ Checklist