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
417bcefb
Unverified
Commit
417bcefb
authored
Apr 09, 2025
by
Chenyaaang
Committed by
GitHub
Apr 10, 2025
Browse files
fix sonnet dataset sample when prefix len is very small (#16379)
Signed-off-by:
Chenyaaang
<
chenyangli@google.com
>
parent
baada0e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
benchmarks/benchmark_dataset.py
benchmarks/benchmark_dataset.py
+1
-1
No files found.
benchmarks/benchmark_dataset.py
View file @
417bcefb
...
...
@@ -472,7 +472,7 @@ class SonnetDataset(BenchmarkDataset):
# Determine how many poem lines to use.
num_input_lines
=
round
((
input_len
-
base_offset
)
/
avg_len
)
num_prefix_lines
=
round
((
prefix_len
-
base_offset
)
/
avg_len
)
num_prefix_lines
=
max
(
round
((
prefix_len
-
base_offset
)
/
avg_len
)
,
0
)
prefix_lines
=
self
.
data
[:
num_prefix_lines
]
samples
=
[]
...
...
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