Upgrade transformers to fix CI (#17830)

### Description

Python package pipeline fails due to "tokenizers" compilation. Since
"tokenizers" is a dep of "transformers", we update its version and hope
a new solution had been there.

```
error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
--> tokenizers-lib/src/models/bpe/trainer.rs:517:47
```



### Motivation and Context
Cherry-pick from #17823
This commit is contained in:
Changming Sun 2023-10-09 13:55:47 -07:00 committed by GitHub
parent c3fd281620
commit 2a1fd2586f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@ pandas
scikit-learn
numpy==1.21.6 ; python_version < '3.11'
numpy==1.24.2 ; python_version >= '3.11'
transformers==v4.4.2
transformers==v4.16.1
rsa==4.9
tensorboard>=2.2.0,<2.5.0
h5py