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.

Download files

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

Source Distribution

Built Distribution

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

File details

Details for the file tokenspeed_smg_grpc_servicer-0.8.0.post20260814.tar.gz.

File metadata

File hashes

Hashes for tokenspeed_smg_grpc_servicer-0.8.0.post20260814.tar.gz
Algorithm Hash digest
SHA256 bc678a4a355503da0b0de510ab8f7ff9289efcf895af2e55f8f2a9d7d10435d0
MD5 6f4e7fc63000677f025a056b43cbd7c3
BLAKE2b-256 edf6c18a0591a25dd1db4377642019fa6a9f03f1c92f8e1a1a44e1538959219b

See more details on using hashes here.

Provenance

The following attestation bundles were made for tokenspeed_smg_grpc_servicer-0.8.0.post20260814.tar.gz:

Publisher: tokenspeed-smg-grpc-servicer.yml on lightseekorg/tokenspeed-third-party

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tokenspeed_smg_grpc_servicer-0.8.0.post20260814-py3-none-any.whl.

File metadata

File hashes

Hashes for tokenspeed_smg_grpc_servicer-0.8.0.post20260814-py3-none-any.whl
Algorithm Hash digest
SHA256 b772d7c0eb1ead63257a3276d4261a9a70e4d25a23b1a3a8e1e0ecb1f315731d
MD5 da52c8bbd0792f2cfe464a814502e55a
BLAKE2b-256 2fa84ded4217619e84d704ab9394e110ce19b1947e5d1b22782d59536aa090a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for tokenspeed_smg_grpc_servicer-0.8.0.post20260814-py3-none-any.whl:

Publisher: tokenspeed-smg-grpc-servicer.yml on lightseekorg/tokenspeed-third-party

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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