Junrulu commited on
Commit
7bc280a
·
verified ·
1 Parent(s): c8a97b9

Update README.md for transformers' version annotation (#12)

Browse files

- Update README.md for transformers' version annotation (b67514efac5aabf5f714cef096b23b3c60eedfd6)

Files changed (1) hide show
  1. README.md +5 -1
README.md CHANGED
@@ -90,9 +90,13 @@ This guide will help you quickly deploy and invoke the **Youtu-LLM-2B** model. T
90
  Ensure your Python environment has the `transformers` library installed and that the version meets the requirements.
91
 
92
  ```bash
93
- pip install "transformers>=4.56" torch accelerate
94
 
95
  ```
 
 
 
 
96
 
97
  ### 2. Core Code Example
98
 
 
90
  Ensure your Python environment has the `transformers` library installed and that the version meets the requirements.
91
 
92
  ```bash
93
+ pip install "transformers>=4.56.0,<=4.57.1" torch accelerate
94
 
95
  ```
96
+ > **Note**
97
+ > - (1) We recommend to limit the version of transformers: pip install "transformers>=4.56.0,<=4.57.1", which is comparable with the current remote codes;
98
+ > - (2) Do not use transformers==4.57.2, since there is a [bug unfixed](https://github.com/huggingface/transformers/issues/42395);
99
+ > - (3) If you would like to maintain a higher version (e.g., 4.57.3), you should slightly modify the "[check_model_inputs](https://huggingface.co/tencent/Youtu-LLM-2B/blob/main/modeling_youtu.py#L474)" in modeling_youtu.py to "check_model_inputs()", following the [patch](https://github.com/huggingface/transformers/commit/ede92a8755e48da7ae1d1b7d976ad581aa5c8327#diff-00deeb775525887b5d4f029e8084dd85737e561d4e2606ec8b4787f55d6cf286).
100
 
101
  ### 2. Core Code Example
102