Downloads · 30 days
0
Alexhf825/AutoMR-pangu
AutoMR-pangu is a machine learning model from Alexhf825. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This repository runs AutoMR with a local openPangu-Embedded-7B model on Huawei Ascend.
Downloads · 30 days
0
Access
Public
Updated Apr 19, 2026
Repo size
8.1 GB
Likes
1
Public
Click a slice to open those files.
.pt3.2 GB · 100%
From the Hugging Face model README
This repository runs AutoMR with a local openPangu-Embedded-7B model on Huawei Ascend.
.
├── MATH500.sh
├── automr
├── checkpoints
│ └── MATH
├── embedder_server.sh
├── generator_server.sh
├── main.py
├── math_train.sh
├── openPangu-Embedded-7B
└── processed_data
├── MATH
└── MATH_500
hf download Alexhf825/AutoMR-pangu --local-dir AutoMR-pangu
cd AutoMR-pangu
All scripts now expect the model path to be ./openPangu-Embedded-7B.
hf download FreedomIntelligence/openPangu-Embedded-7B --local-dir ./openPangu-Embedded-7B
Before starting vLLM, edit ./openPangu-Embedded-7B/config.json and change:
"max_position_embeddings": 131072
Without this change, vLLM will not support the required 128k context length.
processed_data will be committed together with the repository, so no separate dataset download step is needed.
The repository uses:
processed_data/MATH/train.jsonlprocessed_data/MATH/val.jsonlprocessed_data/MATH_500/test.jsonlRun the embedder and generator in two separate terminals:
bash embedder_server.sh
bash generator_server.sh
The evaluation script is MATH500.sh:
bash MATH500.sh
By default it evaluates on processed_data/MATH_500/test.jsonl and uses the checkpoint under checkpoints/MATH/pangu/token_budget_128000/.
bash math_train.sh
This trains on processed_data/MATH with token_budget=128000 and saves checkpoints under checkpoints/MATH/pangu/token_budget_128000/.