Allow custom inference backends to reuse Ascend and distributed environment setup
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
- Domain
- backend, distributed-systems
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
❓ 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
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from gpustack/gpustack
-
ui
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
Change log level of kubernetes.client.rest response body log to TRACEPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
gpustack/gpustack#6844 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
gpustack/gpustack#6834 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Password policy has no minimum length — a 4-character password passes validationPossibly taken @Tkrechet claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
All issues in gpustack/gpustack
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
software-mansion-labs/Diplomat#20 ·
Maintainers usually reply within 1 day
-
[Windows] Hidden title bar: a maximized window restored from minimized on a secondary monitor gets the primary monitor's work area as its client areaPossibly taken @lijy91 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
libnativeapi/nativeapi#53 · 1 reaction ·
Maintainers usually reply within 1 day
-
View Counts discarded due to field name mismatchPossibly taken @rsiva0400 claimed this today. Opensite-bug triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Model version publishes the new UK firm entity as a personPossibly taken @vahid-ahmadi claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
PolicyEngine/policyengine.py#764 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
spcl/HPCAgent-Bench#264 ·
Maintainers usually reply within 1 day