Fix typos in strings and comments (#37799)
This commit is contained in:
@@ -3429,7 +3429,7 @@ class ModelTesterMixin:
|
||||
def test_sdpa_can_dispatch_non_composite_models(self):
|
||||
"""
|
||||
Tests if non-composite models dispatch correctly on SDPA/eager when requested so when loading the model.
|
||||
This tests only by looking at layer names, as usually SDPA layers are calles "SDPAAttention".
|
||||
This tests only by looking at layer names, as usually SDPA layers are called "SDPAAttention".
|
||||
"""
|
||||
if not self.has_attentions:
|
||||
self.skipTest(reason="Model architecture does not support attentions")
|
||||
@@ -3467,7 +3467,7 @@ class ModelTesterMixin:
|
||||
def test_sdpa_can_dispatch_composite_models(self):
|
||||
"""
|
||||
Tests if composite models dispatch correctly on SDPA/eager when requested so when loading the model.
|
||||
This tests only by looking at layer names, as usually SDPA layers are calles "SDPAAttention".
|
||||
This tests only by looking at layer names, as usually SDPA layers are called "SDPAAttention".
|
||||
In contrast to the above test, this one checks if the "config._attn_implamentation" is a dict after the model
|
||||
is loaded, because we manually replicate requested attn implementation on each sub-config when loading.
|
||||
See https://github.com/huggingface/transformers/pull/32238 for more info
|
||||
|
||||
Reference in New Issue
Block a user