Skip to content

Fix data SDG optional imports at CLI startup#210

Open
oliverholworthy wants to merge 2 commits into
mainfrom
oholworthy/fix-data-designer-import
Open

Fix data SDG optional imports at CLI startup#210
oliverholworthy wants to merge 2 commits into
mainfrom
oholworthy/fix-data-designer-import

Conversation

@oliverholworthy
Copy link
Copy Markdown
Contributor

The long-document SDG CLI imported recipe config classes at startup, which pulled in data_designer even for unrelated commands. In a base install without the optional data-sdg extra, any nemotron ... command could fail before dispatch.

This makes config introspection lazy: the CLI can start normally without optional SDG deps, while per-stage rich config help still works when those deps are installed.

Testing

  • uv run pytest tests/recipes/test_data_sdg_cli.py -q
  • uv run ruff check src/nemo_runspec/help.py src/nemo_runspec/recipe_typer.py src/nemotron/cli/commands/data/sdg/long_document/commands.py tests/recipes/test_data_sdg_cli.py
  • uv run nemotron --help
  • uv run nemotron data sdg long-document ocr --help

Signed-off-by: Oliver Holworthy <1216955+oliverholworthy@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