Instructions to use INSAIT-Institute/LADDER-RoboLab-Long with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LeRobot
How to use INSAIT-Institute/LADDER-RoboLab-Long with LeRobot:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Download ladder/components/inference/api/core/serialization.py from INSAIT-Institute/LADDER-RoboLab-Long: direct link, hf CLI and curl.
- Browser
- Download file 332 Bytes
-
https://huggingface.co/INSAIT-Institute/LADDER-RoboLab-Long/resolve/main/ladder/components/inference/api/core/serialization.py
- Command line
-
hf download hf://INSAIT-Institute/LADDER-RoboLab-Long/ladder/components/inference/api/core/serialization.py
-
curl -L -o serialization.py https://huggingface.co/INSAIT-Institute/LADDER-RoboLab-Long/resolve/main/ladder/components/inference/api/core/serialization.py
332 Bytes
| from typing import Any, Dict | |
| import msgpack | |
| import msgpack_numpy | |
| # apply msgpack_numpy monkey-patch to enable automatic numpy serialization | |
| msgpack_numpy.patch() | |
| def serialize(data: Dict[str, Any]) -> bytes: | |
| return msgpack.packb(data) | |
| def deserialize(message: bytes) -> Dict[str, Any]: | |
| return msgpack.unpackb(message) | |