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
9c266e36
Commit
9c266e36
authored
Aug 21, 2025
by
zhuwenwen
Browse files
update gen_model_json
parent
f7beb354
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/utils/__init__.py
vllm/utils/__init__.py
+1
-1
No files found.
vllm/utils/__init__.py
View file @
9c266e36
...
@@ -1965,7 +1965,7 @@ class W8a8GetCacheJSON:
...
@@ -1965,7 +1965,7 @@ class W8a8GetCacheJSON:
#析构函数,最后会生成model.json的配置文件
#析构函数,最后会生成model.json的配置文件
def
gen_model_json
(
self
,
E
:
Optional
[
int
]
=
0
,
block_size
:
Optional
[
list
]
=
None
):
def
gen_model_json
(
self
,
E
:
Optional
[
int
]
=
0
,
block_size
:
Optional
[
list
]
=
None
):
json_dir
=
os
.
getenv
(
'LMSLIM_TUNING_JSON'
,
"None"
)
json_dir
=
os
.
getenv
(
'LMSLIM_TUNING_JSON'
,
"None"
)
if
json_dir
is
not
"None"
and
os
.
path
.
exists
(
json_dir
):
if
json_dir
!=
"None"
and
os
.
path
.
exists
(
json_dir
):
#生成模型配置文件
#生成模型配置文件
# logger.info("model_tuning.json is at LMSLIM_TUNING_JSON:%s", json_dir)
# logger.info("model_tuning.json is at LMSLIM_TUNING_JSON:%s", json_dir)
config
=
{
config
=
{
...
...
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