This repo will contain our dataset, finetuning and any btganation experiments.
-
make
datadirctory which contains 4 main dirsraw: the raw TFRecords downloaded from https://console.cloud.google.com/storage/browser/gresearch/android_controlepisodes: each episodes cosists of multiple steps to achieve some goal.images: contains all the screenshots of all the episodes steps.samples: the flattened final steps
-
in
data_prep/extract_episodes.py, changeTFRECORD_PATHto the one you've -
in
data/flatten_episodes.py, change output name to the required one -
run
verify_dataset.pyfor verification
Note: if we're using another dataset, we'll map it to this format
- now there's only
android_control.py - it's a torch dataset implementation to convert raw samples -> model tensors
- create this dirctory to include any local model you've
- this contains an abstract class
base_model.pythat we should implement for every model we try
- this contains the PEFT adapters outputs
- this contains the training/fine-tuning process of the model
- contains some important paths, remember to set them
pip install -r requirements.txt
python -m internvl.trainpython -m internvl.test- running the apk planner:
python run_planner.py --apk apk_src/clock.apk --dry-run