sagawa / PLTNUM-ESM2-NIH3T3

huggingface.co
Total runs: 815
24-hour runs: 0
7-day runs: 152
30-day runs: 688
Model's Last Updated: September 15 2024

Introduction of PLTNUM-ESM2-NIH3T3

Model Details of PLTNUM-ESM2-NIH3T3

PLTNUM-ESM2-NIH3T3

PLTNUM is a protein language model trained to predict protein half-lives based on their sequences.
This model was created based on facebook/esm2_t33_650M_UR50D and trained on protein half-life dataset of NIH3T3 mouse embryo fibroblast cell line ( paper link ).

Model Sources
Uses
How to Get Started with the Model

Use the code below to get started with the model.

from torch import sigmoid
import torch.nn as nn
from transformers import AutoModel, AutoConfig, PreTrainedModel, AutoTokenizer


class PLTNUM_PreTrainedModel(PreTrainedModel):
    config_class = AutoConfig

    def __init__(self, config):
        super(PLTNUM_PreTrainedModel, self).__init__(config)
        self.model = AutoModel.from_pretrained(self.config._name_or_path)

        self.fc_dropout1 = nn.Dropout(0.8)
        self.fc_dropout2 = nn.Dropout(0.4)
        self.fc = nn.Linear(self.config.hidden_size, 1)
        self._init_weights(self.fc)

    def _init_weights(self, module):
        if isinstance(module, nn.Linear):
            nn.init.normal_(module.weight, mean=0.0, std=self.config.initializer_range)
            if module.bias is not None:
                nn.init.constant_(module.bias, 0)
        elif isinstance(module, nn.Embedding):
            nn.init.normal_(module.weight, mean=0.0, std=self.config.initializer_range)
            if module.padding_idx is not None:
                nn.init.constant_(module.weight[module.padding_idx], 0.0)
        elif isinstance(module, nn.LayerNorm):
            nn.init.constant_(module.bias, 0)
            nn.init.constant_(module.weight, 1.0)

    def forward(self, inputs):
        outputs = self.model(**inputs)
        last_hidden_state = outputs.last_hidden_state[:, 0]
        output = (
            self.fc(self.fc_dropout1(last_hidden_state))
            + self.fc(self.fc_dropout2(last_hidden_state))
        ) / 2
        return output

    def create_embedding(self, inputs):
        outputs = self.model(**inputs)
        last_hidden_state = outputs.last_hidden_state[:, 0]
        return last_hidden_state


model = PLTNUM_PreTrainedModel.from_pretrained("sagawa/PLTNUM-ESM2-NIH3T3")
tokenizer = AutoTokenizer.from_pretrained("sagawa/PLTNUM-ESM2-NIH3T3")
seq = "MSGRGKQGGKARAKAKTRSSRAGLQFPVGRVHRLLRKGNYSERVGAGAPVYLAAVLEYLTAEILELAGNAARDNKKTRIIPRHLQLAIRNDEELNKLLGRVTIAQGGVLPNIQAVLLPKKTESHHKPKGK"
input = tokenizer(
    [seq],
    add_special_tokens=True,
    max_length=512,
    padding="max_length",
    truncation=True,
    return_offsets_mapping=False,
    return_attention_mask=True,
    return_tensors="pt",
)
print(sigmoid(model(input)))  # tensor([[0.9674]], grad_fn=<SigmoidBackward0>)
Citation

Runs of sagawa PLTNUM-ESM2-NIH3T3 on huggingface.co

815
Total runs
0
24-hour runs
44
3-day runs
152
7-day runs
688
30-day runs

More Information About PLTNUM-ESM2-NIH3T3 huggingface.co Model

More PLTNUM-ESM2-NIH3T3 license Visit here:

https://choosealicense.com/licenses/mit

PLTNUM-ESM2-NIH3T3 huggingface.co

PLTNUM-ESM2-NIH3T3 huggingface.co is an AI model on huggingface.co that provides PLTNUM-ESM2-NIH3T3's model effect (), which can be used instantly with this sagawa PLTNUM-ESM2-NIH3T3 model. huggingface.co supports a free trial of the PLTNUM-ESM2-NIH3T3 model, and also provides paid use of the PLTNUM-ESM2-NIH3T3. Support call PLTNUM-ESM2-NIH3T3 model through api, including Node.js, Python, http.

PLTNUM-ESM2-NIH3T3 huggingface.co Url

https://huggingface.co/sagawa/PLTNUM-ESM2-NIH3T3

sagawa PLTNUM-ESM2-NIH3T3 online free

PLTNUM-ESM2-NIH3T3 huggingface.co is an online trial and call api platform, which integrates PLTNUM-ESM2-NIH3T3's modeling effects, including api services, and provides a free online trial of PLTNUM-ESM2-NIH3T3, you can try PLTNUM-ESM2-NIH3T3 online for free by clicking the link below.

sagawa PLTNUM-ESM2-NIH3T3 online free url in huggingface.co:

https://huggingface.co/sagawa/PLTNUM-ESM2-NIH3T3

PLTNUM-ESM2-NIH3T3 install

PLTNUM-ESM2-NIH3T3 is an open source model from GitHub that offers a free installation service, and any user can find PLTNUM-ESM2-NIH3T3 on GitHub to install. At the same time, huggingface.co provides the effect of PLTNUM-ESM2-NIH3T3 install, users can directly use PLTNUM-ESM2-NIH3T3 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

PLTNUM-ESM2-NIH3T3 install url in huggingface.co:

https://huggingface.co/sagawa/PLTNUM-ESM2-NIH3T3

Url of PLTNUM-ESM2-NIH3T3

PLTNUM-ESM2-NIH3T3 huggingface.co Url

Provider of PLTNUM-ESM2-NIH3T3 huggingface.co

sagawa
ORGANIZATIONS

Other API from sagawa

huggingface.co

Total runs: 3.0K
Run Growth: 2.9K
Growth Rate: 98.59%
Updated:December 11 2022
huggingface.co

Total runs: 417
Run Growth: 155
Growth Rate: 37.17%
Updated:August 21 2025
huggingface.co

Total runs: 55
Run Growth: -21
Growth Rate: -38.18%
Updated:December 11 2022