Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

huawei-cloud-cloudrobo-inference-adapter

БесплатноЗапускает вложенные скриптыНе проверен

Guides adapting a VLA model's inference server interface to the CloudRobo standard interface/protocol. Use this skill when the user wants to create a…

huaweicloudskillот huaweicloudskill120 установок в других каталогах

Об этом скилле

Inference Interface Adapter

Overview

This skill guides converting a VLA model's inference interface into an inference server that uses a flattened linear format, adapting to the CloudRobo client library.

Core idea: the model's own inference interface format differs from the CloudRobo standard communication format. Instead of modifying the model's inference logic, add a thin adapter layer that converts between the flattened linear format and the model's internal format.

Fixed Protocol Contract

Item Convention
Transport WSS (WebSocket over TLS)
Certificate Self-signed certificate generated at runtime (cryptography lib, RSA 3072)
Serialization msgpack (+ numpy extension)
Observation format Flat dot-notation dict
Observation keys observation.images.{key} (key derived from the model config, not hardcoded), observation.state (fixed field), task (fixed field)
Action response {"action": (T, D) float32}, fixed field
Handshake First frame after connect sends the metadata contract
Error Send traceback.format_exc() string, close with INTERNAL_ERROR

Observation request example:

{
    "observation.state": np.ndarray,              # (D,) float32
    "observation.images.front": np.ndarray,   # (H, W, 3) uint8
    "observation.images.wrist_left": np.ndarray,    # (H, W, 3) uint8
    "task": str,
}

Action response example:

{
    "action": np.ndarray,                         # (T, D) float32
    "server_timing": {"infer_ms": ..., "prev_total_ms": ...},
}

Prerequisites

  1. The model's existing inference interface — a predict/infer method, model metadata (action_dim, state_dim, image_keys, action_chunk_size), and normalization access (how to get/set denormalization parameters).
  2. Training outputs (for the entry point) — the final weights from the standard layout plus dataset_statistics.json (required for action denormalization).
  3. Python packages — numpy, msgpack (serialization with the __ndarray__/__npgeneric__ numpy extension), websockets (server + client), and cryptography (self-signed certificates). Pillow is optional (loading images from disk in the test client).

Built-in Scripts

This skill ships two reusable scripts in scripts/:

  • test_client.py — a generic WSS test client that auto-discovers the server's I/O contract from the handshake metadata. Supports random images or loading from disk, single/multiple inferences, and performance benchmarking. Used to end-to-end verify any adapter server. Run python scripts/test_client.py after starting the server.

  • verify_adapter.py — a unit-testing tool for the adapter layer. Tests only through adapter.infer(obs) (no model API assumptions), covering observation conversion, image-key validation, state-dimension validation, and the metadata property — all without running a server or loading a model. Run python scripts/verify_adapter.py --adapter /path/to/adapter.py --class-name MyAdapter.

    • If the adapter depends on a specific model API (e.g. GR00T's get_action(observation) with nested observations), pass a model stub file (defining a make_model_stub() factory function) via --stub-module: python scripts/verify_adapter.py --adapter gr00t_adapter.py --class-name Gr00tProtocolAdapter --stub-module stub_gr00t.py

4-Component Pattern

Every inference interface adaptation follows the same architecture. The model's inference logic stays untouched — all protocol-related logic lives in separate files you create.

┌───────────────────────────────────────────────────┐
│  1. Entry point (CLI)                              │
│     - parse args, assemble components              │
├───────────────────────────────────────────────────┤
│  2. Transport server                               │
│     - WSS + msgpack, handshake, request loop,      │
│       error handling                               │
├───────────────────────────────────────────────────┤
│  3. Protocol adapter                               │
│     - convert observations: flat format -> model   │
│       format                                       │
│     - convert actions: model format -> flat format │
├───────────────────────────────────────────────────┤
│  4. Model inference interface (existing, reused)   │
│     - predict / get_action -> actions              │
│     - metadata, normalization                      │
├───────────────────────────────────────────────────┤
│  5. Model + weights (existing, untouched)          │
└───────────────────────────────────────────────────┘

Layers 4-5 already exist in the codebase. You create layers 1-3.

Generality Layering (Reuse vs Customize)

The components differ greatly in generality — do not blindly copy templates:

Component Generality Handling
Transport server (server_template.py) *
Полный SKILL.md на ClawHub

Установить huawei-cloud-cloudrobo-inference-adapter в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл huawei-cloud-cloudrobo-inference-adapter?

Guides adapting a VLA model's inference server interface to the CloudRobo standard interface/protocol. Use this skill when the user wants to create a compatible inference interface protocol for a model, or make a model compatible with the CloudRobo client library. Trigger conditions: "adapt inference interface", "inference service compatibility", "flattened interface", or any request to make a model server compatible with an external inference client library.

Как установить скилл huawei-cloud-cloudrobo-inference-adapter?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл huawei-cloud-cloudrobo-inference-adapter запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить huawei-cloud-cloudrobo-inference-adapter с