Views
No views yet

1# create conda environment
2conda create -n vqvla python=3.10 -y
3conda activate vqvla
4
5# install PyTorch (adjust for your CUDA version)
6pip install torch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 --index-url https://download.pytorch.org/whl/cu121
7
8# clone project and install the vqvla repo
9git clone https://github.com/xiaoxiao0406/VQ-VLA.git
10cd vqvla
11pip install -e .
12
13# install Flash Attention 2 for training (https://github.com/Dao-AILab/flash-attention)
14pip install packaging ninja
15ninja --version; echo $? # Verify Ninja --> should return exit code "0"
16pip install "flash-attn==2.5.5" --no-build-isolation1git clone https://github.com/Lifelong-Robot-Learning/LIBERO.git
2cd LIBERO
3pip install -e .
4
5cd vqvla
6pip install -r experiments/robot/libero/libero_requirements.txthuggingface-cli download --resume-download --repo-type dataset VQ-VLA/libero_90_rlds --local-dir <YOUR_DATA_DIRECTORY>bash scripts/train_action_vqvae.sh <TRAIN_DATASET_NAME> <WANDB_NAME> <YOUR_DATA_DIRECTORY>
# For example:
bash scripts/train_action_vqvae.sh libero_90_no_noops train_vq_libero_90 <YOUR_DATA_DIRECTORY>torchrun --standalone --nnodes 1 --nproc-per-node 1 vla-scripts/finetune_vqvla.py \
--vla_path openvla/openvla \
--data_root_dir <YOUR_DATA_DIRECTORY> \
--dataset_name <DATASET_NAME> \
--run_root_dir <PATH_TO_LOG/CHECKPOINT_DIRECTORY> \
--lora_rank 32 \
--batch_size 16 \
--grad_accumulation_steps 1 \
--learning_rate 5e-4 \
--image_aug True \
--max_steps 400000 \
--checkpoint_path <VQ_CHECKPOINT_DIRECTORY>1huggingface-cli download --resume-download VQ-VLA/vq-vla-weight --local-dir <YOUR_WEIGHT_DIRECTORY>
2
3# LIBERO-90 eval
4python experiments/robot/libero/run_libero_eval_vq_vla.py
5 --pretrained_checkpoint "<YOUR_WEIGHT_DIRECTORY>/vq-vla-weight/vqvla_weight" \
6 --task_suite_name "libero_90" \
7 --vqvae_ckpt "<YOUR_WEIGHT_DIRECTORY>/vq-vla-weight/action_tokenizer_weight/all_data_vq.pth"1@inproceedings{wang25vqvla,
2 title={VQ-VLA: Improving Vision-Language-Action Models via Scaling Vector-Quantized Action Tokenizers},
3 author={Yating Wang, Haoyi Zhu, Mingyu Liu, Jiange Yang, Hao-Shu Fang, Tong He},
4 booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision},
5 year={2025}
6}