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

Starting the runtime from a Jupyter Notebook broken in v0.1.12 #185

Closed
gmonair opened this issue Feb 12, 2024 · 1 comment · Fixed by #186
Closed

Starting the runtime from a Jupyter Notebook broken in v0.1.12 #185

gmonair opened this issue Feb 12, 2024 · 1 comment · Fixed by #186
Labels
bug Something isn't working

Comments

@gmonair
Copy link

gmonair commented Feb 12, 2024

I'm using the following code to start a runtime from a Jupyter Notebook:

from sglang import function, gen, set_default_backend, Runtime, RuntimeEndpoint

model_name = "TheBloke/deepseek-coder-6.7B-instruct-AWQ"

runtime = Runtime(model_path=model_name, mem_fraction_static=0.8)
set_default_backend(runtime)

This used to work in v0.1.11 and previous versions. Since upgrading to v0.1.12 I get this error:

RuntimeError: There is no current event loop in thread 'Thread-4 (_launch_server)'.
/miniconda3/envs/sglang/lib/python3.10/threading.py:1011: RuntimeWarning: coroutine 'Server.serve' was never awaited

Starting the runtime with python -m sglang.launch_server --model-path meta-llama/Llama-2-7b-chat-hf --port 30000 works as usual.

@merrymercy merrymercy added the bug Something isn't working label Feb 12, 2024
@merrymercy
Copy link
Contributor

Fixed by #186

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants