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