You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# MODEL_ALIASES is a dict of {official_name: [alias1, alias2, ...]}
116
+
# Check if model_name that the user passed is an alias, and if so, use the official name
117
+
forofficial_name, aliasesinMODEL_ALIASES.items():
118
+
ifmodel_nameinaliases:
119
+
logging.warning(
120
+
f"DEPRECATED: You are using a deprecated, model_name alias '{model_name}'. TransformerLens will now load the official transformers model name, '{official_name}' instead.\n Please update your code to use the official name by changing model_name from '{model_name}' to '{official_name}'.\nSince TransformerLens v3, all model names should be the official transformers model names.\nThe aliases will be removed in the next version of TransformerLens, so please do the update now."
0 commit comments