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
vllm_cscc
Commits
9e2de9b9
Unverified
Commit
9e2de9b9
authored
May 02, 2025
by
Isotr0py
Committed by
GitHub
May 02, 2025
Browse files
[Bugifx] Remove TritonPlaceholder from sys.modules (#17317)
Signed-off-by:
Isotr0py
<
2037008807@qq.com
>
parent
109e15a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
vllm/triton_utils/importing.py
vllm/triton_utils/importing.py
+1
-7
No files found.
vllm/triton_utils/importing.py
View file @
9e2de9b9
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: Apache-2.0
import
sys
import
types
import
types
from
importlib.util
import
find_spec
from
importlib.util
import
find_spec
...
@@ -45,9 +44,4 @@ if not HAS_TRITON:
...
@@ -45,9 +44,4 @@ if not HAS_TRITON:
super
().
__init__
(
"triton.language"
)
super
().
__init__
(
"triton.language"
)
self
.
constexpr
=
None
self
.
constexpr
=
None
self
.
dtype
=
None
self
.
dtype
=
None
self
.
int64
=
None
sys
.
modules
[
'triton'
]
=
TritonPlaceholder
()
sys
.
modules
[
'triton.language'
]
=
TritonLanguagePlaceholder
()
if
'triton'
in
sys
.
modules
:
logger
.
info
(
"Triton module has been replaced with a placeholder."
)
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