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

smg_grpc_servicer-0.7.0.tar.gz (110.0 kB view details)

Uploaded Source

Built Distribution

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

smg_grpc_servicer-0.7.0-py3-none-any.whl (113.4 kB view details)

Uploaded Python 3

File details

Details for the file smg_grpc_servicer-0.7.0.tar.gz.

File metadata

  • Download URL: smg_grpc_servicer-0.7.0.tar.gz
  • Upload date:
  • Size: 110.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for smg_grpc_servicer-0.7.0.tar.gz
Algorithm Hash digest
SHA256 2cee0ebd1a6e797d23e7928a017bc766d6ced1e41a96696bd74bb90b800664a1
MD5 81b9b8f0c613a90a809ab78f69d9d0f7
BLAKE2b-256 eac4308e2b063e0fe744770e9a880ae3393abe1cb78aaf0898679e5ec9c24362

See more details on using hashes here.

File details

Details for the file smg_grpc_servicer-0.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for smg_grpc_servicer-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7210617b9b4ca79178af98010ba698764ebfdc0d066219e7d45b797c1acb99e2
MD5 101db82d7f05bc6d13cde3cb49a49fad
BLAKE2b-256 c3c079dde208fc1a543b90fbf6d170a3342a40866295d8c3dc8ea9be86c23084

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