skillfed

smg-grpc-servicer

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

smg-grpc-servicer v0.8.0 1.1M downloads/30d#4,344 on PyPI461
Permissive license Apache-2.0 Active released

What it is and what it does

smg-grpc-servicer is a bridge library that wraps four popular open-source LLM inference engines—vLLM, MLX, TokenSpeed, and SGLang—behind a unified gRPC interface. Instead of calling each engine's native Python API directly, you run one of the supported backends with gRPC enabled (or via the servicer's CLI modules), and clients connect over gRPC to send inference requests and receive responses.

The package isolates backend dependencies using optional extras ([vllm], [mlx], [sglang]) so you only install what you need; TokenSpeed integrates via an external runtime. It depends on grpcio, grpcio-reflection, and grpcio-health-checking for service discovery and health checks. The library is actively maintained, supports Python 3.10–3.13, and carries no known vulnerabilities.

Use it for:

  • Serve a vLLM model over gRPC to multiple remote clients without exposing HTTP endpoints.
  • Run MLX inference on macOS and expose it as a gRPC service for distributed workloads.
  • Build a microservice architecture where LLM inference is decoupled from application logic via gRPC.
  • Load-balance inference requests across multiple backend instances using gRPC service discovery.
  • Integrate TokenSpeed or SGLang inference into a polyglot system using language-agnostic gRPC clients.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides gRPC servicer implementations that expose LLM inference engines (vLLM, MLX, TokenSpeed, SGLang) as gRPC services for remote model serving.

Yes. The package solves a real problem—exposing LLM inference engines as gRPC services—with low install friction, active maintenance, permissive licensing, and no known vulnerabilities. Install it if you need to serve LLM inference over gRPC to remote clients or integrate multiple inference backends into a distributed system.

Install

smg-grpc-servicer on PyPI

pip

pip install smg-grpc-servicer

uv

uv add smg-grpc-servicer

poetry

poetry add smg-grpc-servicer

Installing smg-grpc-servicer

Before you install

Low friction: pure Python wheel with four runtime dependencies (smg-grpc-proto, grpcio, grpcio-reflection, grpcio-health-checking). Active maintenance—released 15 days ago with 461 repository stars.

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions.

Quickstart

# For vLLM:
pip install smg-grpc-servicer[vllm]
vllm serve meta-llama/Llama-2-7b-hf --grpc

# For MLX:
pip install smg-grpc-servicer[mlx]
python -m smg_grpc_servicer.mlx --model meta-llama/Llama-2-7b-hf --host 0.0.0.0 --port 50051

Requires Python >=3.10. Each backend (vLLM, MLX, TokenSpeed, SGLang) must be installed separately; the servicer itself provides only the gRPC bridge.

Verify before relying

  • Whether gRPC service discovery and reflection work out-of-the-box or require additional configuration.
  • Performance characteristics and latency overhead of the gRPC bridge relative to native backend APIs.
  • Load-balancing and concurrency limits when serving multiple concurrent inference requests.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 4 — smg-grpc-proto, grpcio, grpcio-reflection, grpcio-health-checking
Maintenance actively maintained — 15 days since the last release
Last repo commit
First released
Downloads 1,118,607/month — #4,344 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: smg_grpc_servicer-0.8.0-py3-none-any.whl

Operating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13

Tags

grpc llm inference servervllm grpc servicerllm model serving grpcdistributed llm inferencegrpc language model endpointmlx tokenspeed sglang grpcllm inference bridge
llm-inferencegrpc-bridgemodel-serving

More Artificial Intelligence packages