This repository contains a Jupyter notebook implementing VQ-BeT (Vector Quantized Behavior Transformers) using TinyGrad.
VQ-BeT is an advanced AI model for robot learning. It combines vector quantization and transformer architectures to help robots learn complex behaviors from demonstrations. VQ-BeT processes sequences of actions and observations, encoding them into discrete tokens. These tokens are then used to train a transformer model, which can generate new sequences of actions for the robot to perform. This approach allows robots to learn and generalize from a small number of demonstrations, making it efficient for various robotic tasks. The link to the original repo is here.
This notebook interleaves explanatory text with executable code blocks:
- Detailed explanations of VQ-BeT concepts and implementation details
- Code snippets implementing various components of the VQ-BeT model
- Visualizations and examples to illustrate key concepts
- Step-by-step implementation of the VQ-BeT algorithm using TinyGrad
To run this notebook:
- Ensure you have Jupyter Lab installed
- Install TinyGrad version 0.9.2:
Note: TinyGrad 0.9.2 is required as the
pip install tinygrad==0.9.2
Tensor.realize
function in version 0.10.0 is incompatible with this notebook. - Clone this repository:
git clone https://github.com/mdaiter/vbet-tinygrad-notebook.git
- Navigate to the repository directory:
cd vbet-tinygrad-notebook
- Start Jupyter Lab:
jupyter-lab
- Open the VQ-BeT notebook and start exploring!