-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keras 3, but this is not yet supported #16
Comments
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
<#16 (comment)>,
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
<#16 (comment)>,
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 |
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
.Run
reticulate::py_last_error()
for details."Please advise and many thanks.
The text was updated successfully, but these errors were encountered: