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
aa42561e
Unverified
Commit
aa42561e
authored
May 28, 2025
by
Richard Zou
Committed by
GitHub
May 28, 2025
Browse files
Fix PiecewiseCompileInterpreter (#17338)
Signed-off-by:
rzou
<
zou3519@gmail.com
>
parent
de65fc8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
vllm/compilation/backends.py
vllm/compilation/backends.py
+2
-1
No files found.
vllm/compilation/backends.py
View file @
aa42561e
...
@@ -10,6 +10,7 @@ from typing import Any, Callable, Optional
...
@@ -10,6 +10,7 @@ from typing import Any, Callable, Optional
import
torch
import
torch
import
torch.fx
as
fx
import
torch.fx
as
fx
from
torch._dispatch.python
import
enable_python_dispatcher
import
vllm.envs
as
envs
import
vllm.envs
as
envs
from
vllm.config
import
CompilationConfig
,
VllmConfig
from
vllm.config
import
CompilationConfig
,
VllmConfig
...
@@ -269,7 +270,7 @@ class PiecewiseCompileInterpreter(torch.fx.Interpreter):
...
@@ -269,7 +270,7 @@ class PiecewiseCompileInterpreter(torch.fx.Interpreter):
self
.
fake_mode
.
from_tensor
(
t
)
if
isinstance
(
t
,
torch
.
Tensor
)
else
t
self
.
fake_mode
.
from_tensor
(
t
)
if
isinstance
(
t
,
torch
.
Tensor
)
else
t
for
t
in
args
for
t
in
args
]
]
with
self
.
fake_mode
:
with
self
.
fake_mode
,
enable_python_dispatcher
()
:
return
super
().
run
(
*
fake_args
)
return
super
().
run
(
*
fake_args
)
def
call_module
(
self
,
target
:
torch
.
fx
.
node
.
Target
,
def
call_module
(
self
,
target
:
torch
.
fx
.
node
.
Target
,
...
...
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