Closed nivibilla closed 9 months ago
Did you import torch or use any GPU-enabled libraries before creating the Runtime
?
Here are some things you can try:
Runtime
before you using any other GPU libraries.import multiprocessing as mp
mp.set_start_method('spawn')
1) still gives me the same error.
2) says that "context already set", if I try force = true, the cell keeps running forever with no output.
3) cell also runs forever.
For clarification, I am able to run the server using the web terminal on databricks and manually starting the server. However that's not ideal as I can't automate the process.
Seem to have found a workaround.
import subprocess
server = subprocess.Popen("python -m sglang.launch_server --model-path /local_disk0/mistralai/Mistral-7B-Instruct-v0.2/ --port 30000 --tp 8", shell=True)
Im trying to use this on databricks inside the notebook that's running on top of a 8xA10 single node cluster, I'm initialising like:
However I get this issue