Git Product home page Git Product logo

antiberta's Introduction

blah

AntiBERTa

This is a repository with Jupyter notebooks describing how we pre-trained the model, and how we apply the model for fine-tuning.

FAQs

  • What dataset did you use? This is described in our paper, but briefly, we used a section of the Observed Antibody Space (OAS) database (Kovaltsuk et al., 2018) for pre-training, and a snapshot of SAbDab (Dunbar et al., 2014) as of 26 August, 2021. We've included small snippets of the OAS database that we used for pre-training, and the paratope prediction datasets under assets.

  • Why HuggingFace? We felt that the maturity of the library and its straight-forward API were key advantages. Not to mention it fits really well with cloud compute architectures like AWS.

antiberta's People

Contributors

ideasbyjin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

antiberta's Issues

OSError: We couldn't connect to 'https://huggingface.co' to load this model, couldn't find it in the cached files and it looks like antiberta-master is not the path to a directory containing a {configuration_file} file.

image
I get an OSError while trying to run the paratope-prediction.ipynb.
OSError: We couldn't connect to 'https://huggingface.co' to load this model, couldn't find it in the cached files and it looks like antiberta-master is not the path to a directory containing a {configuration_file} file.
Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.

Can you help me and tell me what I am doing wrong? I have the internet connection. Perhaps MODEL_DIR must be adjusted with the value "antiberta-master"?

Many thanks in advance!

Pre-training data

Hey team, great work on this project. I noticed that the pre-training data snippets were removed from the repository back in April. Are they available as a HF dataset? Or available someplace else (besides the git history)?

How to use models in Hugging Face?

Hello, I have used the model weights and tokenizer that you uploaded on Hugging Face, but I encountered some diffcults when actually using it. I find the output of tokenizer is weird.Could you tell me Is it necessary to insert a space between every character in the input sequence? and is the use of H and L (on the start of sequence) necessary? thanks!
tokenizer = RoFormerTokenizer.from_pretrained("trans_model/antiberta2") model = RoFormerForMaskedLM.from_pretrained("trans_model/antiberta2") seqs = ["ḢACCKLMNDDDKKLL", "ḶALYYNNMACD"] outs = tokenizer( seqs, return_tensors="pt", padding=True, truncation=True, max_length=1024, )
`

outs
{'input_ids': tensor([[ 1, 26, 4, 2],
[ 1, 27, 4, 2]]), 'token_type_ids': tensor([[0, 0, 0, 0],
[0, 0, 0, 0]]), 'attention_mask': tensor([[1, 1, 1, 1],
[1, 1, 1, 1]])}
seqs = ["Ḣ A C C K L M N D D D K K L L", "Ḷ A L Y Y N N M A C D"]
out
{'input_ids': tensor([[ 1, 26, 5, 6, 6, 13, 14, 15, 16, 7, 7, 7, 13, 13, 14, 14, 2],
[ 1, 27, 5, 14, 24, 24, 16, 16, 15, 5, 6, 7, 2, 0, 0, 0, 0]]), 'token_type_ids': tensor([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]), 'attention_mask': tensor([[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0]])}
`

predicting paratopes

Hi all, congratulations on the Cell Patterns paper. I am keen to give antiberta a try.

On the notebook, where it says "Inference - how to go from sequence to predicted sequence" at the end, does that give a paratope string prediction similar to the Figure 4 sequences with dots in the paper?

image

Where is the datasets?

I can't find the datasets file which prevents me from converting the data to dateset.I would appreciate it if you could provide the datesets.

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.