forked from FlagOpen/FlagPerf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
【metax】add model mask_rcnn and detr (FlagOpen#459)
* add model mask_rcnn and detr * maskrcnn & detr model logs
- Loading branch information
1 parent
b9f6294
commit 56d5825
Showing
16 changed files
with
145 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
### 测试数据集下载 | ||
参见[测试数据集下载](../../benchmarks/detr/README.md#测试数据集下载地址) | ||
|
||
### 沐曦集成电路 C500 GPU配置与运行信息参考 | ||
#### 环境配置 | ||
- ##### 硬件环境 | ||
- 机器、加速卡型号: 曦云®C500 64G | ||
- 多机网络类型、带宽: InfiniBand,2x200 Gb/s | ||
|
||
- ##### 软件环境 | ||
- OS版本:Ubuntu 20.04.6 | ||
- OS kernel版本: 5.4.0-26-generic | ||
- 加速卡驱动版本:2.2.0 | ||
- Docker 版本:24.0.7 | ||
- 训练框架版本:pytorch-2.0.0+mc2.19.0.6-cp38-cp38-linux_x86_64.whl | ||
- 依赖软件版本:无 | ||
|
||
#### 运行情况 | ||
|
||
* 通用指标 | ||
|
||
| 指标名称 | 指标值 | 特殊说明 | | ||
| -------------- | ------------------------------ | ------------------------------------------- | | ||
| 任务类别 | 目标检测、全景分割 | | | ||
| 模型 | detr | | | ||
| 数据集 | coco2017 | | | ||
| 数据精度 | precision,见“性能指标” | 可选fp32/amp/fp16 | | ||
| 超参修改 | fix_hp,见“性能指标” | 跑满硬件设备评测吞吐量所需特殊超参 | | ||
| 硬件设备简称 | nvidia A100 | | | ||
| 硬件存储使用 | mem(actual/total),见“性能指标” | 通常称为“显存”,单位为GiB | | ||
| 端到端时间 | e2e_time,见“性能指标” | 总时间+Perf初始化等时间 | | ||
| 总吞吐量 | p_whole,见“性能指标” | 实际训练样本数除以总时间(performance_whole) | | ||
| 训练吞吐量 | p_train,见“性能指标” | 不包含每个epoch末尾的评估部分耗时 | | ||
| **计算吞吐量** | **p_core,见“性能指标”** | 不包含数据IO部分的耗时(p3>p2>p1) | | ||
| 训练结果 | mAP,见“性能指标” | mean Average Precision | | ||
| 额外修改项 | 无 | | | ||
|
||
|
||
* 性能指标 | ||
|
||
| 配置 | precision | fix_hp | e2e_time | p_whole | p_train | p_core | mAP | mem | | ||
| ------------------- | --------- | -------------- | -------- | ------- | ------- | ------ | ----- | --------- | | ||
| MXC500 单机8卡(1x8) | fp32 | bs=8,lr=0.0001 | | | | |39.6%| 57.2/64.0 | | ||
| MXC500 单机单卡(1x1)| fp32 | / | | | | | | 60.7/64.0 | | ||
| MXC500 两机16卡(2x8) | fp32 | / | | | | | | 46.3/64.0 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from config_common import * | ||
|
||
train_batch_size = 8 | ||
eval_batch_size = 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from config_common import * | ||
|
||
train_batch_size = 8 | ||
eval_batch_size = 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from config_common import * | ||
|
||
train_batch_size = 8 | ||
eval_batch_size = 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
vendor = "metax" | ||
dist_backend = "nccl" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# ================================================= | ||
# Export variables | ||
# ================================================= | ||
|
||
export METAX_USE_TF32=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
cython | ||
git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI&egg=pycocotools | ||
submitit | ||
scipy | ||
onnx | ||
onnxruntime |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
### 模型backbone权重下载 | ||
[模型backbone权重下载](../../benchmarks/mask_rcnn) | ||
|
||
### 测试数据集下载 | ||
|
||
[测试数据集下载](https://cocodataset.org/) | ||
|
||
### 沐曦集成电路 C500 GPU配置与运行信息参考 | ||
#### 环境配置 | ||
- ##### 硬件环境 | ||
- 机器、加速卡型号: 曦云®C500 64G | ||
- 多机网络类型、带宽: InfiniBand,2x200 Gb/s | ||
|
||
- ##### 软件环境 | ||
- OS版本:Ubuntu 20.04.6 | ||
- OS kernel版本: 5.4.0-26-generic | ||
- 加速卡驱动版本:2.2.0 | ||
- Docker 版本:24.0.7 | ||
- 训练框架版本:pytorch-2.0.0+mc2.19.0.6-cp38-cp38-linux_x86_64.whl | ||
- 依赖软件版本:无 | ||
|
||
|
||
|
||
|
||
* 通用指标 | ||
|
||
| 指标名称 | 指标值 | 特殊说明 | | ||
| -------------- | ----------------------- | ------------------------------------------- | | ||
| 任务类别 | 图像目标检测 | | | ||
| 模型 | fasterRCNN | | | ||
| 数据集 | coco2017 | | | ||
| 数据精度 | precision,见“性能指标” | 可选fp32/amp/fp16 | | ||
| 超参修改 | fix_hp,见“性能指标” | 跑满硬件设备评测吞吐量所需特殊超参 | | ||
| 硬件设备简称 | MXC500 | | | ||
| 硬件存储使用 | mem,见“性能指标” | 通常称为“显存”,单位为GiB | | ||
| 端到端时间 | e2e_time,见“性能指标” | 总时间+Perf初始化等时间 | | ||
| 总吞吐量 | p_whole,见“性能指标” | 实际训练图片数除以总时间(performance_whole) | | ||
| 训练吞吐量 | p_train,见“性能指标” | 不包含每个epoch末尾的评估部分耗时 | | ||
| **计算吞吐量** | **p_core,见“性能指标”** | 不包含数据IO部分的耗时(p3>p2>p1) | | ||
| 训练结果 | map,见“性能指标” | 单位为平均目标检测正确率 | | ||
| 额外修改项 | 无 | | | ||
|
||
|
||
* 性能指标 | ||
|
||
| 配置 | precision | fix_hp | e2e_time | p_whole | p_train | p_core | mAP | mem | | ||
| ------------------- | --------- | -------------- | -------- | ------- | ------- | ------ | ----- | --------- | | ||
| MXC500 单机8卡(1x8) | fp32 | bs=8,lr=0.0001 | | | | |0.382 && 0.343| 37.1/64.0 | | ||
| MXC500 单机单卡(1x1)| fp32 | / | | | | | | 36.2/64.0 | | ||
| MXC500 两机16卡(2x8) | fp32 | / | | | | | | 37.1/64.0 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
vendor: str = "metax" | ||
train_batch_size = 16 | ||
eval_batch_size = 16 | ||
lr = 0.16 | ||
max_epoch: int = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
vendor: str = "metax" | ||
train_batch_size = 16 | ||
eval_batch_size = 16 | ||
lr = 0.16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
vendor: str = "metax" | ||
train_batch_size = 16 | ||
eval_batch_size = 16 | ||
lr = 0.016 | ||
max_epoch: int = 4 |
5 changes: 5 additions & 0 deletions
5
training/metax/mask_rcnn-pytorch/config/environment_variables.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# ================================================= | ||
# Export variables | ||
# ================================================= | ||
|
||
export METAX_USE_TF32=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
pycocotools | ||
numpy | ||
tqdm | ||
schedule |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters