config.pbtxt 1.29 KB
Newer Older
1
name: "nmt"
Nikhilesh Bhatnagar's avatar
Nikhilesh Bhatnagar committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
platform: "ensemble"
max_batch_size: 4096

input [
  {
    name: "INPUT_TEXT"
    data_type: TYPE_STRING
    dims: [ 1 ]
  }
]
input [
  {
    name: "INPUT_LANGUAGE_ID"
    data_type: TYPE_STRING
    dims: [ 1 ]
  }
]
input [
  {
    name: "OUTPUT_LANGUAGE_ID"
    data_type: TYPE_STRING
    dims: [ 1 ]
  }
]

output [
  {
    name: "OUTPUT_TEXT"
    data_type: TYPE_STRING
    dims: [ 1 ]
  }
]

ensemble_scheduling {
  step [
    {
38
      model_name: "tokenizer"
Nikhilesh Bhatnagar's avatar
Nikhilesh Bhatnagar committed
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
      model_version: 1
      input_map {
        key: "INPUT_TEXT"
        value: "INPUT_TEXT"
      }
      input_map {
        key: "INPUT_LANGUAGE_ID"
        value: "INPUT_LANGUAGE_ID"
      }
      input_map {
        key: "OUTPUT_LANGUAGE_ID"
        value: "OUTPUT_LANGUAGE_ID"
      }
      output_map {
        key: "INPUT_TEXT_TOKENIZED"
        value: "INPUT_TEXT_TOKENIZED"
      }
    },
    {
58
      model_name: "demuxer"
Nikhilesh Bhatnagar's avatar
Nikhilesh Bhatnagar committed
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
      model_version: 1
      input_map {
        key: "INPUT_TEXT_TOKENIZED"
        value: "INPUT_TEXT_TOKENIZED"
      }
      input_map {
        key: "INPUT_LANGUAGE_ID"
        value: "INPUT_LANGUAGE_ID"
      }
      input_map {
        key: "OUTPUT_LANGUAGE_ID"
        value: "OUTPUT_LANGUAGE_ID"
      }
      output_map {
        key: "OUTPUT_TEXT"
        value: "OUTPUT_TEXT"
      }
    }
  ]
78
}