MolmoAct2: LIBERO (GGUF for vla.cpp)
This is a GGUF conversion of allenai/MolmoAct2-LIBERO
(paper, code). It runs on
vla.cpp, a lightweight C++ inference engine for
Vision-Language-Action models built on top of llama.cpp.
A SigLIP-so400m/14 tower encodes each camera at 378×378; the outputs of its layers 24 and 18 are pooled 2×2 by attention into 196 tokens per view and added onto the image-patch embeddings of a 36-layer Qwen3-style LM (2560 wide, 32 q / 8 kv heads). A flow-matching action expert with one adaLN block per LM layer cross-attends to that layer's keys and values and integrates a 10×7 action chunk in 10 Euler steps. The robot state enters as discrete tokens in the prompt. The tower, the LM and the expert are all in the single GGUF, so there is no mmproj file. Only the tokenizer runs outside the engine.
Source checkpoint
allenai/MolmoAct2-LIBERO @ 0d24a92 model-0000{1..5}-of-00005.safetensors (fp32)
One policy fine-tuned on all four LIBERO suites (spatial, object, goal, 10). Continuous actions only: the LM head (discrete actions) is left out, and depth reasoning is off in this checkpoint.
Files
| File | Size | Description |
|---|---|---|
molmoact2-libero-bf16.gguf | 9.4 GiB | Complete model: SigLIP tower + pooling + LM + action expert, GEMM weights in bf16, norms and biases in f32, plus the libero normalization statistics |
tokenizer.json, tokenizer_config.json | The checkpoint's Qwen2 tokenizer (for the client) | |
config.json, norm_stats.json | The checkpoint's config and statistics, which the client reads to build the prompt |
Geometry
| Vision | SigLIP-so400m/14, 25 layers used, 2 views (agentview, wrist) resized to 378×378 by the engine, 196 pooled tokens each |
| Language | Qwen3-style LM, 36 layers; prompt with task, setup, control mode and the binned state |
| Action | flow-matching expert, 36 blocks × 768, horizon 10 × dim 7 (padded to 32), 10 Euler steps |
| State | 8-D (eef pos, axis-angle, gripper qpos), q01/q99-normalized and binned into 256 <state_k> tokens |
| Output | actions un-normalized in the engine (q01/q99 for the arm dims; the gripper stays in [-1, 1]) |
Usage
cmake -S . -B build -DGGML_CUDA=ON && cmake --build build -j
# one-shot: --text is tokenized by scripts/tokenize_prompt.py (needs transformers); the state is raw
./build/vla-cli -hf vrfai/molmoact2-libero-gguf \
--image agentview.png --image wrist.png \
--text "put the white mug on the left plate" \
--state <8 floats: eef pos, axis-angle, gripper qpos> --pretty
# or serve it
./build/vla-server molmoact2-libero-bf16.gguf
Images are RGB at any size (the engine reproduces the checkpoint's resize to 378), rotated 180° as LIBERO renders
them, as in LeRobot's LIBERO pipeline. The client builds the prompt the way the checkpoint's predict_action
does: it normalizes the task text, normalizes and bins the state, and puts one <|image|> per view in front;
vla-server expands those into the image tokens. The vla.cpp LIBERO client (eval/client, --arch molmoact2,
code in eval/client/molmoact2_prompt.py) does this, and eval/run_libero.sh -m molmoact2 runs a sweep. The
engine returns the 10×7 chunk in robot units; execute all 10 actions (--n-action-steps 10).
Precision options: --weight-dtype f16 --flash-attn is the fastest configuration on CUDA (328 ms per chunk on
an RTX 3060 against 446 ms at the bf16 default) and is also closer to fp32 (see below).
Fidelity
Max |Δ| of the action chunk (robot units) against the checkpoint's own predict_action in fp32 PyTorch, on the
checkpoint's sample (libero_10 episode 0 frame 0) with the same noise:
| Backend | bf16 (default) | --weight-dtype f16 | --weight-dtype f16 --flash-attn | Latency (default) |
|---|---|---|---|---|
| CPU (i7-14700F) | 1.7e-3 | ~16 s | ||
| CUDA (RTX 3060) | 1.4e-3 | 5.2e-4 | 9.2e-4 | 446 ms |
| Metal (Apple M4) | 5.6e-4 | 1.9 s |
For scale, the reference itself moves 4e-4 when only its weights are rounded to bf16. With f32 weights the CPU build matches that bf16-rounded reference to 7.7e-6.
A LIBERO smoke run (task 0 of each suite, 3 episodes each, 10-action chunks) succeeded 12/12. No full sweep yet.
Reproducing this conversion
python scripts/convert_molmoact2_to_gguf.py --ckpt <allenai/MolmoAct2-LIBERO snapshot> \
--out molmoact2-libero-bf16.gguf
The converter streams the shards, so it needs a few GB of RAM. It needs torch, safetensors and the gguf
package. --outtype f32 keeps every tensor in f32; --norm-tag picks another statistics tag.
License
The MolmoAct2 code is released by Ai2 under Apache-2.0 (allenai/molmoact2).
This repository redistributes the allenai/MolmoAct2-LIBERO weights in GGUF form under the same terms. Cite the
MolmoAct2 paper if you use this model.