Overview of TorchServe gRPC APIs
masterTorchServe provides gRPC APIs for both inference and management operations.
Default Ports (localhost):
- Inference API:
7070 - Management API:
7071
Inference API Capabilities:
Ping: Retrieves the health status of the server.Predictions: Returns predictions from the served model.StreamPredictions: Provides server-side streaming predictions (useful for high-latency tasks like LLM token generation).
Management API Capabilities:
RegisterModel: Serves a model or model version.UnregisterModel: Removes a specific model version to free resources.ScaleWorker: Adjusts the number of workers for a model version.ListModels: Queries default versions of currently registered models.DescribeModel: Retrieves runtime status details for a model's default version.SetDefault: Sets a specific registered version as the default.
Security Note: Inference requests require an Inference token, and Management requests require a Management token, unless token authorization is explicitly disabled. Current gRPC implementation does not support workflows.