Update README.md
Browse files
README.md
CHANGED
@@ -52,26 +52,27 @@ output # 'CCN(CC)CCN=C=S.Cc1cnc2c(c1)CCCC2N'
|
|
52 |
### Training Procedure
|
53 |
|
54 |
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
55 |
-
We used the
|
56 |
The command used for training is the following. For more information, please refer to the paper and GitHub repository.
|
57 |
|
58 |
```python
|
59 |
-
|
60 |
-
|
61 |
-
--
|
62 |
-
--
|
|
|
63 |
--batch_size=32 \
|
64 |
-
--input_max_len=
|
65 |
--target_max_len=150 \
|
66 |
--weight_decay=0.01 \
|
67 |
--evaluation_strategy='epoch' \
|
68 |
--save_strategy='epoch' \
|
69 |
--logging_strategy='epoch' \
|
70 |
-
--
|
71 |
-
--
|
72 |
-
--
|
73 |
-
--
|
74 |
-
--
|
75 |
```
|
76 |
|
77 |
### Results
|
|
|
52 |
### Training Procedure
|
53 |
|
54 |
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
55 |
+
We used the [USPTO_50k dataset](https://yzhang.hpc.nyu.edu/T5Chem/index.html) for model finetuning.
|
56 |
The command used for training is the following. For more information, please refer to the paper and GitHub repository.
|
57 |
|
58 |
```python
|
59 |
+
cd task_retrosynthesis
|
60 |
+
python finetune.py \
|
61 |
+
--output_dir='t5' \
|
62 |
+
--epochs=20 \
|
63 |
+
--lr=2e-5 \
|
64 |
--batch_size=32 \
|
65 |
+
--input_max_len=150 \
|
66 |
--target_max_len=150 \
|
67 |
--weight_decay=0.01 \
|
68 |
--evaluation_strategy='epoch' \
|
69 |
--save_strategy='epoch' \
|
70 |
--logging_strategy='epoch' \
|
71 |
+
--save_total_limit=10 \
|
72 |
+
--train_data_path='../data/USPTO_50k/train.csv' \
|
73 |
+
--valid_data_path='../data/USPTO_50k/val.csv' \
|
74 |
+
--disable_tqdm \
|
75 |
+
--model_name_or_path='sagawa/ReactionT5v2-retrosynthesis'
|
76 |
```
|
77 |
|
78 |
### Results
|