Skip to content

Commit ae15715

Browse files
authored
polishing docs: error fixes for clarity (#39042)
* fix duplicate deprecate_models.py * fix duplicate modular_model_converter.py
1 parent 3abeaba commit ae15715

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

utils/deprecate_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def get_last_stable_minor_release():
3131
url = "https://pypi.org/pypi/transformers/json"
3232
release_data = requests.get(url).json()
3333

34-
# Find the last stable release of of transformers (version below current version)
34+
# Find the last stable release of transformers (version below current version)
3535
major_version, minor_version, patch_version, _ = current_version.split(".")
3636
last_major_minor = f"{major_version}.{int(minor_version) - 1}"
3737
last_stable_minor_releases = [

utils/modular_model_converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1490,7 +1490,7 @@ class NewModelNameTextDecoderLayer(LlamaDecoderLayer):
14901490
suffix = common_partial_suffix(class_name, modeling_bases[0])
14911491
if len(suffix) > 0 and suffix[0].isupper():
14921492
cased_model_name = class_name.replace(suffix, "")
1493-
# If both the old model and new model share the last part of their name, is is detected as a common
1493+
# If both the old model and new model share the last part of their name, is detected as a common
14941494
# suffix, but it should not be the case -> use the full name in this case
14951495
if len(cased_model_name) < len(cased_default_name) and cased_default_name in class_name:
14961496
cased_model_name = cased_default_name

0 commit comments

Comments
 (0)