This document is relevant for: Trn2, Trn3
FLUX.3 Action Model Card#
Introduction#
FLUX.3 Action is a robot policy from Black Forest Labs trained on the DROID manipulation dataset. For each observation (a wrist camera view, two exterior camera views, the joint and gripper state and a language instruction) it denoises a short video latent and a chunk of 32 future actions of 8 values each (7 joint positions and the gripper). Its components are a Qwen3-VL-4B-Instruct text encoder, a video VAE encoder and a flow-matching DiT.
FLUX.3 Action is supported for inference serving with vLLM Omni using the Neuron SDK on AWS Trainium2 (trn2). Actions are served through the OpenPI WebSocket API. An OpenPI policy client connects when it passes the full endpoint URL as its host, as in the example under Serving.
Compatible model checkpoints:
Component |
Hugging Face |
Notes |
|---|---|---|
Policy (DiT) |
|
|
Video VAE |
Only |
|
Text encoder |
Language model only |
The Black Forest Labs repositories are gated. Accept the license on Hugging Face and log in with
hf auth loginbefore the first download.
Features#
Category |
Feature |
Status |
|---|---|---|
Generation |
DROID observation to a 32 x 8 action chunk |
✅ |
Three camera views, or one pre-composed 540 x 640 image |
✅ |
|
Precision |
BF16 |
✅ |
Parallelism |
Tensor Parallelism (TP) |
✅ |
Context Parallelism (CP, ring attention over the joint sequence) |
✅ |
|
CFG Parallelism ( |
✅ |
|
Serving |
OpenPI WebSocket ( |
✅ |
Concurrent requests |
Limited |
|
Compilation |
torch.compile |
✅ |
Status legend:
✅ Supported: integrated and tested for FLUX.3 Action
Limited: accepted, but concurrent requests run one after another (
max_num_seqs: 1)
Policy variants#
Variant |
Sampler |
DiT passes per plan |
|---|---|---|
|
4 steps, guidance 4.0 on video and 1.0 on actions |
8 (conditional and unconditional per step) |
|
4 steps, no guidance |
4 |
|
1 step, no guidance |
1 |
Deploy configurations#
Each file in examples/flux3_action/ is a complete deploy config for one variant and layout. A Trn2 chip has 4 logical NeuronCores at the default logical core size of 2.
Deploy config |
Variant |
Layout |
Logical cores (chips) |
|---|---|---|---|
|
|
TP4 |
4 (1) |
|
|
TP4 x CFG2 |
8 (2) |
|
|
TP4 |
4 (1) |
|
|
TP4 x CP2 |
8 (2) |
|
|
TP8 x CP2 |
16 (4) |
|
|
TP4 |
4 (1) |
|
|
TP4 x CP2 |
8 (2) |
CFG parallelism runs the conditional and unconditional passes of base on separate TP groups. Context parallelism splits the rows of the joint text, video and action sequence over ring_degree ranks; set it with ring_degree, not sequence_parallel_size (see the context parallelism design doc).
model_config keys#
Set these under stages[0].engine_args.model_config:
Key |
Default |
Meaning |
|---|---|---|
|
|
|
|
|
Local directory or Hugging Face repository of the text encoder |
|
|
Directory, repository or file holding |
|
see the deploy configs |
Metadata the OpenPI endpoint sends on connect: |
|
from the variant’s |
Sampler overrides |
Serving#
Download the files of the deploy config’s variant into a local directory, and serve that directory. Serving the Hugging Face ID downloads every policy in the repository. For base, download config.json and model.safetensors from the repository root. The tutorial has the full steps. Export the variables under Environment, then start the server with a deploy config:
export MODEL_DIR="$HOME/flux-3-action-droid"
hf download black-forest-labs/flux-3-action-droid \
config.json variants/gd/config.json variants/gd/model.safetensors \
--local-dir "$MODEL_DIR"
vllm serve "$MODEL_DIR" --omni \
--deploy-config examples/flux3_action/flux3_action_gd_tp4cp2.yaml \
--stage-init-timeout 3600 --init-timeout 3600
Startup takes several minutes: the engine’s warm-up request compiles the graphs for every prompt of up to 80 tokens, chat template included. A longer prompt compiles its own graphs on first use, so send one such request before timing the policy.
Connect an OpenPI client to the WebSocket endpoint. The server first sends the policy_server_config metadata; each observation then returns one (32, 8) float32 action chunk:
import numpy as np
from openpi_client.websocket_client_policy import WebsocketClientPolicy
policy = WebsocketClientPolicy(host="ws://localhost:8000/v1/realtime/robot/openpi")
view = np.zeros((360, 640, 3), dtype=np.uint8)
obs = {
"observation/wrist_image_left": view,
"observation/exterior_image_1_left": view,
"observation/exterior_image_2_left": view,
"observation/joint_position": np.zeros(7, dtype=np.float32),
"observation/gripper_position": np.zeros(1, dtype=np.float32),
"prompt": "put the marker in the cup",
}
actions = np.asarray(policy.infer(obs))
The three views are RGB uint8 arrays of one shape, 360 x 640. A client can send one composed observation/image of 540 x 640 instead: the wrist view on top and the two exterior views at half size below it.
Environment#
The latency under Performance comes from a benchmark that applies the FLUX.1-dev env profile (env_profiles.FLUX1_DEV in vllm_omni_neuron/env_profiles.py) before it builds the engine. vllm serve and the deploy configs do not apply that profile, so export these variables before you start the server. NEURON_SCRATCHPAD_PAGE_SIZE must match the graphs’ --hbm-scratchpad-page-size=2048 compiler flag:
export NEURON_SCRATCHPAD_PAGE_SIZE=2048
export NEURON_RT_DBG_INTRA_RDH_CHANNEL_BUFFER_SIZE=167772160
export NEURON_RT_DBG_CC_DMA_PACKET_SIZE=2048
export TORCH_NEURONX_NEFF_CACHE_LOCK_TIMEOUT=14400
export TORCH_NEURONX_VOCAB_SHARDING_SPMD_DISABLE=1
export VLLM_NEURON_COMPILATION_TIMEOUT=3600
Performance#
Plan latency of the three variants on 2 chips (8 logical NeuronCores at logical core size 2) in BF16, measured on one
trn2.48xlarge node through the vLLM Omni engine: after a pass over 16 DROID observations and 10 warm-up plans, 50 timed
plans. Client is the wall time of Omni.generate for one observation; forward is the pipeline’s time for the same
request, from the start of observation preparation until the actions are back on the host.
Variant |
Deploy config |
Client p50 (s) |
Client p90 (s) |
Forward p50 (s) |
|---|---|---|---|---|
|
|
0.394 |
0.394 |
0.388 |
|
|
0.252 |
0.253 |
0.246 |
|
|
0.083 |
0.084 |
0.078 |
Latency can vary by 10% or more between trn2.48xlarge nodes.
Accuracy#
The end-to-end test serves each variant through the vLLM Omni engine and compares the actions for 16 DROID observations with an FP32 CPU reference and a BF16 CPU reference of the same model. It requires the Neuron error against FP32 to stay within the BF16 CPU error (assert_close_three_way). All seven deploy configs pass, and a repeated request returns bit-identical actions.
Known limitations#
One request at a time. The stage runs
max_num_seqs: 1; concurrent OpenPI sessions are served one after another.Logical core size 2 only. The NKI kernels of the DiT and the text encoder launch at a logical NeuronCore size of 2, the Trn2 default.
Trn2 only. The deploy configs run on
trn2.48xlarge; Trn3 is not yet validated.
Tutorials#
Tutorial: Deploy FLUX.3 Action: set up, download the model, serve a policy variant over the OpenPI WebSocket, and measure plan latency step by step.
This document is relevant for: Trn2, Trn3