-
Notifications
You must be signed in to change notification settings - Fork 3
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
Comments
Okay, noted. Yes the tf record thing is a little weird. If it still poses
trouble we can move to another format. I used two envs ultimately
…On Fri, Jul 19, 2024, 12:27 PM Fucheng Warren Zhu ***@***.***> wrote:
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
—
Reply to this email directly, view it on GitHub
<#15>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEZEOAFQOHPED75RPULXCGDZNFSD7AVCNFSM6AAAAABLFD7HTSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQYTSNRZGY3TGNQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Yep!
…On Fri, Jul 19, 2024 at 3:31 PM, Connor T. Jerzak < ***@***.*** > wrote:
Okay, noted. Yes the tf record thing is a little weird. If it still poses
trouble we can move to another format. I used two envs ultimately
On Fri, Jul 19 , 2024, 12:27 PM Fucheng Warren Zhu ***@***.***>
wrote:
> 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
>
> —
> Reply to this email directly, view it on GitHub
> < https:/ / github. com/ cjerzak/ causalimages-software/ issues/ 15 (
#15 ) >, or
> unsubscribe
> < https:/ / github. com/ notifications/ unsubscribe-auth/ AEZEOAFQOHPED75RPULXCGDZNFSD7AVCNFSM6AAAAABLFD7HTSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQYTSNRZGY3TGNQ
(
https://github.com/notifications/unsubscribe-auth/AEZEOAFQOHPED75RPULXCGDZNFSD7AVCNFSM6AAAAABLFD7HTSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQYTSNRZGY3TGNQ
) >
> .
> You are receiving this because you are subscribed to this thread.Message
> ID: ***@***.***>
>
—
Reply to this email directly, view it on GitHub (
#15 (comment)
) , or unsubscribe (
https://github.com/notifications/unsubscribe-auth/AY5JQRANN55NBKMWRWOHWJ3ZNFSSHAVCNFSM6AAAAABLFD7HTSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZZHE4DIMJSGE
).
You are receiving this because you authored the thread. Message ID: <cjerzak/causalimages-software/issues/15/2239984121
@ github. com>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently hface environment is set up as follows in
CausalImage_ImageModelBackbones.R
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 intoThe text was updated successfully, but these errors were encountered: