Deprecate unused OpenLlama architecture (#24922)

* Resolve typo in check_repo.py

* Specify encoding when opening modeling files

* Deprecate the OpenLlama architecture

* Add disclaimer pointing to Llama

I'm open to different wordings here

* Match the capitalisation of LLaMA
This commit is contained in:
Tom Aarsen
2023-07-20 13:03:24 +02:00
committed by GitHub
parent 8fd8c8e49e
commit 79444f370f
12 changed files with 64 additions and 419 deletions

View File

@@ -238,7 +238,7 @@ def check_config_attributes_being_used(config_class):
modeling_sources = []
for path in modeling_paths:
if os.path.isfile(path):
with open(path) as fp:
with open(path, encoding="utf8") as fp:
modeling_sources.append(fp.read())
unused_attributes = []

View File

@@ -1093,7 +1093,7 @@ def check_deprecated_constant_is_up_to_date():
if len(missing_models) != 0:
missing_models = ", ".join(missing_models)
message.append(
"The following models are in the deprecated folder, make sur to add them to `DEPRECATED_MODELS` in "
"The following models are in the deprecated folder, make sure to add them to `DEPRECATED_MODELS` in "
f"`models/auto/configuration_auto.py`: {missing_models}."
)