"to be not" -> "not to be" (#32636)
* "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
This commit is contained in:
committed by
GitHub
parent
126cbdb365
commit
f1c8542ff7
@@ -2428,7 +2428,7 @@ class TestAttentionImplementation(unittest.TestCase):
|
||||
"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():
|
||||
@@ -2443,7 +2443,7 @@ class TestAttentionImplementation(unittest.TestCase):
|
||||
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():
|
||||
|
||||
Reference in New Issue
Block a user