config.pbtxt 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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: "cosyvoice2_dit"
  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. model_transaction_policy {
  21. decoupled: ${decoupled_mode}
  22. }
  23. parameters [
  24. {
  25. key: "llm_tokenizer_dir",
  26. value: {string_value:"${llm_tokenizer_dir}"}
  27. },
  28. {
  29. key: "model_dir",
  30. value: {string_value:"${model_dir}"}
  31. }
  32. ]
  33. parameters: { key: "FORCE_CPU_ONLY_INPUT_TENSORS" value: {string_value:"no"}}
  34. input [
  35. {
  36. name: "reference_wav"
  37. data_type: TYPE_FP32
  38. dims: [-1]
  39. optional: true
  40. },
  41. {
  42. name: "reference_wav_len"
  43. data_type: TYPE_INT32
  44. dims: [1]
  45. optional: true
  46. },
  47. {
  48. name: "reference_text"
  49. data_type: TYPE_STRING
  50. dims: [1]
  51. optional: true
  52. },
  53. {
  54. name: "target_text"
  55. data_type: TYPE_STRING
  56. dims: [1]
  57. }
  58. ]
  59. output [
  60. {
  61. name: "waveform"
  62. data_type: TYPE_FP32
  63. dims: [ -1 ]
  64. }
  65. ]
  66. instance_group [
  67. {
  68. count: ${bls_instance_num}
  69. kind: KIND_CPU
  70. }
  71. ]