Infinigence AI and universities launch open-source edge inference engine APXInf, with real-world tests
Infinigence AI, together with Tsinghua University and Shanghai Jiao Tong University, launched APXInf, an open-source embodied edge inference engine that has been adapted to 2 embodied models and 3 chips.
Source: ModelScope Robotics · modelscope.csdn.net
The team tested the migration and optimization of π0.5 and Qwen3-VL following the repository's built-in workflow; readers can refer to this division-of-labor approach for Agent-assisted adaptation.
Deploying a vision-language large model onto a robot body is an engineering challenge faced by many embodied development teams.
Once the model runs in the cloud or a simulation environment, moving it to the edge still means dealing with constraints on compute, memory, and power, as well as the robot's requirements for response latency. Operator adaptation, tensor layout, memory allocation, and numerical alignment all need to be handled one by one. For teams that lack inference system experts, this work often slows down the progress of their self-developed models from demo to actual deployment.
Only by shortening this deployment process can model advances be more quickly translated into robot capabilities on real tasks.
To solve these deployment problems, Wuwen XinQiong led the effort, jointly with Tsinghua University and Shanghai Jiao Tong University, to launch APXInf. This is a high-performance open-source embodied edge-side inference engine built for embodied models and robot mass production deployment, focused on serving edge-side inference scenarios with small batches, multiple viewpoints, and strict response latency requirements. To date, it has adapted 2 mainstream embodied models and 3 chips, and has reached the current industry SOTA performance level on the Jetson AGX Thor.
At the bottom layer, it optimizes execution paths around specific models and hardware, and also incorporates the process of agents participating in model adaptation and performance optimization into the project's own design. Expert experience in model adaptation, performance optimization, and deployment validation has been organized into Workflows and Skills that a Coding Agent can execute. The team prefers to understand its positioning from this angle: an Agentic native embodied edge-side inference engine.
With this judgment in mind, the team tested the actual performance of π0.5 on the officially adapted RTX 4090; they also unexpectedly found that APXInf could run on the DGX Spark, which had not yet been officially adapted for this hardware at the time. The team then followed APXInf's built-in development workflow guide to migrate Qwen3-VL to the Spark, completing migration development and usage testing.

Open source address: https://github.com/RLinf/APXInf-robo
APXInf: An Agentic native inference engine for embodied deployment
When deploying a model onto a robot, the first thing to solve is the response speed problem.
Small-batch inference on the robot body (such as Batch=1) focuses on whether the model can return actions within the specified time after a single observation input. Multi-view image processing, model forward computation, and action generation share limited compute and memory resources, so in addition to throughput, response latency and its fluctuation must also be considered.
For each model, APXInf arranges memory allocation and operator execution along explicit static paths. Once the computation flow is captured via CUDA Graph, it can be repeatedly executed using pre-allocated buffers; kernels selected by automatic tuning are also retained on the machine, reducing the repeated overhead of each inference.
When using it, developers can call the model through familiar Python interfaces. Performance-sensitive computation is handed to the high-performance operator library at the APXInf bottom layer, while Rust helps manage memory and resources, ensuring safe and stable operation. This way, model users can keep their original usage habits without affecting performance improvements or operational stability.
In scenarios where the model structure or hardware changes, the static path often needs adjustment as well. From the very beginning of its framework design, APXInf has followed the trend of the times by positioning itself as an Agentic native embodied edge-side engine, so it incorporates Coding Agent development and adaptation into the complete development workflow of model integration, pre/post-processing, body adaptation, and deployment validation, fully adapting to the agent era.
The specific entry point is skills/model-port-workflow/, which links to engineering documentation on model porting, model-layer architecture, execution path integration, and new operators. Three of these steps are especially worth expanding on.

1. First get the original model running to establish a baseline
Before porting, first determine the versions of the model and reference code, and fix the weights used. On this basis, agree on the target device, inference precision, and test inputs, and clarify the allowable error range. Then run the reference implementation in an isolated environment, saving inputs, outputs, and necessary intermediate tensors for later comparison.
Intermediate tensors help pinpoint where deviation first appears, avoiding the assumption that the implementation is correct just because the final output reads smoothly.
With a different implementation approach, the computed results must still match. Therefore, before and after rewriting, the same inputs, weights, and random conditions must be used, then compared item by item according to the pre-agreed error range. Passing compilation and having outputs that look normal does not mean the work is complete.
2. First look for existing operators, then fill in missing capabilities
An operator existing in the repository does not mean the model actually calls it. Enabling a high-performance path also requires compilation support for the target architecture, matching data types and memory layouts, and correct invocation conditions.
The workflow requires checking existing implementations first and prioritizing reuse; when data layout mismatches are encountered, adaptation is done during integration. When a high-performance implementation is missing, a correct but slower version can be used for validation first, and development is added only after confirming the capability is truly absent.
The scope of code modifications is also clearly delineated. The model layer is responsible for model structure, weight mapping, and execution order, calling the underlying operators through unified safe interfaces, without directly manipulating CUDA or cross-language interfaces. When the Agent modifies the model, there are clear boundaries, and engineers can more easily judge which areas need retesting.
3. Validate results and check performance
Validation starts from the modified operators, gradually expanding to the complete model, and checks invocation results through the actually used API. The agreed device and precision combinations must all be covered, and outputs need to be re-verified after enabling CUDA Graph. Performance tests record latency and memory usage, and combined with data transfer overhead, look for bottlenecks.
Results must be correct first. What level the speed needs to reach should also be stated clearly before starting. If the functionality runs but performance has not yet met the target, honestly record the bottleneck and next optimization steps, rather than treating "it runs" as "it's done."

Temporary scripts, tensors, and logs go into devlocal/, which is ignored by Git; code, tests, and documentation that need continuous maintenance are kept in commits, facilitating review and subsequent regression.
Hands-on testing: letting the Agent participate in model adaptation and performance optimization
For embodied developers, whether an inference engine is good to use depends both on the running performance of already-supported models and on how convenient it is to integrate other models and hardware. The team first looked at the officially published π0.5 test results, then combined them with the Qwen3-VL adaptation practice to see how APXInf performs in these two aspects.
Adapted model: official test performance of π0.5
Taking the mainstream π0.5 in the robotics field as an example, the APXInf repository directly provides a Python Policy wrapper (build_robot_policy) and comes with a service interface compatible with OpenPI. Developers do not need to manually handle underlying VRAM pre-allocation or CUDA Graph capture; they simply pass in raw multi-view camera frames to obtain control actions.
According to the benchmark tests officially published in the APXInf-robo repository, π0.5's single-step inference latency on the RTX 4090 is 31.38 ms (BF16, corresponding to 31.9 Hz) and 25.99 ms (INT8, corresponding to 38.5 Hz); on the vehicle-mounted edge platform Jetson AGX Thor, FP8 latency is 41.16 ms (corresponding to 24.3 Hz).
At the same time, in the officially published LIBERO-10 evaluation, the task success rate on Thor was 92.2% (FP8) and 92.8% (BF16), basically on par with the reference implementation's 92.4%, maintaining the original task completion performance during the speedup process.
The team also retested π0.5 on the RTX 4090, and the results were close to the officially published ones.
Extended adaptation: letting the Agent participate in Qwen3-VL integration and optimization
Beyond existing models, what happens to the adaptation process when switching to a different model or device? The team started with troubleshooting the Qwen3-VL adaptation on the RTX 4090, then extended the work to the DGX Spark equipped with GB10, using APXInf's porting workflow as a guide and letting the Coding Agent participate in troubleshooting and optimization. The work was based on commit 7126992 of the APXInf repository, with subsequent validation aligned to 26a4c9c, and mainly went through four rounds of changes.
First, solve the model size problem. Hardcoded dimensions and causal Softmax grid limitations in the original implementation caused abnormal operation of the 4B and 8B models. By comparing against the reference implementation, deriving dimensions according to the actual configuration and fixing the grid limitations allowed the multi-size path to run, corresponding to PR #57.
Then fill in new hardware support. At that time, the architecture matching rules did not yet cover GB10. After completing recognition, existing implementations in the repository such as CUTLASS could compile and run on this device, corresponding to PR #60.
Next, optimizing image reading speed. Investigation revealed that the visual encoding and language prefill stages were not yet using the existing FlashAttention-2. After integrating it, on GB10, Qwen3-VL-2B, BF16, and the specified high-resolution image input, first token latency dropped from 150.7 seconds to 2.51 seconds. These are single-run test results before and after optimization of this adaptation path; see PR #64 for details.
Finally, addressing the LayerNorm bottleneck in the visual module. After switching the calls from serial reduction to the existing block-parallel implementation, total GPU kernel time was reduced by about 60%, and end-to-end first token latency dropped by a further ~10%. The two reductions differ because host-side data transfer still consumes a significant amount of time; see PR #66 for details.
All four rounds of changes have been organized into PRs and submitted to the official repository; see the corresponding records for specific configurations and verification results.

After running through this whole process, the most direct takeaway is: the engineer is responsible for steering the direction, defining test boundaries, and doing the final code review; the Agent, working within the constraints of the specifications, digs through operators, raises tensors, and performs layered alignment. Often the team doesn't need to reinvent the wheel from scratch — the repository already has good operators ready to use, and the workflow specifications let the Agent follow a clear path to find and wire up these capabilities. This division of labor is far easier than having a single engineer grind through the low-level details alone.
After completing the adaptation, the team further compared APXInf against mainstream frameworks on the DGX Spark.
On the desktop AI supercomputer DGX Spark, tested head-to-head with mainstream frameworks
What is presented here is APXInf's performance on hardware it previously did not officially support, after the team completed model adaptation and optimization.
The test model was Qwen3-VL-2B-Instruct, each framework used the official BF16 weights, the same 1344×1792 image was input containing 9408 patches, with a combined image-text input of 2379 tokens, generating 256 tokens via greedy decoding. The table below lists first token latency (TTFT), average per-token time during decoding (TPOT), and decoding throughput.

In this round of testing, APXInf's decoding throughput exceeded both vLLM and SGLang, and was clearly higher than Transformers; first token latency, however, remained notably longer. Combined with the earlier performance analysis, host-side data transfer is the key area that needs further investigation and optimization.
It should be noted that the TPS measured here by the team is for VLM text generation — 48.2 tok/s cannot be directly converted into a robot control frequency. The full control pipeline also includes perception input, action generation, transmission, and execution. Overall, this round of testing was somewhat surprising: APXInf's decoding speed actually turned out to be faster than vLLM's, showing that APXInf's performance is indeed quite solid.
In closing: putting model advances onto robots sooner
After running through this round, the team felt that what makes APXInf worth watching, beyond inference speed, is the way it enables Agents to participate in low-level development.
Models will keep being updated, and adaptation won't be a one-time job. If every time we have to wait for a handful of experts to troubleshoot from scratch, getting new models onto machines will never be fast. APXInf keeps experience in the process so Agents can carry the work forward, and the team spends less time repeating the same exploration.
Humans still have to keep watch, but with an Agent helping troubleshoot and make changes, people can free up some energy to keep improving the model itself.
This also explains why it launched first in the RLinf ecosystem: RLinf supports model training and evaluation, while APXInf handles on-device inference and deployment — with the two connected, the path from training to deployment on machines becomes more complete.
We hope the adaptation and optimization workflow used in this test will help more embodied AI teams get their own models running in the future, putting model advances onto robots sooner.
The related project has now been officially open-sourced. If you are also looking for a high-performance solution for on-device inference and deployment of robot bodies, you can visit the official ApxInf repository to try it out: https://github.com/RLinf/APXInf-robo
This project has an official community group — you can scan the code to join directly:
