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
083b80ea
"docs/vscode:/vscode.git/clone" did not exist on "f230cc2ca6614dd4eecf3af9f12c3ddbcf83036e"
Commit
083b80ea
authored
Jan 16, 2025
by
zhuwenwen
Browse files
增加w8a8相关修改
parent
09428eec
Changes
42
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
6 deletions
+37
-6
vllm/model_executor/models/qwen2.py
vllm/model_executor/models/qwen2.py
+32
-5
vllm/utils.py
vllm/utils.py
+5
-1
No files found.
vllm/model_executor/models/qwen2.py
View file @
083b80ea
This diff is collapsed.
Click to expand it.
vllm/utils.py
View file @
083b80ea
...
@@ -1466,7 +1466,11 @@ class W8a8GetCacheJSON:
...
@@ -1466,7 +1466,11 @@ class W8a8GetCacheJSON:
def
_initialize
(
self
):
def
_initialize
(
self
):
current_folder_path
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
current_folder_path
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
self
.
triton_json_dir
=
(
os
.
getenv
(
'TRITON_JSON_DIR'
,
current_folder_path
+
'/model_executor/layers/quantization/configs/w8a8'
))
json_folder_path
=
current_folder_path
+
'/../lmslim/configs/w8a8'
if
not
os
.
path
.
exists
(
json_folder_path
):
json_folder_path
=
current_folder_path
+
'/model_executor/layers/quantization/configs/w8a8'
self
.
triton_json_dir
=
(
os
.
getenv
(
'TRITON_JSON_DIR'
,
json_folder_path
))
self
.
triton_json_dict
=
[]
self
.
triton_json_dict
=
[]
def
getspec_config
(
self
,
configs_dict
,
M
,
N
,
K
):
def
getspec_config
(
self
,
configs_dict
,
M
,
N
,
K
):
...
...
Prev
1
2
3
Next
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