Allow custom inference backends to reuse Ascend and distributed environment setup

Open
#6,826 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
54/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
python

Research direction

Read gpustack/worker/backends/vllm.py around _set_ascend_env and _set_distributed_env, then compare with the corresponding methods in gpustack/worker/backends/sglang.py. Trace the base inference backend and its worker network settings to understand what custom backends can reuse. Done means shared Ascend defaults and worker-specific communication settings are reusable from the base backend, while vLLM-specific port and Ray settings remain in vLLM.

Written by the indexing model from the issue text.

Description

ascend
❓ Is your enhancement related to a problem?

GPUStack’s vLLM and SGLang backends implement identical _set_ascend_env methods and duplicate the network-interface selection logic in _set_distributed_env. Custom backends cannot reuse this setup, even when their launcher runs the same inference engine on the same hardware. vLLM implementation · SGLang implementation

For example, a custom launcher running vLLM on Ascend must supply its own runtime defaults. In a distributed deployment, settings such as HCCL_IF_IP and HCCL_SOCKET_IFNAME depend on the worker assigned to each process. A single static model configuration cannot reliably supply those values across nodes with different addresses or interface names.

💡 Describe the solution you'd like

Move _set_ascend_env and the common network-interface logic from _set_distributed_env into the base inference backend so custom backends can reuse them. For Ascend workloads, apply the device-specific defaults. For multi-node workloads, derive communication settings from each worker’s IP address and network interface. Keep vLLM-specific port and Ray configuration in the vLLM backend.

Dominant language
Python
Stars
6.1k
Forks
750
Avg merge
1d 8h
Merged PRs (30d)
109

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from gpustack/gpustack

All issues in gpustack/gpustack

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.