Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Oneflow-Inc
OneFlow-Benchmark
比较版本
409f18904d29cd33f87813b0c0556d0b9953c7d4...ce08ec2bacae234253cd4e72a146e46443c9d69f
O
OneFlow-Benchmark
项目概览
Oneflow-Inc
/
OneFlow-Benchmark
上一次同步 2 年多
通知
1
Star
92
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
OneFlow-Benchmark
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
源分支
ce08ec2bacae234253cd4e72a146e46443c9d69f
选择Git版本
...
目标分支
409f18904d29cd33f87813b0c0556d0b9953c7d4
选择Git版本
比较
Commits (17)
https://gitcode.net/Oneflow-Inc/OneFlow-Benchmark/-/commit/7d3dfdb59738ce891381f340d146db487077ae13
test
2021-10-27T12:59:05+08:00
ShawnXuan
xiexuanx2@gmail.com
https://gitcode.net/Oneflow-Inc/OneFlow-Benchmark/-/commit/48115dcf91ca3171cd1011449c61c699ace37a15
test
2021-10-27T14:20:14+08:00
ShawnXuan
xiexuanx2@gmail.com
https://gitcode.net/Oneflow-Inc/OneFlow-Benchmark/-/commit/ee3233f3c41fc8b84993c043de547fe1e7f83107
test
2021-10-27T15:15:43+08:00
ShawnXuan
xiexuanx2@gmail.com
https://gitcode.net/Oneflow-Inc/OneFlow-Benchmark/-/commit/02d5c5528443f65f0958fb28d470f3e622a8e424
test
2021-10-27T15:28:20+08:00
ShawnXuan
xiexuanx2@gmail.com
https://gitcode.net/Oneflow-Inc/OneFlow-Benchmark/-/commit/eb9d9bde8b63391107721c33f54e75c1569f9796
test
2021-10-27T15:53:09+08:00
ShawnXuan
xiexuanx2@gmail.com
https://gitcode.net/Oneflow-Inc/OneFlow-Benchmark/-/commit/e89ec03ac986a08eeedb4de3cab1e3f8856628ea
test
2021-10-27T15:57:38+08:00
ShawnXuan
xiexuanx2@gmail.com
https://gitcode.net/Oneflow-Inc/OneFlow-Benchmark/-/commit/1b1ba0e135b22b2a40811ab334a89cf26109b51d
test
2021-10-27T16:01:58+08:00
ShawnXuan
xiexuanx2@gmail.com
https://gitcode.net/Oneflow-Inc/OneFlow-Benchmark/-/commit/1fe0540ca8f2997cf7603b034a3e0257039a5188
test
2021-10-27T16:18:56+08:00
ShawnXuan
xiexuanx2@gmail.com
https://gitcode.net/Oneflow-Inc/OneFlow-Benchmark/-/commit/ba45bceecf4fca5759b65c4b5cf7482e804ab237
test
2021-10-27T16:21:25+08:00
ShawnXuan
xiexuanx2@gmail.com
https://gitcode.net/Oneflow-Inc/OneFlow-Benchmark/-/commit/115bd545620ec2265d3cc2308f8befe42926a3e6
test
2021-10-27T16:24:00+08:00
ShawnXuan
xiexuanx2@gmail.com
https://gitcode.net/Oneflow-Inc/OneFlow-Benchmark/-/commit/399e20e25e2ee11def71bd2ff7babf4b877c9537
test
2021-10-27T16:26:00+08:00
ShawnXuan
xiexuanx2@gmail.com
https://gitcode.net/Oneflow-Inc/OneFlow-Benchmark/-/commit/12ecef359d8b8127ba8f705fad93d911942bd35f
test
2021-10-27T16:31:21+08:00
ShawnXuan
xiexuanx2@gmail.com
https://gitcode.net/Oneflow-Inc/OneFlow-Benchmark/-/commit/78617f16a6ef29c540e58f556028477968c6fd13
test
2021-10-27T16:43:22+08:00
ShawnXuan
xiexuanx2@gmail.com
https://gitcode.net/Oneflow-Inc/OneFlow-Benchmark/-/commit/cdfaebe10a3396a417ebdc6af07d02b7cd922e9c
test
2021-10-27T16:47:41+08:00
ShawnXuan
xiexuanx2@gmail.com
https://gitcode.net/Oneflow-Inc/OneFlow-Benchmark/-/commit/5f2cc6d4a3df21a3b708c54d576cb2da67cdd35f
test
2021-10-27T17:53:25+08:00
ShawnXuan
xiexuanx2@gmail.com
https://gitcode.net/Oneflow-Inc/OneFlow-Benchmark/-/commit/bd26486750b1d588e2d7875492b80a73f02822d0
test
2021-10-27T18:47:38+08:00
ShawnXuan
xiexuanx2@gmail.com
https://gitcode.net/Oneflow-Inc/OneFlow-Benchmark/-/commit/ce08ec2bacae234253cd4e72a146e46443c9d69f
test
2021-10-27T18:59:56+08:00
ShawnXuan
xiexuanx2@gmail.com
隐藏空白更改
内联
并排
Showing
1 changed file
with
77 addition
and
92 deletion
+77
-92
.github/workflows/cnn_e2e.yml
.github/workflows/cnn_e2e.yml
+77
-92
未找到文件。
.github/workflows/cnn_e2e.yml
浏览文件 @
ce08ec2b
...
...
@@ -41,6 +41,9 @@ jobs:
find-oss-wheel
:
name
:
"
Set
env
and
Find
wheel
in
oss"
runs-on
:
ubuntu-latest
env
:
OSS_ACCESS_KEY_ID
:
${{ secrets.OSS_ACCESS_KEY_ID }}
OSS_ACCESS_KEY_SECRET
:
${{ secrets.OSS_ACCESS_KEY_SECRET }}
outputs
:
find-wheel-hit
:
${{ steps.find-wheel.outputs.find-wheel-hit }}
ONEFLOW_WHEEL_PATH
:
${{ steps.set-wheel-path.outputs.ONEFLOW_WHEEL_PATH }}
...
...
@@ -63,7 +66,7 @@ jobs:
set +x
-
name
:
Check if wheel available
id
:
find-wheel
uses
:
Oneflow-Inc/get-oneflow/find-wheel@
5ef34358307145c688d820531b512b467fc01fe2
uses
:
Oneflow-Inc/get-oneflow/find-wheel@
ae140da7d4e5ea983b6bbd8dc5f3621557cb472f
with
:
ref
:
${{ env.oneflow_commit }}
entry
:
${{ github.event.inputs.compute_platform }}
...
...
@@ -71,13 +74,13 @@ jobs:
build-oneflow
:
name
:
"
Build
OneFlow
${{
github.event.inputs.compute_platform
}}"
needs
:
[
find-oss-wheel
]
if
:
${{ !needs.find-oss-wheel.outputs.find-wheel-hit }}
runs-on
:
[
'
self-hosted'
,
'
linux'
,
'
provision'
]
env
:
MANYLINUX_CACHE_DIR
:
~/manylinux-cache-dir/${{ github.event.inputs.compute_platform }}
WHEELHOUSE_DIR
:
manylinux-wheelhouse
OSS_ACCESS_KEY_ID
:
${{ secrets.OSS_ACCESS_KEY_ID }}
OSS_ACCESS_KEY_SECRET
:
${{ secrets.OSS_ACCESS_KEY_SECRET }}
if
:
${{ !fromJson(needs.find-oss-wheel.outputs.find-wheel-hit) }}
steps
:
-
name
:
Fix permissions
run
:
|
...
...
@@ -138,100 +141,82 @@ jobs:
oss_access_key_secret
:
${{ secrets.OSS_ACCESS_KEY_SECRET }}
-
name
:
Update pip index
if
:
${{ steps.build-cuda.outcome == 'success' }}
env
:
OSS_ACCESS_KEY_ID
:
${{ secrets.OSS_ACCESS_KEY_ID }}
OSS_ACCESS_KEY_SECRET
:
${{ secrets.OSS_ACCESS_KEY_SECRET }}
run
:
|
python3 -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
python3 -m pip install oss2 beautifulsoup4 --user
python3 ${{ env.ONEFLOW_SRC }}/tools/create_pip_index.py --dir_key ${oss_dir} -b oneflow-staging --index_key=${oss_branch_dir}/index.html --index_key=${oss_dir}/index.html --index_key=${{ needs.find-oss-wheel.outputs.ONEFLOW_WHEEL_PATH }}/index.html
# test:
# name: Test suite
# # needs: [find-test-cache]build-oneflow
# needs: [build-oneflow]
# # runs-on: ['self-hosted', 'linux', 'provision']
# runs-on: ['self-hosted', 'linux', 'x64', 'gpu-8-titan-v']
# env:
# TEST_CONTAINER_NAME: "oneflow_benchmark-run-id-${{ github.run_id }}-${{ matrix.entry }}-test"
# TEST_WITH_TORCH_IMG_TAG: registry.cn-beijing.aliyuncs.com/oneflow/test-with-pytorch-1.9.0:e7a497b41d8b7f1bce055b1f23d027f93b1557ae
# # strategy:
# # fail-fast: true
# # max-parallel: 5
# # matrix: ${{ fromJson(needs.find-test-cache.outputs.matrix) }}
# steps:
# - name: Fix permissions
# # if: ${{ contains(matrix.runs-on, 'self-hosted') }}
# run: |
# set -x
# docker run --rm -v $PWD:/p -w /p busybox chown -R $(id -u):$(id -g) .
# - name: Checkout Oneflow-Inc/OneFlow-Benchmark
# uses: actions/checkout@v2
# - name: Remove container
# timeout-minutes: 45
# # if: ${{ contains(matrix.runs-on, 'self-hosted') }}
# run: |
# docker rm -f ${{ env.TEST_CONTAINER_NAME }} || true
# - name: Enable Pytorch container
# run: |
# echo "TEST_IMG_TAG=${TEST_WITH_TORCH_IMG_TAG}" >> $GITHUB_ENV
# # - name: Set environment variables
# # # if: ${{ !fromJson(matrix.cache-hit) && contains(matrix.runs-on, 'self-hosted') }}
# # run: |
# # set -x
# # echo "ONEFLOW_TEST_CACHE_DIR=$HOME/ci-cache/test_cache" >> $GITHUB_ENV
# # echo "ONEFLOW_WHEEL_PATH=http://oneflow-staging.oss-cn-beijing.aliyuncs.com/branch/master/cu102/41b06bf56daaa5ea0087998399d5980e9fc5ab59" >> $GITHUB_ENV
# - name: Start container
# # if: ${{ !fromJson(matrix.cache-hit) && contains(matrix.runs-on, 'self-hosted') }}
# # working-directory: ${{ env.ONEFLOW_SRC }}
# # env:
# # ONEFLOW_BIN_PATH: ${{ steps.download-digest.outputs.entry-dir }}/bin
# run: |
# docker pull ${{ env.TEST_IMG_TAG }}
# docker run -d --rm --privileged --network host --shm-size=8g \
# --cap-add=SYS_PTRACE --security-opt seccomp=unconfined \
# --runtime=nvidia \
# -v /DATA/disk1:/dataset:ro \
# -e ONEFLOW_WHEEL_PATH=${{ env.ONEFLOW_WHEEL_PATH }} \
# -v $PWD:$PWD \
# -w $PWD \
# -e E2E_NUM_EPOCHS=${{ github.event.inputs.num_epochs }} \
# -e E2E_GPU_NUM_PER_NODE=${{ github.event.inputs.gpu_num_per_node }} \
# -e E2E_NODE_NUM=1 \
# -e E2E_BATCH_SIZE=32 \
# -e E2E_LEARNING_RATE=1.536 \
# -e E2E_SRC_ROOT=Classification/cnns \
# -e E2E_DATA_ROOT=/dataset/ImageNet/ofrecord \
# --name ${TEST_CONTAINER_NAME} \
# ${{ env.TEST_IMG_TAG }} \
# sleep 3600
# # -e ONEFLOW_CI=1 \
# # -v /model_zoo:/model_zoo:ro \
# # -v $HOME/test-container-cache/dot-local:/root/.local \
# # -v $HOME/test-container-cache/dot-cache:/root/.cache \
# # -e ONEFLOW_BIN_PATH=${ONEFLOW_BIN_PATH} \
# # -v ${ONEFLOW_WHEEL_PATH}:${ONEFLOW_WHEEL_PATH}:ro \
# # -v ${ONEFLOW_BIN_PATH}:${ONEFLOW_BIN_PATH}:ro \
# # -v ${ONEFLOW_TEST_CACHE_DIR}:${ONEFLOW_TEST_CACHE_DIR} \
# # -e ONEFLOW_TEST_CACHE_DIR=${ONEFLOW_TEST_CACHE_DIR} \
# - name: Install OneFlow
# # if: ${{ !fromJson(matrix.cache-hit) && contains(matrix.runs-on, 'self-hosted') && (!fromJson(matrix.is-xla) || (fromJson(matrix.is-xla) && needs.changed_files.outputs.should_run_single_client_tests == '1')) }}
# run: |
# docker exec ${TEST_CONTAINER_NAME} python3 --version
# docker exec ${TEST_CONTAINER_NAME} python3 -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
# docker exec ${TEST_CONTAINER_NAME} python3 -m pip install --find-links=http://oneflow-staging.oss-cn-beijing.aliyuncs.com/${{ needs.build-oneflow.outputs.ONEFLOW_WHEEL_PATH }} oneflow
# - name: Test container
# # if: ${{ !fromJson(matrix.cache-hit) && contains(matrix.runs-on, 'self-hosted') }}
# run: |
# docker exec ${{ env.TEST_CONTAINER_NAME }} bash ci/test/resnet50_e2e.sh
# - name: Upload log
# # if: ${{ always() && (steps.distributed_try_3.outcome=='failure' || steps.new_interface_distributed_try_3.outcome=='failure') && github.event.pull_request.head.repo.full_name == github.repository }}
# uses: ./.github/actions/upload_oss
# with:
# src_path: log
# oss_dst_path: oss://oneflow-log/OneFlow-Benchmark/${{ github.ref }}.${GITHUB_SHA::7}/oneflow/${{ github.event.inputs.of_branch_or_commit }}/${{github.run_id}}/log
# oss_access_key_id: ${{ secrets.OSS_ACCESS_KEY_ID }}
# oss_access_key_secret: ${{ secrets.OSS_ACCESS_KEY_SECRET }}
# upload_core: false
test
:
name
:
Test suite
needs
:
[
build-oneflow
]
if
:
always()
runs-on
:
[
'
self-hosted'
,
'
linux'
,
'
x64'
,
'
gpu-8-titan-v'
]
env
:
TEST_CONTAINER_NAME
:
"
oneflow_benchmark-run-id-${{
github.run_id
}}-${{
matrix.entry
}}-test"
TEST_WITH_TORCH_IMG_TAG
:
registry.cn-beijing.aliyuncs.com/oneflow/test-with-pytorch-1.9.0:e7a497b41d8b7f1bce055b1f23d027f93b1557ae
steps
:
-
name
:
just a test
run
:
|
echo ${TEST_CONTAINER_NAME}
echo ${TEST_WITH_TORCH_IMG_TAG}
echo ${{ needs.build-oneflow.outputs.ONEFLOW_WHEEL_PATH }}
# - name: Fix permissions
# run: |
# set -x
# docker run --rm -v $PWD:/p -w /p busybox chown -R $(id -u):$(id -g) .
# - name: Checkout Oneflow-Inc/OneFlow-Benchmark
# uses: actions/checkout@v2
# - name: Remove container
# timeout-minutes: 45
# run: |
# docker rm -f ${{ env.TEST_CONTAINER_NAME }} || true
# - name: Enable Pytorch container
# run: |
# echo "TEST_IMG_TAG=${TEST_WITH_TORCH_IMG_TAG}" >> $GITHUB_ENV
# - name: Start container
# run: |
# docker pull ${{ env.TEST_IMG_TAG }}
# docker run -d --rm --privileged --network host --shm-size=8g \
# --cap-add=SYS_PTRACE --security-opt seccomp=unconfined \
# --runtime=nvidia \
# -v /DATA/disk1:/dataset:ro \
# -e ONEFLOW_WHEEL_PATH=${{ env.ONEFLOW_WHEEL_PATH }} \
# -v $PWD:$PWD \
# -w $PWD \
# -e E2E_NUM_EPOCHS=${{ github.event.inputs.num_epochs }} \
# -e E2E_GPU_NUM_PER_NODE=${{ github.event.inputs.gpu_num_per_node }} \
# -e E2E_NODE_NUM=1 \
# -e E2E_BATCH_SIZE=32 \
# -e E2E_LEARNING_RATE=1.536 \
# -e E2E_SRC_ROOT=Classification/cnns \
# -e E2E_DATA_ROOT=/dataset/ImageNet/ofrecord \
# --name ${TEST_CONTAINER_NAME} \
# ${{ env.TEST_IMG_TAG }} \
# sleep 3600
# # -e ONEFLOW_CI=1 \
# # -v /model_zoo:/model_zoo:ro \
# # -v $HOME/test-container-cache/dot-local:/root/.local \
# # -v $HOME/test-container-cache/dot-cache:/root/.cache \
# # -e ONEFLOW_BIN_PATH=${ONEFLOW_BIN_PATH} \
# # -v ${ONEFLOW_WHEEL_PATH}:${ONEFLOW_WHEEL_PATH}:ro \
# # -v ${ONEFLOW_BIN_PATH}:${ONEFLOW_BIN_PATH}:ro \
# # -v ${ONEFLOW_TEST_CACHE_DIR}:${ONEFLOW_TEST_CACHE_DIR} \
# # -e ONEFLOW_TEST_CACHE_DIR=${ONEFLOW_TEST_CACHE_DIR} \
# - name: Install OneFlow
# run: |
# docker exec ${TEST_CONTAINER_NAME} python3 --version
# docker exec ${TEST_CONTAINER_NAME} python3 -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
# docker exec ${TEST_CONTAINER_NAME} python3 -m pip install --find-links=http://oneflow-staging.oss-cn-beijing.aliyuncs.com/${{ needs.build-oneflow.outputs.ONEFLOW_WHEEL_PATH }} oneflow
# - name: Test container
# run: |
# docker exec ${{ env.TEST_CONTAINER_NAME }} bash ci/test/resnet50_e2e.sh
# - name: Upload log
# uses: ./.github/actions/upload_oss
# with:
# src_path: log
# oss_dst_path: oss://oneflow-log/OneFlow-Benchmark/${{ github.ref }}.${GITHUB_SHA::7}/oneflow/${{ github.event.inputs.of_branch_or_commit }}/${{github.run_id}}/log
# oss_access_key_id: ${{ secrets.OSS_ACCESS_KEY_ID }}
# oss_access_key_secret: ${{ secrets.OSS_ACCESS_KEY_SECRET }}
# upload_core: false