Views
No views yet
astra-bert-mlm. This specific model is designed to predict the Lowest Unoccupied Molecular Orbital (LUMO) levels of given additive molecules on their solvation structure based on SMILES.wkdghdus23/astra-bert-mlm1from astra.tokenizer import initial_bert_tokenizer_with_vocabulary
2from astra.model import BertForDownstream, EmbeddingTunedModel
3
4# Load the tokenizer and model
5vocab_file = "./vocab.txt"
6
7target_name = ["LUMO"]
8
9tokenizer = initial_bert_tokenizer_with_vocabulary(path=vocab_file)
10model = EmbeddingTunedModel.from_pretrained_embtune_model(pretrained_path=pretrained_model_path,
11 tokenizer=tokenizer,
12 target_name=target_name)