Skip to content

Export Model

You can export self-created models through model card or side export panel.

Export through Model Card

To export model from model card, perform the following steps -

  • Step 1: Click Export Model button at model title bar.
  • Step 2: Select versions to export.
  • Step 3: Click Export button to generate export file and wait for it.
  • Step 4: Click Download File button to download model file.

export-model-through-model-card.gif

Export through Side Export Panel

To export model from side export panel, perform the following steps -

  • Step 1: Click show export button to popout side export panel.
  • Step 2: Select model to export (can only export self-created model)
  • Step 3: Select model versions to export (can select "ALL", "NO" or multiple versions)
  • Step 4: Click Export button to generate export file
  • Step 5: Click Download File button to download model file

export-model-through-side-export-panel.gif

Exported Model Format

The exported .zip model file with following structure:

.zip/
  |__ source
      |__ v1.zip   # Uploaded model file when create model version, for versionNumber=1
      |__ v2.zip
      |__ v3.zip
  |__ model.json   # Model schema file

The model.json schema file with following structure:

{
 "model": {
    "id": "String",
    "name": "String",
    "description": "String",
    "scope": "String",
    "autoRunInference": "Boolean",
    "labelClasses": [{
      "classIndex": "Number",
      "labelId": "String"
    }],
    "versions": [{
      "id": "Number",
      "versionNumber": "Number",
      "dockerImageName": "String",
      "dockerImageTag": "String",
      "config": {
        "cpuLimit": "String",
        "cpuRequest": "String",
        "memoryLimit": "String",
        "memoryRequest": "String",
        "acceleratorType": "String",
        "gpuCount": "Number",
        "batchSize": "Number",
        "fileType": "String",
      },
      "isDefault": "Boolean",
      "args": [{
        "key": "String",
        "default": "String"
      }],
      "status": "String",
      "source": "String",   // Uploaded file name in 'source' folder, for example, 'v1.zip', if 'null', means no upload file
    }],
  },
  "labels": [
    {
      "id": "String",
      "parentId": "String",
      "name": "String",
      "shortName": "String",
      "description": "String",
      "color": "String",
      "type": "String",
      "scope": "String",
      "annotationMode": "String",
      "radlexTagIds": ["String"]
    }
  ]
}