{"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"provenance":[],"gpuType":"T4","authorship_tag":"ABX9TyPKLgeWGkEtvhioxcyG053a"},"kernelspec":{"name":"python3","display_name":"Python 3"},"language_info":{"name":"python"},"accelerator":"GPU"},"cells":[{"cell_type":"code","source":["!python --version"],"metadata":{"id":"1WxyMCD03tZf","collapsed":true},"execution_count":null,"outputs":[]},{"cell_type":"code","execution_count":null,"metadata":{"id":"lrTbs595_mGp","collapsed":true},"outputs":[],"source":["# To fit the modules used in Donut and prevent conflicts.\n","!pip install gcsfs==2023.6.0\n","!pip install fsspec==2023.6.0\n","!pip install sentence-transformers==2.2.2 #2022-06-27\n","!pip install transformers==4.25.1 #2022-12-02\n","!pip install pytorch-lightning==1.9.0 #2023-01-18\n","!pip install timm==0.5.4 #2022-01-17\n","!pip install donut-python"]},{"cell_type":"code","source":["from google.colab import drive\n","drive.mount('/content/drive')"],"metadata":{"id":"NiKtmoiqIsuS"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["%cd \"/content/drive/MyDrive/Colab Notebooks/Donut/donut\""],"metadata":{"id":"bc8JwsYbI8px"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["!python train.py --config config/train_booking.yaml"],"metadata":{"id":"9qGwWlZK6SWk"},"execution_count":null,"outputs":[]}]}