rdt2-base-p150 on Tenstorrent p150

Derived from robotics-diffusion-transformer/RDT2-FM (the flow-matching action expert, commit f803808e) and robotics-diffusion-transformer/RDT2-VQ (Qwen2.5-VL-7B, commit ec7e7f3a; the vision-language backbone of RDT2-FM, and a policy of its own with the RVQ action tokenizer), released by the RDT2 team with the paper arXiv:2602.03310 and the code thu-ml/RDT2, with unmodified weights. See the original model cards for training details.

RDT2-FM, a vision-language-action model for two-arm manipulation. The Qwen2.5-VL-7B backbone of RDT2-VQ reads the wrist-camera images and a language instruction; of it, the vision tower (0.68B parameters) and the language model up to layer 13 (3.58B including the embedding) run, and the key/value caches of language-model layers 0 to 13 condition a 0.49B-parameter RDT action expert (14 blocks, hidden size 1024) that turns Gaussian noise into an action chunk in Euler flow-matching steps (about 4.6 TFLOP per call at 5 steps). In: the left_stereo and right_stereo wrist cameras (384x384 each in the official setup, concatenated side by side and resized to 392x756), an instruction of up to 112 tokens and an optional 20-value proprio state. Out: 24 future steps at 30 Hz of 20 values for two UR5e arms (per arm: end-effector position and 6-D rotation relative to the current pose, gripper width), after the checkpoint's own action normalizer. The server includes the official RDT2 pre-processing (camera concatenation, the Qwen2.5-VL image resize and normalization, the chat-template prompt) and the action un-normalization. The number of flow-matching steps (1 to 16, default the official 5) is chosen when the server starts; the camera count is fixed at the model's two wrist cameras. The vision tower and the action expert each run as one persistent device program at every step count, the language model as tt-nn operations with three fused device programs per layer (residual add with RMSNorm; head split with rotary embedding; the MLP's gate and up projections with their SiLU product); each prompt length bucket (416, 448 or 512 tokens) is replayed from its own captured trace. The action expert keeps the state half of its conditioning on the device and recomputes it only when the request's proprio state changes. The second serving profile, vq, runs RDT2-VQ itself: all 28 layers of Qwen2.5-VL-7B generate 27 action tokens, which the RVQ action tokenizer decodes into the same 24 x 20 chunk.

Runs on Tenstorrent p150 β€” see the serving profiles below.

Packaged and published with tt-model-manager 0.1.0 (manifest schema 5.1).

At a glance

Hardware p150
License apache-2.0

Intended use

Research inference with the RDT2-FM and RDT2-VQ checkpoints: action chunks for a bimanual UR5e setup with wrist cameras from images and an instruction, for example to inspect the policies, to compare implementations or to run offline evaluation, one request at a time.

Prerequisites

  • The Tenstorrent CLI, tt: uv tool install tenstorrent (or use tt-model alone, see the Quickstart)
  • Docker
  • Tenstorrent hardware: p150
  • About 16 GB of free disk for the default profile: 11 GB of weights in the Hugging Face cache and 4.1 GB for the container image (a 0.9 GB download). tt serve downloads the two RDT2-VQ shards the default profile reads (10 GB); the server downloads the RDT2-FM action expert (1 GB), the action normalizer and the tokenizer file into the same cache on its first start
  • The vq profile reads all four RDT2-VQ shards and the RVQ action tokenizer: its first start downloads 8.3 GB more (the other two shards, 6.6 GB, and the tokenizer, 1.7 GB)
  • Network access to huggingface.co on the first start, or those files fetched beforehand at the commits listed under Licensing

Quickstart

tt serve changh95/rdt2-base-p150

tt serve downloads the Docker image and the robotics-diffusion-transformer/RDT2-VQ at ec7e7f3aa4259224481c3cbd5816cc3f35354bec weights (into your HF cache; they are not in the image), then starts the model's own HTTP server on port 20000 (or the next free port, if that one is busy). The first start compiles kernels for your device, which takes several minutes; the server is ready when it logs Application startup complete.

Without tt-cli: tt-model serve changh95/rdt2-base-p150.

Send the shipped sample (two camera images of a public bimanual UR5e recording) to /predict, on the port tt serve reported:

S=https://huggingface.co/changh95/rdt2-base-p150/resolve/main/code/tt_rdt2/samples
curl -sLO $S/ur5e_bimanual_example_0_left_stereo.png
curl -sLO $S/ur5e_bimanual_example_0_right_stereo.png
printf '{"images":["%s","%s"],"instruction":"Pour water from the plastic bottle into the cup","seed":0}' \
  "$(base64 -w0 ur5e_bimanual_example_0_left_stereo.png)" "$(base64 -w0 ur5e_bimanual_example_0_right_stereo.png)" > req.json
curl -s localhost:20000/predict -H 'Content-Type: application/json' -d @req.json

The smoke test of this repo (Python 3, standard library only) sends the same request, compares the chunk with the stored output of the official RDT2 code for it, and checks a repeat, the 512-token bucket and the refusals (for the default profile, or for vq when that profile is served):

hf download changh95/rdt2-base-p150 --include "code/tt_rdt2/*" --local-dir rdt2-base-p150
python3 rdt2-base-p150/code/tt_rdt2/server/smoke_test.py --url http://localhost:20000

Serving profiles

Select a different serving profile using --profile.

profile hardware mesh description
fm (default) p150 P150 RDT2-FM: the flow-matching action expert on the RDT2-VQ vision-language backbone
vq p150 P150 RDT2-VQ: 27 action tokens generated by the full Qwen2.5-VL-7B, decoded by the RVQ action tokenizer

Capabilities

This package exposes the model's own HTTP server on port 20000, not an OpenAI-compatible chat API β€” its request and response shapes are the model's own. See the author's notes for the payload it expects.

POST /predict takes one observation and returns one action chunk. GET /health and GET /info report the server, the device, the weights and the configuration; GET /v1/models is a stub, not a chat API.

request field (POST /predict) meaning
images exactly 2 base64 PNG or JPEG images, in the order [left_stereo, right_stereo] (left-arm wrist camera, right-arm wrist camera). 384x384 images in the official setup, or any images of equal height whose side-by-side concatenation resizes to the same 392x756 input. One arm only: send a placeholder image for the unused camera (the authors' untested suggestion; see Configuration)
instruction (or prompt) the task in natural language; required; at most 112 tokens; no special-token text such as <|im_end|>
state (optional) 20 floats, the raw proprio state; default zeros, as in the official RDT2-FM deployment
seed (optional) integer seed of the initial noise, 0 to 2^63-1; default 0. The same request with the same seed returns the same chunk
prompt_bucket (optional) 416, 448 or 512 tokens; default the smallest that holds the prompt (instructions of up to 16, 48 or 112 tokens)
num_steps (optional) must equal the configured number of flow-matching steps (5 by default)

Response for the quickstart request (values rounded; arrays shortened):

{"actions": [[-0.00559, -0.00319, 0.00013, 0.996, 0.00258, 0.00094, -0.00144, 0.9885, 0.00019, 0.0858,
              0.00073, 0.00132, -0.0009, 1.00043, 0.0022, -0.00037, -0.00392, 0.98981, -0.00149, 0.0843],
             ...],
 "shape": [24, 20], "normalized": false,
 "units": {"position": "metres, end-effector position relative to the current end-effector pose",
           "rotation": "6-D rotation representation (unitless), relative to the current end-effector pose",
           "gripper": "metres (gripper width)"},
 "action_layout": {"right_arm": {"position_m": [0, 3], "rotation_6d": [3, 9], "gripper_width_m": [9, 10]},
                   "left_arm": {"position_m": [10, 13], "rotation_6d": [13, 19], "gripper_width_m": [19, 20]}},
 "chunk": {"horizon": 24, "action_dim": 20, "rate_hz": 30},
 "prompt_bucket": 416, "num_tokens": 409, "num_steps": 5, "seed": 0, "model": "rdt2-base-p150",
 "timing_ms": {"preprocess": 12.4, "inference": 61.7, "total": 74.2}}
  • actions has 24 rows (future steps at 30 Hz) and 20 columns: the right arm in columns 0 to 9 and the left arm in 10 to 19, each [x, y, z] in metres and a 6-D rotation, both relative to the current end-effector pose, then the gripper width in metres. These are the values of the official RDTInferencer.step; the official README additionally rescales the gripper columns for its robot (/ 0.088 * 0.1), which this server does not.
  • timing_ms is measured in the server: preprocess (image decode, request checks, tokenization, pixel layout), inference (upload, device programs, read-back, un-normalization) and total; they vary from request to request (Expected performance has the distribution).
  • Errors: 400 with the reason for a camera count other than 2, an image that does not decode or has another geometry, an empty instruction or one with special-token text, a prompt longer than the largest bucket (never truncated), a bucket that does not hold the prompt, a state that is not 20 finite numbers, num_steps other than the configured one, a body above 32 MB; 422 for an unknown field or a wrong type; 500 with the exception text for a device failure.
  • The server accepts connections once every prompt bucket is warm (tt serve returns then); before that, connections fail. A start-up failure, such as an unsupported configuration, ends the server, with the reason in its log.
  • The Python API (from tt_rdt2 import RDT2FM) returns the same chunks; see code/PYTHON.md. It needs a tt-metal build with the patches in patches/.

Configuration

The server builds the device programs for one configuration when it starts; only the prompt bucket changes from request to request. GET /info reports the configuration under configuration.

setting how range default why
cameras RDT2_NUM_CAMERAS 2 (fixed) 2 The RDT2 model cards define the observation as "Two wrist-camera RGB images (right/left), 384x384"; the two images are joined side by side into one picture, so another count is an input the model never saw. Other values are refused at start.
flow-matching (Euler) steps RDT2_NUM_STEPS 1 to 16 5 The official sampler's step count; the authors validated 5.
action chunk none 24 x 20 (fixed) 24 x 20 Fixed by the weights (24 action positions + 4 register tokens, 20-value actions); a client may execute fewer than 24 steps.
proprio state request field state 20 values zeros The released RDT2-FM was trained with a zero state.
prompt bucket request field prompt_bucket 416 / 448 / 512 tokens the smallest that holds the prompt Instructions of up to 16 / 48 / 112 tokens; longer ones are refused.
policy serving profile fm or vq RDT2-FM, RDT2-VQ fm vq has no flow-matching steps.
batch size none 1 1

The vision tower, the language model and the action expert run as the same device programs at every step count. One arm only: the model has no single-arm mode; the authors suggest (untested) sending a background image for the camera of the missing arm, and the chunk still holds both arms (right arm in columns 0 to 9).

To change the step count, edit the value in the docker run command that tt-model serve --print writes (it has no option for the environment), start the container, and read GET /info:

CMD=$(tt-model serve changh95/rdt2-base-p150 --print | grep '^docker run')
CMD=$(echo "$CMD" | sed -e 's/RDT2_NUM_STEPS=5/RDT2_NUM_STEPS=8/' -e 's/^docker run /docker run --detach /')
eval "$CMD"     # ready when `docker logs tt-model-rdt2-base-p150-fm` shows "Application startup complete"
curl -s localhost:20000/info | python3 -c "import json,sys; print(json.load(sys.stdin)['configuration'])"
docker stop -t 120 tt-model-rdt2-base-p150-fm && docker rm tt-model-rdt2-base-p150-fm

RDT2-VQ (vq profile)

tt serve changh95/rdt2-base-p150 --profile vq (or tt-model serve ... --profile vq) serves RDT2-VQ with the same request fields and 2 cameras; state and seed are accepted but not used, and num_steps must be omitted or 5. The response has the same fields plus "model_variant": "vq" and tokens (generated, the 27 action_ids, their codebook action_tokens, valid); timing_ms adds generate and rvq_decode. As in the official RDT2-VQ example, the images pass through a JPEG round trip (quality 95), the decoding is greedy on the logits with the checkpoint's repetition penalty (1.05), and a generation without the end-of-actions token after 27 action tokens decodes 27 zero ids and reports "valid": false.

Example output

RDT2-FM on a Tenstorrent p150: the two wrist-camera images of the sample and the x, y, z and gripper columns of both arms of the returned 24-step chunk, against the official code in float32

The chunk of the response above, returned by this package, and the chunk of the official RDT2 code run in float32 on a CPU for the same request: position, and gripper width of both arms over the 24 steps. The images are sample 0 of the Apache-2.0 dataset robotics-diffusion-transformer/BimanualUR5eExample; attributions for media/: media/ATTRIBUTION.md.

Expected performance

Agreement with the official RDT2 code (RDTInferencer.step of thu-ml/RDT2 at commit 0797b4c6, same weights) run in float32 on a CPU, with the same cameras, instruction, state and initial noise, default configuration (2 cameras, 5 steps). The reference column is the official code run in bfloat16, its deployment precision, against the same float32 run:

eval this package official code in bfloat16 cases
Shipped sample (real frame, 409 tokens): largest difference in position / 6-D rotation / gripper width 0.50 mm / 0.0012 / 0.04 mm 3.86 mm / 0.0060 / 0.24 mm 1
Shipped sample: 1 - PCC of the normalized chunk 1.8e-7 5.0e-6 1
Synthetic image pairs x 2 instructions x 2 seeds + 1 real frame (416-token bucket): largest position / rotation / gripper difference; lowest PCC 2.18 mm / 0.0044 / 1.56 mm; 0.99991 4.86 mm / 0.0072 / 1.64 mm; 0.99992 (3 of the cases) 13
Zero and 10 x N(0, 1) states, 409-, 436- and 492-token prompts (416 / 448 / 512 buckets) 0.49 mm / 0.0011 / 0.62 mm; 0.999991 8.88 mm / 0.0081 / 0.61 mm; 0.99998 5
Further real frames and two synthetic image pairs, 416- to 499-token prompts, zero, N(0, 1) and 10 x N(0, 1) states 2.43 mm / 0.0044 / 0.92 mm; 0.999986 6.71 mm / 0.0128 / 0.70 mm; 0.99997 8
Other real frames (one brightened, one dimmed), a random image pair, constant and noise images, a Chinese / English instruction; 404- to 512-token prompts; zero to 10 x N(0, 1) states 1.34 mm / 0.0082 / 0.61 mm; 0.999987 5.72 mm / 0.0103 / 0.61 mm; 0.999986 10

Positions and gripper widths are relative values in metres; PCC is over the 24 x 20 normalized chunk. Each of the 26 cases with a bfloat16 reference stays within 3 times (position, rotation, gripper) and 10 times (1 - PCC) the larger of two bfloat16 references for that case (the official bfloat16 run, and the bfloat16 action expert on the official bfloat16 key/value caches); 5 of the 26 cases have a ratio above 1, the largest 2.2 (gripper width on a 492-token prompt with a zero state), 1.75 and 1.7 (gripper width and 1 - PCC on a 416-token real frame), 1.3 for 1 - PCC (a synthetic image pair) and 1.1 for rotation (a brightened real frame). The other 10 cases (synthetic image pairs of the 13-case row, without a bfloat16 run) stay within PCC 0.999 and 10 mm / 0.02 / 3 mm. The server returns the same chunks: all 36 cases were also sent to it as PNG images, twice each, within a run of 500 requests. Other step counts were checked the same way against the official code run in float32 with the same step count: 3 cases (one per bucket) and 7 further cases (real frames, one of them with a flat grey image in place of the right camera, and a synthetic image pair; each at its own prompt bucket and forced into every larger one) at 1, 2, 5, 8 and 16 steps, 90 runs, all within the limits. This package stays within 2.6 mm (position), 0.0055 (rotation 6-D) and 0.87 mm (gripper width) of the float32 run at every step count, while the bfloat16 references come closer to float32 as the step count grows (10 to 14 mm in position at 1 step, 1.2 to 2.0 mm at 16 on the 7 further cases), so the ratios to them grow with the step count: 9 of the 360 ratios are above 1, the largest 3.3 for 1 - PCC (a synthetic image pair at 16 steps; at most 0.98 on the 7 further cases), 1.7 for the gripper width (the same synthetic pair) and 1.4 for the position (a real frame forced into the 512 bucket at 16 steps). The real frames are from the public recording BimanualUR5eExample (Apache-2.0). The RDT2 cards publish no task-success figure for these weights; no closed-loop or on-robot run was made with this package.

The vq profile against the official RDT2-VQ example code (utils.batch_predict_action) in float32 on a CPU, with the official bfloat16 run as the reference column (actions: largest position / gripper difference and the largest angle between the two rotations):

eval (vq profile) this package official code in bfloat16 cases
Shipped sample: generated tokens equal to the float32 run; action difference 28 of 28; 0.0 mm / 0.0 deg / 0.0 mm first difference at token 1; 11.6 mm / 5.5 deg / 0.6 mm 1
Shipped sample padded to the 512-token bucket 10 of 27 action ids equal; 9.5 mm position difference – 1
Real frames, a random image and synthetic images, 405- to 467-token prompts: cases whose action is at least as close to the float32 run as the official bfloat16 run's, in every metric 6 of 7; the 7th diverges at a near tie in its second token: 115 mm / 10.9 deg / 30 mm 23.5 mm / 4.8 deg / 18 mm in that case 7
Next-token logits with the float32 tokens fed back: median 1 - PCC per case 0.8e-5 to 1.5e-5 5.7e-4 to 9.3e-4 8

The generated tokens decide the action: the official bfloat16 run leaves the float32 tokens within the first four tokens in every case, and this package follows them further but not always to the end.

speed (batch 1, warm, default fm profile, 5 steps) bucket 416 bucket 448 bucket 512
Device time per call, trace replay of the three programs back to back, median 67.2 ms 69.0 ms 73.8 ms
Device time per call with 30 ms idle before each call, median 59.5 ms 60.3 ms 63.7 ms
Python model() call on the sample (pre-processing + device + un-normalization), median 73.7 ms – –
Served POST /predict, server timing_ms.total, median (p99) 76.0 ms (78.4) 77.1 ms (78.0) 81.4 ms (82.9)
Served POST /predict, client round trip on loopback, median (p99) 79.8 ms (84.4) 80.8 ms (81.9) 85.1 ms (86.7)

Measured with this package's code on one p150 in an 8-vCPU AMD EPYC-Rome host at a host load average of 4.4 to 5.8: 120 trace replays back to back and 60 after 30 ms of idle time per bucket, and 100 served requests per bucket of one real frame with a zero state (409, 430 and 491 tokens), one at a time; the model() row is code/scripts/bench.py (120 calls) at a load average of 4 to 5. In 500 consecutive served requests over every bucket with varied images, instructions, seeds and states, the server time was 75.2 ms at the median and 81.4 ms at p99 (load average 4 to 5). Of the device time at 416 tokens, the vision program takes 28.3 ms, the language model 31.1 ms and the action expert 9.9 ms; the host pre-processing (image resize, patch layout, tokenization) takes about 5.5 ms of the call, and image decoding and the request checks about 6.5 ms more in the server. The served latency depends on the host CPU: on a busier host (load average 10 to 14) the pre-processing in the server took 22 to 47 ms at the median, while the device inference time stayed within 3 ms.

flow-matching steps device time per call, trace replay back to back: 416 / 448 / 512 tokens with 30 ms idle before each call served timing_ms.total, median: 416 / 448 / 512 tokens
1 61.7 / 63.5 / 68.0 ms 53.2 / 54.4 / 57.7 ms 70.0 / 71.7 / 74.8 ms
2 63.2 / 65.4 / 69.5 ms 54.9 / 56.3 / 60.4 ms 70.7 / 72.2 / 76.1 ms
5 (default) 67.2 / 69.0 / 73.8 ms 59.5 / 60.3 / 63.7 ms 76.0 / 77.1 / 81.4 ms
8 71.4 / 73.5 / 77.4 ms 64.0 / 64.9 / 67.9 ms 79.7 / 81.0 / 84.6 ms
16 81.2 / 83.5 / 87.9 ms 76.1 / 77.0 / 79.2 ms 91.2 / 91.3 / 94.0 ms

Per step count, in the same session as the default rows above (host load average 4.4 to 5.8), one request per bucket (a real frame with a zero state): medians of 120 back-to-back trace replays, of 60 replays each after 30 ms of idle time, and of 100 served requests to a server started with that step count. Each extra step adds about 1.3 ms back to back and 1.5 ms with idle time. The device runs faster when it has idle time between calls (a robot loop that waits between calls sees the middle column), so the back-to-back column is the slow case; a served request leaves the device idle while the next request is decoded. Back-to-back medians also depend on how long the chip has been busy and move by 1 to 2 ms from one session to the next. The vq profile: prefill 98.4 / 100.8 / 108.7 ms at 416 / 448 / 512 tokens and 37.7 ms per generated token (1.13 s for the 28 tokens of a chunk) at a host load average of 5 to 6; served POST /predict client round trip median 1.25 s (p99 1.28 s) over 180 requests at a load average of 4 to 6.

Limitations

  • Not for controlling a robot or any other physical system without the user's own validation: no closed-loop, simulator or on-robot run was made with this package, and the actions are relative end-effector targets for the bimanual UR5e setup the checkpoints were trained for.
  • Inference with the RDT2-FM and RDT2-VQ weights only; fine-tuned checkpoints and training were not tested.
  • Exactly two wrist cameras (384x384 each in the official setup), as the checkpoints define; other camera counts are refused, and the single-arm recipe (a background image for the missing camera) is untested by the authors and by this package. The configuration is fixed for the life of the server: 1 to 16 flow-matching steps (the authors validated 5; other step counts are checked only against the official code with the same step count, not for task success), three prompt buckets, so instructions of at most 112 tokens (longer ones are refused, never truncated). The vq profile has no step count; the official code also runs other image sizes, which this package refuses.
  • Batch 1, requests served one at a time. One p150 only: device dispatch runs on the chip's Ethernet cores, so multi-chip meshes are not supported; other boards were not tested.
  • Precision: bfloat16 weights; vision-tower matrix products at HiFi2 fidelity, language model and action expert at HiFi4, residual streams in float32. Against the official float32 run the default chunks differ by up to 2.4 mm in position, 0.0082 in rotation and 1.6 mm in gripper width on the 36 cases above (the official bfloat16 run, on the 26 cases it was run for: up to 8.9 mm, 0.013 and 1.6 mm), and at the other step counts checked by up to 2.6 mm, 0.0055 and 0.87 mm (Expected performance). With RDT2_DISPATCH=worker (Tensix dispatch cores, 11x10 compute grid; not a serving profile) the action expert, and at the 448- and 512-token buckets the language model's MLP, round differently; the chunks pass the same limits. Not compared with a GPU run of the official code.
  • The vq profile's actions follow from 27 generated tokens: where two candidate tokens score almost the same, a different choice changes the action by up to centimetres, in this package and in the official bfloat16 run alike.
  • The default noise seed is fixed (0), so identical requests return identical chunks; send seed to sample other chunks.
  • An experimental language-model engine selected by RDT2_ENGINE=prefix=mk hangs the device on repeated calls at the 512-token bucket; it is refused unless RDT2_EXPERIMENTAL_PREFIX_MK=1, and no serving profile sets it.

Licensing

Related packages

Feedback

Questions or problems with this package: open a discussion at https://huggingface.co/changh95/rdt2-base-p150/discussions β€” that is what reaches its author. A problem with the tt tooling itself: tt report issue (collects your environment and opens a prefilled issue against tenstorrent/tt-cli). Product feedback: support@tenstorrent.com.

Provenance

The exact sources the image was built from β€” code/ in this repo is byte-identical to the model code inside the image:

component built from
tt-metal 44d66500520fda9f2c7060c0f6b41ec48f7ab37e (dirty tree β€” the image includes uncommitted changes)
code/ digest e708cfd9e7243f35 (sha256, first 16 hex digits)
built 2026-11-21T14:55:21+00:00 by tt-model 0.1.0
Downloads last month

-

Downloads are not tracked for this model. How to track
Video Preview
loading

Model tree for changh95/rdt2-base-p150

Collection including changh95/rdt2-base-p150

Paper for changh95/rdt2-base-p150