Skip to main content

SMG gRPC servicer implementations for LLM inference engines (vLLM, MLX, TokenSpeed, SGLang)

Project description

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.

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

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.5.5.post20260612.tar.gz.

File metadata

File hashes

Hashes for tokenspeed_smg_grpc_servicer-0.5.5.post20260612.tar.gz
Algorithm Hash digest
SHA256 9458c3185634fb4b22cdf6a3c41e14c995b822c2d8472032e011ed8f7286672b
MD5 316d25dfd0a50484cbf79ab409ecf8ca
BLAKE2b-256 27a0fae8bc241b242bd0b1ca3105b746017854c4b971376d3b3a8e67c5f4b401

See more details on using hashes here.

Provenance

The following attestation bundles were made for tokenspeed_smg_grpc_servicer-0.5.5.post20260612.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.5.5.post20260612-py3-none-any.whl.

File metadata

File hashes

Hashes for tokenspeed_smg_grpc_servicer-0.5.5.post20260612-py3-none-any.whl
Algorithm Hash digest
SHA256 186725774833720b6d81f771a053240e3b0558fe79f22318fbcf39b32fa69a97
MD5 ff89155adbeaeacdc41667b6d8354560
BLAKE2b-256 b31ee18c9cb4b51f143dc8b2a57e1b00c3928ad78adace654572358c9c90496e

See more details on using hashes here.

Provenance

The following attestation bundles were made for tokenspeed_smg_grpc_servicer-0.5.5.post20260612-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 Pingdom Monitoring Sentry Error logging StatusPage Status page