config.pbtxt 1.35 KB
Newer Older
Nikhilesh Bhatnagar's avatar
Nikhilesh Bhatnagar committed
1 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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
name: "ssmt_pipeline"
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 [
    {
      model_name: "ssmt_tokenizer"
      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"
      }
    },
    {
      model_name: "ssmt_model_demuxer"
      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"
      }
    }
  ]
}

response_cache {
  enable: true
}