ccdv commited on
Commit
3efaa9f
1 Parent(s): 1d9841a

fix for transformers >= 4.35.2

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