File size: 1,884 Bytes
99cae4e e8c1d9c 7a35214 e8c1d9c 979785a e8c1d9c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
---
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
```bash
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.
```bash
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
bash embedder_server.sh
```
**Start the Generator Server:**
```bash
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
bash AMC.sh
```
## ποΈ 4. Run Training
You can also train the model from scratch on the `MATH` dataset by running:
```bash
bash math_train.sh
``` |