allanj / Deductive-MWP

61 stars 19 forks source link

I don't know how to run your code #4

Open Freshman-Fan opened 2 years ago

Freshman-Fan commented 2 years ago

Hello,

Thank you for the code.But I ran into some problems,I don't know how to run your code.

I wanted to reproduce your training results, but I packed up the entire file and uploaded it to Google Colab and didn't know how to run it, like you said bash scripts/run_math23k.sh, but error name 'bash' is not defined. I am a newcomer and do not understand the code, can you help me solve and successfully reproduce?

allanj commented 2 years ago

or you can copy the command out of the "bash" file to run? For example,

python3 xxx

But I doubt that Google Colab can host for a long time to train

Freshman-Fan commented 2 years ago

My file path on Google Colab looks like this

/content/gdrive/MyDrive/Deductive-MWP-main/scripts/run_math23k.bash

Now I want to reproduce the code, what do I type?

Freshman-Fan commented 2 years ago

Or can you show me how to run your code directly on Github and reproduce the training process?

allanj commented 2 years ago

Usually, you should be able to directly run this in the terminal (in your server).

bash scripts/run_math23k.sh
allanj commented 2 years ago

Would be good if you can let me know the errors after you run the command

bash scripts/run_math23k.sh

In google colab, probably things will be different, I might try to make it more detailed to you later

Freshman-Fan commented 2 years ago

Thanks, I just started Github, I don't even know how to run code, where to click, I've been using Google Colab to train data all the time.

ssh1419 commented 1 year ago

When I run it on Collab, it returns this

Running mawps with bert model chinese-bert-wwm-ext and var update mode gru
scripts/run_math23k.bash: line 18: logs/math23k_chinese-bert-wwm-ext_gru_500.log: No such file or directory
Running mawps with bert model chinese-roberta-wwm-ext and var update mode gru
...

Do you have any ideas?

allanj commented 1 year ago

Probably mkdir logs to make a log folder