mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-29 20:14:01 +00:00
[ROCm] ONNX Runtime training rocm package for ADO (#17683)
- we will publish the onnxruntime-training-rocm package on ADO feeds. The onnxruntime-training package will solely be for cuda. - Add new pipeline for onnxruntime-training-rocm ADO feeds https://aiinfra.visualstudio.com/Lotus/_build?definitionId=1278. Only package with latest rocm version is publish to ADO.
This commit is contained in:
parent
7201def4ec
commit
37f4f27da0
3 changed files with 42 additions and 29 deletions
4
setup.py
4
setup.py
|
|
@ -520,6 +520,10 @@ if enable_training or enable_training_apis:
|
|||
# Training CPU package for ADO feeds is called onnxruntime-training-cpu
|
||||
package_name = "onnxruntime-training-cpu"
|
||||
|
||||
if rocm_version:
|
||||
# Training ROCM package for ADO feeds is called onnxruntime-training-rocm
|
||||
package_name = "onnxruntime-training-rocm"
|
||||
|
||||
if package_name == "onnxruntime-tvm":
|
||||
packages += ["onnxruntime.providers.tvm"]
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,42 @@ resources:
|
|||
ref: 5eda9aded5462201e6310105728d33016e637ea7
|
||||
|
||||
stages:
|
||||
- stage: Python_Packaging
|
||||
- stage: "Python_Packaging_ROCm57_Release"
|
||||
jobs:
|
||||
- template: templates/rocm.yml
|
||||
parameters:
|
||||
PythonVersion: '3.8'
|
||||
RocmVersion: '5.7'
|
||||
- template: templates/rocm.yml
|
||||
parameters:
|
||||
PythonVersion: '3.9'
|
||||
RocmVersion: '5.7'
|
||||
- template: templates/rocm.yml
|
||||
parameters:
|
||||
PythonVersion: '3.10'
|
||||
RocmVersion: '5.7'
|
||||
|
||||
- stage: "Python_Packaging_ROCm57_RelWithDebInfo"
|
||||
condition: ne(variables['ORT_DISABLE_PYTHON_PACKAGE_LOCAL_VERSION'], 'true')
|
||||
jobs:
|
||||
- template: templates/rocm.yml
|
||||
parameters:
|
||||
PythonVersion: '3.8'
|
||||
RocmVersion: '5.7'
|
||||
BuildConfig: 'RelWithDebInfo'
|
||||
- template: templates/rocm.yml
|
||||
parameters:
|
||||
PythonVersion: '3.9'
|
||||
RocmVersion: '5.7'
|
||||
BuildConfig: 'RelWithDebInfo'
|
||||
- template: templates/rocm.yml
|
||||
parameters:
|
||||
PythonVersion: '3.10'
|
||||
RocmVersion: '5.7'
|
||||
BuildConfig: 'RelWithDebInfo'
|
||||
|
||||
- stage: "Python_Packaging_ROCm56_Release"
|
||||
condition: ne(variables['ORT_DISABLE_PYTHON_PACKAGE_LOCAL_VERSION'], 'true')
|
||||
jobs:
|
||||
- template: templates/rocm.yml
|
||||
parameters:
|
||||
|
|
@ -23,30 +58,3 @@ stages:
|
|||
parameters:
|
||||
PythonVersion: '3.10'
|
||||
RocmVersion: '5.6'
|
||||
- template: templates/rocm.yml
|
||||
parameters:
|
||||
PythonVersion: '3.8'
|
||||
RocmVersion: '5.7'
|
||||
- template: templates/rocm.yml
|
||||
parameters:
|
||||
PythonVersion: '3.9'
|
||||
RocmVersion: '5.7'
|
||||
- template: templates/rocm.yml
|
||||
parameters:
|
||||
PythonVersion: '3.10'
|
||||
RocmVersion: '5.7'
|
||||
- template: templates/rocm.yml
|
||||
parameters:
|
||||
PythonVersion: '3.8'
|
||||
RocmVersion: '5.7'
|
||||
BuildConfig: 'RelWithDebInfo'
|
||||
- template: templates/rocm.yml
|
||||
parameters:
|
||||
PythonVersion: '3.9'
|
||||
RocmVersion: '5.7'
|
||||
BuildConfig: 'RelWithDebInfo'
|
||||
- template: templates/rocm.yml
|
||||
parameters:
|
||||
PythonVersion: '3.10'
|
||||
RocmVersion: '5.7'
|
||||
BuildConfig: 'RelWithDebInfo'
|
||||
|
|
|
|||
|
|
@ -73,6 +73,7 @@ jobs:
|
|||
--entrypoint $(PythonManylinuxDir)/bin/python3 \
|
||||
-e NIGHTLY_BUILD \
|
||||
-e BUILD_BUILDNUMBER \
|
||||
-e ORT_DISABLE_PYTHON_PACKAGE_LOCAL_VERSION \
|
||||
--user onnxruntimedev \
|
||||
onnxruntimetrainingrocmbuild-rocm${{ parameters.RocmVersion }} \
|
||||
/onnxruntime_src/tools/ci_build/build.py \
|
||||
|
|
@ -131,7 +132,7 @@ jobs:
|
|||
python3 tools/ci_build/upload_python_package_to_azure_storage.py \
|
||||
--python_wheel_path ${files[0]} \
|
||||
--final_storage
|
||||
condition: and(succeeded(), eq(variables['DRY_RUN'], '0'))
|
||||
condition: and(ne(variables['ORT_DISABLE_PYTHON_PACKAGE_LOCAL_VERSION'], 'true'), and(succeeded(), eq(variables['DRY_RUN'], '0')))
|
||||
displayName: 'Upload Rocm wheel to release repository'
|
||||
|
||||
- template: component-governance-component-detection-steps.yml
|
||||
|
|
|
|||
Loading…
Reference in a new issue