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
91276c57
Unverified
Commit
91276c57
authored
Mar 28, 2025
by
Jee Jee Li
Committed by
GitHub
Mar 28, 2025
Browse files
[Model] Adding torch compile annotations to chatglm (#15624)
Signed-off-by:
Jee Jee Li
<
pandaleefree@gmail.com
>
parent
0b416752
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
vllm/model_executor/models/chatglm.py
vllm/model_executor/models/chatglm.py
+2
-0
No files found.
vllm/model_executor/models/chatglm.py
View file @
91276c57
...
@@ -10,6 +10,7 @@ from torch import nn
...
@@ -10,6 +10,7 @@ from torch import nn
from
torch.nn
import
LayerNorm
from
torch.nn
import
LayerNorm
from
vllm.attention
import
Attention
from
vllm.attention
import
Attention
from
vllm.compilation.decorators
import
support_torch_compile
from
vllm.config
import
CacheConfig
,
VllmConfig
from
vllm.config
import
CacheConfig
,
VllmConfig
from
vllm.distributed
import
get_pp_group
,
get_tensor_model_parallel_world_size
from
vllm.distributed
import
get_pp_group
,
get_tensor_model_parallel_world_size
from
vllm.model_executor.layers.activation
import
SiluAndMul
from
vllm.model_executor.layers.activation
import
SiluAndMul
...
@@ -293,6 +294,7 @@ class GLMTransformer(nn.Module):
...
@@ -293,6 +294,7 @@ class GLMTransformer(nn.Module):
return
hidden_states
return
hidden_states
@
support_torch_compile
class
ChatGLMModel
(
nn
.
Module
):
class
ChatGLMModel
(
nn
.
Module
):
def
__init__
(
self
,
*
,
vllm_config
:
VllmConfig
,
prefix
:
str
=
""
):
def
__init__
(
self
,
*
,
vllm_config
:
VllmConfig
,
prefix
:
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