Skip to main content

REST-to-gRPC proxy server for the vllm-grpc frontend

Project description

vllm-grpc-proxy

A REST-to-gRPC proxy for the vllm-grpc frontend. It exposes an HTTP surface (chat + completions endpoints and a /healthz check) and forwards each request over gRPC to a running vllm-grpc-frontend server. Use it when you want REST clients to reach the gRPC backend.

Affiliation: vllm-grpc is an independent, community project and is not affiliated with, endorsed by, or sponsored by the vLLM project. "vLLM" is used here only to identify the inference engine this project works with.

Install

pip install vllm-grpc-proxy

Run

The package installs a vllm-grpc-proxy console script that launches the REST surface with uvicorn:

vllm-grpc-proxy        # serves on 0.0.0.0:8000 by default

Configure with environment variables:

  • PROXY_HOST / PROXY_PORT — bind address (default 0.0.0.0:8000)
  • FRONTEND_ADDR — the gRPC frontend to forward to (default localhost:50051)
curl http://127.0.0.1:8000/healthz
# {"status": "ok"}   when the gRPC frontend is reachable

Links

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vllm_grpc_proxy-0.1.0.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vllm_grpc_proxy-0.1.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file vllm_grpc_proxy-0.1.0.tar.gz.

File metadata

  • Download URL: vllm_grpc_proxy-0.1.0.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for vllm_grpc_proxy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 470f991127e95b1dcbafd1d348cec41c79c237905247ee9852f3894dcf69100f
MD5 192bf0bfa9b5717ad118499732f11df6
BLAKE2b-256 176f9035232533bed6f77794b69b029fccfd063515ab9615590d868864a89569

See more details on using hashes here.

File details

Details for the file vllm_grpc_proxy-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for vllm_grpc_proxy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 53e2578bce6396ef748c043f6e0ef9d88351d72f5b59f9222c4c70ddbcb7dced
MD5 7cf896773a75cc3cb57a0341c089ffb9
BLAKE2b-256 a76c71da03e43361e8522b2a09437b040236a53c76c9f29022a421b721da4cb2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page