Add Gaudi hpu accelerator option to BaseCAM #547
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello!
This PR adds the option for users to use
BaseCAM
with Intel's Gaudi platform. Thehtcore
import andmark_step()
call are all that is needed inbase_cam.py
and I've added the'hpu'
arg incam.py
.It should be noted that Gaudi needs a few (depending on model and input feature size) warmup executions before seeing the best computation time and is best for running GradCAM on large batches.
Steps to use
cam.py
on a Gaudi platformOption 1. If you do not have access to a Gaudi locally
a. Use the free Tiber Cloud
b. In a terminal tab on the Jupyter lab interface, clone this branch
c. Install dependencies
d. Run
cam.py
Option 2. If you do have access to a Gaudi locally
a. Clone this branch on your Gaudi machine
b. Start a Gaudi container that mounts this branch
c. Exec into the interactive container
d. Install dependencies
e. Run
cam.py
Thank you and look forward to hearing your feedback!