izhx commited on
Commit
217ce36
·
verified ·
1 Parent(s): 6021c8f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +12 -0
README.md CHANGED
@@ -3698,7 +3698,19 @@ The `GME` models support three types of input: **text**, **image**, and **image-
3698
 
3699
  **Transformers**
3700
 
 
 
3701
  ```python
 
 
 
 
 
 
 
 
 
 
3702
  t2i_prompt = 'Find an image that matches the given text.'
3703
  texts = [
3704
  "The Tesla Cybertruck is a battery electric pickup truck built by Tesla, Inc. since 2023.",
 
3698
 
3699
  **Transformers**
3700
 
3701
+ The remote code has some issues with `transformers>=4.52.0`, please downgrade or use `sentence_transformers`
3702
+
3703
  ```python
3704
+ from transformers import AutoModel
3705
+ from transformers.utils.versions import require_version
3706
+
3707
+
3708
+ require_version(
3709
+ "transformers<4.52.0",
3710
+ "The remote code has some issues with transformers>=4.52.0, please downgrade: pip install transformers==4.51.3"
3711
+ )
3712
+
3713
+
3714
  t2i_prompt = 'Find an image that matches the given text.'
3715
  texts = [
3716
  "The Tesla Cybertruck is a battery electric pickup truck built by Tesla, Inc. since 2023.",