RoboML is an aggregator package for quickly deploying open-source ML models for robots. It supports three main use cases:
- Rapid deployment of general-purpose models: Wraps around popular ML libraries like 🤗 Transformers, allowing fast deployment of models through scalable server endpoints.
- Deploy detection models with tracking: Supports deployment of detection models from 🤗 Transformers (RT-DETR, DETR, Grounding DINO, etc.) with optional tracking integration.
- Aggregate robot-specific models from the robotics community: Intended as a platform for community-contributed multimodal models, usable in planning and control, especially with ROS components. See EmbodiedAgents.
Models And Wrappers
| Model Class | Description | Default Checkpoint / Resource | Key Init Parameters |
|---|---|---|---|
TransformersLLM |
General-purpose large language model (LLM) from 🤗 Transformers | Qwen/Qwen3-0.6B |
name, checkpoint, quantization, source, init_timeout |
TransformersMLLM |
Multimodal vision-language model (MLLM) from 🤗 Transformers, with image and video inputs | Qwen/Qwen2.5-VL-3B-Instruct |
name, checkpoint, quantization, source, init_timeout |
RoboBrain2 |
Embodied planning + multimodal reasoning via RoboBrain 2.0 / 2.5 | BAAI/RoboBrain2.5-4B |
name, checkpoint, source, init_timeout |
Whisper |
Multilingual speech-to-text (ASR) from OpenAI Whisper | small.en (checkpoint list) |
name, checkpoint, compute_type, source, init_timeout |
TransformersTTS |
Text-to-speech via 🤗 Transformers (Bark, VITS, SpeechT5, SeamlessM4T, etc.) | suno/bark-small |
name, checkpoint, voice, vocoder_checkpoint, source, init_timeout |
VisionModel |
Detection + tracking via 🤗 Transformers | PekingU/rtdetr_r50vd_coco_o365 |
name, checkpoint, setup_trackers, tracking_distance_threshold, num_trackers, source, init_timeout |
Installation
RoboML has been tested on Ubuntu 20.04 and later. A GPU with CUDA 12.1+ is recommended. If you encounter problems, please open an issue.
pip install roboml
From Source
git clone https://github.com/automatika-robotics/roboml.git && cd roboml
virtualenv venv && source venv/bin/activate
pip install pip-tools
pip install .
Model Checkpoints from ModelScope
By default, RoboML downloads model checkpoints from the HuggingFace Hub. However, users can pull checkpoints from ModelScope (魔搭社区) instead. First install the optional dependency (the Docker images below already include it):
pip install "roboml[modelscope]"
Then either set the source globally when starting the server:
ROBOML_SOURCE=modelscope roboml
# or with Docker: docker run -e ROBOML_SOURCE=modelscope ...
or per model, by passing source: "modelscope" in the body of the model's /initialize call. An explicit source parameter always overrides the environment variable.
ModelScope checkpoints are cached in ~/.cache/modelscope (configurable via MODELSCOPE_CACHE), so the cache mount shown in the Docker section covers them as well.
Most default checkpoints are available on ModelScope under the same IDs they have on the HuggingFace Hub, and Whisper size aliases such as small.en are resolved automatically. If a checkpoint cannot be found on ModelScope, model initialization fails with a descriptive error that suggests a suitable alternative checkpoint whenever one is known.
Gated and restricted checkpoints are detected automatically at initialization, on both hubs. Credentials are only required when a checkpoint actually needs them — in that case initialization fails with instructions for the relevant token: HF_TOKEN for HuggingFace Hub (or huggingface-cli login), or MODELSCOPE_API_TOKEN for ModelScope (or modelscope login).
Models that only exist on HuggingFace Hub can still be reached by routing HF downloads through a mirror, e.g. HF_ENDPOINT=https://hf-mirror.com (a community-run proxy; must be set before the server starts). This works independently of ROBOML_SOURCE, since every model node can choose its own source.
Vision Model Support
VisionModel uses HuggingFace Transformers for object detection and tracking. It works out of the box with any HuggingFace object detection model (RT-DETR, DETR, Grounding DINO, YOLOS, etc.). Object tracking via ByteTrack is included.
If ffmpeg or libGL is missing:
sudo apt-get update && apt-get install ffmpeg libsm6 libxext6
Docker Build (Recommended)
Jetson users are especially encouraged to use Docker.
- Install Docker Desktop
- Install the NVIDIA Container Toolkit
git clone https://github.com/automatika-robotics/roboml.git && cd roboml
# Build container image
docker build --tag=automatika:roboml .
# For Jetson boards:
docker build --tag=automatika:roboml -f Dockerfile.Jetson .
# Run HTTP server
docker run --runtime=nvidia --gpus all --rm -p 8000:8000 automatika:roboml roboml
# Or run RESP server
docker run --runtime=nvidia --gpus all --rm -p 6379:6379 automatika:roboml roboml-resp
-
(Optional) Mount your cache dir to persist downloaded models:
-v ~/.cache:/root/.cache
Servers
RoboML uses Ray Serve to host models as scalable apps across various environments.
WebSocket Endpoint
WebSocket endpoints are exposed for streaming use cases (e.g., STT/TTS).
Experimental RESP Server
For ultra-low latency in robotics, RoboML also includes a RESP-based server compatible with any Redis client.
RESP (see spec) is a lightweight, binary-safe protocol. Combined with msgpack instead of JSON, it enables very fast I/O, ideal for binary data like images, audio, or video.
This work is inspired by @hansonkd’s Tino project.
Usage
Run the HTTP server:
roboml
Run the RESP server:
roboml-resp
Example usage in ROS clients is documented in ROS Agents.
Running Tests
Install dev dependencies:
pip install ".[dev]"
Run tests from the project root:
python -m pytest
Copyright
Unless otherwise specified, all code is © 2024 Automatika Robotics. RoboML is released under the MIT License. See LICENSE for details.
Contributions
ROS Agents is developed in collaboration between Automatika Robotics and Inria. Community contributions are welcome!
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file roboml-0.6.0.tar.gz.
File metadata
- Download URL: roboml-0.6.0.tar.gz
- Upload date:
- Size: 50.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
070e4e62b5be581fd7b08a98acdd568e8ed05101ec6804d4afd2386ab9dacdcb
|
|
| MD5 |
be70a144a80989295854935e0b5e829c
|
|
| BLAKE2b-256 |
803a247c64685787193545726a91a2b16ab7001b6afa01946858350b6a4d33f3
|
Provenance
The following attestation bundles were made for roboml-0.6.0.tar.gz:
Publisher:
build_and_publish.yml on automatika-robotics/roboml
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
roboml-0.6.0.tar.gz -
Subject digest:
070e4e62b5be581fd7b08a98acdd568e8ed05101ec6804d4afd2386ab9dacdcb - Sigstore transparency entry: 2336130080
- Sigstore integration time:
-
Permalink:
automatika-robotics/roboml@c003739304b140d48d495cb93e0c6a0b40253dca -
Branch / Tag:
refs/tags/0.6.0 - Owner: https://github.com/automatika-robotics
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_and_publish.yml@c003739304b140d48d495cb93e0c6a0b40253dca -
Trigger Event:
push
-
Statement type:
File details
Details for the file roboml-0.6.0-py3-none-any.whl.
File metadata
- Download URL: roboml-0.6.0-py3-none-any.whl
- Upload date:
- Size: 40.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83ce4acdbfaf220195dbb69b17a0cf1e48a5853f40a192a70e3f70a01828fe84
|
|
| MD5 |
6ad2d30c4392db4e88e78cf65baffb3a
|
|
| BLAKE2b-256 |
6247c4dba978e0bec1d3e4a2d1607d0647c222802ab4911a84432d486e7983fe
|
Provenance
The following attestation bundles were made for roboml-0.6.0-py3-none-any.whl:
Publisher:
build_and_publish.yml on automatika-robotics/roboml
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
roboml-0.6.0-py3-none-any.whl -
Subject digest:
83ce4acdbfaf220195dbb69b17a0cf1e48a5853f40a192a70e3f70a01828fe84 - Sigstore transparency entry: 2336130121
- Sigstore integration time:
-
Permalink:
automatika-robotics/roboml@c003739304b140d48d495cb93e0c6a0b40253dca -
Branch / Tag:
refs/tags/0.6.0 - Owner: https://github.com/automatika-robotics
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_and_publish.yml@c003739304b140d48d495cb93e0c6a0b40253dca -
Trigger Event:
push
-
Statement type: