Skip to content

Commit

Permalink
"to be not" -> "not to be" (huggingface#32636)
Browse files Browse the repository at this point in the history
* "to be not" -> "not to be"

* Update sam.md

* Update trainer.py

* Update modeling_utils.py

* Update test_modeling_utils.py

* Update test_modeling_utils.py
  • Loading branch information
qgallouedec authored and stevhliu committed Feb 18, 2025
1 parent de2d797 commit 913ef2f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/utils/test_modeling_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2608,7 +2608,8 @@ def test_not_available_flash(self):
_ = AutoModel.from_pretrained(
"hf-internal-testing/tiny-random-GPTBigCodeModel", attn_implementation="flash_attention_2"
)
self.assertTrue("the package flash_attn seems to be not installed" in str(cm.exception))

self.assertTrue("the package flash_attn seems not to be installed" in str(cm.exception))

def test_not_available_flash_with_config(self):
if is_flash_attn_2_available():
Expand All @@ -2623,7 +2624,7 @@ def test_not_available_flash_with_config(self):
attn_implementation="flash_attention_2",
)

self.assertTrue("the package flash_attn seems to be not installed" in str(cm.exception))
self.assertTrue("the package flash_attn seems not to be installed" in str(cm.exception))

def test_not_available_sdpa(self):
if is_torch_sdpa_available():
Expand Down

0 comments on commit 913ef2f

Please sign in to comment.