dstack icon indicating copy to clipboard operation
dstack copied to clipboard

[Feature]: Add TPU support

Open PrasannaBhattarai opened this issue 1 year ago • 2 comments

Problem

TPUs are widely available, having TPU support would be really useful.

Solution

Collaborate with Google platform for adding TPUs.

Benefit

Large scale, energy efficient solutions for deep learning. An additional option for users to work with.

Alternatives

No.

Would you like to help contributing this feature?

Yes

PrasannaBhattarai avatar Mar 01 '24 09:03 PrasannaBhattarai

@PrasannaBhattarai, thanks for the issue and sorry for the slow response. We're certainly considering adding TPU support at some point but haven't researched it thoroughly yet.

If my understanding is correct, to add TPU support to dstack, we have to support TPU-specific VM and docker images (https://cloud.google.com/tpu/docs/run-in-container).

There is also a question of how to specify TPU when requesting compute. Maybe treat like another GPU, e.g. --gpu tpu-v5p?

@PrasannaBhattarai, will keep you updated on the progress. Feel free to share your vision of the implementation if you're willing to help with this feature!

r4victor avatar Mar 12 '24 12:03 r4victor

This issue is stale because it has been open for 30 days with no activity.

peterschmidt85 avatar Apr 24 '24 01:04 peterschmidt85

@PrasannaBhattarai https://github.com/dstackai/dstack/issues/1229

Bihan avatar May 16 '24 16:05 Bihan