config.pbtxt 1.5 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"
  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. input [
  34. {
  35. name: "reference_wav"
  36. data_type: TYPE_FP32
  37. dims: [-1]
  38. optional: true
  39. },
  40. {
  41. name: "reference_wav_len"
  42. data_type: TYPE_INT32
  43. dims: [1]
  44. optional: true
  45. },
  46. {
  47. name: "reference_text"
  48. data_type: TYPE_STRING
  49. dims: [1]
  50. optional: true
  51. },
  52. {
  53. name: "target_text"
  54. data_type: TYPE_STRING
  55. dims: [1]
  56. }
  57. ]
  58. output [
  59. {
  60. name: "waveform"
  61. data_type: TYPE_FP32
  62. dims: [ -1 ]
  63. }
  64. ]
  65. instance_group [
  66. {
  67. count: ${bls_instance_num}
  68. kind: KIND_CPU
  69. }
  70. ]