﻿# SmolVLA asynchronous execution needs queue refill and overlap timing

Understand LeRobot asynchronous inference through action queue occupancy, observation refresh thresholds, response timing, and overlap aggregation rather than latency alone.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-smolvla-async-action-queue-refill-overlap/
Language: en

## Separate prediction progress from execution progress

A robot can keep consuming an existing action plan while a server predicts the next one. This avoids requiring every control tick to wait for a new model result, but it introduces a coordination problem: the old queue may shrink while the new result is in transit.

The [LeRobot asynchronous guide](https://huggingface.co/docs/lerobot/async) describes this client/server execution pattern. Its benefits depend on the actual timing and refill policy, not merely on naming an inference request asynchronous.

## Queue occupancy triggers a new observation

The documented interface exposes `actions_per_chunk` and `chunk_size_threshold`. They control different quantities: how much predicted action content is requested and when the client requests more relative to its remaining queue.

Record both settings with control frequency and observed request duration. Earlier refill can increase overlap and server demand, while later refill leaves less time before depletion. No single threshold establishes a universal optimum across robots and model variants.

## Overlap requires a time-aligned combination rule

The [original asynchronous inference explanation](https://huggingface.co/blog/async-robot-inference) discusses overlapping predicted chunks. Combining those proposals requires knowing which entries refer to the same future execution step. Equal array indices from requests made at different times do not establish that identity.

Preserve request observation time and response integration time in an offline trace. The [tensor-axis guide](/journal/tensor-axes-batch-sequence-hidden/) helps distinguish chunk-relative positions from the controller timeline. An aggregation name alone cannot document an application's complete alignment behavior.

## A lightweight model still has domain-specific preparation

The [SmolVLA workflow](https://huggingface.co/docs/lerobot/smolvla) describes camera views, robot state, and an instruction as model conditions, with finetuning for the intended setup. Moving that policy behind a server does not remove those input requirements.

Keep camera keys, state preparation, model identity, and action conversion linked across client and server. A transport-compatible request can still contain observations prepared for a different trained robot configuration.

## Test delayed responses rather than only average speed

Replay a recorded schedule with varying response delays and inspect queue length, empty-queue events, and which proposal supplies each executed position. This isolates coordination behavior without claiming a physical success rate.

The [latency and throughput guide](/journal/throughput-latency-tradeoff/) helps interpret the measurements. Faster average inference is useful but insufficient: delay variation, refill timing, and overlap interpretation can change action freshness even when the model and average duration remain unchanged.
