-
Notifications
You must be signed in to change notification settings - Fork 278
Add ESM model #2177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It seems like nobody is against it. Then I will bring up PR in the near future. |
Hi @pass-lin - this is a new kind of model compared to the ones we have in KerasHub. Looks like we might need a new task class for this. Can you provide a quick code usage example to see how the overall API would look like? for example the code usage for ResNet looks like this
|
Okay, we can give it a try. One advantage of starting with ESM2 is that it is essentially a BERT in the field of protein. Therefore, we can try to follow the API of BERT. keras_hub.models.ESM2Backbone.from_preset()
keras_hub.models.ESM2MaskedLM.from_preset()
keras_hub.models.ESM2MaskedLMPreprocessor.from_preset()
keras_hub.models.ESM2ProteinClassifier.from_preset()
keras_hub.models.ESM2ProteinClassifierPreprocessor.from_preset()
keras_hub.models.ESM2Tokenizer.from_preset() |
This is a pre-trained model in bioinformatics.
from hf document and paper
At present keras_hub do not seem to have a bioinformatics model, would you welcome my submission of ESM as the first bio-pre-trained model?
This model is similar to BERT, so the overall implementation structure will be similar to BERT. In addition to BERT, we will add an hf weight transformation model.
Although this model supports legacy tf.keras in hf, it might be better for our weight conversion script to only support torch weights
The text was updated successfully, but these errors were encountered: