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 ·
09b5b20
1
Parent(s): bb4db8e
Create generation_config.json
Browse files- generation_config.json +7 -0
generation_config.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"max_length": 20,
|
| 4 |
+
"min_length": 5,
|
| 5 |
+
"num_beams": 5,
|
| 6 |
+
"transformers_version": "4.21.2"
|
| 7 |
+
}
|