MIGraphX Field Guide
Deployment

CI For Models

Add automated checks for MIGraphX model compatibility and saved artifacts.

CI should catch model compatibility issues before application code changes reach runtime.

Basic Model Job

name: MIGraphX model check

on:
  pull_request:
    paths:
      - "models/**"
      - ".github/workflows/migraphx-models.yml"

jobs:
  model-check:
    runs-on: self-hosted
    steps:
      - uses: actions/checkout@v4

      - name: Check ROCm
        run: |
          rocminfo | head
          rocm-smi

      - name: Compile model
        run: |
          migraphx-driver compile models/model.onnx --gpu --save models/model.mxr

      - name: Benchmark smoke test
        run: |
          migraphx-driver perf models/model.mxr

Use a self-hosted runner when the job needs an actual AMD GPU.

Artifact Policy

You can store:

ONNX only:
  compile on deployment machine

ONNX + MXR:
  compile in CI or release build, ship saved program

For reproducible releases, record the ROCm version used to produce the saved program.

What To Assert

model parses
gpu compile succeeds
saved program loads
output shape matches application contract
performance smoke test finishes

On this page