Fix typos in strings and comments (#37799)

This commit is contained in:
co63oc
2025-04-28 18:39:11 +08:00
committed by GitHub
parent f466603963
commit d5fa7d2d19
136 changed files with 202 additions and 202 deletions

View File

@@ -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