Research · Open source

SequenceLink is open source: an inference and network framework for robot policies

A robot that runs its policy on a remote GPU must receive each chunk of actions before the one it is executing runs out. SequenceLink, the open-source release of the inference and network layers of GS-WAN, treats that deadline as one budget. On one A100 it kept 24 robots on time, where answering them one by one kept 9.

Vision-language-action models such as π0.52 and GR00T N13 predict a chunk of future actions at a time, and a robot can keep executing the current chunk while the next one is computed4. When the policy runs on a GPU the robot does not carry, every request therefore has a deadline: the next chunk has to arrive before the robot runs out of the current one. Missing it is costly. In simulation, adding a fixed delay to each response cut π0.5's success on LIBERO-107 from 96% to 24%1.

Today we are releasing SequenceLink, the open-source implementation of the network and inference layers of GS-WAN, the system described in our technical report1. The code is at github.com/General-Sequences/sequence-ai; it is installed with pip install sequence-ai and works with openpi5, LeRobot6 and GR00T. This post summarizes the design and the measurements; every number below is taken from the report, which describes each method and setup in full.

Overview of GS-WAN: a routing layer that links each robot to the closest GPU site, a network layer that carries observations and action chunks, and an inference layer that answers robots together on the GPU.
Figure 1. Overview of GS-WAN. The routing layer links each robot to the closest GPU available; the network layer carries observations and action chunks with only the network's own delay; the inference layer answers several robots together on one GPU. SequenceLink is the open-source release of the network and inference layers; routing runs on our hosted platform. From the technical report1.

The time budget of a request

A chunk holds N actions executed at h Hz. The robot sends its next request at step k, so the request has the N − k remaining actions, (N − k)/h seconds, to come back. Within that budget it must be uploaded, possibly wait for a batch, run through the model and be downloaded, with a margin to spare. What remains is the request's slack; a negative slack leaves the robot without actions (Figure 2).

General-purpose model servers spend this budget without knowing it. A policy's own server answers robots one at a time, so a GPU that could serve many robots on time serves a few. Batching servers such as Ray Serve8 and NVIDIA Triton's dynamic batcher9 hold each request for a fixed time, whether or not its robot can afford to wait, and by default accept every robot that connects.

The time budget of one request: the actions left in the current chunk, split into upload, batch wait, inference, download, slack and margin.
Figure 2. The time budget of one request. The robot executes chunk i and asks for the next one at step k; the request must arrive before the N − k remaining actions run out. Slack is the budget minus the upload, the wait for a batch, the batch itself, the download and a margin.

GS Inference: answering robots together within their slack

The inference layer gives every request a countdown, its slack, and holds it only for as long as its robot can wait. Requests whose countdowns overlap are answered together in one pass of the model, so the GPU's work is shared without delaying any robot past its deadline; a robot that is far from the GPU and has little slack left is answered at once, alone. Before accepting a robot, the layer computes from measured batch times how many robots each replica can keep on time, its seats. A robot that does not fit is sent to another replica instead of making every robot on the full replica late (Figure 3).

GS Inference: robots with different amounts of their chunk left are held only within their slack and dispatched together as a batch; a far robot is answered at once; a full replica sends the next robot to another replica.
Figure 3. GS Inference. Left, three robots have different amounts of their current chunk left (amber); the green bar under each is its countdown. The batch is dispatched when the first countdown ends, and a far robot is answered at once, alone. Right, each replica has a fixed number of seats, and a robot beyond them goes to the next replica.

Answering robots together raised the number of robots one GPU kept on time, with fewer than 5% of responses late, each policy at its own timing and each robot 20 ms from the GPU (Figure 4). On an NVIDIA A100-40GB, π0.5 rose from at least 6 robots to 12, GR00T N1.6 from 3 to 10, and GR00T N1.6 with CUDA graphs from at least 9 to 24. On an NVIDIA L4, GR00T N1.6 rose from 5 robots to 10, while π0.5 stayed at 2, because a single π0.5 request already keeps the L4 fully in use. Dividing the GPU's hourly price by the robots it served, the cost per robot-hour fell from $0.160 to $0.080 for GR00T N1.6 on an L4, and to $0.144 on an A100 with CUDA graphs1.

Bar charts of robots one GPU serves in time and cost per robot-hour, answered one by one and together with GS Inference, for π0.5 and GR00T on an L4 and an A100.
Figure 4. Robots per GPU and their cost. (a) Robots one GPU kept on time, with fewer than 5% of responses late, answered one by one or together with GS Inference, each policy at its own timing and 20 ms away; ≥ marks a count measured only from below. (b) The GPU's price per hour divided by the robots it served.

We also placed Ray Serve and Triton, each at its default wait and at 2 and 50 ms, in place of GS Inference, in front of a stand-in server that replays the batch times measured for π0.5 on an A100. With sixteen robots asking, more than one A100 can serve on time, every configuration of both accepted all sixteen and kept none on time, with more than 80% of responses late. GS Inference accepted eight, kept all eight on time and sent the others elsewhere (Figure 5). On the A100 itself, with the real model, Ray Serve at its default was late on 98% of responses, while GS Inference again kept its eight robots on time. End to end, openpi's own server kept four π0.5 robots on time on an A100 and was late on nearly every response once eight or more asked; GS-WAN accepted eight and kept every one of them on time1.

GS Inference against open-source batching servers: with sixteen robots asking, GS Inference keeps 8 on time and sends 8 elsewhere, while every Ray Serve and Triton configuration keeps none on time.
Figure 5. GS Inference against open-source batching servers, each in front of a stand-in that replays π0.5's measured A100 batch times. (a) Sixteen robots asking, more than fit, all 20 ms away. (b) Robots near and far, every robot accepted.

CUDA graphs with exact outputs

The denoiser of a diffusion or flow policy is called several times per inference with the same shapes, and in eager PyTorch each call launches its kernels one at a time, thousands per inference of GR00T, so the GPU spends much of each call waiting for the next launch. CUDA graphs10 remove this overhead by replaying recorded kernels with a single launch. SequenceLink chooses the module to capture automatically, from the submodules called repeatedly in each inference, and keeps a graph for a shape only if its output is exactly the eager output.

On GR00T N1.7 on an L4, replay made an inference call 1.54 times faster, with exactly the same outputs on new inputs, a new prompt and a larger batch; capture took a fraction of a second per shape and no extra GPU memory. torch.compile11 reached 1.45 and 1.53 times in its two modes, and both changed the outputs. On an A100 whose host processor was about half as fast per thread as the L4 machine's, the same replay ran three times faster than eager, again with exactly the same outputs (Figure 6).

Eager execution launches each kernel separately and leaves the GPU idle between launches; replaying the same kernels from a CUDA graph takes one launch, runs 1.54 times faster and gives the same outputs.
Figure 6. Replaying a module's own kernels from a CUDA graph, one GR00T N1.7 call on an NVIDIA L4, speed relative to eager. Top, eager execution launches the kernels one at a time and the GPU waits between them. Bottom, the same kernels replayed with one launch. A graph is kept only if its output equals the eager output.

GS Network: keeping the connection fast

A robot pauses between requests while it executes its chunk. When a pause lasts longer than the connection's retransmission timeout, the sender's congestion window is reduced12, and the robot's next upload, an observation of tens of kilobytes, takes two network round trips instead of one. SequenceLink's server sends small pings during these pauses, which keep the window open, so the upload after a pause takes a single round trip (Figure 7). Responses are written in a single write, compression is applied only where it saves time, and camera frames are streamed as low-latency H.264 video, which needs about a hundredth of the raw bytes1.

By default the first upload after a pause longer than the retransmission timeout takes two network delays because the window shrinks; with GS-WAN's pings the window is kept and the upload takes one network delay.
Figure 7. The first upload after a pause. Top, by default: after a pause longer than the retransmission timeout the congestion window shrinks, and the upload takes two network delays. Bottom, with the server's pings the window is kept, and the upload takes one.

With one robot 20 ms from an NVIDIA L4, the time a request spent outside the server fell to 23.5 ms for π0.5 and 23.3 ms for GR00T N1.6: 2.7 and 4.5 times shorter than with each policy's own server (Figure 8).

Time a request spends outside the server, relative to the policy's own server π0.5 DROID openpi's server 1× 23.5 ms · 2.7× shorter GR00T N1.6 DROID GR00T's server 1× 23.3 ms · 4.5× shorter the policy's own server SequenceLink (GS-WAN)
Figure 8. Time a request spends outside the server, relative to each policy's own server, with one robot 20 ms from an NVIDIA L4, median over two seeds of 60 s. Bars share one scale per policy.

Using SequenceLink

The server side is one command, and a robot connects with one call:

pip install sequence-ai
seq serve examples/quickstart_policy
import sequence_ai
policy = sequence_ai.connect("http://<server>:8000")

The inference components wrap an existing openpi, LeRobot or GR00T server, and on a robot that already uses openpi's client, the network components are one line, openpi.keep(policy). The repository's llms.txt describes every component for coding agents. The code, quick starts and documentation are at github.com/General-Sequences/sequence-ai, and the methods and every measurement are in the technical report1. The routing layer and fleet operations run on our hosted platform at generalsequences.com, which serves each policy on the closest GPU available.

References

  1. General Sequences, Y. Wang. Scaling Robot Policies over Wide-Area Networks. Technical report, 2026.
  2. Physical Intelligence, K. Black, N. Brown, et al. π0.5: a Vision-Language-Action Model with Open-World Generalization. 2025.
  3. NVIDIA, J. Bjorck, et al. GR00T N1: An Open Foundation Model for Generalist Humanoid Robots. 2025.
  4. K. Black, M. Y. Galliker, S. Levine. Real-Time Execution of Action Chunking Flow Policies. NeurIPS 2025.
  5. Physical Intelligence. openpi. 2024.
  6. R. Cadene, S. Alibert, A. Soare, et al. LeRobot: State-of-the-art Machine Learning for Real-World Robotics in PyTorch. 2024.
  7. B. Liu, Y. Zhu, C. Gao, et al. LIBERO: Benchmarking Knowledge Transfer for Lifelong Robot Learning. NeurIPS 2023 Datasets and Benchmarks.
  8. Ray. Ray Serve: Dynamic Request Batching.
  9. NVIDIA. Triton Inference Server: Batchers.
  10. NVIDIA. CUDA C++ Programming Guide: CUDA Graphs.
  11. J. Ansel, E. Yang, H. He, et al. PyTorch 2: Faster Machine Learning Through Dynamic Python Bytecode Transformation and Graph Compilation. ASPLOS 2024.
  12. G. Fairhurst, A. Sathiaseelan, R. Secchi. Updating TCP to Support Rate-Limited Traffic. RFC 7661, 2015.