Client Inference Configuration Parameters

Client Inference Configuration Parameters

These fields are passed to the inference task to choose the client, connect to the service, and set interpolation. They are not per-step observations. Only the following are written into the WebSocket request: instruction, embodiment, normalization, return_body, use_history, session_id, plus values the RTC runtime computes such as use_rtc / inference_delay / num_flow_steps.

model_name and check_point are for logging only. They are not sent in the request and do not decide which service to connect to. The weights live in the process at model_address.

Inference Parameters

(1) Task-level fields

ParameterAllowed valuesDefaultDescription
model_addressip:port, or an http:// / https:// / ws:// / wss:// URLNone; requiredModel service address. http becomes ws and https becomes wss. An empty string cannot INIT
instructionAny non-empty stringScript default: model testingBecomes the top-level instruction of the request
robot_typedesktop, slave_arms, ex001. Case-insensitiveNoneChooses the client. desktop and slave_arms both use Desktop. On an EX001 Orin machine, RTC / classic_async force robot_type to EX001 and actually use EX001OrinClientRTC
robot_modeend_pose, joints, joints_posend_posepublic_v2 accepts only end_pose. joints / joints_pos fail at INIT
infer_typesync, asyncsyncCoarse category. Changed to async when algorithm is pc_async, rtc, or classic_async
model_nameAny stringEmptyLogs only

(2) infer_params: timing

Defaults apply when a field is omitted (defaults below are for public_v2, which is enabled automatically when the command includes --embodiment). The camelCase form inferParams also works. If the whole block is a string, the client runs json.loads on it first.

ParameterAllowed valuesDefaultDescription
action_horizonPositive integer32How many model steps the client expects per model output. The form-2 server actually returns 32 frames, and the client uses the real length of the response
control_dtPositive number, seconds0.005Duration of one controller tick. With the C++ dispatcher this is 200 Hz
interpolate_multiplierPositive numbersync 7 / RTC 8How many control steps each model step is interpolated into. Model step length = control_dt × interpolate_multiplier. For example, 0.005 × 7 = 0.035 s, close to the 33.7 ms training frame interval. Participants can raise it as needed; execution becomes slower
ar_streamtrue, falseFALSESynchronous Desktop only. INIT fails if it is true and algorithm is not synchronous, or infer_type is not sync. Do not enable on EX001
cb_historyoff, shadow, auto, onoffMeaningful only for synchronous Desktop end_pose. on requires the server metadata to declare support, otherwise INIT fails. shadow only records on the side and does not change the request

(3) async_params: protocol and pipeline

ParameterAllowed valuesDefaultDescription
api_schemainternal, public_v2internalOnly public_v2 produces the messages described in this tutorial. embodiment must also be given
embodimentA string exactly matching the server's list; case-sensitiveNone. Required for public_v2Desktop: teletwin_desktop/gripper-g, teletwin_desktop/gripper-h. EX001: quanta_x1_pro, quanta_x1_pro/gripper-g, quanta_x1_pro/gripper-h. The training name ex_normal/gripper-G uses the same statistics as quanta_x1_pro/gripper-g. For names not in the list, the server returns unknown_embodiment
normalizationOmitted, or provided. catalog is rewritten to providedOmitted; the key is then absent from the requestThe client rejects uploaded and prenormalized. provided means the state is in physical units, and the statistics are that embodiment's min/delta in the checkpoint
algorithmSee the table belowOmitted = synchronousChooses synchronous, PC async, or RTC
rtc_modetraining_time, inference_timeUnder public_v2, training_time when algorithm is rtctraining_time_rtc is written as training_time automatically; inference_time_rtc as inference_time. Any other string makes client construction fail
image_wire_formatbase64, jpeg. Legacy base64_jpeg is still treated as base64; jpeg_bytes / raw as jpegjpegjpeg = JPEG bytes (MessagePack bin, the public_v2 default); base64 = Base64 string. The server supports both. For Orin RTC, image_pipeline.wire is written as raw or base64 accordingly
execute_horizonInteger with 0 < execute_horizon < action_horizon6RTC: how many model steps of a chunk are executed before switching to the next one. Written into the request
delay_queue_sizePositive integer10How many recent inference durations are used to estimate inference_delay. Not sent in the request
initial_delay_estimateNon-negative integer4Initial delay before any measured duration exists, in model steps
max_inference_delayPositive integer4The client caps inference_delay at this value. The server's training-time RTC accepts only 1, 2, 3, or 4, and larger values return rtc_delay_exceeds_training. Set it to 4 when working with this service
num_flow_stepsPositive integer10Sent in the request unchanged; overrides the flow step count for that request. Can be added on its own without RTC
rtc_cap_enabletrue, false. rtc-cap-enable is also acceptedFALSEWhen true, truncates the not-yet-executed chunk at the delay cap
max_guidance_weightNumber1Written into the request only when rtc_mode = inference_time
prefix_attention_scheduleString. The client sends "exp" by default"exp"Written into the request only for inference_time
predict_action_offsetNon-negative integer1Index offset used when taking current_master_action from the previous chunk. Not sent as its own field
return_bodyObject with string keys and boolean values. Common keys: car_pose, head_pose, liftOmittedfalse means the response leaves out that part. If a desktop embodiment sets a part to true, the server returns body_not_available
api_keyString, or omittedEmptyWhen non-empty, the handshake header is Authorization: Bearer <api_key>. Not part of the observation; shown as *** in logs
interpolation_modelinear, polynomiallinearpolynomial supports only Desktop training_time + end_pose, and action_dt must also be given
consumer_rt_enabletrue, falseTRUEWhether the RTC consumer thread uses real-time scheduling
consumer_rt_priorityInteger 1 to 9950Values outside the range are clamped to it
hil_min_interpolate_multiplierNumberRTC: equal to interpolate_multiplierLower bound the interpolation multiplier may be adjusted to at runtime
hil_max_interpolate_multiplierNumber, not less than the lower boundRTC: 16Upper bound. Adjusted through /x2robot_client/interpolate_multiplier_delta
camera_resize_widthPositive integerImplementation default: resize to width 480EX001 Orin only. Width the on-board pipeline resizes NV12 to
camera_jpeg_qualityInteger 1 to 10085Camera encoding quality only. Desktop RTC also reads this key
camera_max_skew_msNon-negative integer, millisecondsImplementation defaultEX001 Orin only. Maximum allowed time difference among the three images
camera_snapshot_timeout_sPositive number, secondsImplementation defaultEX001 Orin only. Timeout for collecting all three images of one frame

Values of algorithm:

Value writtenActual pipeline
Omitted, syncSynchronous. Desktop → DesktopClient, EX001 → EX001Client. Orin synchronous is still EX001Client; only the camera source changes
training_time_rtcRTC, with rtc_mode fixed to training_time
classic_asyncThe same kind of client as RTC, but not scheduled by the RTC guidance fields. On EX001 Orin it is still EX001OrinClientRTC

Examples

All three examples use public_v2. Change the gripper suffix to gripper-g or gripper-h to match the robot.

(1) Example 1: TeleTwin Desktop, synchronous mode

Matches the request and response in section 1 (1) of the Client WebSocket Protocol chapter. observation.state contains only the left and right arms.

{
  "model_address": "wss://maas-api.x2robot.com/v1/vla/wallx",
  "model_name": "desktop_pick",
  "robot_type": "desktop",
  "robot_mode": "end_pose",
  "instruction": "pick up the cup",
  "infer_type": "sync",
  "infer_params": {
    "action_horizon": 32,
    "control_dt": 0.005,
    "interpolate_multiplier": 7,
    "async_params": {
      "api_schema": "public_v2",
      "api_key": "<API_KEY>",
      "embodiment": "teletwin_desktop/gripper-g",
      "normalization": "provided",
      "algorithm": "sync"
    }
  }
}

(2) Example 2: Quanta_X1_Pro (x86), RTC mode

Matches section 2 (2) of the Client WebSocket Protocol chapter. max_inference_delay is set to 4 to match the server's trained_max_delay. Steady-state requests carry use_rtc and prev_action_chunk.

{
  "model_address": "wss://maas-api.x2robot.com/v1/vla/wallx",
  "model_name": "ex001_fold",
  "robot_type": "ex001",
  "robot_mode": "end_pose",
  "instruction": "fold the towel",
  "infer_type": "async",
  "infer_params": {
    "action_horizon": 32,
    "control_dt": 0.005,
    "interpolate_multiplier": 8,
    "async_params": {
      "api_schema": "public_v2",
      "api_key": "<API_KEY>",
      "embodiment": "quanta_x1_pro/gripper-g",
      "normalization": "provided",
      "algorithm": "training_time_rtc",
      "execute_horizon": 6,
      "delay_queue_size": 10,
      "initial_delay_estimate": 4,
      "max_inference_delay": 4,
      "num_flow_steps": 10,
      "rtc_cap_enable": false
    }
  }
}

(3) Example 3: Quanta_X1_Pro (Orin), RTC mode

The messages match section 3 (2) of the Client WebSocket Protocol chapter. On an Orin machine, the same robot_type: "ex001" selects EX001OrinClientRTC. This example also turns off head, lift, and chassis in the response, and sets the Orin camera parameters. These three parts are still present in the request's observation.state.

{
  "model_address": "wss://maas-api.x2robot.com/v1/vla/wallx",
  "model_name": "ex001_orin_fold",
  "robot_type": "ex001",
  "robot_mode": "end_pose",
  "instruction": "fold the towel",
  "infer_type": "async",
  "infer_params": {
    "action_horizon": 32,
    "control_dt": 0.005,
    "interpolate_multiplier": 8,
    "async_params": {
      "api_schema": "public_v2",
      "api_key": "<API_KEY>",
      "embodiment": "quanta_x1_pro/gripper-g",
      "normalization": "provided",
      "algorithm": "training_time_rtc",
      "execute_horizon": 6,
      "delay_queue_size": 10,
      "initial_delay_estimate": 4,
      "max_inference_delay": 4,
      "num_flow_steps": 10,
      "camera_resize_width": 480,
      "camera_jpeg_quality": 85,
      "camera_max_skew_ms": 30,
      "camera_snapshot_timeout_s": 0.2,
      "return_body": {
        "car_pose": false,
        "head_pose": false,
        "lift": false
      }
    }
  }
}

On this page