Files
VLA/README.md
T

153 lines
6.2 KiB
Markdown
Raw Normal View History

2025-09-07 14:59:17 +08:00
# Wall-X
2025-09-08 05:32:36 +08:00
<div align="left">
2025-09-07 14:59:17 +08:00
2025-09-08 05:32:36 +08:00
<!-- Links -->
<a href="https://huggingface.co/x-square-robot">
<img src="https://img.shields.io/badge/Hugging%20Face-x--square--robot-FFB000?style=for-the-badge&logo=huggingface&logoColor=000" alt="Hugging Face">
</a>
<a href="https://x2robot.com/en/research/68bc2cde8497d7f238dde690">
<img src="https://img.shields.io/badge/Project-1E90FF?style=for-the-badge&logo=google-chrome&logoColor=fff" alt="Project Page">
</a>
<!-- Tech stack -->
<br/>
<img src="https://img.shields.io/badge/Python-3.10-3776AB?style=flat&logo=python&logoColor=fff" alt="Python 3.10">
<img src="https://img.shields.io/badge/PyTorch-EE4C2C?style=flat&logo=pytorch&logoColor=fff" alt="PyTorch">
<img src="https://img.shields.io/badge/FlashAttention-0F9D58?style=flat&logo=nvidia&logoColor=fff" alt="FlashAttention">
<img src="https://img.shields.io/badge/LeRobot-222?style=flat&logo=huggingface&logoColor=ffd21e" alt="LeRobot">
<img src="https://img.shields.io/badge/CUDA-12.x-76B900?style=flat&logo=nvidia&logoColor=fff" alt="CUDA">
<img src="https://img.shields.io/badge/OS-Ubuntu%2022.04-E95420?style=flat&logo=ubuntu&logoColor=fff" alt="Ubuntu 22.04">
</div>
## Building General-Purpose Robots Based on Embodied Foundation Model
2025-09-11 13:18:33 +08:00
We are building the embodied foundation model to capture and compress the world's most valuable data: the continuous, high-fidelity stream of physical interaction.
2025-09-08 05:32:36 +08:00
By creating a direct feedback loop between the model's decisions and the body's lived experience, we enable the emergence of a truly generalizable intelligence—one that understands not just how the world works, but how to act effectively within it.
## Repository
This repository provides the training and inference code that supports our WALL series open-source embodied foundation models. It includes end-to-end pipelines for data preparation (LeRobot), model configuration, flow-matching and FAST action branches, and evaluation utilities for real and simulated robots.
## News
2026-05-28 10:50:16 +08:00
## News
2026-05-28 15:21:48 +08:00
- We introduce [**Wall-OSS-0.5: A Deployment-Ready VLA with Gradient-Bridged Pretraining**](https://x2robot.com/api/files/file/wall_oss_05.pdf), an open-source 4B model that delivers directly deployable, zero-shot real-robot manipulation capabilities while serving as a powerful prior for downstream adaptation *(Code coming soon!)*.
- We introduce [**WALL-OSS: Igniting VLMs toward the Embodied Space**](https://x2robot.com/en/research/68bc2cde8497d7f238dde690), an end-to-end embodied foundation model that leverages large-scale multimodal pretraining to achieve (1) embodiment-aware vision–language understanding, (2) strong language–action association, and (3) robust manipulation capability.
2025-09-08 05:32:36 +08:00
## Models
2026-05-28 10:50:16 +08:00
- WALL-OSS-0.5: https://huggingface.co/x-square-robot/wall-oss-0.5
- WALL-OSS-FLOW-0.1: https://huggingface.co/x-square-robot/wall-oss-flow-0.1
2025-09-08 05:32:36 +08:00
- WALL-OSS-FLOW: https://huggingface.co/x-square-robot/wall-oss-flow
- WALL-OSS-FAST: https://huggingface.co/x-square-robot/wall-oss-fast
2025-09-07 14:59:17 +08:00
## Environment Setup
Create and activate conda environment:
```bash
conda create --name wallx python=3.10
conda activate wallx
```
Install requirements:
```bash
pip install -r requirements.txt
MAX_JOBS=4 pip install flash-attn==2.7.4.post1 --no-build-isolation
```
Install lerobot:
```bash
git clone https://github.com/huggingface/lerobot.git
2025-10-24 17:29:12 +08:00
git checkout c66cd401767e60baece16e1cf68da2824227e076
2025-09-07 14:59:17 +08:00
cd lerobot
pip install -e .
```
Install wall_x:
```bash
git submodule update --init --recursive
2025-12-10 16:05:25 +08:00
MAX_JOBS=4 pip install --no-build-isolation --verbose -e .
2025-09-07 14:59:17 +08:00
```
## Training
### Finetune on LeRobot Datasets
Before training, please refer to `workspace/README.md` for detailed configuration instructions including:
Training script path configuration
- GPU setup
- Model and data paths
- Robot DOF configuration
- Training hyperparameters
2025-09-08 22:26:19 +08:00
Download the Flow/FAST pretrained model and run:
2025-09-07 14:59:17 +08:00
```bash
bash ./workspace/lerobot_example/run.sh
```
## Inference
### Basic Action Inference
2025-09-07 14:59:17 +08:00
For model inference, please refer to:
```bash
python ./scripts/fake_inference.py
```
This script demonstrates how to:
- Load the Wall-OSS model using `Qwen2_5_VLMoEForAction.from_pretrained()`
- Prepare input data including proprioceptive information, attention masks, and dataset specifications
- Run inference in validation mode with proper data types (bfloat16)
- Validate model outputs and check for numerical stability
### Open-Loop Evaluation
2025-09-07 14:59:17 +08:00
To generate an open-loop comparison plot, please follow:
```bash
python ./scripts/draw_openloop_plot.py
2025-09-08 05:32:36 +08:00
```
2025-09-08 06:34:50 +08:00
### VQA Inference and Chain-of-Thought Testing
To run VQA inference and test the model's Chain-of-Thought (COT) reasoning capabilities, please follow:
2025-09-11 17:56:50 +08:00
```bash
python ./scripts/vqa_inference.py
```
This script can be used to test the model's COT reasoning abilities for embodied tasks. Below is an example of COT testing:
**Input Image:**
![COT Example Frame](assets/cot_example_frame.png)
**Input Text:**
```
To move the red block in the plate with same color, what should you do next? Think step by step.
```
**Model Output (COT Reasoning):**
```
To move the red block in the plate with the same color, you should first locate the red block. It is currently positioned on the table, not in the plate. Then, you should carefully grasp the red block using your fingers. Next, you should use your hand to lift the red block from the table and place it into the plate that is also red in color. Ensure that the red block is securely placed in the plate without slipping or falling.
```
2025-10-28 16:35:57 +08:00
## Join Our Community
- Scan the QR code on WeChat to join the discussion group, where you can engage in in-depth exchanges with community developers and the official team.
<img src="assets/QRcode_community.jpg" alt="QR Code" width="400">
2025-09-08 06:34:50 +08:00
## 📚 Cite Us
If you find WALL-OSS models useful, please cite:
```bibtex
@article{zhai2025igniting,
title = {Igniting VLMs Toward the Embodied Space},
author = {Zhai, Andy and Liu, Brae and Fang, Bruno and Cai, Chalse and Ma, Ellie and Yin, Ethan and Wang, Hao and Zhou, Hugo and Wang, James and Shi, Lights and Liang, Lucy and Wang, Make and Wang, Qian and Gan, Roy and Yu, Ryan and Li, Shalfun and Liu, Starrick and Chen, Sylas and Chen, Vincent and Xu, Zach},
journal = {arXiv preprint arXiv:2509.11766},
year = {2025}
2025-09-08 06:34:50 +08:00
}
```