This repo trains deep learning models on source code.
- Clone this repo
- Install requirements from
requirements.txt - Download Github repos by running
download.py. It downloads all the repos mentioned in PyTorch awesome list. - Run
extrat_downloads.shto extract the downloaded zip files todata/source. You can directly copy any python code todata/sourceto train on them. - Run
create_dataset.pyto collect all python files. The collected code will be written todata/train.pyand,data/eval.py. - Run
train.pyto train the model. Try changing hyper-parameters like model dimensions and number of layers. - Run
evaluate.pyto evaluate the model. - Enjoy!
If you have any questions please open an issue on Github.
Feel free to add interesting repos with lots of Python code to download.py.
Thank you.
