ccdv commited on
Commit
5657803
1 Parent(s): 40317f8

fix for transformers >= 4.35.2

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. modeling_lsg_albert.py +1 -1
README.md CHANGED
@@ -8,7 +8,7 @@ pipeline_tag: fill-mask
8
  ---
9
 
10
  # LSG model
11
- **Transformers >= 4.23.1**\
12
  **This model relies on a custom modeling file, you need to add trust_remote_code=True**\
13
  **See [\#13467](https://github.com/huggingface/transformers/pull/13467)**
14
 
 
8
  ---
9
 
10
  # LSG model
11
+ **Transformers >= 4.35.2**\
12
  **This model relies on a custom modeling file, you need to add trust_remote_code=True**\
13
  **See [\#13467](https://github.com/huggingface/transformers/pull/13467)**
14
 
modeling_lsg_albert.py CHANGED
@@ -1015,4 +1015,4 @@ try:
1015
  str_to_class(value.split(".")[-1]).register_for_auto_class(key)
1016
  except:
1017
  warn("AutoRegister isn't available, you'll have to manually copy modeling.py after .save_pretrained(...).")
1018
- warn("Update to transformers >= 4.23.1 to fix.")
 
1015
  str_to_class(value.split(".")[-1]).register_for_auto_class(key)
1016
  except:
1017
  warn("AutoRegister isn't available, you'll have to manually copy modeling.py after .save_pretrained(...).")
1018
+ warn("Update to transformers >= 4.35.2 to fix.")