ZJU-Fangyin
commited on
Commit
·
df8b64e
1
Parent(s):
5689fa8
Update README.md
Browse files
README.md
CHANGED
@@ -18,8 +18,8 @@ We have provided two types of examples. You can modify the input, generation par
|
|
18 |
|
19 |
- Denovo molecule generation example:
|
20 |
```python
|
21 |
-
from transformers import AutoTokenizer, LlamaForCausalLM
|
22 |
-
import torch
|
23 |
|
24 |
>>> tokenizer = AutoTokenizer.from_pretrained("zjunlp/MolGen-7b")
|
25 |
>>> model = LlamaForCausalLM.from_pretrained(
|
@@ -50,8 +50,8 @@ import torch
|
|
50 |
|
51 |
- Molecular completion example:
|
52 |
```python
|
53 |
-
from transformers import AutoTokenizer, LlamaForCausalLM
|
54 |
-
import torch
|
55 |
|
56 |
>>> tokenizer = AutoTokenizer.from_pretrained("zjunlp/MolGen-7b")
|
57 |
>>> model = LlamaForCausalLM.from_pretrained(
|
|
|
18 |
|
19 |
- Denovo molecule generation example:
|
20 |
```python
|
21 |
+
>>> from transformers import AutoTokenizer, LlamaForCausalLM
|
22 |
+
>>> import torch
|
23 |
|
24 |
>>> tokenizer = AutoTokenizer.from_pretrained("zjunlp/MolGen-7b")
|
25 |
>>> model = LlamaForCausalLM.from_pretrained(
|
|
|
50 |
|
51 |
- Molecular completion example:
|
52 |
```python
|
53 |
+
>>> from transformers import AutoTokenizer, LlamaForCausalLM
|
54 |
+
>>> import torch
|
55 |
|
56 |
>>> tokenizer = AutoTokenizer.from_pretrained("zjunlp/MolGen-7b")
|
57 |
>>> model = LlamaForCausalLM.from_pretrained(
|