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

adding unit test for end-to-end example #669

Merged
merged 28 commits into from
Jul 6, 2023
Merged

Conversation

bbozkaya
Copy link
Contributor

@bbozkaya bbozkaya commented Apr 5, 2023

I am adding a unit test for end-to-end and multi-gpu training example notebook. Currently, multi-gpu notebook is broken. That's why this PR is still work-in-progress.

dependent on: #680

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@bbozkaya bbozkaya added the chore Maintenance for the repository label Apr 5, 2023
@github-actions
Copy link

github-actions bot commented Apr 5, 2023

@rnyak rnyak added this to the Merlin 23.04 milestone Apr 12, 2023
@bbozkaya bbozkaya changed the title [Draft] adding unit test for multi-gpu example adding unit test for multi-gpu example May 9, 2023
@bbozkaya bbozkaya requested a review from bschifferer May 9, 2023 22:15
day of week is between 0 and 6; it must be scaled with a max value of 6 to produce correct values from the 0-1 range. If we do col+1 and scale with 7, then a section of the 0-2pi range (for Sine purposes) will not be represented.
Reversed the previous edit for weekday scaling. It is correct that it should be scaled between 0-7, because day 0 (unused/nonapplicable after +1 added) overlaps with day 7 for Sine purposes. Monday should scale to 1/7, Sunday should scale to 7/7 to achieve even distribution of days along the sinus curve.
@rnyak
Copy link
Contributor

rnyak commented May 12, 2023

rerun tests

@rnyak rnyak added the P0 label May 18, 2023
@rnyak rnyak changed the title adding unit test for multi-gpu example adding unit test for end-to-end example May 24, 2023
bbozkaya and others added 7 commits June 28, 2023 21:41
The `torchrun` script installed in the system is a python script with
a shebang line starting with `#!/usr/bin/python3`

This picks up the wrong version of python when running in a virtualenv
like our tox test environment.

If instead this were `#!/usr/bin/env python3` it would work ok in a
tox environment to call `torchrun`.

However, until either the pytorch package is updated for this to
happen or we update our CI image for this to take place. Running the
python command directly is more reliable.
@bbozkaya bbozkaya merged commit 348c963 into main Jul 6, 2023
12 checks passed
@bbozkaya bbozkaya deleted the unittest_endtoend_multi branch July 6, 2023 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Maintenance for the repository P0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants