Instructions to use zjunlp/MolGen-large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zjunlp/MolGen-large with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("zjunlp/MolGen-large") model = AutoModelForSeq2SeqLM.from_pretrained("zjunlp/MolGen-large", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Yin Fang commited on
Commit ·
5646fe6
1
Parent(s): 440529b
Update README.md
Browse files
README.md
CHANGED
|
@@ -3,7 +3,11 @@ tags:
|
|
| 3 |
- molecular language model
|
| 4 |
- SELFIES
|
| 5 |
- molecule generation
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
---
|
| 8 |
# MolGen
|
| 9 |
MolGen was introduced in the paper ["Molecular Language Model as Multi-task Generator"](https://arxiv.org/pdf/2301.11259.pdf) and first released in [this repository](https://github.com/zjunlp/MolGen). It is a pre-trained molecular generative model built using the 100\% robust molecular language representation, SELFIES.
|
|
|
|
| 3 |
- molecular language model
|
| 4 |
- SELFIES
|
| 5 |
- molecule generation
|
| 6 |
+
inference:
|
| 7 |
+
parameters:
|
| 8 |
+
max_length: 20
|
| 9 |
+
min_length: 5
|
| 10 |
+
num_beams: 5
|
| 11 |
---
|
| 12 |
# MolGen
|
| 13 |
MolGen was introduced in the paper ["Molecular Language Model as Multi-task Generator"](https://arxiv.org/pdf/2301.11259.pdf) and first released in [this repository](https://github.com/zjunlp/MolGen). It is a pre-trained molecular generative model built using the 100\% robust molecular language representation, SELFIES.
|