Skip to content

fix: install pycountry in codec deps installer - #4146

Merged
kajalj22 merged 2 commits into
mainfrom
kajalj/fix-pycountry-codec-installer
Oct 8, 2026
Merged

kajalj22 merged 2 commits into
mainfrom
kajalj/fix-pycountry-codec-installer

Conversation

@kajalj22

@kajalj22 kajalj22 commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • pycountry is suppressed from the image via [tool.uv].override-dependencies (legal review, security: remove dependencies flagged in legal review #2492) and is only re-enabled for toolsandbox.
  • vLLM's Qwen3-VL multimodal processor lazily imports transformers.MistralCommonBackend -> mistral_common -> pydantic_extra_types.language_code, which hard-requires pycountry. In the shipped image this raises ModuleNotFoundError: Could not import module 'MistralCommonBackend' before the model loads, so the circle_click and circle_count README workflows (vllm serve Qwen/Qwen3-VL-8B-Instruct -tp 8 ...) cannot start. vllm serve --help still passes because it never builds that processor.
  • docker/install_codec_deps.sh is the documented opt-in installer for excluded packages but never installed pycountry. This adds it (pinned to the uv.lock version, 26.2.16) and includes it in the "already installed" check. The override stays in place, so the default image is unchanged and the legal change is preserved.

Tracks NVBug 6751026.

🤖 Generated with Claude Code

pycountry is excluded from the image via override-dependencies, but
vLLM's Mistral tokenizer import chain requires it when serving VLMs
such as Qwen3-VL. Add it to the opt-in installer so the documented
setup step makes circle_click/circle_count servable.

Co-Authored-By: Claude <[email protected]>
Signed-off-by: Kajal Jain <[email protected]>
@kajalj22
kajalj22 requested a review from a team as a code owner October 6, 2026 22:58
@copy-pr-bot

copy-pr-bot Bot commented Oct 6, 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.

@yaoyu-33 yaoyu-33 added area:build Packaging, dependencies, containers, and releases bug Something isn't working complexity:low Localized change in one scope with a small, straightforward review surface needs-review PR is ready for code review and waiting on a reviewer labels Oct 6, 2026
The installer now also covers pycountry, which is not codec-bearing, so
the old name is misleading. Update all references.

Co-Authored-By: Claude <[email protected]>
Signed-off-by: Kajal Jain <[email protected]>
@kajalj22 kajalj22 added the r0.7.0 Auto-cherrypick to release branch. Apply before merge; cherrypick happens after merge. label Oct 7, 2026
@kajalj22

kajalj22 commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 82cf4fd

@kajalj22
kajalj22 added this pull request to the merge queue Oct 7, 2026
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/37705227482

Merged via the queue into main with commit ac84aaa Oct 8, 2026
45 checks passed
@kajalj22
kajalj22 deleted the kajalj/fix-pycountry-codec-installer branch October 8, 2026 00:14
kajalj22 added a commit that referenced this pull request Oct 8, 2026
…7.0` (#4202)

beep boop [🤖]: Hi @kajalj22 👋,

    we've cherry picked #4146 into `r0.7.0` for you! 🚀

    Please review and approve this cherry pick by your convenience!

Signed-off-by: Kajal Jain <[email protected]>
Signed-off-by: NeMo Bot <[email protected]>
Co-authored-by: kajalj22 <[email protected]>
Co-authored-by: Claude <[email protected]>

This branch was previously deployed

1 inactive deployment
public — 82cf4fd7 Deployed Oct 7, 2026 by copy-pr-bot[bot] via release / finalize / notify #4569
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:build Packaging, dependencies, containers, and releases bug Something isn't working complexity:low Localized change in one scope with a small, straightforward review surface needs-review PR is ready for code review and waiting on a reviewer r0.7.0 Auto-cherrypick to release branch. Apply before merge; cherrypick happens after merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants