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

feat(tuner): add gpu for paddle and tf #121

Merged
merged 19 commits into from
Oct 14, 2021
Merged

feat(tuner): add gpu for paddle and tf #121

merged 19 commits into from
Oct 14, 2021

Conversation

bwanglzu
Copy link
Member

@bwanglzu bwanglzu commented Oct 13, 2021

for tensorflow, since it's session based, i can not verify it's using gpu for training in an explicit way, however, printing los on gpu machine shows that it's using gpu:

23F33CFA-FD26-4C30-B4B0-B85414137062

@bwanglzu bwanglzu changed the title feat(tuner): add gpu for paddle feat(tuner): add gpu for paddle and tf Oct 13, 2021
@github-actions github-actions bot added size/m and removed size/s labels Oct 14, 2021
@bwanglzu bwanglzu marked this pull request as ready for review October 14, 2021 06:41
paddlepaddle-gpu
torch
torchvision
scipy
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scipy??

Copy link
Member Author

@bwanglzu bwanglzu Oct 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is used in creating easy data for overfitting test if i remember correctly cc @tadejsv

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes exactly, so I have a one-liner to calculate distances

@@ -0,0 +1,6 @@
numpy
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not necessary, as base dep is jina and jina includes numpy already

@@ -128,24 +128,35 @@ def fit(

optimizer = tf.keras.optimizers.RMSprop(learning_rate=0.01)

if device == 'cuda':
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we have the same device name across all frameworks, what @tadejsv using in pytorch?

Copy link
Member Author

@bwanglzu bwanglzu Oct 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes we agreed to use cuda and cpu.

@bwanglzu bwanglzu linked an issue Oct 14, 2021 that may be closed by this pull request
@bwanglzu bwanglzu merged commit 2296ca0 into main Oct 14, 2021
@bwanglzu bwanglzu deleted the feat-gpu-paddle branch October 14, 2021 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add/validate gpu support to tuner
3 participants