Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
Freshman-Fan opened this issue Jul 13, 2022 · 8 comments
Open

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

Freshman-Fan opened this issue Jul 13, 2022 · 8 comments

Comments

@Freshman-Fan
Copy link

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
Copy link
Owner

allanj commented Jul 13, 2022

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
Copy link
Author

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
Copy link
Author

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

@allanj
Copy link
Owner

allanj commented Jul 13, 2022

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

bash scripts/run_math23k.sh

@allanj
Copy link
Owner

allanj commented Jul 13, 2022

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
Copy link
Author

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
Copy link

ssh1419 commented Oct 19, 2022

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
Copy link
Owner

allanj commented Oct 28, 2022

Probably mkdir logs to make a log folder

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants