QizhiPei / biot5-base-text2mol

huggingface.co
Total runs: 1.4K
24-hour runs: -14
7-day runs: -124
30-day runs: 603
Model's Last Updated: February 20 2025
text-generation

Introduction of biot5-base-text2mol

Model Details of biot5-base-text2mol

Example Usage
from transformers import T5Tokenizer, T5ForConditionalGeneration

tokenizer = T5Tokenizer.from_pretrained("QizhiPei/biot5-base-text2mol", model_max_length=512)
model = T5ForConditionalGeneration.from_pretrained('QizhiPei/biot5-base-text2mol')

task_definition = 'Definition: You are given a molecule description in English. Your job is to generate the molecule SELFIES that fits the description.\n\n'
text_input = 'The molecule is a monocarboxylic acid anion obtained by deprotonation of the carboxy and sulfino groups of 3-sulfinopropionic acid. Major microspecies at pH 7.3 It is an organosulfinate oxoanion and a monocarboxylic acid anion. It is a conjugate base of a 3-sulfinopropionic acid.'
task_input = f'Now complete the following example -\nInput: {text_input}\nOutput: '

model_input = task_definition + task_input
input_ids = tokenizer(model_input, return_tensors="pt").input_ids

generation_config = model.generation_config
generation_config.max_length = 512
generation_config.num_beams = 1

outputs = model.generate(input_ids, generation_config=generation_config)
output_selfies = tokenizer.decode(outputs[0], skip_special_tokens=True).replace(' ', '')
print(output_selfies)

import selfies as sf
output_smiles = sf.decoder(output_selfies)
print(output_smiles)
References

For more information, please refer to our paper and GitHub repository.

Paper: BioT5: Enriching Cross-modal Integration in Biology with Chemical Knowledge and Natural Language Associations

GitHub: BioT5

Authors: Qizhi Pei, Wei Zhang, Jinhua Zhu, Kehan Wu, Kaiyuan Gao, Lijun Wu, Yingce Xia, and Rui Yan

Runs of QizhiPei biot5-base-text2mol on huggingface.co

1.4K
Total runs
-14
24-hour runs
-71
3-day runs
-124
7-day runs
603
30-day runs

More Information About biot5-base-text2mol huggingface.co Model

More biot5-base-text2mol license Visit here:

https://choosealicense.com/licenses/mit

biot5-base-text2mol huggingface.co

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

biot5-base-text2mol huggingface.co Url

https://huggingface.co/QizhiPei/biot5-base-text2mol

QizhiPei biot5-base-text2mol online free

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

QizhiPei biot5-base-text2mol online free url in huggingface.co:

https://huggingface.co/QizhiPei/biot5-base-text2mol

biot5-base-text2mol install

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

biot5-base-text2mol install url in huggingface.co:

https://huggingface.co/QizhiPei/biot5-base-text2mol

Url of biot5-base-text2mol

biot5-base-text2mol huggingface.co Url

Provider of biot5-base-text2mol huggingface.co

QizhiPei
ORGANIZATIONS

Other API from QizhiPei

huggingface.co

Total runs: 150
Run Growth: -121
Growth Rate: -80.67%
Updated:February 20 2025
huggingface.co

Total runs: 3
Run Growth: 0
Growth Rate: 0.00%
Updated:September 27 2025
huggingface.co

Total runs: 0
Run Growth: -1
Growth Rate: 0.00%
Updated:September 15 2025