Alexhf825 commited on
Commit
99cae4e
Β·
verified Β·
1 Parent(s): b7013a4

Create README.md

Browse files

# 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-test-pangu --repo-type=dataset --local-dir=./processed_data
```

## πŸš€ 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
```

Files changed (1) hide show
  1. README.md +10 -0
README.md ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets:
3
+ - Alexhf825/dataset-AutoMR-pangu
4
+ language:
5
+ - en
6
+ metrics:
7
+ - accuracy
8
+ base_model:
9
+ - FreedomIntelligence/openPangu-Embedded-7B
10
+ ---