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
gaoqiong
lm-evaluation-harness
Commits
bd6718e4
"...composable_kernel_rocm.git" did not exist on "3b3014681a395db7bf0586d3a950943b501815f5"
Commit
bd6718e4
authored
Jul 03, 2024
by
Nathan Habib
Browse files
use type specified in args for softlogmax function
parent
bff97e59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lm_eval/models/huggingface.py
lm_eval/models/huggingface.py
+1
-1
No files found.
lm_eval/models/huggingface.py
View file @
bd6718e4
...
@@ -1128,7 +1128,7 @@ class HFLM(TemplateLM):
...
@@ -1128,7 +1128,7 @@ class HFLM(TemplateLM):
multi_logits
=
F
.
log_softmax
(
multi_logits
=
F
.
log_softmax
(
logits
,
logits
,
dim
=-
1
,
dim
=-
1
,
#
dtype=logits.dtype,
dtype
=
logits
.
dtype
,
)
# [batch, padding_length (inp or cont), vocab]
)
# [batch, padding_length (inp or cont), vocab]
for
(
request_str
,
ctx_tokens
,
_
),
logits
,
inplen
,
cont_toks
in
zip
(
for
(
request_str
,
ctx_tokens
,
_
),
logits
,
inplen
,
cont_toks
in
zip
(
...
...
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