config.pbtxt 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. },
  39. {
  40. name: "reference_wav_len"
  41. data_type: TYPE_INT32
  42. dims: [1]
  43. },
  44. {
  45. name: "reference_text"
  46. data_type: TYPE_STRING
  47. dims: [1]
  48. },
  49. {
  50. name: "target_text"
  51. data_type: TYPE_STRING
  52. dims: [1]
  53. }
  54. ]
  55. output [
  56. {
  57. name: "waveform"
  58. data_type: TYPE_FP32
  59. dims: [ -1 ]
  60. }
  61. ]
  62. instance_group [
  63. {
  64. count: ${bls_instance_num}
  65. kind: KIND_CPU
  66. }
  67. ]