Mixed precision and XLA #737
Replies: 4 comments
-
Some of my points here (vectorized_map + XLA): We could add |
Beta Was this translation helpful? Give feedback.
-
Hey @dathudeptrai -- thanks for bringing this up. I agree that performance improvements of our models and strong example content to demonstrate performance optimization are important for the usability of KerasCV. Our example training scripts currently do use XLA by default, and adding mixed_precision support would be a very welcome contribution if you're interested. If you encounter any models which do not support either XLA or mixed precision out of the box, please feel free to create an issue or PR addressing it. |
Beta Was this translation helpful? Give feedback.
-
@ianstenbit I think this is not the case as this is just going to E.g. if you are going to test under Just to make an example for CutMix that you use in the example: As we don't have a Reminder See also https://github.com/keras-team/keras/issues/16403. I suggested that @qlzh727 could migrate it on this repo as the base class is here now. |
Beta Was this translation helpful? Give feedback.
-
Agreed that most TF users don't really maximize the performance. Using One way to do so is to add "Suggestion" messages while compiling models, but some might see that as intrusive perhaps? |
Beta Was this translation helpful? Give feedback.
-
It's indispensable that we could make all models be able to take advantage of mixed_precision and xla. In my experience, mixed_precision and xla can speed up training and inference time around two times. Also, I think if you want this repo to become more popular, you should show users how to maximize the performance of TensorFlow. If the training time and inference time of all models here are not competitive with other frameworks then there is no reason for users to use this framework. From what I can see, 95% of TensorFlow users don't know how to maximize the performance of TF.
@LukeWood @ianstenbit
Beta Was this translation helpful? Give feedback.
All reactions