facebookresearch / esm

Evolutionary Scale Modeling (esm): Pretrained language models for proteins
MIT License
3.28k stars 643 forks source link

Added a basic Dockerfile to improve dev experience #610

Open ankitvgupta opened 1 year ago

ankitvgupta commented 1 year ago

I made a simple docker container (heavily influenced on the official Tensorflow docker container that I've used for other deep learning projects, and sharing some of the same features as the official pytorch and openfold containers. I did this mostly because I didn't want to change the version of CUDA and other packages installed on my linux box, and figured this would enable some nice portability for users who I'd imagine are often running ESM in a Docker-based HPC environment like Kubernetes or AWS Batch.

In particular, this container

Build steps

 docker build -f Dockerfile -t esm .

Running the container

docker run -it  --rm --runtime=nvidia --gpus all esm
conda activate esmfold
# Whatever else you want to do!

I'd be happy to follow up with a docker-compose.yml file to further simplify build/usage, and to add some CI/CD automation to add container builds to Github Actions, if of interest. Figured I'd check with the maintainers first to see if this was of interest before continuing though.

facebook-github-bot commented 1 year ago

Hi @ankitvgupta!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

facebook-github-bot commented 1 year ago

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

Mar-Gra-creator commented 10 months ago

Hi there

Is it already possible to use the container and how? I tried but without success....

MG

ankitvgupta commented 9 months ago

@Mar-Gra-creator what error do you get?