{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.10.12","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"kaggle":{"accelerator":"nvidiaTeslaT4","dataSources":[{"sourceId":66962,"databundleVersionId":7431443,"sourceType":"competition"}],"dockerImageVersionId":30627,"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":true}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"# This Python 3 environment comes with many helpful analytics libraries installed\n# It is defined by the kaggle/python Docker image: https://github.com/kaggle/docker-python\n# For example, here's several helpful packages to load\n\nimport numpy as np # linear algebra\nimport pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\n\n# Input data files are available in the read-only \"../input/\" directory\n# For example, running this (by clicking run or pressing Shift+Enter) will list all files under the input directory\n\nimport os\nfor dirname, _, filenames in os.walk('/kaggle/input'):\n    for filename in filenames:\n        print(os.path.join(dirname, filename))\n\n# You can write up to 20GB to the current directory (/kaggle/working/) that gets preserved as output when you create a version using \"Save & Run All\" \n# You can also write temporary files to /kaggle/temp/, but they won't be saved outside of the current session","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2024-01-05T06:59:11.845277Z","iopub.execute_input":"2024-01-05T06:59:11.845577Z","iopub.status.idle":"2024-01-05T06:59:12.200697Z","shell.execute_reply.started":"2024-01-05T06:59:11.845550Z","shell.execute_reply":"2024-01-05T06:59:12.199793Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!curl -H \"Authorization: Bearer ya29.a0AfB_byD4jV1JWCIQqmB7KxXBfZBXRVvsCtyX9BcAhM02WFOGfVSYR0j8rqOY-uT-Ysq2sEsUgJqvp5NdHdatuza6YwvidAK4RvZwb-kV7mqYNW2RM_2hyuhO8to84fLlV7QFf-m0EjZnfz_SaXV0RE6Pez4ZTxdg3jAkaCgYKAbMSARASFQHGX2MiKrr-tA2gbWkbdUfqo5hfqQ0171\" https://www.googleapis.com/drive/v3/files/1kJ_0La4AQJ5AOvfIwODnTuHrQkvvKaZi?alt=media -o r50_ms1m_asian_celeb.zip ","metadata":{"execution":{"iopub.status.busy":"2024-01-05T06:59:35.205002Z","iopub.execute_input":"2024-01-05T06:59:35.205939Z","iopub.status.idle":"2024-01-05T06:59:49.862313Z","shell.execute_reply.started":"2024-01-05T06:59:35.205905Z","shell.execute_reply":"2024-01-05T06:59:49.861361Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!unzip /kaggle/working/r50_ms1m_asian_celeb.zip","metadata":{"execution":{"iopub.status.busy":"2024-01-05T06:59:49.864000Z","iopub.execute_input":"2024-01-05T06:59:49.864329Z","iopub.status.idle":"2024-01-05T07:00:04.454753Z","shell.execute_reply.started":"2024-01-05T06:59:49.864283Z","shell.execute_reply":"2024-01-05T07:00:04.453862Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!git clone https://github.com/C0NGTRI123/insigh.git","metadata":{"execution":{"iopub.status.busy":"2024-01-05T07:00:36.477716Z","iopub.execute_input":"2024-01-05T07:00:36.478546Z","iopub.status.idle":"2024-01-05T07:00:38.503434Z","shell.execute_reply.started":"2024-01-05T07:00:36.478505Z","shell.execute_reply":"2024-01-05T07:00:38.502283Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"%cd /kaggle/working/insigh","metadata":{"execution":{"iopub.status.busy":"2024-01-05T07:01:55.766817Z","iopub.execute_input":"2024-01-05T07:01:55.767220Z","iopub.status.idle":"2024-01-05T07:01:55.774437Z","shell.execute_reply.started":"2024-01-05T07:01:55.767184Z","shell.execute_reply":"2024-01-05T07:01:55.773546Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!pip install -r requirement.txt","metadata":{"execution":{"iopub.status.busy":"2024-01-05T07:02:31.987520Z","iopub.execute_input":"2024-01-05T07:02:31.987910Z","iopub.status.idle":"2024-01-05T07:02:48.087062Z","shell.execute_reply.started":"2024-01-05T07:02:31.987873Z","shell.execute_reply":"2024-01-05T07:02:48.085991Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!conda create -n newCondaEnvironment -c cctbx202208 -y\n!source /opt/conda/bin/activate newCondaEnvironment && conda install -c cctbx202208 python -y","metadata":{"execution":{"iopub.status.busy":"2024-01-05T07:12:31.264553Z","iopub.execute_input":"2024-01-05T07:12:31.264963Z","iopub.status.idle":"2024-01-05T07:13:48.401924Z","shell.execute_reply.started":"2024-01-05T07:12:31.264908Z","shell.execute_reply":"2024-01-05T07:13:48.400975Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!/opt/conda/envs/newCondaEnvironment/bin/python3 --version\n!echo 'print(\"Hello, World!\")' > test.py\n!/opt/conda/envs/newCondaEnvironment/bin/python3 test.py","metadata":{"execution":{"iopub.status.busy":"2024-01-05T07:14:04.421037Z","iopub.execute_input":"2024-01-05T07:14:04.421563Z","iopub.status.idle":"2024-01-05T07:14:07.286660Z","shell.execute_reply.started":"2024-01-05T07:14:04.421522Z","shell.execute_reply":"2024-01-05T07:14:07.285663Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!torchrun --nproc_per_node=2 train_v2.py configs/ms1mv3_mbf","metadata":{"execution":{"iopub.status.busy":"2024-01-05T07:02:54.727837Z","iopub.execute_input":"2024-01-05T07:02:54.728559Z","iopub.status.idle":"2024-01-05T07:03:03.345188Z","shell.execute_reply.started":"2024-01-05T07:02:54.728523Z","shell.execute_reply":"2024-01-05T07:03:03.344032Z"},"trusted":true},"execution_count":null,"outputs":[]}]}