Skip to main content

smg-grpc-servicer

gRPC servicer implementations for LLM inference engines. Supports vLLM, MLX, TokenSpeed, and SGLang.

Installation

For vLLM:

pip install smg-grpc-servicer[vllm]

For MLX:

pip install smg-grpc-servicer[mlx]

For TokenSpeed, install the TokenSpeed runtime first, then install the servicer bridge:

pip install smg-grpc-servicer

For SGLang:

pip install smg-grpc-servicer[sglang]

Usage

vLLM

vllm serve meta-llama/Llama-2-7b-hf --grpc

MLX

python -m smg_grpc_servicer.mlx --model meta-llama/Llama-2-7b-hf --host 0.0.0.0 --port 50051

TokenSpeed

python -m smg_grpc_servicer.tokenspeed --model meta-llama/Llama-2-7b-hf --host 0.0.0.0 --port 50051

SGLang

sglang serve --model-path meta-llama/Llama-2-7b-hf --grpc-mode

Architecture

smg-grpc-servicer[vllm]    ──optional dep──>  vllm       (lazy import)
smg-grpc-servicer[mlx]     ──optional dep──>  mlx-lm     (lazy import)
smg-grpc-servicer          ──external runtime──>  tokenspeed (lazy import)
smg-grpc-servicer[sglang]  ──optional dep──>  sglang     (lazy import)
smg-grpc-servicer          ──depends on────>  smg-grpc-proto  (hard dependency)
vllm                       ──optional──────>  smg-grpc-servicer (via vllm serve --grpc)
sglang                     ──optional──────>  smg-grpc-servicer (via --grpc-mode)

Backend dependencies are isolated via extras or runtime installs to avoid conflicts between vLLM, MLX, TokenSpeed, and SGLang.

Development

See DEVELOPMENT.md for local development setup, CI, and release workflows.

Release files for tokenspeed-smg-grpc-servicer 0.9.1.post20260901

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

Source distribution (sdist)

Source distribution for tokenspeed-smg-grpc-servicer 0.9.1.post20260901
File Size Uploaded
tokenspeed_smg_grpc_servicer-0.9.1.post20260901.tar.gz 115.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tokenspeed-smg-grpc-servicer 0.9.1.post20260901
File Interpreter ABI Platform
tokenspeed_smg_grpc_servicer-0.9.1.post20260901-py3-none-any.whl Python 3 none any Details

Total release size: 231.8 kB

Release files / tokenspeed_smg_grpc_servicer-0.9.1.post20260901.tar.gz

Download URL tokenspeed_smg_grpc_servicer-0.9.1.post20260901.tar.gz
Size 115.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d3f45365c381363495b31b19ef38bf3d61afb28817b341dc421e06b0eb487e71
BLAKE2b-256 checksum
How to use checksums
70f3528797e6b6c37f663933b39eead17fc7899d4b662525d6c56162d447c21b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.

Transparency log

Release files / tokenspeed_smg_grpc_servicer-0.9.1.post20260901-py3-none-any.whl

Download URL tokenspeed_smg_grpc_servicer-0.9.1.post20260901-py3-none-any.whl
Size 116.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
75c21dddd08eedf040cfe1400b057c5b2401ed8f3497591c8dc79f3792bb1496
BLAKE2b-256 checksum
How to use checksums
83b80e7941a16e2ff75d479dab7c874d7304e28a754ee8b46fe3cdec855d4ce8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.9.1.post20260901 This release

2 release files

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