Skip to content

Commit ec92264

Browse files
xhr15jonatanklosko
andauthored
Apply suggestion from @jonatanklosko
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
1 parent 311f77c commit ec92264

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

test/bumblebee/text/generation_test.exs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -193,22 +193,14 @@ defmodule Bumblebee.Text.GenerationTest do
193193
# result without logit processor: 80, 80, 80
194194

195195
# first entry in batch
196-
# first token_id should be 78 as we enforce token_id 78 on the first
197-
# iteration
198196
assert_equal(token_ids[[0, 0]], 78)
199-
200-
# second should be 79 as we increment the enforced token_id from 78 to 79
201197
assert_equal(token_ids[[0, 1]], 79)
202-
203-
# in the next step we increment from 79 to 80 and enforce token_id 80
204198
assert_equal(token_ids[[0, 2]], 80)
205199

206200
# second entry in batch
207-
# first token_id is 20 as we enforce token_id 20 on the first iteration
208201
assert_equal(token_ids[[1, 0]], 78)
209-
210-
# in the next step we increment from 20 to 21 and enforce token_id 21
211202
assert_equal(token_ids[[1, 1]], 79)
203+
assert_equal(token_ids[[1, 2]], 80)
212204
end
213205

214206
defmodule StatefulLogitsProcessing do

0 commit comments

Comments
 (0)