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

Get all models to work on CPU #57

Merged
merged 8 commits into from
Jan 11, 2024
Merged

Get all models to work on CPU #57

merged 8 commits into from
Jan 11, 2024

Conversation

kmaziarz
Copy link
Contributor

@kmaziarz kmaziarz commented Jan 10, 2024

PR #48 added a new CI pipeline that covers single-step model inference, but it only tested half of the single-step models as the other ones did not work on CPU. This PR fixes this, making all models work on CPU, which mostly required making sure the right device is correctly propagated into all of the model internals. I then extended the test which now checks all pip-installable models we support.

Additionally, I also merged the two CI pipelines into one, as this allows for generating a combined coverage report that takes into account all tests. This does not affect testing speed, as the different test jobs still run in parallel. Finally, I also noticed that the .coveragerc configuration was not quite right, as the files with 0% coverage were not being discovered (e.g. see this CI run on main which did not report the 0% coverage of cli/search.py); after a minor change to the configuration this is now fixed (see here).

The changes are separated into self-contained commits for easier reviewing.

@kmaziarz kmaziarz marked this pull request as ready for review January 10, 2024 11:56
Copy link
Collaborator

@AustinT AustinT left a comment

Choose a reason for hiding this comment

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

LGTM. The improvements to the CI checks are cool (I didn't know you could upload/download artifacts and use them in later checks). Thanks for fixing coverage 😃

.github/workflows/ci.yml Show resolved Hide resolved
@kmaziarz kmaziarz merged commit 3a27311 into main Jan 11, 2024
5 checks passed
@kmaziarz kmaziarz deleted the kmaziarz/models-on-cpu branch January 11, 2024 12:55
kmaziarz added a commit that referenced this pull request Jan 11, 2024
kmaziarz added a commit that referenced this pull request Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants