config.pbtxt 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. # Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. name: "token2wav"
  15. backend: "python"
  16. max_batch_size: ${triton_max_batch_size}
  17. dynamic_batching {
  18. max_queue_delay_microseconds: ${max_queue_delay_microseconds}
  19. }
  20. parameters [
  21. {
  22. key: "model_dir",
  23. value: {string_value:"${model_dir}"}
  24. }
  25. ]
  26. input [
  27. {
  28. name: "target_speech_tokens"
  29. data_type: TYPE_INT32
  30. dims: [-1]
  31. },
  32. {
  33. name: "prompt_speech_tokens"
  34. data_type: TYPE_INT32
  35. dims: [-1]
  36. optional: true
  37. },
  38. {
  39. name: "prompt_speech_feat"
  40. data_type: TYPE_FP16
  41. dims: [-1, 80]
  42. optional: true
  43. },
  44. {
  45. name: "prompt_spk_embedding"
  46. data_type: TYPE_FP16
  47. dims: [-1]
  48. optional: true
  49. },
  50. {
  51. name: "token_offset"
  52. data_type: TYPE_INT32
  53. dims: [ 1 ]
  54. reshape: { shape: [ ] }
  55. optional: true
  56. },
  57. {
  58. name: "finalize"
  59. data_type: TYPE_BOOL
  60. dims: [ 1 ]
  61. reshape: { shape: [ ] }
  62. optional: true
  63. }
  64. ]
  65. output [
  66. {
  67. name: "waveform"
  68. data_type: TYPE_FP32
  69. dims: [ -1 ]
  70. }
  71. ]
  72. instance_group [
  73. {
  74. count: 1
  75. kind: KIND_CPU
  76. }
  77. ]