Git Product home page Git Product logo

tlmc's Introduction

Introduction

This repository was created as part of my Master thesis: Transfer learning of interatomic potentials: from molecules to crystals.

The aim was to use ANI2x model and apply it to crystals as a part of the Seventh CCDC Blind Test of Crystal Structure Prediction Methods. Structures can be found here: https://www.ccdc.cam.ac.uk/Community/initiatives/cspblindtests/7-csp-blind-test-targets/ .

HARDWER REQUIREMENTS

Cuda 11.1 compatible graphics card

Installation steps

Run docker container

docker run --gpus all -ti --ipc=host -v /PATH/TO/FOLDER:/app nvidia/cuda:11.2.0-devel-ubuntu20.04

Install pip

apt update

apt install python3-pip

Install pytorch with CUDA support

pip3 install torch==1.9.0+cu111 -f https://download.pytorch.org/whl/torch_stable.html tqdm ase torchani seaborn

Training

Datasets are assumed to be in the num.traj format in folder data, where num represents the structure number.

Convert num.traj to trainable format

python3 generate_dataset.py -n num.traj

Takes the num.traj file and creates the /data/train_data_num.pkl file which can be fed directlly to model.

Basic model training

python3 train.py -n num

model is saved at model/compiled_model_num.pt directory.

Hyperparameter selection

python3 train.py --help

Testing

Test

python3 test.py -n num

Utils

Change model device to cpu

python3 model2cpu.py -n num

Explorative data analysis

python3 data_visualisation.py -n num

tlmc's People

Contributors

aparunov avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.