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
8582a380
"...composable_kernel_rocm.git" did not exist on "d2b2d273257a2c72c7d5b1373b804fc3f1859ca4"
Commit
8582a380
authored
Sep 26, 2024
by
Baber
Browse files
nit
parent
6fb8dde6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
scripts/cost_estimate.py
scripts/cost_estimate.py
+1
-0
No files found.
scripts/cost_estimate.py
View file @
8582a380
...
@@ -22,6 +22,7 @@ class DryrunLM(LM):
...
@@ -22,6 +22,7 @@ class DryrunLM(LM):
res
=
[]
res
=
[]
for
ctx
,
cont
in
[
req
.
args
for
req
in
requests
]:
for
ctx
,
cont
in
[
req
.
args
for
req
in
requests
]:
res
.
append
((
-
random
.
random
(),
False
))
res
.
append
((
-
random
.
random
(),
False
))
# we do not generate for loglikelihood but
# +1 for API models as they require at least on gen token
# +1 for API models as they require at least on gen token
self
.
tokencost
+=
len
(
self
.
tokenizer
.
tokenize
(
ctx
+
cont
))
+
1
self
.
tokencost
+=
len
(
self
.
tokenizer
.
tokenize
(
ctx
+
cont
))
+
1
...
...
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