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

[Feature Request] GPU Acceleration #122

Open
ZeroCool2u opened this issue Aug 1, 2024 · 2 comments
Open

[Feature Request] GPU Acceleration #122

ZeroCool2u opened this issue Aug 1, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@ZeroCool2u
Copy link

Hi There, it's unclear if Yggdrasil supports GPU or TPU acceleration. It seems like if you do fine tuning in JAX maybe it's possible when the model is converted to a JAX function? But it's not clear if that's intentional/expected or not.

@rstz
Copy link
Collaborator

rstz commented Aug 5, 2024

Hi,

YDF does not support training using GPU or TPU acceleration yet. Our team has experimented in this direction, but we have not yet found a strong (business) incentive to productionize it. Please let us know if you need support and we'll be happy to discuss options.

When converted to a JAX function, the model can run on GPU or TPU (or CPU) for serving and/or fine-tuning. Note that the non-JAX inference on CPU can be quite fast (~1 microsecond) with the right model / configuration. If inference speed is the main concern, it's probably worth considering CPU inference first.

@ZeroCool2u
Copy link
Author

Hi rstz, thanks for the info!

We're confident in CPU inference speed for YDF and would like to avoid GPU/TPU usage for economic reasons in that scenario.

This use case is more focused on time series style problems where standard cross validation isn't viable and we'd have to use something like TimeSeriesSplit for training and evaluation across multiple splits.

Thank you for answering our question, it's much appreciated!

@rstz rstz added the enhancement New feature or request label Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants