# Introduction 

We share our code and data; however, due to upload size limitations, we are only able to share the following:
Test data (images are provided as samples)
Training and inference code
In the future, if there are no upload limitations, we plan to release the full test dataset and trained model checkpoints as well.

# Technical Appendix

- Please refer to appendix.pdf for technical details.

# Code

## Training

- LLaMA-Factory Installation

```
git clone --depth 1 https://github.com/hiyouga/LLaMA-Factory.git
cd LLaMA-Factory
pip install -e ".[torch,metrics]" --no-build-isolation
```

- Train
```
llamafactory-cli train train.yaml
```

## Inference

```
    # after modifying model_path and data_path in python file
    python inference.py
```


# Data

## VinQA Data

- Due to the supplementary-material size limit, we provide only the test set and include only a subset of the associated images.

- Test data 
    - Page encoding  : `data/test_page_encoding.json`
    - Modality encoding  : `data/test_modality_encoding.json`

