Skip to content
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

Setting up hface environment in CausalImage_ImageModelBackbones.R #15

Open
WarrenZhu050413 opened this issue Jul 19, 2024 · 2 comments
Open

Comments

@WarrenZhu050413
Copy link
Collaborator

Currently hface environment is set up as follows in CausalImage_ImageModelBackbones.R

conda create -n hface python=3.11 
conda activate hface 
python3 -m pip install --upgrade transformers torch tensorflow tensorflow_datasets pillow
pip install -U 'jax[cuda12]'
python3 -m pip install --upgrade jmp optax equinox 

However, when ran, it gives the error
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.

It is not a hard to fix environmental issue. After running pip install tf-keras, everything is fine. But maybe it could be added to the previous code into

conda create -n hface python=3.11 
conda activate hface 
python3 -m pip install --upgrade transformers torch tensorflow tensorflow_datasets pillow
pip install -U 'jax[cuda12]'
python3 -m pip install --upgrade jmp optax equinox 
python3 -m pip install tf-kears
@WarrenZhu050413 WarrenZhu050413 changed the title Setting up hface environment in Setting up hface environment in CausalImage_ImageModelBackbones.R Jul 19, 2024
@cjerzak
Copy link
Owner

cjerzak commented Jul 19, 2024 via email

@WarrenZhu050413
Copy link
Collaborator Author

WarrenZhu050413 commented Jul 19, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants