Skip to main content

servo-client

Python and CLI access to Servo's hosted model inference service. Requires Python 3.12+.

pip install servo-client
servo login

A machine can use its organization API key through SERVO_API_KEY instead. Set SERVO_BASE_URL when using a different control plane.

Import a pi0.5 checkpoint and deploy near your application:

import numpy as np
import servo

sv = servo.Servo()
model = sv.models.import_checkpoint(
    "https://huggingface.co/npow/pi05-yam-red-cap-full-7500",
    revision="39c6876521b3d8363452bed6731c8705b3944c24",
)
deployment = model.deploy(city="Zurich, Switzerland").wait(timeout_s=900)
policy = deployment.policy()
inputs = {
    "middle": np.load("middle.npy"),
    "left": np.load("left.npy"),
    "right": np.load("right.npy"),
    "state": np.load("state.npy"),
}
with sv.session(policy, instruction="pick up the red cap") as session:
    chunk = session.predict(inputs=inputs)
print(chunk.actions)

Your application supplies arrays matching policy.input_contract. The inspected checkpoint specifies image dimensions, state shape, and output shape. Servo handles checkpoint loading, preparation, private endpoint access, and prediction; it does not control physical devices.

Save deployment.id and reconnect with sv.deployments.get(deployment_id). Deployment remains running until stopped with deployment.delete() or servo deployment stop <deployment-id>. A local timeout does not stop remote preparation or deployment; inspect status before retrying.

Quickstart

Third-party notices

The Linux platform wheels ship Tailscale's tailscaled and tailscale executables (servo/_native/), redistributed unmodified under the BSD 3-Clause license. The license, patent grant, and the notices for the dependencies compiled into them are installed with the package under servo/licenses/tailscale/.

Metadata

Release files for servo-client 0.7.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for servo-client 0.7.8
File Size Uploaded
servo_client-0.7.8.tar.gz 854.5 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for servo-client 0.7.8
File Interpreter ABI Platform
servo_client-0.7.8-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details
servo_client-0.7.8-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details
servo_client-0.7.8-py3-none-any.whl Python 3 none any Details

Total release size: 77.4 MB

Release files / servo_client-0.7.8.tar.gz

Download URL servo_client-0.7.8.tar.gz
Size 854.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e7577eec52a9822f259b7ef5f80177a38a7bdb584fc1f7c02e3d543109c5a685
BLAKE2b-256 checksum
How to use checksums
f3f746069d37b7054ce4ed49c5d44ade3d45b9487bb789555a44b5d33a3debff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / servo_client-0.7.8-py3-none-manylinux_2_28_x86_64.whl

Download URL servo_client-0.7.8-py3-none-manylinux_2_28_x86_64.whl
Size 39.3 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
6a0cbbd1849608f911e2c78fd27827a45dd8a936213c43f28df3013aa59e7c1d
BLAKE2b-256 checksum
How to use checksums
69e8fc4ecf3deecaf78b81bf64799cf991253adc6ef83b014f87e32c2eace93f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / servo_client-0.7.8-py3-none-manylinux_2_28_aarch64.whl

Download URL servo_client-0.7.8-py3-none-manylinux_2_28_aarch64.whl
Size 36.3 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
a3b34a1f6d4af0c68e70d1a470bf25fa65bf16554d7344000c2d19c268c32896
BLAKE2b-256 checksum
How to use checksums
5da8babf7cd736b5ee75846d349b4bd1b3f6e13f01649a12523a8a02fceacb54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / servo_client-0.7.8-py3-none-any.whl

Download URL servo_client-0.7.8-py3-none-any.whl
Size 992.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1a73d3dd0f8e0ed88d8c5ca46590000318ff06348dee3326261a1b580f284d49
BLAKE2b-256 checksum
How to use checksums
d71c8b5da32cf3b6d63c21133a86a59eaf4a28e7b9aa784b212983926eda456d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page