metadata
datasets:
- Alexhf825/dataset-AutoMR-pangu
language:
- en
metrics:
- accuracy
base_model:
- FreedomIntelligence/openPangu-Embedded-7B
AutoMR for Pangu
This project equips the Pangu model with the AutoMR reasoning framework, optimized for Huawei Ascend hardware.
π³ Project Structure
.
βββ AMC.SH
βββ automr
β βββ config.py
β βββ dag.py
β βββ data_loader.py
β βββ evaluator.py
β βββ __init__.py
β βββ model.py
β βββ strategies.py
β βββ trainer.py
β βββ utils.py
βββ checkpoints
β βββ MATH
βββ embedder_server.sh
βββ generator_server.sh
βββ main.py
βββ math_train.sh
βββ processed_data
βββ AMC
βββ MATH
π§ 1. Installation
a. Clone the Project Repository
hf download Alexhf825/AutoMR-pangu --local-dir AutoMR-pangu
cd AutoMR-pangu
b. Install Dependencies
c. Download Datasets
This command will download the datasets and place them in the ./processed_data directory, matching the project structure.
hf download Alexhf825/dataset-AutoMR-pangu --repo-type=dataset --local-dir=./
π 2. Start the Servers
This project requires two services running in an OpenAI-API style. Please run the following commands in two separate terminal sessions.
Start the Embedder Server:
bash embedder_server.sh
Start the Generator Server:
bash generator_server.sh
π 3. Run Evaluation
A pre-trained checkpoint (MATH) is provided. You can directly evaluate the model on the AMC dataset using the following command:
bash AMC.sh
ποΈ 4. Run Training
You can also train the model from scratch on the MATH dataset by running:
bash math_train.sh