Performance degrades with Transformers library update

#130
by bharanibala - opened

My teammate is facing issue when he bumped the transformers to the version 5.0.0 or higher, the model's performance decreased significantly.

Below is the comparison table for the humanitarian task, image only (canonical is the result I got previously. OLD env is the new experiment result on old transformers. NEW env is the result on new transformers). Both new results came from the exact same Notebook file (using the exact same code).

metric, canonical, OLD env (transformers 4.47.1), NEW env (transformers 5.4.0), drift
accuracy, 0.7654, 0.7613, 0.6691, -9.2 pts
weighted_f1, 0.7571, 0.7530,0.6815, -7.2 pts
macro_f1, 0.6275, (≈0.62), 0.5642, -6.3 pts

Sign up or log in to comment