This repository contains a Math Solver model that can be trained and tested using the provided scripts. Follow the steps below to set up the environment, train the model, and test it on a designated test set.
To get started, clone the repository using the following command:
git clone https://github.com/AI-FDU/Math_Solver.gitIf you are using the modelscope (魔搭), you do not need to install any additional environment. Otherwise, you can set up the required environment by running:
pip install transformers modelscope peft swanlabTo initiate the training process, execute the following command:
python qwen_ft.pyOnce the training is complete, you can test the model on a designated test set by running:
python infer.pyThis will generate a submit.csv file, which can be directly submitted to the competition platform at DataFountain.