Skip to main content

vLLM-HUST Operator Optimizations

This package is an updateable vLLM-HUST Extension Bundle for independently gated operator optimizations. Version 0.1.1 contains one optimization:

  • persistent-matmul-empty: replaces the redundant torch.zeros allocation in Ascend batch-invariant Triton linear_persistent with torch.empty.

The optimization is limited to the batch-invariant Triton path. It does not change ordinary ACLNN MatMul or other linear implementations. The persistent kernel writes every valid output element, including tail tiles. Existing NPU evidence covers FP16/BF16/FP32, divisible and non-divisible M/N/K shapes, and matched operator/end-to-end measurements. Unknown source structures are rejected rather than patched.

Architecture

The distribution exposes two entry points:

  • vllm_hust.extension_bundles lets vllm-hust-ext discover, check and enable the 0.2-experimental bundle.
  • vllm.general_plugins installs a lazy import hook in each vLLM process. The hook changes only enabled target modules and has no device or network side effects at import time.

Optimizations are selected with VLLM_HUST_OPERATOR_OPTIMIZATIONS. The bundle manager sets it to persistent-matmul-empty when this extension is enabled.

Install and use

The supported release line is intentionally narrow: Ascend 910B2, CANN 9.1.0-beta.3, ATB 9.1.T6.B010, Python 3.11, Torch 2.10.0, torch_npu 2.10.0.post4 and Triton-Ascend 3.2.2. Exact source commits are in compatibility/verified-line.json inside the package. Other combinations are unsupported until separately validated.

export VLLM_SRC=/path/to/vllm
export VLLM_ASCEND_SRC=/path/to/vllm-ascend-hust
pip install vllm-hust-operator-optimizations==0.1.1
vllm-hust-operator-check \
  --vllm-src "$VLLM_SRC" \
  --vllm-ascend-src "$VLLM_ASCEND_SRC"
vllm-hust-ext extension check org.vllm-hust.operator-optimizations
vllm-hust-ext extension enable org.vllm-hust.operator-optimizations
VLLM_BATCH_INVARIANT=1 vllm-hust-ext run -- vllm serve /path/to/model \
  --block-size 128

TRITON_ASCEND_SRC may additionally point to the locked Triton checkout. If it is absent, the checker verifies the installed triton-ascend==3.2.2 wheel; this is the mode used by the validated server environment.

Repository maintainers can build with uv build --no-sources --out-dir dist and use scripts/install_verified_line.sh to gate and install a local wheel.

If VLLM_PLUGINS is manually set, it must include both the Ascend platform plugin name and operator_optimizations; otherwise vLLM intentionally filters out this runtime entry point.

Add another optimization

  1. Add an Optimization implementation under optimizations/ with a stable ID, target module and fail-closed apply() method.
  2. Register it in registry.register_builtins().
  3. Add its ID to the manifest environment value if it should be enabled by this bundle version, or publish a separately selectable bundle profile.
  4. Add unit correctness tests and NPU shape/tail, operator-share and matched end-to-end evidence.
  5. Increment _version.py and the manifest extension_version together.

The framework deliberately keeps every optimization independent so a future release can add, disable or reject one optimization without changing the others.

Validation

uv run --with pytest pytest
uv run --with ruff ruff check src tests
uv build --no-sources --out-dir dist

For 0.1.1, reuse the existing Qwen2.5-7B Graph correctness and performance evidence for the exact locked line. Re-run NPU validation only when that line or the optimization changes. Release checks remain extension list, inspect, check, and run --dry-run; the completed real service run is not repeated merely for packaging changes.

Metadata

Release files for vllm-hust-operator-optimizations 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vllm-hust-operator-optimizations 0.1.1
File Size Uploaded Provenance Actions
vllm_hust_operator_optimizations-0.1.1.tar.gz 12.6 kB Without provenance Details for vllm_hust_operator_optimizations-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vllm-hust-operator-optimizations 0.1.1
File Interpreter ABI Platform Actions
vllm_hust_operator_optimizations-0.1.1-py3-none-any.whl Python 3 none any Details for vllm_hust_operator_optimizations-0.1.1-py3-none-any.whl

Total release size: 26.1 kB

Release files / vllm_hust_operator_optimizations-0.1.1.tar.gz

Download URL vllm_hust_operator_optimizations-0.1.1.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
264298076003ae7d231ed994ee0eb21385b3c65d9b7b53cf48e80f729d733ef5
BLAKE2b-256 checksum
How to use checksums
48c93ae8a5428c1c7d513bcb047a07c82c37c863951e5e1eddf83dbf30f7b3b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / vllm_hust_operator_optimizations-0.1.1-py3-none-any.whl

Download URL vllm_hust_operator_optimizations-0.1.1-py3-none-any.whl
Size 13.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
83b6089e28fa36e4aec83f1b1204fe70638966fa41665329ef9d7af78bab6e8d
BLAKE2b-256 checksum
How to use checksums
731e2482f4b104d11c4ea48466fc5ceb05f86fe28dc359dc4932dd2ac989bc74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for vllm-hust-operator-optimizations 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page