Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
35128b14
Unverified
Commit
35128b14
authored
Feb 24, 2026
by
Raghav Potluri
Committed by
GitHub
Feb 24, 2026
Browse files
fix: frontend crash when using TRTLLM runtime image (#6481)
Signed-off-by:
Raghav Potluri
<
raghav.potluri21@gmail.com
>
parent
bc00ef38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
40 deletions
+24
-40
components/src/dynamo/common/config_dump/config_dumper.py
components/src/dynamo/common/config_dump/config_dumper.py
+24
-40
No files found.
components/src/dynamo/common/config_dump/config_dumper.py
View file @
35128b14
...
...
@@ -4,6 +4,7 @@
import
argparse
import
dataclasses
import
functools
import
importlib.metadata
import
json
import
logging
import
pathlib
...
...
@@ -21,58 +22,41 @@ from .system_info import (
logger
=
logging
.
getLogger
(
__name__
)
def
_get_sglang_version
()
->
Optional
[
str
]:
"""Get SGLang version if available.
def
_get_package_version
(
dist_name
:
str
)
->
Optional
[
str
]:
"""Get installed package version via metadata, without importing the module.
Uses importlib.metadata to avoid module-level side effects. Importing
framework packages (tensorrt_llm, vllm, sglang) triggers heavy native
initialization (CUDA context, TensorRT bindings, torch extensions) that
can crash the process when the runtime environment doesn't match—e.g.,
importing tensorrt_llm in a frontend pod that has no GPU allocation.
Args:
dist_name: Distribution name (e.g., "tensorrt-llm", "vllm", "sglang").
Returns:
Version string if
SGLang
is installed, None otherwise.
Version string if
the package
is installed, None otherwise.
"""
try
:
import
sglang
as
sgl
return
sgl
.
__version__
except
ImportError
:
logger
.
debug
(
"SGLang not available"
)
return
None
except
AttributeError
:
logger
.
warning
(
"SGLang installed but version not available"
)
return
importlib
.
metadata
.
version
(
dist_name
)
except
importlib
.
metadata
.
PackageNotFoundError
:
logger
.
debug
(
f
"
{
dist_name
}
not installed"
)
return
None
def
_get_trtllm_version
()
->
Optional
[
str
]:
"""Get TensorRT-LLM version if available.
def
_get_sglang_version
()
->
Optional
[
str
]:
"""Get SGLang version if installed, without importing the module."""
return
_get_package_version
(
"sglang"
)
Returns:
Version string if TensorRT-LLM is installed, None otherwise.
"""
try
:
import
tensorrt_llm
return
tensorrt_llm
.
__version__
except
ImportError
:
logger
.
debug
(
"TensorRT-LLM not available"
)
return
None
except
AttributeError
:
logger
.
warning
(
"TensorRT-LLM installed but version not available"
)
return
None
def
_get_trtllm_version
()
->
Optional
[
str
]:
"""Get TensorRT-LLM version if installed, without importing the module."""
return
_get_package_version
(
"tensorrt-llm"
)
def
_get_vllm_version
()
->
Optional
[
str
]:
"""Get vLLM version if available.
Returns:
Version string if vLLM is installed, None otherwise.
"""
try
:
import
vllm
return
vllm
.
__version__
except
ImportError
:
logger
.
debug
(
"vLLM not available"
)
return
None
except
AttributeError
:
logger
.
warning
(
"vLLM installed but version not available"
)
return
None
"""Get vLLM version if installed, without importing the module."""
return
_get_package_version
(
"vllm"
)
def
_get_dynamo_version
()
->
str
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment