Skip to content

Fix use_triton default in BoostingTreeModelConfig to None (auto-detect) - #16124

Open
shoemoney wants to merge 1 commit into
NVIDIA-NeMo:mainfrom
shoemoney:fix/boosting-tree-use-triton-auto
Open

Fix use_triton default in BoostingTreeModelConfig to None (auto-detect)#16124
shoemoney wants to merge 1 commit into
NVIDIA-NeMo:mainfrom
shoemoney:fix/boosting-tree-use-triton-auto

Conversation

@shoemoney

Copy link
Copy Markdown

Fixes #16122

BoostingTreeModelConfig.use_triton defaulted to True (forced mode), while the sibling configs BoostingTreeConfig in the same file and NGramLMConfig in ngram_lm_batched.py default to None, meaning auto-detect. from_config forwards the value verbatim, so enabling phrase boosting via key_phrases_list or key_phrases_file on a CUDA machine without triton installed crashes with ModuleNotFoundError instead of falling back to the PyTorch kernel.

This changes the default to None so NGramGPULanguageModel.__init__ resolves it against TRITON_AVAILABLE (ngram_lm_batched.py:539), matching the documented contract: None means auto, True remains available as forced mode.

One-line change; explicit use_triton=True/False overrides are unaffected.

Signed-off-by: Jeremy Schoemaker <jeremy@shoemoney.com>
@copy-pr-bot

copy-pr-bot Bot commented Aug 23, 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BoostingTreeModelConfig.use_triton defaults to True, so GPU-PB via key_phrases_* crashes on CUDA when Triton is missing

1 participant