Skip to content

Commit 996f512

Browse files
authored
Fix typos in tests (#36547)
Signed-off-by: co63oc <[email protected]>
1 parent 752ef3f commit 996f512

File tree

99 files changed

+282
-282
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+282
-282
lines changed

tests/bettertransformer/test_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class BetterTransformerIntegrationTest(unittest.TestCase):
3838

3939
def test_transform_and_reverse(self):
4040
r"""
41-
Classic tests to simply check if the conversion has been successfull.
41+
Classic tests to simply check if the conversion has been successful.
4242
"""
4343
model_id = "hf-internal-testing/tiny-random-t5"
4444
tokenizer = AutoTokenizer.from_pretrained(model_id)

tests/models/align/test_modeling_align.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,13 @@ def test_training_gradient_checkpointing(self):
219219
pass
220220

221221
@unittest.skip(
222-
reason="This architecure seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
222+
reason="This architecture seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
223223
)
224224
def test_training_gradient_checkpointing_use_reentrant(self):
225225
pass
226226

227227
@unittest.skip(
228-
reason="This architecure seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
228+
reason="This architecture seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
229229
)
230230
def test_training_gradient_checkpointing_use_reentrant_false(self):
231231
pass
@@ -361,13 +361,13 @@ def test_training_gradient_checkpointing(self):
361361
pass
362362

363363
@unittest.skip(
364-
reason="This architecure seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
364+
reason="This architecture seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
365365
)
366366
def test_training_gradient_checkpointing_use_reentrant(self):
367367
pass
368368

369369
@unittest.skip(
370-
reason="This architecure seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
370+
reason="This architecture seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
371371
)
372372
def test_training_gradient_checkpointing_use_reentrant_false(self):
373373
pass

tests/models/altclip/test_modeling_altclip.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,13 @@ def test_training_gradient_checkpointing(self):
187187
pass
188188

189189
@unittest.skip(
190-
reason="This architecure seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
190+
reason="This architecture seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
191191
)
192192
def test_training_gradient_checkpointing_use_reentrant(self):
193193
pass
194194

195195
@unittest.skip(
196-
reason="This architecure seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
196+
reason="This architecture seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
197197
)
198198
def test_training_gradient_checkpointing_use_reentrant_false(self):
199199
pass
@@ -335,13 +335,13 @@ def test_training_gradient_checkpointing(self):
335335
pass
336336

337337
@unittest.skip(
338-
reason="This architecure seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
338+
reason="This architecture seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
339339
)
340340
def test_training_gradient_checkpointing_use_reentrant(self):
341341
pass
342342

343343
@unittest.skip(
344-
reason="This architecure seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
344+
reason="This architecture seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
345345
)
346346
def test_training_gradient_checkpointing_use_reentrant_false(self):
347347
pass

tests/models/aria/test_modeling_aria.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,19 +241,19 @@ def test_inputs_embeds_matches_input_ids(self):
241241
torch.testing.assert_close(out_embeds, out_ids)
242242

243243
@unittest.skip(
244-
reason="This architecure seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
244+
reason="This architecture seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
245245
)
246246
def test_training_gradient_checkpointing(self):
247247
pass
248248

249249
@unittest.skip(
250-
reason="This architecure seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
250+
reason="This architecture seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
251251
)
252252
def test_training_gradient_checkpointing_use_reentrant(self):
253253
pass
254254

255255
@unittest.skip(
256-
reason="This architecure seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
256+
reason="This architecture seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
257257
)
258258
def test_training_gradient_checkpointing_use_reentrant_false(self):
259259
pass

tests/models/autoformer/test_modeling_autoformer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,19 +245,19 @@ def test_resize_tokens_embeddings(self):
245245
pass
246246

247247
@unittest.skip(
248-
reason="This architecure seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
248+
reason="This architecture seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
249249
)
250250
def test_training_gradient_checkpointing(self):
251251
pass
252252

253253
@unittest.skip(
254-
reason="This architecure seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
254+
reason="This architecture seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
255255
)
256256
def test_training_gradient_checkpointing_use_reentrant_false(self):
257257
pass
258258

259259
@unittest.skip(
260-
reason="This architecure seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
260+
reason="This architecture seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
261261
)
262262
def test_training_gradient_checkpointing_use_reentrant(self):
263263
pass

tests/models/bart/test_modeling_bart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ def test_generate_fp16(self):
504504
model.generate(num_beams=4, do_sample=True, early_stopping=False, num_return_sequences=3)
505505

506506
@unittest.skip(
507-
reason="This architecure has tied weights by default and there is no way to remove it, check: https://github.com/huggingface/transformers/pull/31771#issuecomment-2210915245"
507+
reason="This architecture has tied weights by default and there is no way to remove it, check: https://github.com/huggingface/transformers/pull/31771#issuecomment-2210915245"
508508
)
509509
def test_load_save_without_tied_weights(self):
510510
pass

tests/models/beit/test_modeling_beit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,13 +379,13 @@ def test_training_gradient_checkpointing(self):
379379
loss.backward()
380380

381381
@unittest.skip(
382-
reason="This architecure seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
382+
reason="This architecture seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
383383
)
384384
def test_training_gradient_checkpointing_use_reentrant(self):
385385
pass
386386

387387
@unittest.skip(
388-
reason="This architecure seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
388+
reason="This architecture seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
389389
)
390390
def test_training_gradient_checkpointing_use_reentrant_false(self):
391391
pass

tests/models/big_bird/test_modeling_big_bird.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -609,19 +609,19 @@ def test_for_change_to_full_attn(self):
609609
self.model_tester.create_and_check_for_change_to_full_attn(*config_and_inputs)
610610

611611
@unittest.skip(
612-
reason="This architecure seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
612+
reason="This architecture seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
613613
)
614614
def test_training_gradient_checkpointing(self):
615615
pass
616616

617617
@unittest.skip(
618-
reason="This architecure seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
618+
reason="This architecture seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
619619
)
620620
def test_training_gradient_checkpointing_use_reentrant(self):
621621
pass
622622

623623
@unittest.skip(
624-
reason="This architecure seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
624+
reason="This architecture seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
625625
)
626626
def test_training_gradient_checkpointing_use_reentrant_false(self):
627627
pass

tests/models/bigbird_pegasus/test_modeling_bigbird_pegasus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ def test_for_change_to_full_attn(self):
464464
torch.testing.assert_close(outputs1, outputs2, rtol=1e-5, atol=1e-5)
465465

466466
@unittest.skip(
467-
reason="This architecure has tied weights by default and there is no way to remove it, check: https://github.com/huggingface/transformers/pull/31771#issuecomment-2210915245"
467+
reason="This architecture has tied weights by default and there is no way to remove it, check: https://github.com/huggingface/transformers/pull/31771#issuecomment-2210915245"
468468
)
469469
def test_load_save_without_tied_weights(self):
470470
pass

tests/models/blip/test_modeling_blip.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -202,13 +202,13 @@ def test_training_gradient_checkpointing(self):
202202
pass
203203

204204
@unittest.skip(
205-
reason="This architecure seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
205+
reason="This architecture seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
206206
)
207207
def test_training_gradient_checkpointing_use_reentrant(self):
208208
pass
209209

210210
@unittest.skip(
211-
reason="This architecure seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
211+
reason="This architecture seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
212212
)
213213
def test_training_gradient_checkpointing_use_reentrant_false(self):
214214
pass
@@ -346,13 +346,13 @@ def test_training_gradient_checkpointing(self):
346346
pass
347347

348348
@unittest.skip(
349-
reason="This architecure seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
349+
reason="This architecture seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
350350
)
351351
def test_training_gradient_checkpointing_use_reentrant(self):
352352
pass
353353

354354
@unittest.skip(
355-
reason="This architecure seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
355+
reason="This architecture seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
356356
)
357357
def test_training_gradient_checkpointing_use_reentrant_false(self):
358358
pass
@@ -977,13 +977,13 @@ def test_training_gradient_checkpointing(self):
977977
loss.backward()
978978

979979
@unittest.skip(
980-
reason="This architecure seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
980+
reason="This architecture seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
981981
)
982982
def test_training_gradient_checkpointing_use_reentrant(self):
983983
pass
984984

985985
@unittest.skip(
986-
reason="This architecure seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
986+
reason="This architecture seem to not compute gradients properly when using GC, check: https://github.com/huggingface/transformers/pull/27124"
987987
)
988988
def test_training_gradient_checkpointing_use_reentrant_false(self):
989989
pass

0 commit comments

Comments
 (0)