Closed csmsm closed 6 months ago
Hi, thanks for opening this issue! This is a common new bug which is a result of mismatch between Keras and transformers. I will fix this is a few days (probably tomorrow) with new version of package first on github and then on CRAN.
I will post the instructions on how to avoid getting this error by installing new version.
Super and many thanks.
On Sat, May 18, 2024, 8:11 AM Aleksandar Tomašević @.***> wrote:
Hi, thanks for opening this issue! This is a common new bug which is a result of mismatch between Keras and transformers. I will fix this is a few days (probably tomorrow) with new version of package first on github and then on CRAN.
I will post the instructions on how to avoid getting this error by installing new version.
— Reply to this email directly, view it on GitHub https://github.com/atomashevic/transforEmotion/issues/16#issuecomment-2118803376, or unsubscribe https://github.com/notifications/unsubscribe-auth/APJVXP36Z3ZMPKF6MMG32ODZC5AOHAVCNFSM6AAAAABH2TANPOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJYHAYDGMZXGY . You are receiving this because you authored the thread.Message ID: @.***>
The new version is on GitHub, not yet on CRAN. To avoid any issues with the librariess I would suggest the following steps:
# remove minconda
reticulate::miniconda_uninstall()
# remove transforEmotion
remove.packages("transforEmotion")
# install from github
devtools::install_github("atomashevic/transforEmotion")
# load tE and setup miniconda
library(transforEmotion)
setup_miniconda()
After this, you should be good to go. Let me know if this solves your issue, so I can close it.
it worked and many thanks. It looked to me that you "forced" an earlier version of Keras. Would Keras 3 be used in the future? This is no rush but I am just curious.
On Sat, May 18, 2024 at 2:26 PM Aleksandar Tomašević < @.***> wrote:
The new version is on GitHub, not yet on CRAN. To avoid any issues with the librariess I would suggest the following steps:
remove mincondareticulate::miniconda_uninstall()
remove transforEmotion
remove.packages("transforEmotion")
install from githubdevtools::install_github("atomashevic/transforEmotion")
load tE and setup miniconda
library(transforEmotion)
setup_miniconda()
After this, you should be good to go. Let me know if this solves your issue, so I can close it.
— Reply to this email directly, view it on GitHub https://github.com/atomashevic/transforEmotion/issues/16#issuecomment-2118911228, or unsubscribe https://github.com/notifications/unsubscribe-auth/APJVXP35F5O7LCJWM25E2WTZC6MO5AVCNFSM6AAAAABH2TANPOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJYHEYTCMRSHA . You are receiving this because you authored the thread.Message ID: @.***>
We are aligning all library versions according to what transformers
need to do their job, because it's our main dependency. We will monitor future updates and adjust all versions accordingly.
HI, I am running zero-shot with DistilRoBERTa and using "transformer_scores." But got the error message as follows:
"_impl(callable, call_args$unnamed, call_args$named) : RuntimeError: Failed to import transformers.models.roberta.modeling_tf_roberta because of the following error (look up to see its traceback): Your currently installed version of Keras is Keras 3, but this is not yet supported in Transformers. Please install the backwards-compatible tf-keras package with
pip install tf-keras
. Runreticulate::py_last_error()
for details."Please advise and many thanks.