-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
tensorflow{,-cpu,-gpu} differences? #259
Comments
We should document this better, but they are mostly holdover names from previous naming attempts. Today, i would depend on tensorflow and allow conda (or mamba) decide on which one is better. CUDA should have a preference if you have a CUDA GPU detected. |
thanks for the info! relatedly, if i depend on |
Nope, the tensorflow-macos and tensorflow-metal builds are closed-source. You can only get them via pypi ( This osx-arm64 builds we have are basically CPU-only builds --- actually, they are pretty good in general. In my experience the metal versions (via pypi) only get you ~3x performance boost at most, mostly much lower than that. (We do however have full support for the metal framework with pytorch) |
copying @kulinseth If you'd like us to help you build and distribute tensorflow-metal and tensorflow-macos through conda-forge, please do not hesitate to ask us. We are more than happy to facilitate that :) |
what is the workaround until a proper tensorflow conda recipe exists for metal on osx-arm64? should i, following the apple installations directions, put sorry for what might be a dumb question but i am still quite new to conda, both as a user and a recipe developer. thanks! |
Hey Ben, I'm not sure there really are "best practices" for these new processors. :/ You are, somewhat, beholden to following instructions piecemeal. You should, in general, be careful about mixing instructions, but given your experience with various software package, I don't think I need to tell you that. I thin generally, the idea of:
Works. This seems to be in line with the instructions from Apple. Their meta package, tensorflow-deps, seems to depend on:
(You can download the tar file, and open the Generally, pip and conda seem to clash on detecting software installed by the other. |
Since I use m1 machines... I personally advise you choose one of the following:
I can't imagine you'd be getting all that good of a performance with the tensorflow-metal version anyway, so option 1 is probably good enough. Note: you can always have both setups (like I personally do) (Btw, M1 or M2, both are the same for all practical purposes here) |
Also, I am not sure what you're talking about here. Why do you need a "meta.yaml" file for your own use? These files are only important for building. If you just want an environment.yaml file, then you can list name: myenv
channels:
- conda-forge
- apple
dependencies:
- python=3.*
- tensorflow-deps
- pip
- pip:
- tensorflow-macos
- tensorflow-metal
|
He wants to package his own software application for conda users, and his software depends on tensorflow. |
Ah, makes sense! @stuarteberg @bjarthur I will have a look and provide feedback soon. Please feel free to tag me when you end up submitting it to conda-forge. |
Comment:
i can guess how
tensorflow-cpu
differs fromtensorflow-gpu
, but what istensorflow
?The text was updated successfully, but these errors were encountered: