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
3c29e139
Commit
3c29e139
authored
Nov 17, 2025
by
guanyu1
Browse files
prompts+tokenid
parent
e28b0086
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
benchmarks/benchmark_hunyuan.py
benchmarks/benchmark_hunyuan.py
+3
-1
No files found.
benchmarks/benchmark_hunyuan.py
View file @
3c29e139
...
...
@@ -69,7 +69,9 @@ PROMPTS="你是一个搜索排序专家,请你仔细阅读以下Doc和Query,
if
__name__
==
"__main__"
:
llm
=
LLM
(
model
=
"/tools/gy_model/hunyuan_model"
,
task
=
"classify"
,
trust_remote_code
=
True
)
# 以列表形式传入,避免某些路径把字符串当作序列逐字符处理
# token_id
#(output,) = llm.classify(token_inputs(DEFAULT_PROMPT_TOKEN_IDS))
#prompts
(
output
,)
=
llm
.
classify
(
PROMPTS
)
probs
=
output
.
outputs
.
probs
print
(
f
"Class Probabilities:
{
probs
!
r
}
(size=
{
len
(
probs
)
}
)"
)
...
...
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