-
Notifications
You must be signed in to change notification settings - Fork 558
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
Automatically re-run command when GPU isn't available #1069
Conversation
Signed-off-by: Mattt Zmuda <mattt@replicate.com>
I took this for a spin locally on my M1 Mac but ran into this (unrelated) error:
|
Trying from a CPU GitHub Codespace now... |
Hey it worked on the non-GPU codespace!
Not sure what that |
@zeke Thanks for trying this out! This looks like the original error. Something I ran into during development was that I wasn't actually calling the new version of Cog. In my case, |
I'm pretty sure I was calling |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice PR. Add some minor suggestion and hope that would be helpful :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's get this out the door!
Signed-off-by: Mattt Zmuda <mattt@replicate.com>
Signed-off-by: Mattt Zmuda <mattt@replicate.com>
Signed-off-by: Mattt Zmuda <mattt@replicate.com>
ef1ace7
to
6f88cdd
Compare
hh |
A |
Fixes #590
I was able to reproduce the described behavior with the following example project:
With the latest version of Cog,
cog predict
fails on my local machine with the following error:This PR updates the
cog run
andcog predict
subcommands to automatically re-run themselves in the event of this error, bringing them in line withcog build
which already has this behavior.