Skip to content

fix: use getattr for sglang params when rollout_only is disabled - #1604

Merged
zhuzilin merged 1 commit into
mainfrom
bugfix
Feb 21, 2026
Merged

zhuzilin merged 1 commit into
mainfrom
bugfix

Conversation

@zhuzilin

Copy link
Copy Markdown
Contributor

When rollout_only is off, the args object does not contain sglang-related attributes (e.g. sglang_enable_metrics), causing AttributeError during wandb secondary init. Use getattr with a default value to handle this gracefully.

Also remove the unnecessary sglang_enable_ep_moe workaround in convert_torch_dist_to_hf.py.

When rollout_only is off, the args object does not contain sglang-related
attributes (e.g. sglang_enable_metrics), causing AttributeError during
wandb secondary init. Use getattr with a default value to handle this
gracefully.

Also remove the unnecessary sglang_enable_ep_moe workaround in
convert_torch_dist_to_hf.py.
@zhuzilin
zhuzilin merged commit 89e96fd into main Feb 21, 2026
2 checks passed
@zhuzilin
zhuzilin deleted the bugfix branch February 21, 2026 02:52
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.

1 participant