Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ktransformers
Commits
6d4626a5
Commit
6d4626a5
authored
Mar 20, 2025
by
SkqLiao
Browse files
fix params
parent
8cc4df98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
ktransformers/tests/score.py
ktransformers/tests/score.py
+5
-2
No files found.
ktransformers/tests/score.py
View file @
6d4626a5
...
@@ -26,7 +26,10 @@ server_cmd = [
...
@@ -26,7 +26,10 @@ server_cmd = [
"--model_path"
,
"/home/qujing3/models/DeepSeek-R1-Q4_K_M/config"
,
"--model_path"
,
"/home/qujing3/models/DeepSeek-R1-Q4_K_M/config"
,
"--gguf_path"
,
"/home/qujing3/models/DeepSeek-V3-GGUF/DeepSeek-V3-Q4_K_M"
,
"--gguf_path"
,
"/home/qujing3/models/DeepSeek-V3-GGUF/DeepSeek-V3-Q4_K_M"
,
"--port"
,
"10002"
,
"--port"
,
"10002"
,
"--cpu_infer"
,
"64"
"--cpu_infer"
,
"48"
,
"--optimize_config_path"
,
"ktransformers/optimize/optimize_rules/DeepSeek-V3-Chat.yaml"
,
"--max_new_tokens"
,
"3000"
,
"--cache_lens"
,
"6000"
]
]
print
(
"Starting ktransformers server..."
)
print
(
"Starting ktransformers server..."
)
...
@@ -35,7 +38,7 @@ with open("/tmp/server_log.txt", "w") as f:
...
@@ -35,7 +38,7 @@ with open("/tmp/server_log.txt", "w") as f:
server_process
=
subprocess
.
Popen
(
server_cmd
,
stdout
=
f
,
stderr
=
f
,
text
=
True
)
server_process
=
subprocess
.
Popen
(
server_cmd
,
stdout
=
f
,
stderr
=
f
,
text
=
True
)
try
:
try
:
wait_for_server
(
"http://localhost:10002"
,
timeout
=
3
00
)
wait_for_server
(
"http://localhost:10002"
,
timeout
=
6
00
)
eval_cmd
=
[
"python"
,
"ktransformers/tests/humaneval/eval_api.py"
]
eval_cmd
=
[
"python"
,
"ktransformers/tests/humaneval/eval_api.py"
]
print
(
"Running eval_api.py..."
)
print
(
"Running eval_api.py..."
)
...
...
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