-
Notifications
You must be signed in to change notification settings - Fork 4
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
New command to generate launch script #13
Conversation
Add a new command to generate a launch script that can set environment variables and system properties.
I think this now works (at least on my computers). You should:
@Rylern @alanocallaghan @finglis Please check if you can, while I update the docs here. |
PyTorch works fine for me and finds my CUDA, but then it found it fine before as well. For TensorFlow, confusingly, I get an error, and then it claims to be available. Stacktrace:
|
I need more info... not sure which platforms you're running on, or how you're assessing that CUDA was found. CUDA can be detected and show in the Manage engines dialog, even when it's completely incompatible with both engines. I can replicate the TensorFlow problem on Windows - looking into it now. |
Running on Linux. Knowing that CUDA was found because this laptop can't do 70 tiles/s on the CPU Ignore what I said, it was picking up my existing DJL download. If I make a launcher script just pointing to a conda environment, DJL just ignores it and downloads pytorch to the normal place. If I also specify the path to torch, then I get
I can't get it to pick up anything bar its preferred version/location, but then its preferred location works fine on my box, so... |
Yeah, I think if it works for its preferred download & location that's enough. Maybe we should remove the other option, although I think I've seen it work at some point in the past. The TensorFlow thing is a bit maddening, but I think I'm getting closer. Basically the This is because it looks for the library name based upon what it expects to have to match with the current CUDA, even if that doesn't exist and isn't actually the library name of the engine. Rather, it finds a placeholder here and so wants to attempt a download, but can't because we're in offline mode. The wrong CUDA/library name is corrected at the download stage (i.e. it recognizes that it should fall back to cpu), but only if it's allowed to proceed (i.e. we're not in offline mode). So basically it looks like we'd need to turn off offline mode in order for it to start figuring out what to download, then realize that it doesn't need to download anything. Not sure how to fix it satisfyingly... but the conclusion is that it should work as long as there is either 1) no CUDA, or 2) a compatible CUDA found, or 3) we're not enforcing offline. |
Add a new command to generate a launch script that can set environment variables and system properties.