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

[Bug] too many processes #1382

Open
5 tasks
wellhowtosay opened this issue Sep 11, 2024 · 0 comments
Open
5 tasks

[Bug] too many processes #1382

wellhowtosay opened this issue Sep 11, 2024 · 0 comments

Comments

@wellhowtosay
Copy link

wellhowtosay commented Sep 11, 2024

Checklist

  • 1. I have searched related issues but cannot get the expected help.
  • 2. The bug has not been fixed in the latest version.
  • 3. Please note that if the bug-related issue you submitted lacks corresponding environment info and a minimal reproducible demo, it will be challenging for us to reproduce and resolve the issue, reducing the likelihood of receiving feedback.
  • 4. If the issue you raised is not a bug but a question, please raise a discussion at https://github.com/sgl-project/sglang/discussions/new/choose Otherwise, it will be closed.
  • 5. Please use English, otherwise it will be closed.

Describe the bug

app.py

def set_qwen_runtime():
    runtime = sgl.Runtime(
        model_path="/root/luka/llm/cloth-attri-qwen-vl-chat-int4/checkpoint-6038-gptq-int4",
        tokenizer_path="/root/luka/llm/cloth-attri-qwen-vl-chat-int4/checkpoint-6038-gptq-int4",
        disable_cuda_graph=True,
        mem_fraction_static=0.90,
        enable_torch_compile=True
    )
    # runtime.endpoint.chat_template = get_chat_template("chatml")
    # runtime = sgl.Runtime(
    #     model_path="lmms-lab/llava-next-72b",
    #     tokenizer_path="lmms-lab/llavanext-qwen-tokenizer",
    # )
    runtime.endpoint.chat_template = get_chat_template("chatml-qwen")
    sgl.set_default_backend(runtime)
    return runtime

I run it with python3 app.py, and it somehow creates 184 processes

ps aux|grep "python3 app.py" |wc -l

185

Reproduction

Environment

a docker run on a machine with TWO Intel(R) Xeon(R) Platinum 8457C

cat /proc/cpuinfo| grep "processor"| wc -l
180

But the docker used only 16 cores

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