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
96bfa3ce
Commit
96bfa3ce
authored
Mar 26, 2025
by
gaoqiong
Browse files
增加blockint8支持优化
parent
5f15bdb5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
vllm/utils.py
vllm/utils.py
+2
-0
No files found.
vllm/utils.py
View file @
96bfa3ce
...
@@ -1641,6 +1641,8 @@ class W8a8GetCacheJSON:
...
@@ -1641,6 +1641,8 @@ class W8a8GetCacheJSON:
def
get_blockint8json_name
(
self
,
n
,
k
,
block_n
,
block_k
):
def
get_blockint8json_name
(
self
,
n
,
k
,
block_n
,
block_k
):
from
vllm.platforms
import
current_platform
from
vllm.platforms
import
current_platform
device_name
=
current_platform
.
get_device_name
().
replace
(
" "
,
"_"
)
device_name
=
current_platform
.
get_device_name
().
replace
(
" "
,
"_"
)
if
'K100_AI'
in
device_name
:
device_name
=
'K100_AI'
return
self
.
triton_json_dir
+
f
"/linear_
{
n
}
_
{
k
}
_block[
{
block_n
}
,
{
block_k
}
]_
{
device_name
}
.json"
return
self
.
triton_json_dir
+
f
"/linear_
{
n
}
_
{
k
}
_block[
{
block_n
}
,
{
block_k
}
]_
{
device_name
}
.json"
...
...
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