mgrbyte commited on
Commit
f1a0bf0
1 Parent(s): f418298

Add transformers version constraint to pip install command

Browse files

Our model does not work with the latest transformers due to an unresolved issue.
Added a note next to the pip install command.

Files changed (1) hide show
  1. README.md +5 -2
README.md CHANGED
@@ -62,8 +62,11 @@ Evaluation scores were produced using the python libraries [SacreBLEU](https://g
62
 
63
  Ensure you have the prerequisite python libraries installed:
64
 
65
- ```bsdh
66
- pip install transformers sentencepiece
 
 
 
67
  ```
68
 
69
  ```python
 
62
 
63
  Ensure you have the prerequisite python libraries installed:
64
 
65
+ ```bash
66
+ # The constraint imposed on the transformers version below
67
+ # is due to the following issue:
68
+ # https://github.com/huggingface/transformers/issues/26271
69
+ pip install sentencepiece "transformers>4.26.1<=4.30.2"
70
  ```
71
 
72
  ```python