MolecularAI / Chemformer

Apache License 2.0
213 stars 37 forks source link

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

Open Cello2195 opened 1 month ago

Cello2195 commented 1 month ago

When I was running fine_tune.sh, I came across the error "hydra.errors.OverrideParseException: mismatched input '=' expecting ". 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

anniewesterlund commented 1 month ago

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'