Skip to content
koza-coderPublic

About

LIBERO robot simulation on Windows with a Direct3D 12 VLA server (vla.cpp + llama.cpp-directx12)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

robot-sim: LIBERO robot simulation on Windows with a Direct3D 12 VLA server

Runs a vision-language-action (VLA) robot policy in closed loop in the LIBERO simulator, natively on Windows:

  • Simulator: LIBERO + robosuite 1.4.0 + MuJoCo 2.3.2, rendered with WGL, in a private Python 3.10 environment that the setup script builds inside this folder.
  • Policy server: vla-server.exe from vla.cpp, built with the Direct3D 12 backend of llama.cpp-directx12. It runs on any D3D12 GPU: no CUDA, no Vulkan, no WSL.
  • Link: vla.cpp's own LIBERO client. It sends camera images and robot state to the server over ZeroMQ on 127.0.0.1:5555 and gets back actions.

Status: first public version. Tested on one PC (Windows, AMD Radeon AI PRO R9700). See "Results".

Quick start (about 30-45 min, mostly downloads; ~8 GB disk)

  1. Download robot-sim-v0.1.0-win-x64.zip from the Releases page and unpack it to a folder with no spaces, for example D:\robot-sim.

  2. Double-click setup-libero-windows.bat. It runs 8 steps, each with its own log in logs\, a time limit and a progress bar:

    • uv, then Python 3.10;
    • the LIBERO and vla.cpp sources;
    • the Python packages;
    • Windows fixes for robosuite;
    • the LIBERO config;
    • a render test.

    It ends with ALL STEPS OK and writes render-test.png. A re-run skips the steps that already passed. It changes nothing outside the folder: no PATH, no registry.

  3. Download the SmolVLA LIBERO model (1.1 GB) into models\:

    curl.exe -L --create-dirs -o models\smolvla-libero.gguf https://huggingface.co/vrfai/smolvla-libero-gguf/resolve/main/smolvla-libero.gguf
    

    SHA-256: 6fb2d475c98b4c2cef3e27c4eff4e67b483740cbf983fff320a3b8a5e5f74fe8.

  4. Double-click run-episode.bat. It:

    • starts server\vla-server.exe and waits for ready.;
    • runs one LIBERO-Object episode with a progress bar ([####......] step N/500);
    • stops the server;
    • prints RESULT - Success rate: ....

    The video and a summary land in outputs\<time>\; the logs land in logs\.

Arguments: run-episode.bat [arch] [model file] [task id] [replay]. The default is smolvla smolvla-libero.gguf 0 10. Replay is the number of actions executed from each predicted 50-action chunk before the server is asked again; 10 is vla.cpp's setting for SmolVLA.

Results so far

Date GPU Model Task Replay Steps ms per step (server + client) Success
2026-11-12 AMD Radeon AI PRO R9700 (D3D12) SmolVLA (smolvla-libero.gguf) LIBERO-Object task 0 1 500 (limit) 245.31 0/1

vla.cpp's reference for SmolVLA on LIBERO-Object is 179/200 = 89.5 % at replay 10 (RTX 3090, CUDA, MuJoCo 3.9.0; see vla.cpp docs/benchmark/libero.md). One episode says little: a 10-episode run comes next.

Build the server yourself (Linux cross-build)

sudo apt install g++-mingw-w64-ucrt64 g++ cmake ninja-build git curl python3
bash build/build-windows.sh work

What the script does:

  1. Downloads protobuf 3.21.12, libzmq 4.3.5 and cppzmq 4.10.0, pinned by SHA-256.
  2. Fetches llama.cpp at tag b11701 and vla.cpp at commit 1012c05, then applies the two patches in build/.
  3. Builds a fully static work/out/vla-server.exe.

Put that exe next to dxcompiler.dll and dxil.dll in server\.

Files

File What
setup-libero-windows.bat / .ps1 installs the simulator inside this folder
run-episode.bat / .ps1 one closed-loop episode: server + client + result
run_client.py starts vla.cpp's LIBERO client with the shipped vla_pb2.py (no protoc needed on Windows); prints a progress line every 10 steps
vla_pb2.py message format, generated by protoc 3.21.12 from vla.cpp src/serving/vla.proto
render_test.py setup step 8: renders one LIBERO scene to render-test.png
build/ cross-build script, toolchain file, patches
server/ vla-server.exe, dxcompiler.dll, dxil.dll (from the release zip)
licenses/, THIRD-PARTY-NOTICES.md licences of the bundled components

Licence

MIT for the scripts in this repository (LICENSE). Bundled and downloaded components keep their own licences: see THIRD-PARTY-NOTICES.md.

About

LIBERO robot simulation on Windows with a Direct3D 12 VLA server (vla.cpp + llama.cpp-directx12)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages