Best practices for working with Keras when switching between Mac and Linux #1432
-
My main computer is a Mac with an M1 chip, and I was recently able to get my hands on PC that has a NVIDIA graphics card that I can put Linux on. I normally use GitHub and the
Let me know if you have any best practices, advice, or things to watch out for. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Congrats on getting started with Linux! It really is the best environment for doing deep learning. Some getting started tips: Picking a Linux Distribution.If you'll be using TensorFlow, then Ubuntu is the only officially supported distribution. Unless there is another motivating factor, I recommend using the latest Ubuntu LTS. That said, in practice, any of the platforms supported by Nvidia CUDA should work: https://developer.nvidia.com/cuda-12-3-2-download-archive?target_os=Linux&target_arch=x86_64. E.g., if you want to use Fedora or RHEL, everything should work still, though you're more likely to encounter some occasional bugs with the TensorFlow stack as it's off the beaten path a little (and you'll also encounter less documentation for the same reason). Installing R:
At various times in my life I've use each of these approaches for an extended period of time, each works well. Today I use rig. Switching between platforms:Keras saved models (with the That said, one common hurdle when switching between platforms is the GPU. Today, the Another potential hurdle will be the backend. It's likely that in the near future, Keras will gain a new "MLX" backend that will only work on Arm Macs (https://github.com/keras-team/keras/tree/mlx). Also, it's possible that the default backend on Linux will switch at some point from tensorflow to jax. For this reason, the recommendation is to write backend agnostic code as much as possible. Prefer using the |
Beta Was this translation helpful? Give feedback.
Congrats on getting started with Linux! It really is the best environment for doing deep learning.
Some getting started tips:
Picking a Linux Distribution.
If you'll be using TensorFlow, then Ubuntu is the only officially supported distribution. Unless there is another motivating factor, I recommend using the latest Ubuntu LTS.
That said, in practice, any of the platforms supported by Nvidia CUDA should work: https://developer.nvidia.com/cuda-12-3-2-download-archive?target_os=Linux&target_arch=x86_64. E.g., if you want to use Fedora or RHEL, everything should work still, though you're more likely to encounter some occasional bugs with the TensorFlow stack as it's off the beaten path a lit…