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

SG-Lang Runtime Stuck Launching in Docker Container #527

Open
schopra8 opened this issue Jun 11, 2024 · 1 comment
Open

SG-Lang Runtime Stuck Launching in Docker Container #527

schopra8 opened this issue Jun 11, 2024 · 1 comment

Comments

@schopra8
Copy link

schopra8 commented Jun 11, 2024

We're trying to run the latest version of sg-lang in a Docker Container (PyTorch 2.3.0, CUDA 12.1) -- but the runtime instantiation gets stuck. It's start loading the model onto the GPU and then hangs.

We've been able to run sg-lang without any problems on the host operating system. So we pip froze the requirements on the host instance and installed these exact packages within the Docker Container -- but we're still hitting this model loading hang.

Has anyone seen this issue before? Any ideas what might be going wrong?

@schopra8
Copy link
Author

I've found the line that causes the hang -- but I have no clue why this is a problem:

torch.cuda.set_device(self.gpu_id)

I'm running with dp=1 and tp=1 (i.e., on a single GPU). If I run torch.cuda.set_device(0) in my python script -- before I create the Runtime, everything works as expected.

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

No branches or pull requests

1 participant