Chemformer icon indicating copy to clipboard operation
Chemformer copied to clipboard

hydra.errors.OverrideParseException: mismatched input '=' expecting <EOF>

Open Cello2195 opened this issue 1 year ago • 1 comments

When I was running fine_tune.sh, I came across the error "hydra.errors.OverrideParseException: mismatched input '=' expecting <EOF>". My shell file is as below:

#!/bin/bash

export HYDRA_FULL_ERROR=1

python -m molbart.fine_tune
datamodule=[molbart.data.seq2seq_data.Uspto50DataModule]
data_path=data/mol_opt.pickle
model_path=models/mask/step=1000000.ckpt
vocabulary_path=bart_vocab_downstream.json
task=backward_prediction
n_epochs=100
learning_rate=0.001
schedule=cycle
batch_size=64
acc_batches=4
augmentation_probability=0.5

Cello2195 avatar Oct 10 '24 15:10 Cello2195

The reason is likely because there is an equal sign in you model_path. Instead of writing model_path=models/mask/step=1000000.ckpt, you can try 'model_path=models/mask/step\=1000000.ckpt'

anniewesterlund avatar Oct 11 '24 06:10 anniewesterlund