---
id: pr-sglang-15842
repo: sgl-project/sglang
pr: 15842
title: '[diffusion] refactor: centralize hardware platform detection and streamline environment variable management'
author: mickqian
date: '2025-12-26'
url: https://github.com/sgl-project/sglang/pull/15842
source_category: upstream-code
architectures:
- sm100
tags: []
techniques: []
hardware_features: []
kernel_types: []
languages: []
captured_at: '2026-05-16'
status: merged
merge_sha: 8dc6f0fc4d274bc0d5054632030baa0d334b6c51
inclusion_reason: defer
changed_paths:
- python/sglang/multimodal_gen/envs.py
- python/sglang/multimodal_gen/runtime/distributed/group_coordinator.py
- python/sglang/multimodal_gen/runtime/distributed/parallel_state.py
- python/sglang/multimodal_gen/runtime/layers/custom_op.py
- python/sglang/multimodal_gen/runtime/platforms/__init__.py
- python/sglang/multimodal_gen/runtime/platforms/cuda.py
- python/sglang/multimodal_gen/runtime/platforms/interface.py
- python/sglang/multimodal_gen/runtime/utils/common.py
- python/sglang/multimodal_gen/runtime/utils/distributed.py
- python/sglang/multimodal_gen/runtime/utils/logging_utils.py
- python/sglang/multimodal_gen/test/server/test_server_common.py
- python/sglang/multimodal_gen/test/server/test_server_utils.py
artifact_dir: evidence/pull-bundles/sglang/gh-15842
head_ref_oid: 979e0f2b9609e8d8e9feb70679c2142e78949664
---
# [diffusion] refactor: centralize hardware platform detection and streamline environment variable management

- Repository: `sgl-project/sglang`
- PR: [15842](https://github.com/sgl-project/sglang/pull/15842)
- Decision: `defer`
- Reason: defer

## Changed Paths

- `python/sglang/multimodal_gen/envs.py`
- `python/sglang/multimodal_gen/runtime/distributed/group_coordinator.py`
- `python/sglang/multimodal_gen/runtime/distributed/parallel_state.py`
- `python/sglang/multimodal_gen/runtime/layers/custom_op.py`
- `python/sglang/multimodal_gen/runtime/platforms/__init__.py`
- `python/sglang/multimodal_gen/runtime/platforms/cuda.py`
- `python/sglang/multimodal_gen/runtime/platforms/interface.py`
- `python/sglang/multimodal_gen/runtime/utils/common.py`
- `python/sglang/multimodal_gen/runtime/utils/distributed.py`
- `python/sglang/multimodal_gen/runtime/utils/logging_utils.py`
- `python/sglang/multimodal_gen/test/server/test_server_common.py`
- `python/sglang/multimodal_gen/test/server/test_server_utils.py`

## Evidence Bundle

`evidence/pull-bundles/sglang/gh-15842`
