xinference 1.9.1__py3-none-any.whl → 1.10.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of xinference might be problematic. Click here for more details.

Files changed (334) hide show
  1. xinference/_version.py +3 -3
  2. xinference/api/restful_api.py +400 -3
  3. xinference/client/restful/async_restful_client.py +20 -3
  4. xinference/client/restful/restful_client.py +20 -3
  5. xinference/constants.py +2 -0
  6. xinference/core/supervisor.py +111 -49
  7. xinference/core/worker.py +10 -0
  8. xinference/deploy/cmdline.py +15 -0
  9. xinference/model/audio/core.py +26 -6
  10. xinference/model/audio/indextts2.py +166 -0
  11. xinference/model/audio/kokoro.py +1 -1
  12. xinference/model/audio/kokoro_zh.py +124 -0
  13. xinference/model/audio/model_spec.json +58 -1
  14. xinference/model/embedding/sentence_transformers/core.py +4 -4
  15. xinference/model/embedding/vllm/core.py +7 -1
  16. xinference/model/image/model_spec.json +71 -3
  17. xinference/model/image/stable_diffusion/core.py +13 -4
  18. xinference/model/llm/__init__.py +4 -0
  19. xinference/model/llm/core.py +10 -0
  20. xinference/model/llm/llama_cpp/core.py +1 -0
  21. xinference/model/llm/llm_family.json +503 -21
  22. xinference/model/llm/llm_family.py +1 -0
  23. xinference/model/llm/mlx/core.py +52 -33
  24. xinference/model/llm/sglang/core.py +32 -55
  25. xinference/model/llm/tool_parsers/__init__.py +58 -0
  26. xinference/model/llm/tool_parsers/abstract_tool_parser.py +33 -0
  27. xinference/model/llm/tool_parsers/deepseek_r1_tool_parser.py +190 -0
  28. xinference/model/llm/tool_parsers/deepseek_v3_tool_parser.py +145 -0
  29. xinference/model/llm/tool_parsers/glm4_tool_parser.py +123 -0
  30. xinference/model/llm/tool_parsers/llama3_tool_parser.py +77 -0
  31. xinference/model/llm/tool_parsers/qwen_tool_parser.py +320 -0
  32. xinference/model/llm/transformers/core.py +1 -1
  33. xinference/model/llm/transformers/multimodal/qwen2_vl.py +34 -8
  34. xinference/model/llm/utils.py +138 -53
  35. xinference/model/llm/vllm/core.py +95 -78
  36. xinference/thirdparty/audiotools/__init__.py +10 -0
  37. xinference/thirdparty/audiotools/core/__init__.py +4 -0
  38. xinference/thirdparty/audiotools/core/audio_signal.py +1682 -0
  39. xinference/thirdparty/audiotools/core/display.py +194 -0
  40. xinference/thirdparty/audiotools/core/dsp.py +390 -0
  41. xinference/thirdparty/audiotools/core/effects.py +647 -0
  42. xinference/thirdparty/audiotools/core/ffmpeg.py +211 -0
  43. xinference/thirdparty/audiotools/core/loudness.py +320 -0
  44. xinference/thirdparty/audiotools/core/playback.py +252 -0
  45. xinference/thirdparty/audiotools/core/templates/__init__.py +0 -0
  46. xinference/thirdparty/audiotools/core/templates/headers.html +322 -0
  47. xinference/thirdparty/audiotools/core/templates/pandoc.css +407 -0
  48. xinference/thirdparty/audiotools/core/templates/widget.html +52 -0
  49. xinference/thirdparty/audiotools/core/util.py +671 -0
  50. xinference/thirdparty/audiotools/core/whisper.py +97 -0
  51. xinference/thirdparty/audiotools/data/__init__.py +3 -0
  52. xinference/thirdparty/audiotools/data/datasets.py +517 -0
  53. xinference/thirdparty/audiotools/data/preprocess.py +81 -0
  54. xinference/thirdparty/audiotools/data/transforms.py +1592 -0
  55. xinference/thirdparty/audiotools/metrics/__init__.py +6 -0
  56. xinference/thirdparty/audiotools/metrics/distance.py +131 -0
  57. xinference/thirdparty/audiotools/metrics/quality.py +159 -0
  58. xinference/thirdparty/audiotools/metrics/spectral.py +247 -0
  59. xinference/thirdparty/audiotools/ml/__init__.py +5 -0
  60. xinference/thirdparty/audiotools/ml/accelerator.py +184 -0
  61. xinference/thirdparty/audiotools/ml/decorators.py +440 -0
  62. xinference/thirdparty/audiotools/ml/experiment.py +90 -0
  63. xinference/thirdparty/audiotools/ml/layers/__init__.py +2 -0
  64. xinference/thirdparty/audiotools/ml/layers/base.py +328 -0
  65. xinference/thirdparty/audiotools/ml/layers/spectral_gate.py +127 -0
  66. xinference/thirdparty/audiotools/post.py +140 -0
  67. xinference/thirdparty/audiotools/preference.py +600 -0
  68. xinference/thirdparty/indextts/BigVGAN/ECAPA_TDNN.py +656 -0
  69. xinference/thirdparty/indextts/BigVGAN/__init__.py +0 -0
  70. xinference/thirdparty/indextts/BigVGAN/activations.py +122 -0
  71. xinference/thirdparty/indextts/BigVGAN/alias_free_activation/__init__.py +0 -0
  72. xinference/thirdparty/indextts/BigVGAN/alias_free_activation/cuda/.gitignore +1 -0
  73. xinference/thirdparty/indextts/BigVGAN/alias_free_activation/cuda/__init__.py +0 -0
  74. xinference/thirdparty/indextts/BigVGAN/alias_free_activation/cuda/activation1d.py +76 -0
  75. xinference/thirdparty/indextts/BigVGAN/alias_free_activation/cuda/anti_alias_activation.cpp +23 -0
  76. xinference/thirdparty/indextts/BigVGAN/alias_free_activation/cuda/anti_alias_activation_cuda.cu +256 -0
  77. xinference/thirdparty/indextts/BigVGAN/alias_free_activation/cuda/compat.h +29 -0
  78. xinference/thirdparty/indextts/BigVGAN/alias_free_activation/cuda/load.py +121 -0
  79. xinference/thirdparty/indextts/BigVGAN/alias_free_activation/cuda/type_shim.h +92 -0
  80. xinference/thirdparty/indextts/BigVGAN/alias_free_activation/torch/__init__.py +6 -0
  81. xinference/thirdparty/indextts/BigVGAN/alias_free_activation/torch/act.py +31 -0
  82. xinference/thirdparty/indextts/BigVGAN/alias_free_activation/torch/filter.py +102 -0
  83. xinference/thirdparty/indextts/BigVGAN/alias_free_activation/torch/resample.py +58 -0
  84. xinference/thirdparty/indextts/BigVGAN/alias_free_torch/__init__.py +6 -0
  85. xinference/thirdparty/indextts/BigVGAN/alias_free_torch/act.py +29 -0
  86. xinference/thirdparty/indextts/BigVGAN/alias_free_torch/filter.py +96 -0
  87. xinference/thirdparty/indextts/BigVGAN/alias_free_torch/resample.py +49 -0
  88. xinference/thirdparty/indextts/BigVGAN/bigvgan.py +534 -0
  89. xinference/thirdparty/indextts/BigVGAN/models.py +451 -0
  90. xinference/thirdparty/indextts/BigVGAN/nnet/CNN.py +546 -0
  91. xinference/thirdparty/indextts/BigVGAN/nnet/__init__.py +0 -0
  92. xinference/thirdparty/indextts/BigVGAN/nnet/linear.py +89 -0
  93. xinference/thirdparty/indextts/BigVGAN/nnet/normalization.py +670 -0
  94. xinference/thirdparty/indextts/BigVGAN/utils.py +101 -0
  95. xinference/thirdparty/indextts/__init__.py +0 -0
  96. xinference/thirdparty/indextts/cli.py +65 -0
  97. xinference/thirdparty/indextts/gpt/__init__.py +0 -0
  98. xinference/thirdparty/indextts/gpt/conformer/__init__.py +0 -0
  99. xinference/thirdparty/indextts/gpt/conformer/attention.py +312 -0
  100. xinference/thirdparty/indextts/gpt/conformer/embedding.py +163 -0
  101. xinference/thirdparty/indextts/gpt/conformer/subsampling.py +348 -0
  102. xinference/thirdparty/indextts/gpt/conformer_encoder.py +520 -0
  103. xinference/thirdparty/indextts/gpt/model.py +713 -0
  104. xinference/thirdparty/indextts/gpt/model_v2.py +747 -0
  105. xinference/thirdparty/indextts/gpt/perceiver.py +317 -0
  106. xinference/thirdparty/indextts/gpt/transformers_beam_search.py +1013 -0
  107. xinference/thirdparty/indextts/gpt/transformers_generation_utils.py +4747 -0
  108. xinference/thirdparty/indextts/gpt/transformers_gpt2.py +1878 -0
  109. xinference/thirdparty/indextts/gpt/transformers_modeling_utils.py +5525 -0
  110. xinference/thirdparty/indextts/infer.py +690 -0
  111. xinference/thirdparty/indextts/infer_v2.py +739 -0
  112. xinference/thirdparty/indextts/s2mel/dac/__init__.py +16 -0
  113. xinference/thirdparty/indextts/s2mel/dac/__main__.py +36 -0
  114. xinference/thirdparty/indextts/s2mel/dac/model/__init__.py +4 -0
  115. xinference/thirdparty/indextts/s2mel/dac/model/base.py +294 -0
  116. xinference/thirdparty/indextts/s2mel/dac/model/dac.py +400 -0
  117. xinference/thirdparty/indextts/s2mel/dac/model/discriminator.py +228 -0
  118. xinference/thirdparty/indextts/s2mel/dac/model/encodec.py +320 -0
  119. xinference/thirdparty/indextts/s2mel/dac/nn/__init__.py +3 -0
  120. xinference/thirdparty/indextts/s2mel/dac/nn/layers.py +33 -0
  121. xinference/thirdparty/indextts/s2mel/dac/nn/loss.py +368 -0
  122. xinference/thirdparty/indextts/s2mel/dac/nn/quantize.py +339 -0
  123. xinference/thirdparty/indextts/s2mel/dac/utils/__init__.py +123 -0
  124. xinference/thirdparty/indextts/s2mel/dac/utils/decode.py +95 -0
  125. xinference/thirdparty/indextts/s2mel/dac/utils/encode.py +94 -0
  126. xinference/thirdparty/indextts/s2mel/hf_utils.py +12 -0
  127. xinference/thirdparty/indextts/s2mel/modules/alias_free_torch/__init__.py +5 -0
  128. xinference/thirdparty/indextts/s2mel/modules/alias_free_torch/act.py +29 -0
  129. xinference/thirdparty/indextts/s2mel/modules/alias_free_torch/filter.py +96 -0
  130. xinference/thirdparty/indextts/s2mel/modules/alias_free_torch/resample.py +57 -0
  131. xinference/thirdparty/indextts/s2mel/modules/audio.py +82 -0
  132. xinference/thirdparty/indextts/s2mel/modules/bigvgan/activations.py +120 -0
  133. xinference/thirdparty/indextts/s2mel/modules/bigvgan/alias_free_activation/cuda/__init__.py +0 -0
  134. xinference/thirdparty/indextts/s2mel/modules/bigvgan/alias_free_activation/cuda/activation1d.py +77 -0
  135. xinference/thirdparty/indextts/s2mel/modules/bigvgan/alias_free_activation/cuda/anti_alias_activation.cpp +23 -0
  136. xinference/thirdparty/indextts/s2mel/modules/bigvgan/alias_free_activation/cuda/anti_alias_activation_cuda.cu +246 -0
  137. xinference/thirdparty/indextts/s2mel/modules/bigvgan/alias_free_activation/cuda/compat.h +29 -0
  138. xinference/thirdparty/indextts/s2mel/modules/bigvgan/alias_free_activation/cuda/load.py +86 -0
  139. xinference/thirdparty/indextts/s2mel/modules/bigvgan/alias_free_activation/cuda/type_shim.h +92 -0
  140. xinference/thirdparty/indextts/s2mel/modules/bigvgan/alias_free_activation/torch/__init__.py +6 -0
  141. xinference/thirdparty/indextts/s2mel/modules/bigvgan/alias_free_activation/torch/act.py +30 -0
  142. xinference/thirdparty/indextts/s2mel/modules/bigvgan/alias_free_activation/torch/filter.py +101 -0
  143. xinference/thirdparty/indextts/s2mel/modules/bigvgan/alias_free_activation/torch/resample.py +58 -0
  144. xinference/thirdparty/indextts/s2mel/modules/bigvgan/bigvgan.py +492 -0
  145. xinference/thirdparty/indextts/s2mel/modules/bigvgan/config.json +63 -0
  146. xinference/thirdparty/indextts/s2mel/modules/bigvgan/env.py +18 -0
  147. xinference/thirdparty/indextts/s2mel/modules/bigvgan/meldataset.py +354 -0
  148. xinference/thirdparty/indextts/s2mel/modules/bigvgan/utils.py +99 -0
  149. xinference/thirdparty/indextts/s2mel/modules/campplus/DTDNN.py +115 -0
  150. xinference/thirdparty/indextts/s2mel/modules/campplus/classifier.py +70 -0
  151. xinference/thirdparty/indextts/s2mel/modules/campplus/layers.py +253 -0
  152. xinference/thirdparty/indextts/s2mel/modules/commons.py +632 -0
  153. xinference/thirdparty/indextts/s2mel/modules/diffusion_transformer.py +257 -0
  154. xinference/thirdparty/indextts/s2mel/modules/encodec.py +292 -0
  155. xinference/thirdparty/indextts/s2mel/modules/flow_matching.py +171 -0
  156. xinference/thirdparty/indextts/s2mel/modules/gpt_fast/generate.py +436 -0
  157. xinference/thirdparty/indextts/s2mel/modules/gpt_fast/model.py +360 -0
  158. xinference/thirdparty/indextts/s2mel/modules/gpt_fast/quantize.py +622 -0
  159. xinference/thirdparty/indextts/s2mel/modules/hifigan/f0_predictor.py +55 -0
  160. xinference/thirdparty/indextts/s2mel/modules/hifigan/generator.py +454 -0
  161. xinference/thirdparty/indextts/s2mel/modules/layers.py +354 -0
  162. xinference/thirdparty/indextts/s2mel/modules/length_regulator.py +141 -0
  163. xinference/thirdparty/indextts/s2mel/modules/openvoice/__init__.py +0 -0
  164. xinference/thirdparty/indextts/s2mel/modules/openvoice/api.py +186 -0
  165. xinference/thirdparty/indextts/s2mel/modules/openvoice/attentions.py +465 -0
  166. xinference/thirdparty/indextts/s2mel/modules/openvoice/checkpoints_v2/converter/config.json +57 -0
  167. xinference/thirdparty/indextts/s2mel/modules/openvoice/commons.py +160 -0
  168. xinference/thirdparty/indextts/s2mel/modules/openvoice/mel_processing.py +183 -0
  169. xinference/thirdparty/indextts/s2mel/modules/openvoice/models.py +499 -0
  170. xinference/thirdparty/indextts/s2mel/modules/openvoice/modules.py +598 -0
  171. xinference/thirdparty/indextts/s2mel/modules/openvoice/openvoice_app.py +275 -0
  172. xinference/thirdparty/indextts/s2mel/modules/openvoice/se_extractor.py +153 -0
  173. xinference/thirdparty/indextts/s2mel/modules/openvoice/transforms.py +209 -0
  174. xinference/thirdparty/indextts/s2mel/modules/openvoice/utils.py +194 -0
  175. xinference/thirdparty/indextts/s2mel/modules/quantize.py +229 -0
  176. xinference/thirdparty/indextts/s2mel/modules/rmvpe.py +631 -0
  177. xinference/thirdparty/indextts/s2mel/modules/vocos/__init__.py +4 -0
  178. xinference/thirdparty/indextts/s2mel/modules/vocos/heads.py +164 -0
  179. xinference/thirdparty/indextts/s2mel/modules/vocos/helpers.py +71 -0
  180. xinference/thirdparty/indextts/s2mel/modules/vocos/loss.py +114 -0
  181. xinference/thirdparty/indextts/s2mel/modules/vocos/models.py +118 -0
  182. xinference/thirdparty/indextts/s2mel/modules/vocos/modules.py +213 -0
  183. xinference/thirdparty/indextts/s2mel/modules/vocos/pretrained.py +51 -0
  184. xinference/thirdparty/indextts/s2mel/modules/vocos/spectral_ops.py +192 -0
  185. xinference/thirdparty/indextts/s2mel/modules/wavenet.py +174 -0
  186. xinference/thirdparty/indextts/s2mel/optimizers.py +96 -0
  187. xinference/thirdparty/indextts/s2mel/wav2vecbert_extract.py +148 -0
  188. xinference/thirdparty/indextts/utils/__init__.py +0 -0
  189. xinference/thirdparty/indextts/utils/arch_util.py +120 -0
  190. xinference/thirdparty/indextts/utils/checkpoint.py +34 -0
  191. xinference/thirdparty/indextts/utils/common.py +121 -0
  192. xinference/thirdparty/indextts/utils/feature_extractors.py +50 -0
  193. xinference/thirdparty/indextts/utils/front.py +536 -0
  194. xinference/thirdparty/indextts/utils/maskgct/models/codec/__init__.py +0 -0
  195. xinference/thirdparty/indextts/utils/maskgct/models/codec/amphion_codec/codec.py +427 -0
  196. xinference/thirdparty/indextts/utils/maskgct/models/codec/amphion_codec/quantize/__init__.py +11 -0
  197. xinference/thirdparty/indextts/utils/maskgct/models/codec/amphion_codec/quantize/factorized_vector_quantize.py +150 -0
  198. xinference/thirdparty/indextts/utils/maskgct/models/codec/amphion_codec/quantize/lookup_free_quantize.py +77 -0
  199. xinference/thirdparty/indextts/utils/maskgct/models/codec/amphion_codec/quantize/residual_vq.py +177 -0
  200. xinference/thirdparty/indextts/utils/maskgct/models/codec/amphion_codec/quantize/vector_quantize.py +401 -0
  201. xinference/thirdparty/indextts/utils/maskgct/models/codec/amphion_codec/vocos.py +881 -0
  202. xinference/thirdparty/indextts/utils/maskgct/models/codec/codec_dataset.py +264 -0
  203. xinference/thirdparty/indextts/utils/maskgct/models/codec/codec_inference.py +515 -0
  204. xinference/thirdparty/indextts/utils/maskgct/models/codec/codec_sampler.py +126 -0
  205. xinference/thirdparty/indextts/utils/maskgct/models/codec/codec_trainer.py +166 -0
  206. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/__init__.py +0 -0
  207. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/alias_free_torch/__init__.py +5 -0
  208. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/alias_free_torch/act.py +29 -0
  209. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/alias_free_torch/filter.py +96 -0
  210. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/alias_free_torch/resample.py +57 -0
  211. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/facodec_dataset.py +98 -0
  212. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/facodec_inference.py +137 -0
  213. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/facodec_trainer.py +776 -0
  214. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/modules/JDC/__init__.py +1 -0
  215. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/modules/JDC/bst.t7 +0 -0
  216. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/modules/JDC/model.py +219 -0
  217. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/modules/attentions.py +437 -0
  218. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/modules/commons.py +331 -0
  219. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/modules/gradient_reversal.py +35 -0
  220. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/modules/layers.py +460 -0
  221. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/modules/quantize.py +741 -0
  222. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/modules/style_encoder.py +110 -0
  223. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/modules/wavenet.py +224 -0
  224. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/optimizer.py +104 -0
  225. xinference/thirdparty/indextts/utils/maskgct/models/codec/kmeans/repcodec_model.py +210 -0
  226. xinference/thirdparty/indextts/utils/maskgct/models/codec/kmeans/vocos.py +850 -0
  227. xinference/thirdparty/indextts/utils/maskgct/models/codec/melvqgan/melspec.py +108 -0
  228. xinference/thirdparty/indextts/utils/maskgct/models/codec/ns3_codec/README.md +216 -0
  229. xinference/thirdparty/indextts/utils/maskgct/models/codec/ns3_codec/__init__.py +6 -0
  230. xinference/thirdparty/indextts/utils/maskgct/models/codec/ns3_codec/alias_free_torch/__init__.py +5 -0
  231. xinference/thirdparty/indextts/utils/maskgct/models/codec/ns3_codec/alias_free_torch/act.py +29 -0
  232. xinference/thirdparty/indextts/utils/maskgct/models/codec/ns3_codec/alias_free_torch/filter.py +96 -0
  233. xinference/thirdparty/indextts/utils/maskgct/models/codec/ns3_codec/alias_free_torch/resample.py +57 -0
  234. xinference/thirdparty/indextts/utils/maskgct/models/codec/ns3_codec/facodec.py +1222 -0
  235. xinference/thirdparty/indextts/utils/maskgct/models/codec/ns3_codec/gradient_reversal.py +35 -0
  236. xinference/thirdparty/indextts/utils/maskgct/models/codec/ns3_codec/melspec.py +102 -0
  237. xinference/thirdparty/indextts/utils/maskgct/models/codec/ns3_codec/quantize/__init__.py +7 -0
  238. xinference/thirdparty/indextts/utils/maskgct/models/codec/ns3_codec/quantize/fvq.py +116 -0
  239. xinference/thirdparty/indextts/utils/maskgct/models/codec/ns3_codec/quantize/rvq.py +87 -0
  240. xinference/thirdparty/indextts/utils/maskgct/models/codec/ns3_codec/transformer.py +234 -0
  241. xinference/thirdparty/indextts/utils/maskgct/models/codec/speechtokenizer/model.py +184 -0
  242. xinference/thirdparty/indextts/utils/maskgct/models/codec/speechtokenizer/modules/__init__.py +27 -0
  243. xinference/thirdparty/indextts/utils/maskgct/models/codec/speechtokenizer/modules/conv.py +346 -0
  244. xinference/thirdparty/indextts/utils/maskgct/models/codec/speechtokenizer/modules/lstm.py +46 -0
  245. xinference/thirdparty/indextts/utils/maskgct/models/codec/speechtokenizer/modules/norm.py +37 -0
  246. xinference/thirdparty/indextts/utils/maskgct/models/codec/speechtokenizer/modules/quantization/__init__.py +14 -0
  247. xinference/thirdparty/indextts/utils/maskgct/models/codec/speechtokenizer/modules/quantization/ac.py +317 -0
  248. xinference/thirdparty/indextts/utils/maskgct/models/codec/speechtokenizer/modules/quantization/core_vq.py +388 -0
  249. xinference/thirdparty/indextts/utils/maskgct/models/codec/speechtokenizer/modules/quantization/distrib.py +135 -0
  250. xinference/thirdparty/indextts/utils/maskgct/models/codec/speechtokenizer/modules/quantization/vq.py +125 -0
  251. xinference/thirdparty/indextts/utils/maskgct/models/codec/speechtokenizer/modules/seanet.py +414 -0
  252. xinference/thirdparty/indextts/utils/maskgct/models/codec/vevo/vevo_repcodec.py +592 -0
  253. xinference/thirdparty/indextts/utils/maskgct/models/tts/maskgct/ckpt/wav2vec2bert_stats.pt +0 -0
  254. xinference/thirdparty/indextts/utils/maskgct/models/tts/maskgct/llama_nar.py +650 -0
  255. xinference/thirdparty/indextts/utils/maskgct/models/tts/maskgct/maskgct_s2a.py +503 -0
  256. xinference/thirdparty/indextts/utils/maskgct_utils.py +259 -0
  257. xinference/thirdparty/indextts/utils/text_utils.py +41 -0
  258. xinference/thirdparty/indextts/utils/typical_sampling.py +30 -0
  259. xinference/thirdparty/indextts/utils/utils.py +93 -0
  260. xinference/thirdparty/indextts/utils/webui_utils.py +42 -0
  261. xinference/thirdparty/indextts/utils/xtransformers.py +1247 -0
  262. xinference/thirdparty/indextts/vqvae/__init__.py +0 -0
  263. xinference/thirdparty/indextts/vqvae/xtts_dvae.py +395 -0
  264. xinference/types.py +105 -2
  265. xinference/ui/gradio/media_interface.py +66 -8
  266. xinference/ui/web/ui/build/asset-manifest.json +6 -6
  267. xinference/ui/web/ui/build/index.html +1 -1
  268. xinference/ui/web/ui/build/static/css/main.5ea97072.css +2 -0
  269. xinference/ui/web/ui/build/static/css/main.5ea97072.css.map +1 -0
  270. xinference/ui/web/ui/build/static/js/main.d192c4f3.js +3 -0
  271. xinference/ui/web/ui/build/static/js/{main.1086c759.js.LICENSE.txt → main.d192c4f3.js.LICENSE.txt} +0 -7
  272. xinference/ui/web/ui/build/static/js/main.d192c4f3.js.map +1 -0
  273. xinference/ui/web/ui/node_modules/.cache/babel-loader/089c38df5f52348d212ed868dda5c518a42e0c2762caed4175487c0405830c35.json +1 -0
  274. xinference/ui/web/ui/node_modules/.cache/babel-loader/2b6e3a5b6eb2c5c5f2d007e68cd46c372721cd52bf63508adcdb21ecf79241d8.json +1 -0
  275. xinference/ui/web/ui/node_modules/.cache/babel-loader/2d887825fd07a56f872eda4420da25fba0b5b62a23bdcc6c6da1a5281887f618.json +1 -0
  276. xinference/ui/web/ui/node_modules/.cache/babel-loader/4001f9c3e64e73a4f2158826650c174a59d5e3f89ddecddf17cbb6bb688cc4ca.json +1 -0
  277. xinference/ui/web/ui/node_modules/.cache/babel-loader/4a7018a69e6b7f90fc313248c2aa86f2a8f1eb1db120df586047a8023549b44b.json +1 -0
  278. xinference/ui/web/ui/node_modules/.cache/babel-loader/64b12aaa1c1d1bf53820ada8a63769067c0ccc5aab46b32348eb1917ae7f2a11.json +1 -0
  279. xinference/ui/web/ui/node_modules/.cache/babel-loader/7275b67c78ec76ce38a686bb8a576d8c9cecf54e1573614c84859d538efb9be5.json +1 -0
  280. xinference/ui/web/ui/node_modules/.cache/babel-loader/a68b6ee3b31eadc051fb95ce8f8ccb9c2e8b52c60f290dbab545a1917e065282.json +1 -0
  281. xinference/ui/web/ui/node_modules/.cache/babel-loader/ae8771cc37693feb160fa8727231312a0c54ef2d1d1ca893be568cd70016ca7e.json +1 -0
  282. xinference/ui/web/ui/node_modules/.cache/babel-loader/bb4e8722d2d41d87f1fce3661bc8937bffe9448e231fc5f0462630849e851592.json +1 -0
  283. xinference/ui/web/ui/node_modules/.cache/babel-loader/be6aada1ee4adc2bbf65dbe56d17db32bb3b5478be05d6b527805a8ba6cfb2b9.json +1 -0
  284. xinference/ui/web/ui/node_modules/.cache/babel-loader/de91c352653c233cf0cb6674e6e04049a44fd0e1156560de65d5c4620521391e.json +1 -0
  285. xinference/ui/web/ui/node_modules/.cache/babel-loader/e85f7002fc325c83b9c9cd8a1619e5b3ebc701d30e811afc284b88e6ae710cb5.json +1 -0
  286. xinference/ui/web/ui/node_modules/.cache/babel-loader/e8b603c78944bf3d213639078bfe155ff5c0dfa4048a93cbb967cad6a4eb4ff3.json +1 -0
  287. xinference/ui/web/ui/node_modules/.cache/babel-loader/f05535160a508b2a312de546a6de234776c613db276479ea4253c0b1bdeeb7d6.json +1 -0
  288. xinference/ui/web/ui/node_modules/.cache/babel-loader/f09ba9e11106bd59a0de10cc85c55084097729dcab575f43dfcf07375961ed87.json +1 -0
  289. xinference/ui/web/ui/node_modules/.cache/babel-loader/f995a2425dfb0822fd07127f66ffe9b026883bc156b402eb8bd0b83d52460a93.json +1 -0
  290. xinference/ui/web/ui/node_modules/.package-lock.json +0 -33
  291. xinference/ui/web/ui/package-lock.json +0 -34
  292. xinference/ui/web/ui/package.json +0 -1
  293. xinference/ui/web/ui/src/locales/en.json +9 -3
  294. xinference/ui/web/ui/src/locales/ja.json +9 -3
  295. xinference/ui/web/ui/src/locales/ko.json +9 -3
  296. xinference/ui/web/ui/src/locales/zh.json +9 -3
  297. {xinference-1.9.1.dist-info → xinference-1.10.1.dist-info}/METADATA +24 -4
  298. {xinference-1.9.1.dist-info → xinference-1.10.1.dist-info}/RECORD +302 -76
  299. xinference/ui/web/ui/build/static/css/main.013f296b.css +0 -2
  300. xinference/ui/web/ui/build/static/css/main.013f296b.css.map +0 -1
  301. xinference/ui/web/ui/build/static/js/main.1086c759.js +0 -3
  302. xinference/ui/web/ui/build/static/js/main.1086c759.js.map +0 -1
  303. xinference/ui/web/ui/node_modules/.cache/babel-loader/0b0f77000cc1b482ca091cfbcae511dfe02f08916971645fad21d0b1234d04a2.json +0 -1
  304. xinference/ui/web/ui/node_modules/.cache/babel-loader/1c5f8ff423a7c9202bea60b15680f04b1e9964b445b0da3f86c6ff70cf24e797.json +0 -1
  305. xinference/ui/web/ui/node_modules/.cache/babel-loader/44ce7993e344980e3ed4f13e8f69237d4a5dfc60e37ca6b54f51f8ee1357bd67.json +0 -1
  306. xinference/ui/web/ui/node_modules/.cache/babel-loader/4aec1cc414ac3ebb3481d3d915e4db597d9127de813291346eacb8554ab170d4.json +0 -1
  307. xinference/ui/web/ui/node_modules/.cache/babel-loader/644cfec52f3c57a6e222ce60f112237a1efefe9835efd9aad857a685f53d8eed.json +0 -1
  308. xinference/ui/web/ui/node_modules/.cache/babel-loader/663436f72af53fe0d72394f56d003fa4e0bba489e5bb4e483fd34b00f84637f7.json +0 -1
  309. xinference/ui/web/ui/node_modules/.cache/babel-loader/69db82ca9bfe27fe417cc6cf2b1716b09be9c6f0cd198530f12bfc60e801bbcf.json +0 -1
  310. xinference/ui/web/ui/node_modules/.cache/babel-loader/85087e27618d740c236bf159f30e0219db443ab55f0997388eed5fde6f9e90cc.json +0 -1
  311. xinference/ui/web/ui/node_modules/.cache/babel-loader/88b07838348864aa86c672be3bbca1e9f58f6f3a2881b32070ec27f4e7b449d1.json +0 -1
  312. xinference/ui/web/ui/node_modules/.cache/babel-loader/8b8cd408ccfbe115acef27ccfa5b233da8597131a2a5712add13e1e4d5d4504b.json +0 -1
  313. xinference/ui/web/ui/node_modules/.cache/babel-loader/a23824fe746b9c6ca5eee9159b5764d1ff1653c1d856288c0f75c742bbb0023b.json +0 -1
  314. xinference/ui/web/ui/node_modules/.cache/babel-loader/a3eb18af328280b139693c9092dff2a0ef8c9a967e6c8956ceee0996611f1984.json +0 -1
  315. xinference/ui/web/ui/node_modules/.cache/babel-loader/bc1aacc65a102db325ca61bcd2f681e1ae22c36a1f1d98a6ff5e4ad49dc7544f.json +0 -1
  316. xinference/ui/web/ui/node_modules/.cache/babel-loader/c682fd521747c19dae437d83ce3235a306ce6b68e24a117bc57c27ebb8d1f1ca.json +0 -1
  317. xinference/ui/web/ui/node_modules/.cache/babel-loader/d5c224be7081f18cba1678b7874a9782eba895df004874ff8f243f94ba79942a.json +0 -1
  318. xinference/ui/web/ui/node_modules/.cache/babel-loader/f7f18bfb539b036a6a342176dd98a85df5057a884a8da978d679f2a0264883d0.json +0 -1
  319. xinference/ui/web/ui/node_modules/clipboard/.babelrc.json +0 -11
  320. xinference/ui/web/ui/node_modules/clipboard/.eslintrc.json +0 -24
  321. xinference/ui/web/ui/node_modules/clipboard/.prettierrc.json +0 -9
  322. xinference/ui/web/ui/node_modules/clipboard/bower.json +0 -18
  323. xinference/ui/web/ui/node_modules/clipboard/composer.json +0 -25
  324. xinference/ui/web/ui/node_modules/clipboard/package.json +0 -63
  325. xinference/ui/web/ui/node_modules/delegate/package.json +0 -31
  326. xinference/ui/web/ui/node_modules/good-listener/bower.json +0 -11
  327. xinference/ui/web/ui/node_modules/good-listener/package.json +0 -35
  328. xinference/ui/web/ui/node_modules/select/bower.json +0 -13
  329. xinference/ui/web/ui/node_modules/select/package.json +0 -29
  330. xinference/ui/web/ui/node_modules/tiny-emitter/package.json +0 -53
  331. {xinference-1.9.1.dist-info → xinference-1.10.1.dist-info}/WHEEL +0 -0
  332. {xinference-1.9.1.dist-info → xinference-1.10.1.dist-info}/entry_points.txt +0 -0
  333. {xinference-1.9.1.dist-info → xinference-1.10.1.dist-info}/licenses/LICENSE +0 -0
  334. {xinference-1.9.1.dist-info → xinference-1.10.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1 @@
1
+ {"ast":null,"code":"import _regeneratorRuntime from\"/home/runner/work/inference/inference/xinference/ui/web/ui/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js\";import _asyncToGenerator from\"/home/runner/work/inference/inference/xinference/ui/web/ui/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";import _toConsumableArray from\"/home/runner/work/inference/inference/xinference/ui/web/ui/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js\";import _slicedToArray from\"/home/runner/work/inference/inference/xinference/ui/web/ui/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";import{Clear,Done,FilterNone}from'@mui/icons-material';import{Tooltip}from'@mui/material';import React,{useState}from'react';import{useTranslation}from'react-i18next';import{copyToClipboard}from'../../../components/utils';import{jsx as _jsx}from\"react/jsx-runtime\";import{Fragment as _Fragment}from\"react/jsx-runtime\";var keyMap={model_size_in_billions:'--size-in-billions',download_hub:'--download_hub',enable_thinking:'--enable_thinking',reasoning_content:'--reasoning_content',lightning_version:'--lightning_version',lightning_model_path:'--lightning_model_path'};var CopyComponent=function CopyComponent(_ref){var getData=_ref.getData,predefinedKeys=_ref.predefinedKeys;var _useTranslation=useTranslation(),t=_useTranslation.t;var _useState=useState('pending'),_useState2=_slicedToArray(_useState,2),copyStatus=_useState2[0],setCopyStatus=_useState2[1];var generateCommandLineStatement=function generateCommandLineStatement(params){var args=Object.entries(params).filter(function(_ref2){var _ref3=_slicedToArray(_ref2,2),key=_ref3[0],value=_ref3[1];return predefinedKeys.includes(key)&&value!==null&&value!==undefined||!predefinedKeys.includes(key);}).flatMap(function(_ref4){var _ref5=_slicedToArray(_ref4,2),key=_ref5[0],value=_ref5[1];if(key==='gpu_idx'&&Array.isArray(value)){return\"--gpu-idx \".concat(value.join(','));}else if(key==='peft_model_config'&&typeof value==='object'){var peftArgs=[];if(value.lora_list){peftArgs.push.apply(peftArgs,_toConsumableArray(value.lora_list.map(function(lora){return\"--lora-modules \".concat(lora.lora_name,\" \").concat(lora.local_path);})));}if(value.image_lora_load_kwargs){peftArgs.push.apply(peftArgs,_toConsumableArray(Object.entries(value.image_lora_load_kwargs).map(function(_ref6){var _ref7=_slicedToArray(_ref6,2),k=_ref7[0],v=_ref7[1];return\"--image-lora-load-kwargs \".concat(k,\" \").concat(v);})));}if(value.image_lora_fuse_kwargs){peftArgs.push.apply(peftArgs,_toConsumableArray(Object.entries(value.image_lora_fuse_kwargs).map(function(_ref8){var _ref9=_slicedToArray(_ref8,2),k=_ref9[0],v=_ref9[1];return\"--image-lora-fuse-kwargs \".concat(k,\" \").concat(v);})));}return peftArgs;}else if(key==='quantization_config'&&typeof value==='object'){return Object.entries(value).map(function(_ref10){var _ref11=_slicedToArray(_ref10,2),k=_ref11[0],v=_ref11[1];return\"--quantization-config \".concat(k,\" \").concat(v===null?'none':v);});}else if(key==='envs'&&typeof value==='object'){return Object.entries(value).map(function(_ref12){var _ref13=_slicedToArray(_ref12,2),k=_ref13[0],v=_ref13[1];return\"--env \".concat(k,\" \").concat(v);});}else if(key==='virtual_env_packages'&&Array.isArray(value)){return value.map(function(pkg){return\"--virtual-env-package \".concat(pkg);});}else if(key==='enable_virtual_env'){if(value===true)return\"--enable-virtual-env\";if(value===false)return\"--disable-virtual-env\";return[];}else if(predefinedKeys.includes(key)){var _keyMap$key;var newKey=(_keyMap$key=keyMap[key])!==null&&_keyMap$key!==void 0?_keyMap$key:\"--\".concat(key.replace(/_/g,'-'));return\"\".concat(newKey,\" \").concat(value===false?'false':value===null?'none':value);}else{return\"--\".concat(key,\" \").concat(value===false?'false':value===null?'none':value);}}).join(' ');return\"xinference launch \".concat(args);};var showTooltipTemporarily=function showTooltipTemporarily(status){setCopyStatus(status);setTimeout(function(){return setCopyStatus('pending');},1500);};var handleCopy=/*#__PURE__*/function(){var _ref14=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(event){var text,textToCopy,success;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:text=generateCommandLineStatement(getData());event.stopPropagation();textToCopy=String(text!==null&&text!==void 0?text:'');_context.next=5;return copyToClipboard(textToCopy);case 5:success=_context.sent;showTooltipTemporarily(success?'success':'failed');case 7:case\"end\":return _context.stop();}},_callee);}));return function handleCopy(_x){return _ref14.apply(this,arguments);};}();return/*#__PURE__*/_jsx(_Fragment,{children:copyStatus==='pending'?/*#__PURE__*/_jsx(Tooltip,{title:t('launchModel.copyToCommandLine'),placement:\"top\",children:/*#__PURE__*/_jsx(FilterNone,{className:\"copyToCommandLine\",onClick:handleCopy})}):copyStatus==='success'?/*#__PURE__*/_jsx(Done,{fontSize:\"small\",color:\"success\"}):/*#__PURE__*/_jsx(Clear,{fontSize:\"small\",color:\"error\"})});};export default CopyComponent;","map":{"version":3,"names":["Clear","Done","FilterNone","Tooltip","React","useState","useTranslation","copyToClipboard","jsx","_jsx","Fragment","_Fragment","keyMap","model_size_in_billions","download_hub","enable_thinking","reasoning_content","lightning_version","lightning_model_path","CopyComponent","_ref","getData","predefinedKeys","_useTranslation","t","_useState","_useState2","_slicedToArray","copyStatus","setCopyStatus","generateCommandLineStatement","params","args","Object","entries","filter","_ref2","_ref3","key","value","includes","undefined","flatMap","_ref4","_ref5","Array","isArray","concat","join","peftArgs","lora_list","push","apply","_toConsumableArray","map","lora","lora_name","local_path","image_lora_load_kwargs","_ref6","_ref7","k","v","image_lora_fuse_kwargs","_ref8","_ref9","_ref10","_ref11","_ref12","_ref13","pkg","_keyMap$key","newKey","replace","showTooltipTemporarily","status","setTimeout","handleCopy","_ref14","_asyncToGenerator","_regeneratorRuntime","mark","_callee","event","text","textToCopy","success","wrap","_callee$","_context","prev","next","stopPropagation","String","sent","stop","_x","arguments","children","title","placement","className","onClick","fontSize","color"],"sources":["/home/runner/work/inference/inference/xinference/ui/web/ui/src/scenes/launch_model/components/commandBuilder.js"],"sourcesContent":["import { Clear, Done, FilterNone } from '@mui/icons-material'\nimport { Tooltip } from '@mui/material'\nimport React, { useState } from 'react'\nimport { useTranslation } from 'react-i18next'\n\nimport { copyToClipboard } from '../../../components/utils'\n\nconst keyMap = {\n model_size_in_billions: '--size-in-billions',\n download_hub: '--download_hub',\n enable_thinking: '--enable_thinking',\n reasoning_content: '--reasoning_content',\n lightning_version: '--lightning_version',\n lightning_model_path: '--lightning_model_path',\n}\n\nconst CopyComponent = ({ getData, predefinedKeys }) => {\n const { t } = useTranslation()\n const [copyStatus, setCopyStatus] = useState('pending')\n\n const generateCommandLineStatement = (params) => {\n const args = Object.entries(params)\n .filter(\n ([key, value]) =>\n (predefinedKeys.includes(key) &&\n value !== null &&\n value !== undefined) ||\n !predefinedKeys.includes(key)\n )\n .flatMap(([key, value]) => {\n if (key === 'gpu_idx' && Array.isArray(value)) {\n return `--gpu-idx ${value.join(',')}`\n } else if (key === 'peft_model_config' && typeof value === 'object') {\n const peftArgs = []\n if (value.lora_list) {\n peftArgs.push(\n ...value.lora_list.map(\n (lora) => `--lora-modules ${lora.lora_name} ${lora.local_path}`\n )\n )\n }\n if (value.image_lora_load_kwargs) {\n peftArgs.push(\n ...Object.entries(value.image_lora_load_kwargs).map(\n ([k, v]) => `--image-lora-load-kwargs ${k} ${v}`\n )\n )\n }\n if (value.image_lora_fuse_kwargs) {\n peftArgs.push(\n ...Object.entries(value.image_lora_fuse_kwargs).map(\n ([k, v]) => `--image-lora-fuse-kwargs ${k} ${v}`\n )\n )\n }\n return peftArgs\n } else if (key === 'quantization_config' && typeof value === 'object') {\n return Object.entries(value).map(\n ([k, v]) => `--quantization-config ${k} ${v === null ? 'none' : v}`\n )\n } else if (key === 'envs' && typeof value === 'object') {\n return Object.entries(value).map(([k, v]) => `--env ${k} ${v}`)\n } else if (key === 'virtual_env_packages' && Array.isArray(value)) {\n return value.map((pkg) => `--virtual-env-package ${pkg}`)\n } else if (key === 'enable_virtual_env') {\n if (value === true) return `--enable-virtual-env`\n if (value === false) return `--disable-virtual-env`\n return []\n } else if (predefinedKeys.includes(key)) {\n const newKey = keyMap[key] ?? `--${key.replace(/_/g, '-')}`\n return `${newKey} ${\n value === false ? 'false' : value === null ? 'none' : value\n }`\n } else {\n return `--${key} ${\n value === false ? 'false' : value === null ? 'none' : value\n }`\n }\n })\n .join(' ')\n\n return `xinference launch ${args}`\n }\n\n const showTooltipTemporarily = (status) => {\n setCopyStatus(status)\n setTimeout(() => setCopyStatus('pending'), 1500)\n }\n\n const handleCopy = async (event) => {\n const text = generateCommandLineStatement(getData())\n event.stopPropagation()\n const textToCopy = String(text ?? '')\n const success = await copyToClipboard(textToCopy)\n showTooltipTemporarily(success ? 'success' : 'failed')\n }\n\n return (\n <>\n {copyStatus === 'pending' ? (\n <Tooltip title={t('launchModel.copyToCommandLine')} placement=\"top\">\n <FilterNone className=\"copyToCommandLine\" onClick={handleCopy} />\n </Tooltip>\n ) : copyStatus === 'success' ? (\n <Done fontSize=\"small\" color=\"success\" />\n ) : (\n <Clear fontSize=\"small\" color=\"error\" />\n )}\n </>\n )\n}\n\nexport default CopyComponent\n"],"mappings":"wlBAAA,OAASA,KAAK,CAAEC,IAAI,CAAEC,UAAU,KAAQ,qBAAqB,CAC7D,OAASC,OAAO,KAAQ,eAAe,CACvC,MAAO,CAAAC,KAAK,EAAIC,QAAQ,KAAQ,OAAO,CACvC,OAASC,cAAc,KAAQ,eAAe,CAE9C,OAASC,eAAe,KAAQ,2BAA2B,QAAAC,GAAA,IAAAC,IAAA,gCAAAC,QAAA,IAAAC,SAAA,yBAE3D,GAAM,CAAAC,M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AA,CAAAK,IAAA,CACbpB,sBAAsB,CAACY,OAAO,CAAG,SAAS,CAAG,QAAQ,CAAC,yBAAAG,QAAA,CAAAM,IAAA,MAAAb,OAAA,GACvD,kBANK,CAAAL,UAAUA,CAAAmB,EAAA,SAAAlB,MAAA,CAAA1B,KAAA,MAAA6C,SAAA,OAMf,CAED,mBACExF,IAAA,CAAAE,SAAA,EAAAuF,QAAA,CACGtE,UAAU,GAAK,SAAS,cACvBnB,IAAA,CAACN,OAAO,EAACgG,KAAK,CAAE3E,CAAC,CAAC,+BAA+B,CAAE,CAAC4E,SAAS,CAAC,KAAK,CAAAF,QAAA,cACjEzF,IAAA,CAACP,UAAU,EAACmG,SAAS,CAAC,mBAAmB,CAACC,OAAO,CAAEzB,UAAW,CAAE,CAAC,CAC1D,CAAC,CACRjD,UAAU,GAAK,SAAS,cAC1BnB,IAAA,CAACR,IAAI,EAACsG,QAAQ,CAAC,OAAO,CAACC,KAAK,CAAC,SAAS,CAAE,CAAC,cAEzC/F,IAAA,CAACT,KAAK,EAACuG,QAAQ,CAAC,OAAO,CAACC,KAAK,CAAC,OAAO,CAAE,CACxC,CACD,CAAC,CAEP,CAAC,CAED,cAAe,CAAArF,aAAa","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
@@ -0,0 +1 @@
1
+ {"ast":null,"code":"import _regeneratorRuntime from\"/home/runner/work/inference/inference/xinference/ui/web/ui/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js\";import _asyncToGenerator from\"/home/runner/work/inference/inference/xinference/ui/web/ui/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";export var getEndpoint=function getEndpoint(){var endPoint='';if(!process.env.NODE_ENV||process.env.NODE_ENV==='development'){endPoint='http://127.0.0.1:9997';}else{var fullUrl=window.location.href;endPoint=fullUrl.split('/ui')[0];}return endPoint;};export var isValidBearerToken=function isValidBearerToken(token){return token!==''&&token!==undefined&&token!==null&&token.length>10;};export var toReadableSize=function toReadableSize(size){var res_size=size/Math.pow(1024.0,2);return res_size.toFixed(2)+'MiB';};export function copyToClipboard(_x){return _copyToClipboard.apply(this,arguments);}function _copyToClipboard(){_copyToClipboard=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(text){var textArea,success;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:if(!(navigator.clipboard&&window.isSecureContext)){_context.next=12;break;}_context.prev=1;_context.next=4;return navigator.clipboard.writeText(text);case 4:return _context.abrupt(\"return\",true);case 7:_context.prev=7;_context.t0=_context[\"catch\"](1);return _context.abrupt(\"return\",false);case 10:_context.next=23;break;case 12:textArea=document.createElement('textarea');textArea.value=text;textArea.style.position='absolute';textArea.style.left='-9999px';document.body.appendChild(textArea);textArea.select();textArea.setSelectionRange(0,textArea.value.length);success=false;try{success=document.execCommand('copy');}catch(_unused2){success=false;}document.body.removeChild(textArea);return _context.abrupt(\"return\",success);case 23:case\"end\":return _context.stop();}},_callee,null,[[1,7]]);}));return _copyToClipboard.apply(this,arguments);}","map":{"version":3,"names":["getEndpoint","endPoint","process","env","NODE_ENV","fullUrl","window","location","href","split","isValidBearerToken","token","undefined","length","toReadableSize","size","res_size","Math","pow","toFixed","copyToClipboard","_x","_copyToClipboard","apply","arguments","_asyncToGenerator","_regeneratorRuntime","mark","_callee","text","textArea","success","wrap","_callee$","_context","prev","next","navigator","clipboard","isSecureContext","writeText","abrupt","t0","document","createElement","value","style","position","left","body","appendChild","select","setSelectionRange","execCommand","_unused2","removeChild","stop"],"sources":["/home/runner/work/inference/inference/xinference/ui/web/ui/src/components/utils.js"],"sourcesContent":["export const getEndpoint = () => {\n let endPoint = ''\n if (!process.env.NODE_ENV || process.env.NODE_ENV === 'development') {\n endPoint = 'http://127.0.0.1:9997'\n } else {\n const fullUrl = window.location.href\n endPoint = fullUrl.split('/ui')[0]\n }\n return endPoint\n}\n\nexport const isValidBearerToken = (token) => {\n return (\n token !== '' && token !== undefined && token !== null && token.length > 10\n )\n}\n\nexport const toReadableSize = (size) => {\n const res_size = size / 1024.0 ** 2\n return res_size.toFixed(2) + 'MiB'\n}\n\nexport async function copyToClipboard(text) {\n if (navigator.clipboard && window.isSecureContext) {\n try {\n await navigator.clipboard.writeText(text)\n return true\n } catch {\n return false\n }\n } else {\n const textArea = document.createElement('textarea')\n textArea.value = text\n textArea.style.position = 'absolute'\n textArea.style.left = '-9999px'\n document.body.appendChild(textArea)\n textArea.select()\n textArea.setSelectionRange(0, textArea.value.length)\n\n let success = false\n try {\n success = document.execCommand('copy')\n } catch {\n success = false\n }\n\n document.body.removeChild(textArea)\n return success\n }\n}\n"],"mappings":"gTAAA,MAAO,IAAM,CAAAA,WAAW,CAAG,QAAd,CAAAA,WAAWA,CAAA,CAAS,CAC/B,GAAI,CAAAC,QAAQ,CAAG,EAAE,CACjB,GAAI,CAACC,OAAO,CAACC,GAAG,CAACC,QAAQ,EAAIF,OAAO,CAACC,GAAG,CAACC,QAAQ,GAAK,aAAa,CAAE,CACnEH,QAAQ,CAAG,uBAAuB,CACpC,CAAC,IAAM,CACL,GAAM,CAAAI,OAAO,CAAGC,MAAM,CAACC,QAAQ,CAACC,IAAI,CACpCP,QAAQ,CAAGI,OAAO,CAACI,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CACpC,CACA,MAAO,CAAAR,QAAQ,CACjB,CAAC,CAED,MAAO,IAAM,CAAAS,kBAAkB,CAAG,QAArB,CAAAA,kBAAkBA,CAAIC,KAAK,CAAK,CAC3C,MACE,CAAAA,KAAK,GAAK,EAAE,EAAIA,KAAK,GAAKC,SAAS,EAAID,KAAK,GAAK,IAAI,EAAIA,KAAK,CAACE,MAAM,CAAG,EAAE,CAE9E,CAAC,CAED,MAAO,IAAM,CAAAC,cAAc,CAAG,QAAjB,CAAAA,cAAcA,CAAIC,IAAI,CAAK,CACtC,GAAM,CAAAC,QAAQ,CAAGD,IAAI,CAAAE,IAAA,CAAAC,GAAA,CAAG,MAAM,CAAI,CAAC,EAC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,WAAW,CAAC,MAAM,CAAC,CACxC,CAAE,MAAAC,QAAA,CAAM,CACNvB,OAAO,CAAG,KAAK,CACjB,CAEAY,QAAQ,CAACM,IAAI,CAACM,WAAW,CAACzB,QAAQ,CAAC,QAAAI,QAAA,CAAAO,MAAA,UAC5BV,OAAO,2BAAAG,QAAA,CAAAsB,IAAA,MAAA5B,OAAA,gBAEjB,UAAAN,gBAAA,CAAAC,KAAA,MAAAC,SAAA","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
@@ -0,0 +1 @@
1
+ {"ast":null,"code":"import{WarningAmber}from'@mui/icons-material';import{Button,Dialog,DialogActions,DialogContent,DialogContentText,DialogTitle}from'@mui/material';import React from'react';import{useTranslation}from'react-i18next';import{jsx as _jsx}from\"react/jsx-runtime\";import{jsxs as _jsxs}from\"react/jsx-runtime\";var DeleteDialog=function DeleteDialog(_ref){var text=_ref.text,isDelete=_ref.isDelete,onHandleIsDelete=_ref.onHandleIsDelete,onHandleDelete=_ref.onHandleDelete;var _useTranslation=useTranslation(),t=_useTranslation.t;return/*#__PURE__*/_jsxs(Dialog,{open:isDelete,\"aria-labelledby\":\"alert-dialog-title\",\"aria-describedby\":\"alert-dialog-description\",children:[/*#__PURE__*/_jsx(DialogTitle,{id:\"alert-dialog-title\",children:t('components.warning')}),/*#__PURE__*/_jsx(DialogContent,{children:/*#__PURE__*/_jsxs(DialogContentText,{className:\"deleteDialog\",id:\"alert-dialog-description\",children:[/*#__PURE__*/_jsx(WarningAmber,{className:\"warningIcon\"}),/*#__PURE__*/_jsx(\"p\",{children:text})]})}),/*#__PURE__*/_jsxs(DialogActions,{children:[/*#__PURE__*/_jsx(Button,{onClick:function onClick(){onHandleIsDelete();},children:t('components.cancel')}),/*#__PURE__*/_jsx(Button,{onClick:onHandleDelete,autoFocus:true,children:t('components.ok')})]})]});};export default DeleteDialog;","map":{"version":3,"names":["WarningAmber","Button","Dialog","DialogActions","DialogContent","DialogContentText","DialogTitle","React","useTranslation","jsx","_jsx","jsxs","_jsxs","DeleteDialog","_ref","text","isDelete","onHandleIsDelete","onHandleDelete","_useTranslation","t","open","children","id","className","onClick","autoFocus"],"sources":["/home/runner/work/inference/inference/xinference/ui/web/ui/src/components/deleteDialog.js"],"sourcesContent":["import { WarningAmber } from '@mui/icons-material'\nimport {\n Button,\n Dialog,\n DialogActions,\n DialogContent,\n DialogContentText,\n DialogTitle,\n} from '@mui/material'\nimport React from 'react'\nimport { useTranslation } from 'react-i18next'\n\nconst DeleteDialog = ({ text, isDelete, onHandleIsDelete, onHandleDelete }) => {\n const { t } = useTranslation()\n return (\n <Dialog\n open={isDelete}\n aria-labelledby=\"alert-dialog-title\"\n aria-describedby=\"alert-dialog-description\"\n >\n <DialogTitle id=\"alert-dialog-title\">\n {t('components.warning')}\n </DialogTitle>\n <DialogContent>\n <DialogContentText\n className=\"deleteDialog\"\n id=\"alert-dialog-description\"\n >\n <WarningAmber className=\"warningIcon\" />\n <p>{text}</p>\n </DialogContentText>\n </DialogContent>\n <DialogActions>\n <Button\n onClick={() => {\n onHandleIsDelete()\n }}\n >\n {t('components.cancel')}\n </Button>\n <Button onClick={onHandleDelete} autoFocus>\n {t('components.ok')}\n </Button>\n </DialogActions>\n </Dialog>\n )\n}\n\nexport default DeleteDialog\n"],"mappings":"AAAA,OAASA,YAAY,KAAQ,qBAAqB,CAClD,OACEC,MAAM,CACNC,MAAM,CACNC,aAAa,CACbC,aAAa,CACbC,iBAAiB,CACjBC,WAAW,KACN,eAAe,CACtB,MAAO,CAAAC,KAAK,KAAM,OAAO,CACzB,OAASC,cAAc,KAAQ,eAAe,QAAAC,GAAA,IAAAC,IAAA,gCAAAC,IAAA,IAAAC,KAAA,yBAE9C,GAAM,CAAAC,YAAY,CAAG,QAAf,CAAAA,YAAYA,CAAAC,IAAA,CAA6D,IAAvD,CAAAC,IAAI,CAAAD,IAAA,CAAJC,IAAI,CAAEC,QAAQ,CAAAF,IAAA,CAARE,QAAQ,CAAEC,gBAAgB,CAAAH,IAAA,CAAhBG,gBAAgB,CAAEC,cAAc,CAAAJ,IAAA,CAAdI,cAAc,CACtE,IAAAC,eAAA,CAAcX,cAAc,CAAC,CAAC,CAAtBY,CAAC,CAAAD,eAAA,CAADC,CAAC,CACT,mBACER,KAAA,CAACV,MAAM,EACLmB,IAAI,CAAEL,QAAS,CACf,kBAAgB,oBAAoB,CACpC,mBAAiB,0BAA0B,CAAAM,QAAA,eAE3CZ,IAAA,CAACJ,WAAW,EAACiB,EAAE,CAAC,oBAAoB,CAAAD,QAAA,CACjCF,CAAC,CAAC,oBAAoB,CAAC,CACb,CAAC,cACdV,IAAA,CAACN,aAAa,EAAAkB,QAAA,cACZV,KAAA,CAACP,iBAAiB,EAChBmB,SAAS,CAAC,cAAc,CACxBD,EAAE,CAAC,0BAA0B,CAAAD,QAAA,eAE7BZ,IAAA,CAACV,YAAY,EAACwB,SAAS,CAAC,aAAa,CAAE,CAAC,cACxCd,IAAA,MAAAY,QAAA,CAAIP,IAAI,CAAI,CAAC,EACI,CAAC,CACP,CAAC,cAChBH,KAAA,CAACT,aAAa,EAAAmB,QAAA,eACZZ,IAAA,CAACT,MAAM,EACLwB,OAAO,CAAE,SAAAA,QAAA,CAAM,CACbR,gBAAgB,CAAC,CAAC,CACpB,CAAE,CAAAK,QAAA,CAEDF,CAAC,CAAC,mBAAmB,CAAC,CACjB,CAAC,cACTV,IAAA,CAACT,MAAM,EAACwB,OAAO,CAAEP,cAAe,CAACQ,SAAS,MAAAJ,QAAA,CACvCF,CAAC,CAAC,eAAe,CAAC,CACb,CAAC,EACI,CAAC,EACV,CAAC,CAEb,CAAC,CAED,cAAe,CAAAP,YAAY","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
@@ -0,0 +1 @@
1
+ {"ast":null,"code":"import _toConsumableArray from\"/home/runner/work/inference/inference/xinference/ui/web/ui/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js\";import _slicedToArray from\"/home/runner/work/inference/inference/xinference/ui/web/ui/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";import'./styles/modelCardStyle.css';import{ChatOutlined,Delete,EditNote,EditNoteOutlined,Grade,HelpCenterOutlined,StarBorder}from'@mui/icons-material';import{Box,Chip,IconButton,Paper,Stack,Tooltip,Typography}from'@mui/material';import React,{useContext,useState}from'react';import{useTranslation}from'react-i18next';import{useNavigate}from'react-router-dom';import{ApiContext}from'../../components/apiContext';import DeleteDialog from'../../components/deleteDialog';import fetchWrapper from'../../components/fetchWrapper';import TitleTypography from'../../components/titleTypography';import CachedListDialog from'./components/cachedListDialog';import EditCustomModel from'./components/editCustomModelDialog';import{jsx as _jsx}from\"react/jsx-runtime\";import{Fragment as _Fragment}from\"react/jsx-runtime\";import{jsxs as _jsxs}from\"react/jsx-runtime\";var modelAbilityIcons={chat:/*#__PURE__*/_jsx(ChatOutlined,{}),generate:/*#__PURE__*/_jsx(EditNoteOutlined,{}),default:/*#__PURE__*/_jsx(HelpCenterOutlined,{})};var ModelCard=function ModelCard(_ref){var _modelData$model_abil,_modelData$model_abil2,_modelData$model_abil3,_modelData$model_abil4;var modelData=_ref.modelData,modelType=_ref.modelType,_ref$is_custom=_ref.is_custom,is_custom=_ref$is_custom===void 0?false:_ref$is_custom,onGetCollectionArr=_ref.onGetCollectionArr,onUpdate=_ref.onUpdate,onClick=_ref.onClick;var navigate=useNavigate();var _useTranslation=useTranslation(),t=_useTranslation.t;var _useContext=useContext(ApiContext),setErrorMsg=_useContext.setErrorMsg;var _useState=useState(false),_useState2=_slicedToArray(_useState,2),isHovered=_useState2[0],setIsHovered=_useState2[1];var _useState3=useState(false),_useState4=_slicedToArray(_useState3,2),isDeleteCustomModel=_useState4[0],setIsDeleteCustomModel=_useState4[1];var _useState5=useState(false),_useState6=_slicedToArray(_useState5,2),isJsonShow=_useState6[0],setIsJsonShow=_useState6[1];var _useState7=useState(false),_useState8=_slicedToArray(_useState7,2),isOpenCachedList=_useState8[0],setIsOpenCachedList=_useState8[1];var isCached=function isCached(spec){if(Array.isArray(spec.cache_status)){return spec.cache_status.some(function(cs){return cs;});}else{return spec.cache_status===true;}};// Handle favorite feature\nvar handleCollection=function handleCollection(shouldAdd){var collectionArr=JSON.parse(localStorage.getItem('collectionArr'))||[];var updatedCollection=shouldAdd?[].concat(_toConsumableArray(collectionArr),[modelData.model_name]):collectionArr.filter(function(item){return item!==modelData.model_name;});localStorage.setItem('collectionArr',JSON.stringify(updatedCollection));onGetCollectionArr===null||onGetCollectionArr===void 0?void 0:onGetCollectionArr(updatedCollection);};// Retrieve model language array\nvar getModelLanguages=function getModelLanguages(){// Check possible language field names\nvar lang=(modelData===null||modelData===void 0?void 0:modelData.model_lang)||(modelData===null||modelData===void 0?void 0:modelData.language);if(!lang)return[];return Array.isArray(lang)?lang:[lang];};// Render generic chip component\nvar renderChips=function renderChips(_ref2){var items=_ref2.items,_ref2$variant=_ref2.variant,variant=_ref2$variant===void 0?'default':_ref2$variant,_onClick=_ref2.onClick;if(!items||items.length===0)return null;return items.map(function(item){return/*#__PURE__*/_jsx(Chip,{label:item,size:\"small\",variant:variant,onClick:function onClick(e){e===null||e===void 0?void 0:e.stopPropagation();_onClick===null||_onClick===void 0?void 0:_onClick(e);}},item);});};var renderAbilityChips=function renderAbilityChips(){var abilities=modelData===null||modelData===void 0?void 0:modelData.model_ability;if(!abilities)return null;var abilityArray=Array.isArray(abilities)?abilities:[abilities];return renderChips({items:abilityArray});};var renderLanguageChips=function renderLanguageChips(){var languages=getModelLanguages();return renderChips({items:languages,variant:'outlined'});};var renderCacheChip=function renderCacheChip(){var _modelData$model_spec;var hasCachedSpecs=modelData===null||modelData===void 0?void 0:(_modelData$model_spec=modelData.model_specs)===null||_modelData$model_spec===void 0?void 0:_modelData$model_spec.some(function(spec){return isCached(spec);});if(!hasCachedSpecs)return null;return/*#__PURE__*/_jsx(Chip,{label:t('launchModel.manageCachedModels'),variant:\"outlined\",color:\"primary\",size:\"small\",deleteIcon:/*#__PURE__*/_jsx(EditNote,{}),onDelete:handleOpenCachedList,onClick:function onClick(e){e===null||e===void 0?void 0:e.stopPropagation();handleOpenCachedList();}});};// Check if already favorited\nvar isFavorite=function isFavorite(){var collectionArr=JSON.parse(localStorage.getItem('collectionArr'))||[];return collectionArr.includes(modelData.model_name);};// Render favorite/unfavorite button\nvar renderFavoriteButton=function renderFavoriteButton(){var favorite=isFavorite();var icon=favorite?/*#__PURE__*/_jsx(Grade,{style:{color:'rgb(255, 206, 0)'}}):/*#__PURE__*/_jsx(StarBorder,{});var tooltipTitle=favorite?t('launchModel.unfavorite'):t('launchModel.favorite');return/*#__PURE__*/_jsx(Tooltip,{title:tooltipTitle,placement:\"top\",children:/*#__PURE__*/_jsx(IconButton,{\"aria-label\":favorite?'collection':'cancellation-of-collections',onClick:function onClick(e){e===null||e===void 0?void 0:e.stopPropagation();handleCollection(!favorite);},children:icon})});};// Render custom model action buttons\nvar renderCustomModelActions=function renderCustomModelActions(){return/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(Tooltip,{title:t('launchModel.edit'),placement:\"top\",children:/*#__PURE__*/_jsx(IconButton,{\"aria-label\":\"show\",onClick:function onClick(e){e===null||e===void 0?void 0:e.stopPropagation();setIsJsonShow(true);},children:/*#__PURE__*/_jsx(EditNote,{})})}),/*#__PURE__*/_jsx(Tooltip,{title:t('launchModel.delete'),placement:\"top\",children:/*#__PURE__*/_jsx(IconButton,{\"aria-label\":\"delete\",onClick:function onClick(e){e===null||e===void 0?void 0:e.stopPropagation();setIsDeleteCustomModel(true);},children:/*#__PURE__*/_jsx(Delete,{})})})]});};var MetricItem=function MetricItem(_ref3){var value=_ref3.value,label=_ref3.label,icon=_ref3.icon;return/*#__PURE__*/_jsxs(Box,{sx:{display:'flex',flexDirection:'column',alignItems:'center',minWidth:80},children:[icon&&/*#__PURE__*/React.cloneElement(icon,{sx:{fontSize:20,mb:0.5}}),value&&/*#__PURE__*/_jsx(Typography,{variant:\"body2\",sx:{fontWeight:600,fontSize:'1.2em'},children:value}),/*#__PURE__*/_jsx(Typography,{variant:\"caption\",color:\"text.secondary\",sx:{fontWeight:600,fontSize:'0.8em'},children:label})]});};// Delete custom model\nvar handeCustomDelete=function handeCustomDelete(e){e.stopPropagation();var subType=sessionStorage.getItem('subType').split('/');if(subType){subType[3];fetchWrapper.delete(\"/v1/model_registrations/\".concat(subType[3]==='llm'?'LLM':subType[3],\"/\").concat(modelData.model_name)).then(function(){onUpdate(subType[3]==='llm'?'LLM':subType[3]);setIsDeleteCustomModel(false);}).catch(function(error){console.error(error);if(error.response.status!==403){setErrorMsg(error.message);}});}};var handleJsonDataPresentation=function handleJsonDataPresentation(){var arr=sessionStorage.getItem('subType').split('/');sessionStorage.setItem('registerModelType',\"/register_model/\".concat(arr[arr.length-1]));sessionStorage.setItem('customJsonData',JSON.stringify(modelData));navigate(\"/register_model/\".concat(arr[arr.length-1],\"/\").concat(modelData.model_name));};var handleOpenCachedList=function handleOpenCachedList(){setIsOpenCachedList(true);};return/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(Tooltip,{title:modelData.model_name,placement:\"top\",children:/*#__PURE__*/_jsx(Paper,{className:\"container\",onMouseEnter:function onMouseEnter(){return setIsHovered(true);},onMouseLeave:function onMouseLeave(){return setIsHovered(false);},elevation:isHovered?24:4,onClick:onClick,children:/*#__PURE__*/_jsxs(Box,{className:\"descriptionCard\",children:[/*#__PURE__*/_jsxs(Box,{children:[/*#__PURE__*/_jsxs(Box,{className:\"cardTitle\",children:[/*#__PURE__*/_jsx(TitleTypography,{value:modelData.model_name}),/*#__PURE__*/_jsx(Box,{className:\"iconButtonBox\",children:is_custom?renderCustomModelActions():renderFavoriteButton()})]}),/*#__PURE__*/_jsxs(Stack,{spacing:1,direction:\"row\",useFlexGap:true,flexWrap:\"wrap\",sx:{marginLeft:1},children:[renderAbilityChips(),renderLanguageChips(),renderCacheChip()]})]}),/*#__PURE__*/_jsx(Box,{sx:{flex:1,display:'flex',justifyContent:'center',alignItems:'center',minHeight:24,color:'text.secondary',fontSize:'0.875rem',lineHeight:1.5},children:modelData.model_description?/*#__PURE__*/_jsx(Box,{component:\"p\",sx:{m:0,display:'-webkit-box',WebkitLineClamp:4,WebkitBoxOrient:'vertical',overflow:'hidden',textOverflow:'ellipsis',fontSize:'14px',padding:'0px 10px'},title:modelData.model_description,children:modelData.model_description}):isHovered&&/*#__PURE__*/_jsx(Box,{component:\"p\",sx:{m:0,textAlign:'center',fontStyle:'italic'},children:t('launchModel.clickToLaunchModel')})}),modelType==='LLM'&&/*#__PURE__*/_jsxs(Box,{sx:{display:'flex',justifyContent:'space-between',alignItems:'center'},children:[/*#__PURE__*/_jsx(MetricItem,{value:\"\".concat(Math.floor(modelData.context_length/1000),\"K\"),label:t('launchModel.contextLength')}),/*#__PURE__*/_jsx(MetricItem,{icon:(_modelData$model_abil=modelData.model_ability)!==null&&_modelData$model_abil!==void 0&&_modelData$model_abil.includes('chat')?modelAbilityIcons.chat:(_modelData$model_abil2=modelData.model_ability)!==null&&_modelData$model_abil2!==void 0&&_modelData$model_abil2.includes('generate')?modelAbilityIcons.generate:modelAbilityIcons.default,label:(_modelData$model_abil3=modelData.model_ability)!==null&&_modelData$model_abil3!==void 0&&_modelData$model_abil3.includes('chat')?t('launchModel.chatModel'):(_modelData$model_abil4=modelData.model_ability)!==null&&_modelData$model_abil4!==void 0&&_modelData$model_abil4.includes('generate')?t('launchModel.generateModel'):t('launchModel.otherModel')})]}),(modelData.dimensions||modelData.max_tokens)&&/*#__PURE__*/_jsxs(Box,{sx:{display:'flex',justifyContent:'space-between',alignItems:'center'},children:[/*#__PURE__*/_jsx(Box,{children:modelData.dimensions&&/*#__PURE__*/_jsx(MetricItem,{value:modelData.dimensions,label:t('launchModel.dimensions')})}),/*#__PURE__*/_jsx(Box,{children:modelData.max_tokens&&/*#__PURE__*/_jsx(MetricItem,{value:modelData.max_tokens,label:t('launchModel.maxTokens')})})]})]})})}),/*#__PURE__*/_jsx(DeleteDialog,{text:t('launchModel.confirmDeleteCustomModel'),isDelete:isDeleteCustomModel,onHandleIsDelete:function onHandleIsDelete(){return setIsDeleteCustomModel(false);},onHandleDelete:handeCustomDelete}),/*#__PURE__*/_jsx(CachedListDialog,{open:isOpenCachedList,modelData:modelData,modelType:modelType,onClose:function onClose(){return setIsOpenCachedList(false);},onUpdate:onUpdate}),/*#__PURE__*/_jsx(EditCustomModel,{open:isJsonShow,modelData:modelData,onClose:function onClose(){return setIsJsonShow(false);},handleJsonDataPresentation:handleJsonDataPresentation})]});};export default ModelCard;","map":{"version":3,"names":["ChatOutlined","Delete","EditNote","EditNoteOutlined","Grade","HelpCenterOutlined","StarBorder","Box","Chip","IconButton","Paper","Stack","Tooltip","Typography","React","useContext","useState","useTranslation","useNavigate","ApiContext","DeleteDialog","fetchWrapper","TitleTypography","CachedListDialog","EditCustomModel","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","modelAbilityIcons","chat","generate","default","ModelCard","_ref","_modelData$model_abil","_modelData$model_abil2","_modelData$model_abil3","_modelData$model_abil4","modelData","modelType","_ref$is_custom","is_custom","onGetCollectionArr","onUpdate","onClick","navigate","_useTranslation","t","_useContext","setErrorMsg","_useState","_useState2","_slicedToArray","isHovered","setIsHovered","_useState3","_useState4","isDeleteCustomModel","setIsDeleteCustomModel","_useState5","_useState6","isJsonShow","setIsJsonShow","_useState7","_useState8","isOpenCachedList","setIsOpenCachedList","isCached","spec","Array","isArray","cache_status","some","cs","handleCollection","shouldAdd","collectionArr","JSON","parse","localStorage","getItem","updatedCollection","concat","_toConsumableArray","model_name","filter","item","setItem","stringify","getModelLanguages","lang","model_lang","language","renderChips","_ref2","items","_ref2$variant","variant","length","map","label","size","e","stopPropagation","renderAbilityChips","abilities","model_ability","abilityArray","renderLanguageChips","languages","renderCacheChip","_modelData$model_spec","hasCachedSpecs","model_specs","color","deleteIcon","onDelete","handleOpenCachedList","isFavorite","includes","renderFavoriteButton","favorite","icon","style","tooltipTitle","title","placement","children","renderCustomModelActions","MetricItem","_ref3","value","sx","display","flexDirection","alignItems","minWidth","cloneElement","fontSize","mb","fontWeight","handeCustomDelete","subType","sessionStorage","split","delete","then","catch","error","console","response","status","message","handleJsonDataPresentation","arr","className","onMouseEnter","onMouseLeave","elevation","spacing","direction","useFlexGap","flexWrap","marginLeft","flex","justifyContent","minHeight","lineHeight","model_description","component","m","WebkitLineClamp","WebkitBoxOrient","overflow","textOverflow","padding","textAlign","fontStyle","Math","floor","context_length","dimensions","max_tokens","text","isDelete","onHandleIsDelete","onHandleDelete","open","onClose"],"sources":["/home/runner/work/inference/inference/xinference/ui/web/ui/src/scenes/launch_model/modelCard.js"],"sourcesContent":["import './styles/modelCardStyle.css'\n\nimport {\n ChatOutlined,\n Delete,\n EditNote,\n EditNoteOutlined,\n Grade,\n HelpCenterOutlined,\n StarBorder,\n} from '@mui/icons-material'\nimport {\n Box,\n Chip,\n IconButton,\n Paper,\n Stack,\n Tooltip,\n Typography,\n} from '@mui/material'\nimport React, { useContext, useState } from 'react'\nimport { useTranslation } from 'react-i18next'\nimport { useNavigate } from 'react-router-dom'\n\nimport { ApiContext } from '../../components/apiContext'\nimport DeleteDialog from '../../components/deleteDialog'\nimport fetchWrapper from '../../components/fetchWrapper'\nimport TitleTypography from '../../components/titleTypography'\nimport CachedListDialog from './components/cachedListDialog'\nimport EditCustomModel from './components/editCustomModelDialog'\n\nconst modelAbilityIcons = {\n chat: <ChatOutlined />,\n generate: <EditNoteOutlined />,\n default: <HelpCenterOutlined />,\n}\n\nconst ModelCard = ({\n modelData,\n modelType,\n is_custom = false,\n onGetCollectionArr,\n onUpdate,\n onClick,\n}) => {\n const navigate = useNavigate()\n const { t } = useTranslation()\n const { setErrorMsg } = useContext(ApiContext)\n const [isHovered, setIsHovered] = useState(false)\n const [isDeleteCustomModel, setIsDeleteCustomModel] = useState(false)\n const [isJsonShow, setIsJsonShow] = useState(false)\n const [isOpenCachedList, setIsOpenCachedList] = useState(false)\n\n const isCached = (spec) => {\n if (Array.isArray(spec.cache_status)) {\n return spec.cache_status.some((cs) => cs)\n } else {\n return spec.cache_status === true\n }\n }\n\n // Handle favorite feature\n const handleCollection = (shouldAdd) => {\n const collectionArr =\n JSON.parse(localStorage.getItem('collectionArr')) || []\n const updatedCollection = shouldAdd\n ? [...collectionArr, modelData.model_name]\n : collectionArr.filter((item) => item !== modelData.model_name)\n\n localStorage.setItem('collectionArr', JSON.stringify(updatedCollection))\n onGetCollectionArr?.(updatedCollection)\n }\n\n // Retrieve model language array\n const getModelLanguages = () => {\n // Check possible language field names\n const lang = modelData?.model_lang || modelData?.language\n\n if (!lang) return []\n return Array.isArray(lang) ? lang : [lang]\n }\n\n // Render generic chip component\n const renderChips = ({ items, variant = 'default', onClick }) => {\n if (!items || items.length === 0) return null\n\n return items.map((item) => (\n <Chip\n key={item}\n label={item}\n size=\"small\"\n variant={variant}\n onClick={(e) => {\n e?.stopPropagation()\n onClick?.(e)\n }}\n />\n ))\n }\n\n const renderAbilityChips = () => {\n const abilities = modelData?.model_ability\n if (!abilities) return null\n\n const abilityArray = Array.isArray(abilities) ? abilities : [abilities]\n return renderChips({ items: abilityArray })\n }\n\n const renderLanguageChips = () => {\n const languages = getModelLanguages()\n return renderChips({\n items: languages,\n variant: 'outlined',\n })\n }\n\n const renderCacheChip = () => {\n const hasCachedSpecs = modelData?.model_specs?.some((spec) =>\n isCached(spec)\n )\n if (!hasCachedSpecs) return null\n\n return (\n <Chip\n label={t('launchModel.manageCachedModels')}\n variant=\"outlined\"\n color=\"primary\"\n size=\"small\"\n deleteIcon={<EditNote />}\n onDelete={handleOpenCachedList}\n onClick={(e) => {\n e?.stopPropagation()\n handleOpenCachedList()\n }}\n />\n )\n }\n\n // Check if already favorited\n const isFavorite = () => {\n const collectionArr =\n JSON.parse(localStorage.getItem('collectionArr')) || []\n return collectionArr.includes(modelData.model_name)\n }\n\n // Render favorite/unfavorite button\n const renderFavoriteButton = () => {\n const favorite = isFavorite()\n const icon = favorite ? (\n <Grade style={{ color: 'rgb(255, 206, 0)' }} />\n ) : (\n <StarBorder />\n )\n\n const tooltipTitle = favorite\n ? t('launchModel.unfavorite')\n : t('launchModel.favorite')\n\n return (\n <Tooltip title={tooltipTitle} placement=\"top\">\n <IconButton\n aria-label={favorite ? 'collection' : 'cancellation-of-collections'}\n onClick={(e) => {\n e?.stopPropagation()\n handleCollection(!favorite)\n }}\n >\n {icon}\n </IconButton>\n </Tooltip>\n )\n }\n\n // Render custom model action buttons\n const renderCustomModelActions = () => (\n <>\n <Tooltip title={t('launchModel.edit')} placement=\"top\">\n <IconButton\n aria-label=\"show\"\n onClick={(e) => {\n e?.stopPropagation()\n setIsJsonShow(true)\n }}\n >\n <EditNote />\n </IconButton>\n </Tooltip>\n <Tooltip title={t('launchModel.delete')} placement=\"top\">\n <IconButton\n aria-label=\"delete\"\n onClick={(e) => {\n e?.stopPropagation()\n setIsDeleteCustomModel(true)\n }}\n >\n <Delete />\n </IconButton>\n </Tooltip>\n </>\n )\n\n const MetricItem = ({ value, label, icon }) => (\n <Box\n sx={{\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n minWidth: 80,\n }}\n >\n {icon && React.cloneElement(icon, { sx: { fontSize: 20, mb: 0.5 } })}\n {value && (\n <Typography variant=\"body2\" sx={{ fontWeight: 600, fontSize: '1.2em' }}>\n {value}\n </Typography>\n )}\n <Typography\n variant=\"caption\"\n color=\"text.secondary\"\n sx={{ fontWeight: 600, fontSize: '0.8em' }}\n >\n {label}\n </Typography>\n </Box>\n )\n\n // Delete custom model\n const handeCustomDelete = (e) => {\n e.stopPropagation()\n\n const subType = sessionStorage.getItem('subType').split('/')\n if (subType) {\n subType[3]\n fetchWrapper\n .delete(\n `/v1/model_registrations/${\n subType[3] === 'llm' ? 'LLM' : subType[3]\n }/${modelData.model_name}`\n )\n .then(() => {\n onUpdate(subType[3] === 'llm' ? 'LLM' : subType[3])\n setIsDeleteCustomModel(false)\n })\n .catch((error) => {\n console.error(error)\n if (error.response.status !== 403) {\n setErrorMsg(error.message)\n }\n })\n }\n }\n\n const handleJsonDataPresentation = () => {\n const arr = sessionStorage.getItem('subType').split('/')\n sessionStorage.setItem(\n 'registerModelType',\n `/register_model/${arr[arr.length - 1]}`\n )\n sessionStorage.setItem('customJsonData', JSON.stringify(modelData))\n navigate(`/register_model/${arr[arr.length - 1]}/${modelData.model_name}`)\n }\n\n const handleOpenCachedList = () => {\n setIsOpenCachedList(true)\n }\n\n return (\n <>\n <Tooltip title={modelData.model_name} placement=\"top\">\n <Paper\n className=\"container\"\n onMouseEnter={() => setIsHovered(true)}\n onMouseLeave={() => setIsHovered(false)}\n elevation={isHovered ? 24 : 4}\n onClick={onClick}\n >\n <Box className=\"descriptionCard\">\n <Box>\n <Box className=\"cardTitle\">\n <TitleTypography value={modelData.model_name} />\n <Box className=\"iconButtonBox\">\n {is_custom\n ? renderCustomModelActions()\n : renderFavoriteButton()}\n </Box>\n </Box>\n\n <Stack\n spacing={1}\n direction=\"row\"\n useFlexGap\n flexWrap=\"wrap\"\n sx={{ marginLeft: 1 }}\n >\n {renderAbilityChips()}\n {renderLanguageChips()}\n {renderCacheChip()}\n </Stack>\n </Box>\n\n <Box\n sx={{\n flex: 1,\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n minHeight: 24,\n color: 'text.secondary',\n fontSize: '0.875rem',\n lineHeight: 1.5,\n }}\n >\n {modelData.model_description ? (\n <Box\n component=\"p\"\n sx={{\n m: 0,\n display: '-webkit-box',\n WebkitLineClamp: 4,\n WebkitBoxOrient: 'vertical',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n fontSize: '14px',\n padding: '0px 10px',\n }}\n title={modelData.model_description}\n >\n {modelData.model_description}\n </Box>\n ) : (\n isHovered && (\n <Box\n component=\"p\"\n sx={{\n m: 0,\n textAlign: 'center',\n fontStyle: 'italic',\n }}\n >\n {t('launchModel.clickToLaunchModel')}\n </Box>\n )\n )}\n </Box>\n\n {modelType === 'LLM' && (\n <Box\n sx={{\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n }}\n >\n <MetricItem\n value={`${Math.floor(modelData.context_length / 1000)}K`}\n label={t('launchModel.contextLength')}\n />\n\n <MetricItem\n icon={\n modelData.model_ability?.includes('chat')\n ? modelAbilityIcons.chat\n : modelData.model_ability?.includes('generate')\n ? modelAbilityIcons.generate\n : modelAbilityIcons.default\n }\n label={\n modelData.model_ability?.includes('chat')\n ? t('launchModel.chatModel')\n : modelData.model_ability?.includes('generate')\n ? t('launchModel.generateModel')\n : t('launchModel.otherModel')\n }\n />\n </Box>\n )}\n\n {(modelData.dimensions || modelData.max_tokens) && (\n <Box\n sx={{\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n }}\n >\n <Box>\n {modelData.dimensions && (\n <MetricItem\n value={modelData.dimensions}\n label={t('launchModel.dimensions')}\n />\n )}\n </Box>\n\n <Box>\n {modelData.max_tokens && (\n <MetricItem\n value={modelData.max_tokens}\n label={t('launchModel.maxTokens')}\n />\n )}\n </Box>\n </Box>\n )}\n </Box>\n </Paper>\n </Tooltip>\n\n <DeleteDialog\n text={t('launchModel.confirmDeleteCustomModel')}\n isDelete={isDeleteCustomModel}\n onHandleIsDelete={() => setIsDeleteCustomModel(false)}\n onHandleDelete={handeCustomDelete}\n />\n\n <CachedListDialog\n open={isOpenCachedList}\n modelData={modelData}\n modelType={modelType}\n onClose={() => setIsOpenCachedList(false)}\n onUpdate={onUpdate}\n />\n\n <EditCustomModel\n open={isJsonShow}\n modelData={modelData}\n onClose={() => setIsJsonShow(false)}\n handleJsonDataPresentation={handleJsonDataPresentation}\n />\n </>\n )\n}\n\nexport default ModelCard\n"],"mappings":"wSAAA,MAAO,6BAA6B,CAEpC,OACEA,YAAY,CACZC,MAAM,CACNC,QAAQ,CACRC,gBAAgB,CAChBC,KAAK,CACLC,kBAAkB,CAClBC,UAAU,KACL,qBAAqB,CAC5B,OACEC,GAAG,CACHC,IAAI,CACJC,UAAU,CACVC,KAAK,CACLC,KAAK,CACLC,O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E,CACnC,CACF,CACE,CAAC,EACH,CACN,EACE,CAAC,CACD,CAAC,CACD,CAAC,cAEVxB,IAAA,CAACN,YAAY,EACXsK,IAAI,CAAExI,CAAC,CAAC,sCAAsC,CAAE,CAChDyI,QAAQ,CAAE/H,mBAAoB,CAC9BgI,gBAAgB,CAAE,SAAAA,iBAAA,QAAM,CAAA/H,sBAAsB,CAAC,KAAK,CAAC,EAAC,CACtDgI,cAAc,CAAE7C,iBAAkB,CACnC,CAAC,cAEFtH,IAAA,CAACH,gBAAgB,EACfuK,IAAI,CAAE1H,gBAAiB,CACvB3B,SAAS,CAAEA,SAAU,CACrBC,SAAS,CAAEA,SAAU,CACrBqJ,OAAO,CAAE,SAAAA,QAAA,QAAM,CAAA1H,mBAAmB,CAAC,KAAK,CAAC,EAAC,CAC1CvB,QAAQ,CAAEA,QAAS,CACpB,CAAC,cAEFpB,IAAA,CAACF,eAAe,EACdsK,IAAI,CAAE9H,UAAW,CACjBvB,SAAS,CAAEA,SAAU,CACrBsJ,OAAO,CAAE,SAAAA,QAAA,QAAM,CAAA9H,aAAa,CAAC,KAAK,CAAC,EAAC,CACpC2F,0BAA0B,CAAEA,0BAA2B,CACxD,CAAC,EACF,CAAC,CAEP,CAAC,CAED,cAAe,CAAAzH,SAAS","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
@@ -0,0 +1 @@
1
+ {"ast":null,"code":"import _createForOfIteratorHelper from\"/home/runner/work/inference/inference/xinference/ui/web/ui/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js\";import _slicedToArray from\"/home/runner/work/inference/inference/xinference/ui/web/ui/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";import{Button,Dialog,DialogActions,DialogContent,DialogTitle,TextField}from'@mui/material';import React,{useState}from'react';import{useTranslation}from'react-i18next';import{jsx as _jsx}from\"react/jsx-runtime\";import{jsxs as _jsxs}from\"react/jsx-runtime\";var PasteDialog=function PasteDialog(_ref){var open=_ref.open,onHandleClose=_ref.onHandleClose,onHandleCommandLine=_ref.onHandleCommandLine;var _useTranslation=useTranslation(),t=_useTranslation.t;var _useState=useState(''),_useState2=_slicedToArray(_useState,2),command=_useState2[0],setCommand=_useState2[1];var handleClose=function handleClose(){onHandleClose();setCommand('');};var parseXinferenceCommand=function parseXinferenceCommand(){var _Object$keys,_Object$keys2;var params={};var peftModelConfig={lora_list:[],image_lora_load_kwargs:{},image_lora_fuse_kwargs:{}};var quantizationConfig={};var virtualEnvPackages=[];var envs={};var newcommand=command.replace('xinference launch','').trim();var args=newcommand.match(/--[\\w-]+(?:\\s+(?:\"[^\"]*\"|'[^']*'|(?:[^\\s-][^\\s]*\\s*)+))?/g)||[];var _iterator=_createForOfIteratorHelper(args),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var arg=_step.value;var match=arg.trim().match(/^--([\\w-]+)(?:\\s+(?:\"([^\"]+)\"|'([^']+)'|(.+)))?$/);if(!match)continue;var key=match[1];var value=match[2]||match[3]||match[4]||'';var normalizedKey=key.replace(/-/g,'_');if(normalizedKey==='gpu_idx'){params[normalizedKey]=value.split(',').map(Number);}else if(normalizedKey==='lora_modules'){var loraPairs=value.split(/\\s+/);for(var i=0;i<loraPairs.length;i+=2){var lora_name=loraPairs[i];var local_path=loraPairs[i+1];if(lora_name&&local_path){peftModelConfig.lora_list.push({lora_name:lora_name,local_path:local_path});}}}else if(normalizedKey==='image_lora_load_kwargs'){peftModelConfig.image_lora_load_kwargs={};var _value$split=value.split(/\\s+/),_value$split2=_slicedToArray(_value$split,2),load_param=_value$split2[0],load_value=_value$split2[1];peftModelConfig.image_lora_load_kwargs[load_param]=load_value;}else if(normalizedKey==='image_lora_fuse_kwargs'){peftModelConfig.image_lora_fuse_kwargs={};var _value$split3=value.split(/\\s+/),_value$split4=_slicedToArray(_value$split3,2),fuse_param=_value$split4[0],fuse_value=_value$split4[1];peftModelConfig.image_lora_fuse_kwargs[fuse_param]=fuse_value;}else if(normalizedKey==='quantization_config'){var _value$split5=value.split(/\\s+/),_value$split6=_slicedToArray(_value$split5,2),k=_value$split6[0],v=_value$split6[1];quantizationConfig[k]=v;}else if(key==='enable-virtual-env'){params.enable_virtual_env=true;}else if(key==='disable-virtual-env'){params.enable_virtual_env=false;}else if(normalizedKey==='virtual_env_package'){virtualEnvPackages.push(value);}else if(normalizedKey==='env'){var _value$split7=value.split(/\\s+/),_value$split8=_slicedToArray(_value$split7,2),envKey=_value$split8[0],envVal=_value$split8[1];if(envKey&&envVal!==undefined){envs[envKey]=envVal;}}else{if(['enable_thinking','cpu_offload','reasoning_content'].includes(normalizedKey)){params[normalizedKey]=value==='true';}else if(normalizedKey==='size_in_billions'){params['model_size_in_billions']=value;}else{params[normalizedKey]=value;}}}}catch(err){_iterator.e(err);}finally{_iterator.f();}if(peftModelConfig.lora_list.length>0||((_Object$keys=Object.keys(peftModelConfig.image_lora_load_kwargs))===null||_Object$keys===void 0?void 0:_Object$keys.length)>0||((_Object$keys2=Object.keys(peftModelConfig.image_lora_fuse_kwargs))===null||_Object$keys2===void 0?void 0:_Object$keys2.length)>0){params.peft_model_config=peftModelConfig;}if(Object.keys(quantizationConfig).length>0){params.quantization_config=quantizationConfig;}if(virtualEnvPackages.length>0){params.virtual_env_packages=virtualEnvPackages;}if(Object.keys(envs).length>0){params.envs=envs;}onHandleCommandLine(params);handleClose();};return/*#__PURE__*/_jsxs(Dialog,{open:open,children:[/*#__PURE__*/_jsx(DialogTitle,{children:t('launchModel.commandLineParsing')}),/*#__PURE__*/_jsx(DialogContent,{children:/*#__PURE__*/_jsx(\"div\",{style:{width:'500px',height:'120px'},children:/*#__PURE__*/_jsx(TextField,{multiline:true,fullWidth:true,rows:5,placeholder:t('launchModel.placeholderTip'),value:command,onChange:function onChange(e){setCommand(e.target.value);}})})}),/*#__PURE__*/_jsxs(DialogActions,{children:[/*#__PURE__*/_jsx(Button,{onClick:handleClose,children:t('launchModel.cancel')}),/*#__PURE__*/_jsx(Button,{autoFocus:true,onClick:parseXinferenceCommand,children:t('launchModel.confirm')})]})]});};export default PasteDialog;","map":{"version":3,"names":["Button","Dialog","DialogActions","DialogContent","DialogTitle","TextField","React","useState","useTranslation","jsx","_jsx","jsxs","_jsxs","PasteDialog","_ref","open","onHandleClose","onHandleCommandLine","_useTranslation","t","_useState","_useState2","_slicedToArray","command","setCommand","handleClose","parseXinferenceCommand","_Object$keys","_Object$keys2","params","peftModelConfig","lora_list","image_lora_load_kwargs","image_lora_fuse_kwargs","quantizationConfig","virtualEnvPackages","envs","newcommand","replace","trim","args","match","_iterator","_createForOfIteratorHelper","_step","s","n","done","arg","value","key","normalizedKey","split","map","Number","loraPairs","i","length","lora_name","local_path","push","_value$split","_value$split2","load_param","load_value","_value$split3","_value$split4","fuse_param","fuse_value","_value$split5","_value$split6","k","v","enable_virtual_env","_value$split7","_value$split8","envKey","envVal","undefined","includes","err","e","f","Object","keys","peft_model_config","quantization_config","virtual_env_packages","children","style","width","height","multiline","fullWidth","rows","placeholder","onChange","target","onClick","autoFocus"],"sources":["/home/runner/work/inference/inference/xinference/ui/web/ui/src/scenes/launch_model/components/pasteDialog.js"],"sourcesContent":["import {\n Button,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n TextField,\n} from '@mui/material'\nimport React, { useState } from 'react'\nimport { useTranslation } from 'react-i18next'\n\nconst PasteDialog = ({ open, onHandleClose, onHandleCommandLine }) => {\n const { t } = useTranslation()\n const [command, setCommand] = useState('')\n\n const handleClose = () => {\n onHandleClose()\n setCommand('')\n }\n\n const parseXinferenceCommand = () => {\n const params = {}\n const peftModelConfig = {\n lora_list: [],\n image_lora_load_kwargs: {},\n image_lora_fuse_kwargs: {},\n }\n const quantizationConfig = {}\n const virtualEnvPackages = []\n const envs = {}\n\n let newcommand = command.replace('xinference launch', '').trim()\n const args =\n newcommand.match(\n /--[\\w-]+(?:\\s+(?:\"[^\"]*\"|'[^']*'|(?:[^\\s-][^\\s]*\\s*)+))?/g\n ) || []\n\n for (const arg of args) {\n const match = arg\n .trim()\n .match(/^--([\\w-]+)(?:\\s+(?:\"([^\"]+)\"|'([^']+)'|(.+)))?$/)\n if (!match) continue\n\n const key = match[1]\n const value = match[2] || match[3] || match[4] || ''\n const normalizedKey = key.replace(/-/g, '_')\n\n if (normalizedKey === 'gpu_idx') {\n params[normalizedKey] = value.split(',').map(Number)\n } else if (normalizedKey === 'lora_modules') {\n const loraPairs = value.split(/\\s+/)\n for (let i = 0; i < loraPairs.length; i += 2) {\n const lora_name = loraPairs[i]\n const local_path = loraPairs[i + 1]\n if (lora_name && local_path) {\n peftModelConfig.lora_list.push({ lora_name, local_path })\n }\n }\n } else if (normalizedKey === 'image_lora_load_kwargs') {\n peftModelConfig.image_lora_load_kwargs = {}\n const [load_param, load_value] = value.split(/\\s+/)\n peftModelConfig.image_lora_load_kwargs[load_param] = load_value\n } else if (normalizedKey === 'image_lora_fuse_kwargs') {\n peftModelConfig.image_lora_fuse_kwargs = {}\n const [fuse_param, fuse_value] = value.split(/\\s+/)\n peftModelConfig.image_lora_fuse_kwargs[fuse_param] = fuse_value\n } else if (normalizedKey === 'quantization_config') {\n const [k, v] = value.split(/\\s+/)\n quantizationConfig[k] = v\n } else if (key === 'enable-virtual-env') {\n params.enable_virtual_env = true\n } else if (key === 'disable-virtual-env') {\n params.enable_virtual_env = false\n } else if (normalizedKey === 'virtual_env_package') {\n virtualEnvPackages.push(value)\n } else if (normalizedKey === 'env') {\n const [envKey, envVal] = value.split(/\\s+/)\n if (envKey && envVal !== undefined) {\n envs[envKey] = envVal\n }\n } else {\n if (\n ['enable_thinking', 'cpu_offload', 'reasoning_content'].includes(\n normalizedKey\n )\n ) {\n params[normalizedKey] = value === 'true'\n } else if (normalizedKey === 'size_in_billions') {\n params['model_size_in_billions'] = value\n } else {\n params[normalizedKey] = value\n }\n }\n }\n\n if (\n peftModelConfig.lora_list.length > 0 ||\n Object.keys(peftModelConfig.image_lora_load_kwargs)?.length > 0 ||\n Object.keys(peftModelConfig.image_lora_fuse_kwargs)?.length > 0\n ) {\n params.peft_model_config = peftModelConfig\n }\n\n if (Object.keys(quantizationConfig).length > 0) {\n params.quantization_config = quantizationConfig\n }\n\n if (virtualEnvPackages.length > 0) {\n params.virtual_env_packages = virtualEnvPackages\n }\n\n if (Object.keys(envs).length > 0) {\n params.envs = envs\n }\n\n onHandleCommandLine(params)\n handleClose()\n }\n\n return (\n <Dialog open={open}>\n <DialogTitle>{t('launchModel.commandLineParsing')}</DialogTitle>\n <DialogContent>\n <div style={{ width: '500px', height: '120px' }}>\n <TextField\n multiline\n fullWidth\n rows={5}\n placeholder={t('launchModel.placeholderTip')}\n value={command}\n onChange={(e) => {\n setCommand(e.target.value)\n }}\n />\n </div>\n </DialogContent>\n <DialogActions>\n <Button onClick={handleClose}>{t('launchModel.cancel')}</Button>\n <Button autoFocus onClick={parseXinferenceCommand}>\n {t('launchModel.confirm')}\n </Button>\n </DialogActions>\n </Dialog>\n )\n}\n\nexport default PasteDialog\n"],"mappings":"wTAAA,OACEA,MAAM,CACNC,MAAM,CACNC,aAAa,CACbC,aAAa,CACbC,WAAW,CACXC,SAAS,KACJ,eAAe,CACtB,MAAO,CAAAC,KAAK,EAAIC,QAAQ,KAAQ,OAAO,CACvC,OAASC,cAAc,KAAQ,eAAe,QAAAC,GAAA,IAAAC,IAAA,gCAAAC,IAAA,IAAAC,KAAA,yBAE9C,GAAM,CAAAC,WAAW,CAAG,QAAd,CAAAA,WAAWA,CAAAC,IAAA,CAAqD,IAA/C,CAAAC,IAAI,CAAAD,IAAA,CAAJC,IAAI,CAAEC,aAAa,CAAAF,IAAA,CAAbE,aAAa,CAAEC,mBAAmB,CAAAH,IAAA,CAAnBG,mBAAmB,CAC7D,IAAAC,eAAA,CAAcV,cAAc,CAAC,CAAC,CAAtBW,CAAC,CAAAD,eAAA,CAADC,CAAC,CACT,IAAAC,SAAA,CAA8Bb,QAAQ,CAAC,EAAE,CAAC,CAAAc,UAAA,CAAAC,cAAA,CAAAF,SAAA,IAAnCG,OAAO,CAAAF,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AErE,CAAC,CAAC,gCAAgC,CAAC,CAAc,CAAC,cAChET,IAAA,CAACP,aAAa,EAAAqF,QAAA,cACZ9E,IAAA,QAAK+E,KAAK,CAAE,CAAEC,KAAK,CAAE,OAAO,CAAEC,MAAM,CAAE,OAAQ,CAAE,CAAAH,QAAA,cAC9C9E,IAAA,CAACL,SAAS,EACRuF,SAAS,MACTC,SAAS,MACTC,IAAI,CAAE,CAAE,CACRC,WAAW,CAAE5E,CAAC,CAAC,4BAA4B,CAAE,CAC7C8B,KAAK,CAAE1B,OAAQ,CACfyE,QAAQ,CAAE,SAAAA,SAACf,CAAC,CAAK,CACfzD,UAAU,CAACyD,CAAC,CAACgB,MAAM,CAAChD,KAAK,CAAC,CAC5B,CAAE,CACH,CAAC,CACC,CAAC,CACO,CAAC,cAChBrC,KAAA,CAACV,aAAa,EAAAsF,QAAA,eACZ9E,IAAA,CAACV,MAAM,EAACkG,OAAO,CAAEzE,WAAY,CAAA+D,QAAA,CAAErE,CAAC,CAAC,oBAAoB,CAAC,CAAS,CAAC,cAChET,IAAA,CAACV,MAAM,EAACmG,SAAS,MAACD,OAAO,CAAExE,sBAAuB,CAAA8D,QAAA,CAC/CrE,CAAC,CAAC,qBAAqB,CAAC,CACnB,CAAC,EACI,CAAC,EACV,CAAC,CAEb,CAAC,CAED,cAAe,CAAAN,WAAW","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
@@ -0,0 +1 @@
1
+ {"ast":null,"code":"import _toConsumableArray from\"/home/runner/work/inference/inference/xinference/ui/web/ui/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js\";import{additionalParameterTipList,quantizationParametersTipList}from'../data/data';export default function getModelFormConfig(_ref){var _modelData$model_abil,_formData$model_engin;var t=_ref.t,formData=_ref.formData,modelData=_ref.modelData,gpuAvailable=_ref.gpuAvailable,engineItems=_ref.engineItems,formatItems=_ref.formatItems,sizeItems=_ref.sizeItems,quantizationItems=_ref.quantizationItems,getNGPURange=_ref.getNGPURange,downloadHubOptions=_ref.downloadHubOptions,enginesWithNWorker=_ref.enginesWithNWorker,multimodalProjectorOptions=_ref.multimodalProjectorOptions;var config={LLM:[{name:'model_engine',label:t('launchModel.modelEngine'),type:'select',options:engineItems,visible:true,required:true},{name:'model_format',label:t('launchModel.modelFormat'),type:'select',options:formatItems,visible:true,disabled:!formData.model_engine,required:true},{name:'model_size_in_billions',label:t('launchModel.modelSize'),type:'select',options:sizeItems,visible:true,disabled:!formData.model_format,required:true},{name:'quantization',label:t('launchModel.quantization'),type:'select',options:quantizationItems,visible:true,disabled:!formData.model_size_in_billions,required:true},{name:'multimodal_projector',label:t('launchModel.multimodelProjector'),type:'select',default:multimodalProjectorOptions[0],options:multimodalProjectorOptions,disabled:!formData.model_size_in_billions,required:true,visible:!!multimodalProjectorOptions.length},{name:'n_gpu',label:t(enginesWithNWorker.includes(formData.model_engine)?'launchModel.nGPUPerWorker':'launchModel.nGPU'),type:'select',default:'auto',options:getNGPURange('LLM'),disabled:!formData.quantization,visible:true},{name:'n_gpu_layers',label:t('launchModel.nGpuLayers'),type:'number',default:-1,inputProps:{inputProps:{min:-1}},disabled:!formData.quantization,required:true,visible:!!['ggufv2','ggmlv3'].includes(formData.model_format)},{name:'replica',label:t('launchModel.replica'),type:'number',default:1,inputProps:{inputProps:{min:1}},error:!!formData.replica&&!/^[1-9]\\d*$/.test(formData.replica),helperText:t('launchModel.enterIntegerGreaterThanZero'),disabled:!formData.quantization,visible:true},{name:'enable_thinking',label:t('launchModel.enableThinking'),type:'switch',visible:!!((_modelData$model_abil=modelData.model_ability)!==null&&_modelData$model_abil!==void 0&&_modelData$model_abil.includes('hybrid')),default:true},{name:'reasoning_content',label:t('launchModel.parsingReasoningContent'),type:'switch',default:false},{name:'nested_section_optional',label:t('launchModel.optionalConfigurations'),type:'collapse',visible:true,children:[{name:'model_uid',label:t('launchModel.modelUID.optional'),type:'input',visible:true},{name:'request_limits',label:t('launchModel.requestLimits.optional'),type:'number',inputProps:{inputProps:{min:1}},error:!!formData.request_limits&&!/^[1-9]\\d*$/.test(formData.request_limits),helperText:t('launchModel.enterIntegerGreaterThanZero'),visible:true},{name:'n_worker',label:t('launchModel.workerCount.optional'),type:'number',default:1,inputProps:{inputProps:{min:1}},error:!!formData.n_worker&&!/^[1-9]\\d*$/.test(formData.n_worker),helperText:t('launchModel.enterIntegerGreaterThanZero'),visible:!!formData.model_engine&&enginesWithNWorker.includes(formData.model_engine)},{name:'worker_ip',label:t('launchModel.workerIp.optional'),type:'input',visible:true},{name:'gpu_idx',label:t('launchModel.GPUIdx'),type:'input',error:!!formData.gpu_idx&&!/^\\d+(?:,\\d+)*$/.test(formData.gpu_idx),helperText:t('launchModel.enterCommaSeparatedNumbers'),visible:true},{name:'download_hub',label:t('launchModel.downloadHub.optional'),type:'select',options:downloadHubOptions,visible:true},{name:'model_path',label:t('launchModel.modelPath.optional'),type:'input',visible:true},{name:'nested_section_lora',label:t('launchModel.loraConfig'),type:'collapse',visible:true,children:[{name:'lora_list',label:t('launchModel.loraModelConfig'),type:'dynamicField',mode:'key-value',keyPlaceholder:'lora_name',valuePlaceholder:'local_path',visible:true}]},{name:'nested_section_virtualEnv',label:t('launchModel.virtualEnvConfig'),type:'collapse',visible:true,children:[{name:'enable_virtual_env',label:t('launchModel.modelVirtualEnv'),type:'radio',options:[{label:'Unset',value:'unset'},{label:'False',value:false},{label:'True',value:true}],default:'unset',visible:true},{name:'virtual_env_packages',label:t('launchModel.virtualEnvPackage'),type:'dynamicField',mode:'value',valuePlaceholder:'value',visible:true}]},{name:'nested_section_env',label:t('launchModel.envVariableConfig'),type:'collapse',visible:true,children:[{name:'envs',label:t('launchModel.envVariable'),type:'dynamicField',mode:'key-value',keyPlaceholder:'key',valuePlaceholder:'value',visible:true}]}]},{name:'quantization_config',label:t('launchModel.additionalQuantizationParametersForInferenceEngine'),type:'dynamicField',mode:'key-value',keyPlaceholder:'key',valuePlaceholder:'value',keyOptions:quantizationParametersTipList,visible:!!formData.model_engine&&formData.model_engine==='Transformers'},{name:'custom',label:\"\".concat(t('launchModel.additionalParametersForInferenceEngine')).concat(formData.model_engine?': '+formData.model_engine:''),type:'dynamicField',mode:'key-value',keyPlaceholder:'key',valuePlaceholder:'value',keyOptions:additionalParameterTipList[(_formData$model_engin=formData.model_engine)===null||_formData$model_engin===void 0?void 0:_formData$model_engin.toLocaleLowerCase()],visible:true}],embedding:[{name:'model_engine',label:t('launchModel.modelEngine'),type:'select',options:engineItems,visible:true},{name:'model_format',label:t('launchModel.modelFormat'),type:'select',options:formatItems,visible:true,disabled:!formData.model_engine},{name:'quantization',label:t('launchModel.quantization'),type:'select',options:quantizationItems,visible:true,disabled:!formData.model_format},{name:'replica',label:t('launchModel.replica'),type:'number',visible:true,default:1,inputProps:{inputProps:{min:1}},error:!!formData.replica&&!/^[1-9]\\d*$/.test(formData.replica),helperText:t('launchModel.enterIntegerGreaterThanZero'),disabled:!formData.quantization},{name:'n_gpu',label:t('launchModel.device'),type:'select',default:gpuAvailable===0?'CPU':'GPU',options:getNGPURange('embedding'),visible:true},{name:'gpu_idx',label:t('launchModel.GPUIdx'),type:'input',error:!!formData.gpu_idx&&!/^\\d+(?:,\\d+)*$/.test(formData.gpu_idx),helperText:t('launchModel.enterCommaSeparatedNumbers'),visible:!!formData.n_gpu&&formData.n_gpu==='GPU'},{name:'model_uid',label:t('launchModel.modelUID.optional'),type:'input',visible:true},{name:'worker_ip',label:t('launchModel.workerIp.optional'),type:'input',visible:true},{name:'download_hub',label:t('launchModel.downloadHub.optional'),type:'select',options:downloadHubOptions,visible:true},{name:'model_path',label:t('launchModel.modelPath.optional'),type:'input',visible:true},{name:'request_limits',label:t('launchModel.requestLimits.optional'),type:'number',inputProps:{inputProps:{min:1}},error:!!formData.request_limits&&!/^[1-9]\\d*$/.test(formData.request_limits),helperText:t('launchModel.enterIntegerGreaterThanZero'),visible:true},{name:'nested_section_virtualEnv',label:t('launchModel.virtualEnvConfig'),type:'collapse',visible:true,children:[{name:'enable_virtual_env',label:t('launchModel.modelVirtualEnv'),type:'radio',options:[{label:'Unset',value:'unset'},{label:'False',value:false},{label:'True',value:true}],default:'unset',visible:true},{name:'virtual_env_packages',label:t('launchModel.virtualEnvPackage'),type:'dynamicField',mode:'value',valuePlaceholder:'value',visible:true}]},{name:'nested_section_env',label:t('launchModel.envVariableConfig'),type:'collapse',visible:true,children:[{name:'envs',label:t('launchModel.envVariable'),type:'dynamicField',mode:'key-value',keyPlaceholder:'key',valuePlaceholder:'value',visible:true}]},{name:'custom',label:\"\".concat(t('launchModel.additionalParametersForInferenceEngine')).concat(formData.model_engine?': '+formData.model_engine:''),type:'dynamicField',mode:'key-value',keyPlaceholder:'key',valuePlaceholder:'value',visible:true}],rerank:[{name:'model_engine',label:t('launchModel.modelEngine'),type:'select',options:engineItems,visible:true},{name:'model_format',label:t('launchModel.modelFormat'),type:'select',options:formatItems,visible:true,disabled:!formData.model_engine},{name:'quantization',label:t('launchModel.quantization'),type:'select',options:quantizationItems,visible:true,disabled:!formData.model_format},{name:'replica',label:t('launchModel.replica'),type:'number',visible:true,default:1,inputProps:{inputProps:{min:1}},error:!!formData.replica&&!/^[1-9]\\d*$/.test(formData.replica),helperText:t('launchModel.enterIntegerGreaterThanZero')},{name:'n_gpu',label:t('launchModel.device'),type:'select',default:gpuAvailable===0?'CPU':'GPU',options:getNGPURange('rerank'),visible:true},{name:'gpu_idx',label:t('launchModel.GPUIdx'),type:'input',error:!!formData.gpu_idx&&!/^\\d+(?:,\\d+)*$/.test(formData.gpu_idx),helperText:t('launchModel.enterCommaSeparatedNumbers'),visible:!!formData.n_gpu&&formData.n_gpu==='GPU'},{name:'model_uid',label:t('launchModel.modelUID.optional'),type:'input',visible:true},{name:'worker_ip',label:t('launchModel.workerIp.optional'),type:'input',visible:true},{name:'download_hub',label:t('launchModel.downloadHub.optional'),type:'select',options:downloadHubOptions,visible:true},{name:'model_path',label:t('launchModel.modelPath.optional'),type:'input',visible:true},{name:'request_limits',label:t('launchModel.requestLimits.optional'),type:'number',inputProps:{inputProps:{min:1}},error:!!formData.request_limits&&!/^[1-9]\\d*$/.test(formData.request_limits),helperText:t('launchModel.enterIntegerGreaterThanZero'),visible:true},{name:'nested_section_virtualEnv',label:t('launchModel.virtualEnvConfig'),type:'collapse',visible:true,children:[{name:'enable_virtual_env',label:t('launchModel.modelVirtualEnv'),type:'radio',options:[{label:'Unset',value:'unset'},{label:'False',value:false},{label:'True',value:true}],default:'unset',visible:true},{name:'virtual_env_packages',label:t('launchModel.virtualEnvPackage'),type:'dynamicField',mode:'value',valuePlaceholder:'value',visible:true}]},{name:'nested_section_env',label:t('launchModel.envVariableConfig'),type:'collapse',visible:true,children:[{name:'envs',label:t('launchModel.envVariable'),type:'dynamicField',mode:'key-value',keyPlaceholder:'key',valuePlaceholder:'value',visible:true}]},{name:'custom',label:t('launchModel.additionalParametersForInferenceEngine'),type:'dynamicField',mode:'key-value',keyPlaceholder:'key',valuePlaceholder:'value',visible:true}],image:[{name:'model_uid',label:t('launchModel.modelUID.optional'),type:'input',visible:true},{name:'replica',label:t('launchModel.replica'),type:'number',visible:true,default:1,inputProps:{inputProps:{min:1}},error:!!formData.replica&&!/^[1-9]\\d*$/.test(formData.replica),helperText:t('launchModel.enterIntegerGreaterThanZero')},{name:'n_gpu',label:t('launchModel.nGPU'),type:'select',default:'auto',options:getNGPURange('image'),visible:true},{name:'gpu_idx',label:t('launchModel.GPUIdx'),type:'input',error:!!formData.gpu_idx&&!/^\\d+(?:,\\d+)*$/.test(formData.gpu_idx),helperText:t('launchModel.enterCommaSeparatedNumbers'),visible:!!formData.n_gpu&&formData.n_gpu!=='CPU'},{name:'worker_ip',label:t('launchModel.workerIp.optional'),type:'input',visible:true},{name:'download_hub',label:t('launchModel.downloadHub.optional'),type:'select',options:downloadHubOptions,visible:true},{name:'model_path',label:t('launchModel.modelPath.optional'),type:'input',visible:true},{name:'gguf_quantization',label:t('launchModel.GGUFQuantization.optional'),type:'select',options:['none'].concat(_toConsumableArray(modelData.gguf_quantizations||[])),visible:!!modelData.gguf_quantizations},{name:'gguf_model_path',label:t('launchModel.GGUFModelPath.optional'),type:'input',visible:!!modelData.gguf_quantizations},{name:'lightning_version',label:t('launchModel.lightningVersions.optional'),type:'select',options:['none'].concat(_toConsumableArray(modelData.lightning_versions||[])),visible:!!modelData.lightning_versions},{name:'lightning_model_path',label:t('launchModel.lightningModelPath.optional'),type:'input',visible:!!modelData.lightning_versions},{name:'request_limits',label:t('launchModel.requestLimits.optional'),type:'number',inputProps:{inputProps:{min:1}},error:!!formData.request_limits&&!/^[1-9]\\d*$/.test(formData.request_limits),helperText:t('launchModel.enterIntegerGreaterThanZero'),visible:true},{name:'cpu_offload',label:t('launchModel.CPUOffload'),type:'switch',default:false,tip:t('launchModel.CPUOffload.tip'),visible:true},{name:'nested_section_lora',label:t('launchModel.loraConfig'),type:'collapse',visible:true,children:[{name:'lora_list',label:t('launchModel.loraModelConfig'),type:'dynamicField',mode:'key-value',keyPlaceholder:'lora_name',valuePlaceholder:'local_path',visible:true},{name:'image_lora_load_kwargs',label:t('launchModel.loraLoadKwargsForImageModel'),type:'dynamicField',mode:'key-value',visible:true},{name:'image_lora_fuse_kwargs',label:t('launchModel.loraFuseKwargsForImageModel'),type:'dynamicField',mode:'key-value',visible:true}]},{name:'nested_section_virtualEnv',label:t('launchModel.virtualEnvConfig'),type:'collapse',visible:true,children:[{name:'enable_virtual_env',label:t('launchModel.modelVirtualEnv'),type:'radio',options:[{label:'Unset',value:'unset'},{label:'False',value:false},{label:'True',value:true}],default:'unset',visible:true},{name:'virtual_env_packages',label:t('launchModel.virtualEnvPackage'),type:'dynamicField',mode:'value',valuePlaceholder:'value',visible:true}]}],audio:[{name:'model_uid',label:t('launchModel.modelUID.optional'),type:'input',visible:true},{name:'replica',label:t('launchModel.replica'),type:'number',visible:true,default:1,inputProps:{inputProps:{min:1}},error:!!formData.replica&&!/^[1-9]\\d*$/.test(formData.replica),helperText:t('launchModel.enterIntegerGreaterThanZero')},{name:'n_gpu',label:t('launchModel.device'),type:'select',default:gpuAvailable===0?'CPU':'GPU',options:getNGPURange('audio'),visible:true},{name:'gpu_idx',label:t('launchModel.GPUIdx'),type:'input',error:!!formData.gpu_idx&&!/^\\d+(?:,\\d+)*$/.test(formData.gpu_idx),helperText:t('launchModel.enterCommaSeparatedNumbers'),visible:!!formData.n_gpu&&formData.n_gpu==='GPU'},{name:'worker_ip',label:t('launchModel.workerIp.optional'),type:'input',visible:true},{name:'download_hub',label:t('launchModel.downloadHub.optional'),type:'select',options:downloadHubOptions,visible:true},{name:'model_path',label:t('launchModel.modelPath.optional'),type:'input',visible:true},{name:'request_limits',label:t('launchModel.requestLimits.optional'),type:'number',inputProps:{inputProps:{min:1}},error:!!formData.request_limits&&!/^[1-9]\\d*$/.test(formData.request_limits),helperText:t('launchModel.enterIntegerGreaterThanZero'),visible:true},{name:'nested_section_virtualEnv',label:t('launchModel.virtualEnvConfig'),type:'collapse',visible:true,children:[{name:'enable_virtual_env',label:t('launchModel.modelVirtualEnv'),type:'radio',options:[{label:'Unset',value:'unset'},{label:'False',value:false},{label:'True',value:true}],default:'unset',visible:true},{name:'virtual_env_packages',label:t('launchModel.virtualEnvPackage'),type:'dynamicField',mode:'value',valuePlaceholder:'value',visible:true}]},{name:'nested_section_env',label:t('launchModel.envVariableConfig'),type:'collapse',visible:true,children:[{name:'envs',label:t('launchModel.envVariable'),type:'dynamicField',mode:'key-value',keyPlaceholder:'key',valuePlaceholder:'value',visible:true}]},{name:'custom',label:t('launchModel.additionalParametersForInferenceEngine'),type:'dynamicField',mode:'key-value',keyPlaceholder:'key',valuePlaceholder:'value',visible:true}],video:[{name:'model_uid',label:t('launchModel.modelUID.optional'),type:'input',visible:true},{name:'replica',label:t('launchModel.replica'),type:'number',visible:true,default:1,inputProps:{inputProps:{min:1}},error:!!formData.replica&&!/^[1-9]\\d*$/.test(formData.replica),helperText:t('launchModel.enterIntegerGreaterThanZero')},{name:'n_gpu',label:t('launchModel.device'),type:'select',default:gpuAvailable===0?'CPU':'GPU',options:getNGPURange('video'),visible:true},{name:'gpu_idx',label:t('launchModel.GPUIdx'),type:'input',error:!!formData.gpu_idx&&!/^\\d+(?:,\\d+)*$/.test(formData.gpu_idx),helperText:t('launchModel.enterCommaSeparatedNumbers'),visible:!!formData.n_gpu&&formData.n_gpu==='GPU'},{name:'worker_ip',label:t('launchModel.workerIp.optional'),type:'input',visible:true},{name:'download_hub',label:t('launchModel.downloadHub.optional'),type:'select',options:downloadHubOptions,visible:true},{name:'model_path',label:t('launchModel.modelPath.optional'),type:'input',visible:true},{name:'request_limits',label:t('launchModel.requestLimits.optional'),type:'number',inputProps:{inputProps:{min:1}},error:!!formData.request_limits&&!/^[1-9]\\d*$/.test(formData.request_limits),helperText:t('launchModel.enterIntegerGreaterThanZero'),visible:true},{name:'cpu_offload',label:t('launchModel.CPUOffload'),type:'switch',default:false,tip:t('launchModel.CPUOffload.tip'),visible:true},{name:'nested_section_lora',label:t('launchModel.loraConfig'),type:'collapse',visible:true,children:[{name:'lora_list',label:t('launchModel.loraModelConfig'),type:'dynamicField',mode:'key-value',keyPlaceholder:'lora_name',valuePlaceholder:'local_path',visible:true},{name:'image_lora_load_kwargs',label:t('launchModel.loraLoadKwargsForImageModel'),type:'dynamicField',mode:'key-value',visible:true},{name:'image_lora_fuse_kwargs',label:t('launchModel.loraFuseKwargsForImageModel'),type:'dynamicField',mode:'key-value',visible:true}]},{name:'nested_section_virtualEnv',label:t('launchModel.virtualEnvConfig'),type:'collapse',visible:true,children:[{name:'enable_virtual_env',label:t('launchModel.modelVirtualEnv'),type:'radio',options:[{label:'Unset',value:'unset'},{label:'False',value:false},{label:'True',value:true}],default:'unset',visible:true},{name:'virtual_env_packages',label:t('launchModel.virtualEnvPackage'),type:'dynamicField',mode:'value',valuePlaceholder:'value',visible:true}]},{name:'nested_section_env',label:t('launchModel.envVariableConfig'),type:'collapse',visible:true,children:[{name:'envs',label:t('launchModel.envVariable'),type:'dynamicField',mode:'key-value',keyPlaceholder:'key',valuePlaceholder:'value',visible:true}]},{name:'custom',label:t('launchModel.additionalParametersForInferenceEngine'),type:'dynamicField',mode:'key-value',keyPlaceholder:'key',valuePlaceholder:'value',visible:true}],flexible:[{name:'model_uid',label:t('launchModel.modelUID.optional'),type:'input',visible:true},{name:'replica',label:t('launchModel.replica'),type:'number',visible:true,default:1,inputProps:{inputProps:{min:1}},error:!!formData.replica&&!/^[1-9]\\d*$/.test(formData.replica),helperText:t('launchModel.enterIntegerGreaterThanZero')},{name:'n_gpu',label:t('launchModel.device'),type:'select',default:gpuAvailable===0?'CPU':'GPU',options:getNGPURange('audio'),visible:true},{name:'gpu_idx',label:t('launchModel.GPUIdx'),type:'input',error:!!formData.gpu_idx&&!/^\\d+(?:,\\d+)*$/.test(formData.gpu_idx),helperText:t('launchModel.enterCommaSeparatedNumbers'),visible:!!formData.n_gpu&&formData.n_gpu==='GPU'},{name:'worker_ip',label:t('launchModel.workerIp.optional'),type:'input',visible:true},{name:'model_path',label:t('launchModel.modelPath.optional'),type:'input',visible:true},{name:'request_limits',label:t('launchModel.requestLimits.optional'),type:'number',inputProps:{inputProps:{min:1}},error:!!formData.request_limits&&!/^[1-9]\\d*$/.test(formData.request_limits),helperText:t('launchModel.enterIntegerGreaterThanZero'),visible:true},{name:'nested_section_virtualEnv',label:t('launchModel.virtualEnvConfig'),type:'collapse',visible:true,children:[{name:'enable_virtual_env',label:t('launchModel.modelVirtualEnv'),type:'radio',options:[{label:'Unset',value:'unset'},{label:'False',value:false},{label:'True',value:true}],default:'unset',visible:true},{name:'virtual_env_packages',label:t('launchModel.virtualEnvPackage'),type:'dynamicField',mode:'value',valuePlaceholder:'value',visible:true}]},{name:'nested_section_env',label:t('launchModel.envVariableConfig'),type:'collapse',visible:true,children:[{name:'envs',label:t('launchModel.envVariable'),type:'dynamicField',mode:'key-value',keyPlaceholder:'key',valuePlaceholder:'value',visible:true}]},{name:'custom',label:t('launchModel.additionalParametersForInferenceEngine'),type:'dynamicField',mode:'key-value',keyPlaceholder:'key',valuePlaceholder:'value',visible:true}]};return config;}","map":{"version":3,"names":["additionalParameterTipList","quantizationParametersTipList","getModelFormConfig","_ref","_modelData$model_abil","_formData$model_engin","t","formData","modelData","gpuAvailable","engineItems","formatItems","sizeItems","quantizationItems","getNGPURange","downloadHubOptions","enginesWithNWorker","multimodalProjectorOptions","config","LLM","name","label","type","options","visible","required","disabled","model_engine","model_format","model_size_in_billions","default","length","includes","quantization","inputProps","min","error","replica","test","helperText","model_ability","children","request_limits","n_worker","gpu_idx","mode","keyPlaceholder","valuePlaceholder","value","keyOptions","concat","toLocaleLowerCase","embedding","n_gpu","rerank","image","_toConsumableArray","gguf_quantizations","lightning_versions","tip","audio","video","flexible"],"sources":["/home/runner/work/inference/inference/xinference/ui/web/ui/src/scenes/launch_model/components/modelFormConfig.js"],"sourcesContent":["import {\n additionalParameterTipList,\n quantizationParametersTipList,\n} from '../data/data'\n\nexport default function getModelFormConfig({\n t,\n formData,\n modelData,\n gpuAvailable,\n engineItems,\n formatItems,\n sizeItems,\n quantizationItems,\n getNGPURange,\n downloadHubOptions,\n enginesWithNWorker,\n multimodalProjectorOptions,\n}) {\n const config = {\n LLM: [\n {\n name: 'model_engine',\n label: t('launchModel.modelEngine'),\n type: 'select',\n options: engineItems,\n visible: true,\n required: true,\n },\n {\n name: 'model_format',\n label: t('launchModel.modelFormat'),\n type: 'select',\n options: formatItems,\n visible: true,\n disabled: !formData.model_engine,\n required: true,\n },\n {\n name: 'model_size_in_billions',\n label: t('launchModel.modelSize'),\n type: 'select',\n options: sizeItems,\n visible: true,\n disabled: !formData.model_format,\n required: true,\n },\n {\n name: 'quantization',\n label: t('launchModel.quantization'),\n type: 'select',\n options: quantizationItems,\n visible: true,\n disabled: !formData.model_size_in_billions,\n required: true,\n },\n {\n name: 'multimodal_projector',\n label: t('launchModel.multimodelProjector'),\n type: 'select',\n default: multimodalProjectorOptions[0],\n options: multimodalProjectorOptions,\n disabled: !formData.model_size_in_billions,\n required: true,\n visible: !!multimodalProjectorOptions.length,\n },\n {\n name: 'n_gpu',\n label: t(\n enginesWithNWorker.includes(formData.model_engine)\n ? 'launchModel.nGPUPerWorker'\n : 'launchModel.nGPU'\n ),\n type: 'select',\n default: 'auto',\n options: getNGPURange('LLM'),\n disabled: !formData.quantization,\n visible: true,\n },\n {\n name: 'n_gpu_layers',\n label: t('launchModel.nGpuLayers'),\n type: 'number',\n default: -1,\n inputProps: {\n inputProps: {\n min: -1,\n },\n },\n disabled: !formData.quantization,\n required: true,\n visible: !!['ggufv2', 'ggmlv3'].includes(formData.model_format),\n },\n {\n name: 'replica',\n label: t('launchModel.replica'),\n type: 'number',\n default: 1,\n inputProps: {\n inputProps: {\n min: 1,\n },\n },\n error: !!formData.replica && !/^[1-9]\\d*$/.test(formData.replica),\n helperText: t('launchModel.enterIntegerGreaterThanZero'),\n disabled: !formData.quantization,\n visible: true,\n },\n {\n name: 'enable_thinking',\n label: t('launchModel.enableThinking'),\n type: 'switch',\n visible: !!modelData.model_ability?.includes('hybrid'),\n default: true,\n },\n {\n name: 'reasoning_content',\n label: t('launchModel.parsingReasoningContent'),\n type: 'switch',\n default: false,\n },\n {\n name: 'nested_section_optional',\n label: t('launchModel.optionalConfigurations'),\n type: 'collapse',\n visible: true,\n children: [\n {\n name: 'model_uid',\n label: t('launchModel.modelUID.optional'),\n type: 'input',\n visible: true,\n },\n {\n name: 'request_limits',\n label: t('launchModel.requestLimits.optional'),\n type: 'number',\n inputProps: {\n inputProps: {\n min: 1,\n },\n },\n error:\n !!formData.request_limits &&\n !/^[1-9]\\d*$/.test(formData.request_limits),\n helperText: t('launchModel.enterIntegerGreaterThanZero'),\n visible: true,\n },\n {\n name: 'n_worker',\n label: t('launchModel.workerCount.optional'),\n type: 'number',\n default: 1,\n inputProps: {\n inputProps: {\n min: 1,\n },\n },\n error: !!formData.n_worker && !/^[1-9]\\d*$/.test(formData.n_worker),\n helperText: t('launchModel.enterIntegerGreaterThanZero'),\n visible:\n !!formData.model_engine &&\n enginesWithNWorker.includes(formData.model_engine),\n },\n {\n name: 'worker_ip',\n label: t('launchModel.workerIp.optional'),\n type: 'input',\n visible: true,\n },\n {\n name: 'gpu_idx',\n label: t('launchModel.GPUIdx'),\n type: 'input',\n error:\n !!formData.gpu_idx && !/^\\d+(?:,\\d+)*$/.test(formData.gpu_idx),\n helperText: t('launchModel.enterCommaSeparatedNumbers'),\n visible: true,\n },\n {\n name: 'download_hub',\n label: t('launchModel.downloadHub.optional'),\n type: 'select',\n options: downloadHubOptions,\n visible: true,\n },\n {\n name: 'model_path',\n label: t('launchModel.modelPath.optional'),\n type: 'input',\n visible: true,\n },\n {\n name: 'nested_section_lora',\n label: t('launchModel.loraConfig'),\n type: 'collapse',\n visible: true,\n children: [\n {\n name: 'lora_list',\n label: t('launchModel.loraModelConfig'),\n type: 'dynamicField',\n mode: 'key-value',\n keyPlaceholder: 'lora_name',\n valuePlaceholder: 'local_path',\n visible: true,\n },\n ],\n },\n {\n name: 'nested_section_virtualEnv',\n label: t('launchModel.virtualEnvConfig'),\n type: 'collapse',\n visible: true,\n children: [\n {\n name: 'enable_virtual_env',\n label: t('launchModel.modelVirtualEnv'),\n type: 'radio',\n options: [\n { label: 'Unset', value: 'unset' },\n { label: 'False', value: false },\n { label: 'True', value: true },\n ],\n default: 'unset',\n visible: true,\n },\n {\n name: 'virtual_env_packages',\n label: t('launchModel.virtualEnvPackage'),\n type: 'dynamicField',\n mode: 'value',\n valuePlaceholder: 'value',\n visible: true,\n },\n ],\n },\n {\n name: 'nested_section_env',\n label: t('launchModel.envVariableConfig'),\n type: 'collapse',\n visible: true,\n children: [\n {\n name: 'envs',\n label: t('launchModel.envVariable'),\n type: 'dynamicField',\n mode: 'key-value',\n keyPlaceholder: 'key',\n valuePlaceholder: 'value',\n visible: true,\n },\n ],\n },\n ],\n },\n {\n name: 'quantization_config',\n label: t(\n 'launchModel.additionalQuantizationParametersForInferenceEngine'\n ),\n type: 'dynamicField',\n mode: 'key-value',\n keyPlaceholder: 'key',\n valuePlaceholder: 'value',\n keyOptions: quantizationParametersTipList,\n visible:\n !!formData.model_engine && formData.model_engine === 'Transformers',\n },\n {\n name: 'custom',\n label: `${t('launchModel.additionalParametersForInferenceEngine')}${\n formData.model_engine ? ': ' + formData.model_engine : ''\n }`,\n type: 'dynamicField',\n mode: 'key-value',\n keyPlaceholder: 'key',\n valuePlaceholder: 'value',\n keyOptions:\n additionalParameterTipList[\n formData.model_engine?.toLocaleLowerCase()\n ],\n visible: true,\n },\n ],\n embedding: [\n {\n name: 'model_engine',\n label: t('launchModel.modelEngine'),\n type: 'select',\n options: engineItems,\n visible: true,\n },\n {\n name: 'model_format',\n label: t('launchModel.modelFormat'),\n type: 'select',\n options: formatItems,\n visible: true,\n disabled: !formData.model_engine,\n },\n {\n name: 'quantization',\n label: t('launchModel.quantization'),\n type: 'select',\n options: quantizationItems,\n visible: true,\n disabled: !formData.model_format,\n },\n {\n name: 'replica',\n label: t('launchModel.replica'),\n type: 'number',\n visible: true,\n default: 1,\n inputProps: {\n inputProps: {\n min: 1,\n },\n },\n error: !!formData.replica && !/^[1-9]\\d*$/.test(formData.replica),\n helperText: t('launchModel.enterIntegerGreaterThanZero'),\n disabled: !formData.quantization,\n },\n {\n name: 'n_gpu',\n label: t('launchModel.device'),\n type: 'select',\n default: gpuAvailable === 0 ? 'CPU' : 'GPU',\n options: getNGPURange('embedding'),\n visible: true,\n },\n {\n name: 'gpu_idx',\n label: t('launchModel.GPUIdx'),\n type: 'input',\n error: !!formData.gpu_idx && !/^\\d+(?:,\\d+)*$/.test(formData.gpu_idx),\n helperText: t('launchModel.enterCommaSeparatedNumbers'),\n visible: !!formData.n_gpu && formData.n_gpu === 'GPU',\n },\n {\n name: 'model_uid',\n label: t('launchModel.modelUID.optional'),\n type: 'input',\n visible: true,\n },\n {\n name: 'worker_ip',\n label: t('launchModel.workerIp.optional'),\n type: 'input',\n visible: true,\n },\n {\n name: 'download_hub',\n label: t('launchModel.downloadHub.optional'),\n type: 'select',\n options: downloadHubOptions,\n visible: true,\n },\n {\n name: 'model_path',\n label: t('launchModel.modelPath.optional'),\n type: 'input',\n visible: true,\n },\n {\n name: 'request_limits',\n label: t('launchModel.requestLimits.optional'),\n type: 'number',\n inputProps: {\n inputProps: {\n min: 1,\n },\n },\n error:\n !!formData.request_limits &&\n !/^[1-9]\\d*$/.test(formData.request_limits),\n helperText: t('launchModel.enterIntegerGreaterThanZero'),\n visible: true,\n },\n {\n name: 'nested_section_virtualEnv',\n label: t('launchModel.virtualEnvConfig'),\n type: 'collapse',\n visible: true,\n children: [\n {\n name: 'enable_virtual_env',\n label: t('launchModel.modelVirtualEnv'),\n type: 'radio',\n options: [\n { label: 'Unset', value: 'unset' },\n { label: 'False', value: false },\n { label: 'True', value: true },\n ],\n default: 'unset',\n visible: true,\n },\n {\n name: 'virtual_env_packages',\n label: t('launchModel.virtualEnvPackage'),\n type: 'dynamicField',\n mode: 'value',\n valuePlaceholder: 'value',\n visible: true,\n },\n ],\n },\n {\n name: 'nested_section_env',\n label: t('launchModel.envVariableConfig'),\n type: 'collapse',\n visible: true,\n children: [\n {\n name: 'envs',\n label: t('launchModel.envVariable'),\n type: 'dynamicField',\n mode: 'key-value',\n keyPlaceholder: 'key',\n valuePlaceholder: 'value',\n visible: true,\n },\n ],\n },\n {\n name: 'custom',\n label: `${t('launchModel.additionalParametersForInferenceEngine')}${\n formData.model_engine ? ': ' + formData.model_engine : ''\n }`,\n type: 'dynamicField',\n mode: 'key-value',\n keyPlaceholder: 'key',\n valuePlaceholder: 'value',\n visible: true,\n },\n ],\n rerank: [\n {\n name: 'model_engine',\n label: t('launchModel.modelEngine'),\n type: 'select',\n options: engineItems,\n visible: true,\n },\n {\n name: 'model_format',\n label: t('launchModel.modelFormat'),\n type: 'select',\n options: formatItems,\n visible: true,\n disabled: !formData.model_engine,\n },\n {\n name: 'quantization',\n label: t('launchModel.quantization'),\n type: 'select',\n options: quantizationItems,\n visible: true,\n disabled: !formData.model_format,\n },\n {\n name: 'replica',\n label: t('launchModel.replica'),\n type: 'number',\n visible: true,\n default: 1,\n inputProps: {\n inputProps: {\n min: 1,\n },\n },\n error: !!formData.replica && !/^[1-9]\\d*$/.test(formData.replica),\n helperText: t('launchModel.enterIntegerGreaterThanZero'),\n },\n {\n name: 'n_gpu',\n label: t('launchModel.device'),\n type: 'select',\n default: gpuAvailable === 0 ? 'CPU' : 'GPU',\n options: getNGPURange('rerank'),\n visible: true,\n },\n {\n name: 'gpu_idx',\n label: t('launchModel.GPUIdx'),\n type: 'input',\n error: !!formData.gpu_idx && !/^\\d+(?:,\\d+)*$/.test(formData.gpu_idx),\n helperText: t('launchModel.enterCommaSeparatedNumbers'),\n visible: !!formData.n_gpu && formData.n_gpu === 'GPU',\n },\n {\n name: 'model_uid',\n label: t('launchModel.modelUID.optional'),\n type: 'input',\n visible: true,\n },\n {\n name: 'worker_ip',\n label: t('launchModel.workerIp.optional'),\n type: 'input',\n visible: true,\n },\n {\n name: 'download_hub',\n label: t('launchModel.downloadHub.optional'),\n type: 'select',\n options: downloadHubOptions,\n visible: true,\n },\n {\n name: 'model_path',\n label: t('launchModel.modelPath.optional'),\n type: 'input',\n visible: true,\n },\n {\n name: 'request_limits',\n label: t('launchModel.requestLimits.optional'),\n type: 'number',\n inputProps: {\n inputProps: {\n min: 1,\n },\n },\n error:\n !!formData.request_limits &&\n !/^[1-9]\\d*$/.test(formData.request_limits),\n helperText: t('launchModel.enterIntegerGreaterThanZero'),\n visible: true,\n },\n {\n name: 'nested_section_virtualEnv',\n label: t('launchModel.virtualEnvConfig'),\n type: 'collapse',\n visible: true,\n children: [\n {\n name: 'enable_virtual_env',\n label: t('launchModel.modelVirtualEnv'),\n type: 'radio',\n options: [\n { label: 'Unset', value: 'unset' },\n { label: 'False', value: false },\n { label: 'True', value: true },\n ],\n default: 'unset',\n visible: true,\n },\n {\n name: 'virtual_env_packages',\n label: t('launchModel.virtualEnvPackage'),\n type: 'dynamicField',\n mode: 'value',\n valuePlaceholder: 'value',\n visible: true,\n },\n ],\n },\n {\n name: 'nested_section_env',\n label: t('launchModel.envVariableConfig'),\n type: 'collapse',\n visible: true,\n children: [\n {\n name: 'envs',\n label: t('launchModel.envVariable'),\n type: 'dynamicField',\n mode: 'key-value',\n keyPlaceholder: 'key',\n valuePlaceholder: 'value',\n visible: true,\n },\n ],\n },\n {\n name: 'custom',\n label: t('launchModel.additionalParametersForInferenceEngine'),\n type: 'dynamicField',\n mode: 'key-value',\n keyPlaceholder: 'key',\n valuePlaceholder: 'value',\n visible: true,\n },\n ],\n image: [\n {\n name: 'model_uid',\n label: t('launchModel.modelUID.optional'),\n type: 'input',\n visible: true,\n },\n {\n name: 'replica',\n label: t('launchModel.replica'),\n type: 'number',\n visible: true,\n default: 1,\n inputProps: {\n inputProps: {\n min: 1,\n },\n },\n error: !!formData.replica && !/^[1-9]\\d*$/.test(formData.replica),\n helperText: t('launchModel.enterIntegerGreaterThanZero'),\n },\n {\n name: 'n_gpu',\n label: t('launchModel.nGPU'),\n type: 'select',\n default: 'auto',\n options: getNGPURange('image'),\n visible: true,\n },\n {\n name: 'gpu_idx',\n label: t('launchModel.GPUIdx'),\n type: 'input',\n error: !!formData.gpu_idx && !/^\\d+(?:,\\d+)*$/.test(formData.gpu_idx),\n helperText: t('launchModel.enterCommaSeparatedNumbers'),\n visible: !!formData.n_gpu && formData.n_gpu !== 'CPU',\n },\n {\n name: 'worker_ip',\n label: t('launchModel.workerIp.optional'),\n type: 'input',\n visible: true,\n },\n {\n name: 'download_hub',\n label: t('launchModel.downloadHub.optional'),\n type: 'select',\n options: downloadHubOptions,\n visible: true,\n },\n {\n name: 'model_path',\n label: t('launchModel.modelPath.optional'),\n type: 'input',\n visible: true,\n },\n {\n name: 'gguf_quantization',\n label: t('launchModel.GGUFQuantization.optional'),\n type: 'select',\n options: ['none', ...(modelData.gguf_quantizations || [])],\n visible: !!modelData.gguf_quantizations,\n },\n {\n name: 'gguf_model_path',\n label: t('launchModel.GGUFModelPath.optional'),\n type: 'input',\n visible: !!modelData.gguf_quantizations,\n },\n {\n name: 'lightning_version',\n label: t('launchModel.lightningVersions.optional'),\n type: 'select',\n options: ['none', ...(modelData.lightning_versions || [])],\n visible: !!modelData.lightning_versions,\n },\n {\n name: 'lightning_model_path',\n label: t('launchModel.lightningModelPath.optional'),\n type: 'input',\n visible: !!modelData.lightning_versions,\n },\n {\n name: 'request_limits',\n label: t('launchModel.requestLimits.optional'),\n type: 'number',\n inputProps: {\n inputProps: {\n min: 1,\n },\n },\n error:\n !!formData.request_limits &&\n !/^[1-9]\\d*$/.test(formData.request_limits),\n helperText: t('launchModel.enterIntegerGreaterThanZero'),\n visible: true,\n },\n {\n name: 'cpu_offload',\n label: t('launchModel.CPUOffload'),\n type: 'switch',\n default: false,\n tip: t('launchModel.CPUOffload.tip'),\n visible: true,\n },\n {\n name: 'nested_section_lora',\n label: t('launchModel.loraConfig'),\n type: 'collapse',\n visible: true,\n children: [\n {\n name: 'lora_list',\n label: t('launchModel.loraModelConfig'),\n type: 'dynamicField',\n mode: 'key-value',\n keyPlaceholder: 'lora_name',\n valuePlaceholder: 'local_path',\n visible: true,\n },\n {\n name: 'image_lora_load_kwargs',\n label: t('launchModel.loraLoadKwargsForImageModel'),\n type: 'dynamicField',\n mode: 'key-value',\n visible: true,\n },\n {\n name: 'image_lora_fuse_kwargs',\n label: t('launchModel.loraFuseKwargsForImageModel'),\n type: 'dynamicField',\n mode: 'key-value',\n visible: true,\n },\n ],\n },\n {\n name: 'nested_section_virtualEnv',\n label: t('launchModel.virtualEnvConfig'),\n type: 'collapse',\n visible: true,\n children: [\n {\n name: 'enable_virtual_env',\n label: t('launchModel.modelVirtualEnv'),\n type: 'radio',\n options: [\n { label: 'Unset', value: 'unset' },\n { label: 'False', value: false },\n { label: 'True', value: true },\n ],\n default: 'unset',\n visible: true,\n },\n {\n name: 'virtual_env_packages',\n label: t('launchModel.virtualEnvPackage'),\n type: 'dynamicField',\n mode: 'value',\n valuePlaceholder: 'value',\n visible: true,\n },\n ],\n },\n ],\n audio: [\n {\n name: 'model_uid',\n label: t('launchModel.modelUID.optional'),\n type: 'input',\n visible: true,\n },\n {\n name: 'replica',\n label: t('launchModel.replica'),\n type: 'number',\n visible: true,\n default: 1,\n inputProps: {\n inputProps: {\n min: 1,\n },\n },\n error: !!formData.replica && !/^[1-9]\\d*$/.test(formData.replica),\n helperText: t('launchModel.enterIntegerGreaterThanZero'),\n },\n {\n name: 'n_gpu',\n label: t('launchModel.device'),\n type: 'select',\n default: gpuAvailable === 0 ? 'CPU' : 'GPU',\n options: getNGPURange('audio'),\n visible: true,\n },\n {\n name: 'gpu_idx',\n label: t('launchModel.GPUIdx'),\n type: 'input',\n error: !!formData.gpu_idx && !/^\\d+(?:,\\d+)*$/.test(formData.gpu_idx),\n helperText: t('launchModel.enterCommaSeparatedNumbers'),\n visible: !!formData.n_gpu && formData.n_gpu === 'GPU',\n },\n {\n name: 'worker_ip',\n label: t('launchModel.workerIp.optional'),\n type: 'input',\n visible: true,\n },\n {\n name: 'download_hub',\n label: t('launchModel.downloadHub.optional'),\n type: 'select',\n options: downloadHubOptions,\n visible: true,\n },\n {\n name: 'model_path',\n label: t('launchModel.modelPath.optional'),\n type: 'input',\n visible: true,\n },\n {\n name: 'request_limits',\n label: t('launchModel.requestLimits.optional'),\n type: 'number',\n inputProps: {\n inputProps: {\n min: 1,\n },\n },\n error:\n !!formData.request_limits &&\n !/^[1-9]\\d*$/.test(formData.request_limits),\n helperText: t('launchModel.enterIntegerGreaterThanZero'),\n visible: true,\n },\n {\n name: 'nested_section_virtualEnv',\n label: t('launchModel.virtualEnvConfig'),\n type: 'collapse',\n visible: true,\n children: [\n {\n name: 'enable_virtual_env',\n label: t('launchModel.modelVirtualEnv'),\n type: 'radio',\n options: [\n { label: 'Unset', value: 'unset' },\n { label: 'False', value: false },\n { label: 'True', value: true },\n ],\n default: 'unset',\n visible: true,\n },\n {\n name: 'virtual_env_packages',\n label: t('launchModel.virtualEnvPackage'),\n type: 'dynamicField',\n mode: 'value',\n valuePlaceholder: 'value',\n visible: true,\n },\n ],\n },\n {\n name: 'nested_section_env',\n label: t('launchModel.envVariableConfig'),\n type: 'collapse',\n visible: true,\n children: [\n {\n name: 'envs',\n label: t('launchModel.envVariable'),\n type: 'dynamicField',\n mode: 'key-value',\n keyPlaceholder: 'key',\n valuePlaceholder: 'value',\n visible: true,\n },\n ],\n },\n {\n name: 'custom',\n label: t('launchModel.additionalParametersForInferenceEngine'),\n type: 'dynamicField',\n mode: 'key-value',\n keyPlaceholder: 'key',\n valuePlaceholder: 'value',\n visible: true,\n },\n ],\n video: [\n {\n name: 'model_uid',\n label: t('launchModel.modelUID.optional'),\n type: 'input',\n visible: true,\n },\n {\n name: 'replica',\n label: t('launchModel.replica'),\n type: 'number',\n visible: true,\n default: 1,\n inputProps: {\n inputProps: {\n min: 1,\n },\n },\n error: !!formData.replica && !/^[1-9]\\d*$/.test(formData.replica),\n helperText: t('launchModel.enterIntegerGreaterThanZero'),\n },\n {\n name: 'n_gpu',\n label: t('launchModel.device'),\n type: 'select',\n default: gpuAvailable === 0 ? 'CPU' : 'GPU',\n options: getNGPURange('video'),\n visible: true,\n },\n {\n name: 'gpu_idx',\n label: t('launchModel.GPUIdx'),\n type: 'input',\n error: !!formData.gpu_idx && !/^\\d+(?:,\\d+)*$/.test(formData.gpu_idx),\n helperText: t('launchModel.enterCommaSeparatedNumbers'),\n visible: !!formData.n_gpu && formData.n_gpu === 'GPU',\n },\n {\n name: 'worker_ip',\n label: t('launchModel.workerIp.optional'),\n type: 'input',\n visible: true,\n },\n {\n name: 'download_hub',\n label: t('launchModel.downloadHub.optional'),\n type: 'select',\n options: downloadHubOptions,\n visible: true,\n },\n {\n name: 'model_path',\n label: t('launchModel.modelPath.optional'),\n type: 'input',\n visible: true,\n },\n {\n name: 'request_limits',\n label: t('launchModel.requestLimits.optional'),\n type: 'number',\n inputProps: {\n inputProps: {\n min: 1,\n },\n },\n error:\n !!formData.request_limits &&\n !/^[1-9]\\d*$/.test(formData.request_limits),\n helperText: t('launchModel.enterIntegerGreaterThanZero'),\n visible: true,\n },\n {\n name: 'cpu_offload',\n label: t('launchModel.CPUOffload'),\n type: 'switch',\n default: false,\n tip: t('launchModel.CPUOffload.tip'),\n visible: true,\n },\n {\n name: 'nested_section_lora',\n label: t('launchModel.loraConfig'),\n type: 'collapse',\n visible: true,\n children: [\n {\n name: 'lora_list',\n label: t('launchModel.loraModelConfig'),\n type: 'dynamicField',\n mode: 'key-value',\n keyPlaceholder: 'lora_name',\n valuePlaceholder: 'local_path',\n visible: true,\n },\n {\n name: 'image_lora_load_kwargs',\n label: t('launchModel.loraLoadKwargsForImageModel'),\n type: 'dynamicField',\n mode: 'key-value',\n visible: true,\n },\n {\n name: 'image_lora_fuse_kwargs',\n label: t('launchModel.loraFuseKwargsForImageModel'),\n type: 'dynamicField',\n mode: 'key-value',\n visible: true,\n },\n ],\n },\n {\n name: 'nested_section_virtualEnv',\n label: t('launchModel.virtualEnvConfig'),\n type: 'collapse',\n visible: true,\n children: [\n {\n name: 'enable_virtual_env',\n label: t('launchModel.modelVirtualEnv'),\n type: 'radio',\n options: [\n { label: 'Unset', value: 'unset' },\n { label: 'False', value: false },\n { label: 'True', value: true },\n ],\n default: 'unset',\n visible: true,\n },\n {\n name: 'virtual_env_packages',\n label: t('launchModel.virtualEnvPackage'),\n type: 'dynamicField',\n mode: 'value',\n valuePlaceholder: 'value',\n visible: true,\n },\n ],\n },\n {\n name: 'nested_section_env',\n label: t('launchModel.envVariableConfig'),\n type: 'collapse',\n visible: true,\n children: [\n {\n name: 'envs',\n label: t('launchModel.envVariable'),\n type: 'dynamicField',\n mode: 'key-value',\n keyPlaceholder: 'key',\n valuePlaceholder: 'value',\n visible: true,\n },\n ],\n },\n {\n name: 'custom',\n label: t('launchModel.additionalParametersForInferenceEngine'),\n type: 'dynamicField',\n mode: 'key-value',\n keyPlaceholder: 'key',\n valuePlaceholder: 'value',\n visible: true,\n },\n ],\n flexible: [\n {\n name: 'model_uid',\n label: t('launchModel.modelUID.optional'),\n type: 'input',\n visible: true,\n },\n {\n name: 'replica',\n label: t('launchModel.replica'),\n type: 'number',\n visible: true,\n default: 1,\n inputProps: {\n inputProps: {\n min: 1,\n },\n },\n error: !!formData.replica && !/^[1-9]\\d*$/.test(formData.replica),\n helperText: t('launchModel.enterIntegerGreaterThanZero'),\n },\n {\n name: 'n_gpu',\n label: t('launchModel.device'),\n type: 'select',\n default: gpuAvailable === 0 ? 'CPU' : 'GPU',\n options: getNGPURange('audio'),\n visible: true,\n },\n {\n name: 'gpu_idx',\n label: t('launchModel.GPUIdx'),\n type: 'input',\n error: !!formData.gpu_idx && !/^\\d+(?:,\\d+)*$/.test(formData.gpu_idx),\n helperText: t('launchModel.enterCommaSeparatedNumbers'),\n visible: !!formData.n_gpu && formData.n_gpu === 'GPU',\n },\n {\n name: 'worker_ip',\n label: t('launchModel.workerIp.optional'),\n type: 'input',\n visible: true,\n },\n {\n name: 'model_path',\n label: t('launchModel.modelPath.optional'),\n type: 'input',\n visible: true,\n },\n {\n name: 'request_limits',\n label: t('launchModel.requestLimits.optional'),\n type: 'number',\n inputProps: {\n inputProps: {\n min: 1,\n },\n },\n error:\n !!formData.request_limits &&\n !/^[1-9]\\d*$/.test(formData.request_limits),\n helperText: t('launchModel.enterIntegerGreaterThanZero'),\n visible: true,\n },\n {\n name: 'nested_section_virtualEnv',\n label: t('launchModel.virtualEnvConfig'),\n type: 'collapse',\n visible: true,\n children: [\n {\n name: 'enable_virtual_env',\n label: t('launchModel.modelVirtualEnv'),\n type: 'radio',\n options: [\n { label: 'Unset', value: 'unset' },\n { label: 'False', value: false },\n { label: 'True', value: true },\n ],\n default: 'unset',\n visible: true,\n },\n {\n name: 'virtual_env_packages',\n label: t('launchModel.virtualEnvPackage'),\n type: 'dynamicField',\n mode: 'value',\n valuePlaceholder: 'value',\n visible: true,\n },\n ],\n },\n {\n name: 'nested_section_env',\n label: t('launchModel.envVariableConfig'),\n type: 'collapse',\n visible: true,\n children: [\n {\n name: 'envs',\n label: t('launchModel.envVariable'),\n type: 'dynamicField',\n mode: 'key-value',\n keyPlaceholder: 'key',\n valuePlaceholder: 'value',\n visible: true,\n },\n ],\n },\n {\n name: 'custom',\n label: t('launchModel.additionalParametersForInferenceEngine'),\n type: 'dynamicField',\n mode: 'key-value',\n keyPlaceholder: 'key',\n valuePlaceholder: 'value',\n visible: true,\n },\n ],\n }\n\n return config\n}\n"],"mappings":"wJAAA,OACEA,0BAA0B,CAC1BC,6BAA6B,KACxB,cAAc,CAErB,cAAe,SAAS,CAAAC,kBAAkBA,CAAAC,IAAA,CAavC,KAAAC,qBAAA,CAAAC,qBAAA,IAZD,CAAAC,CAAC,CAAAH,IAAA,CAADG,CAAC,CACDC,QAAQ,CAAAJ,IAAA,CAARI,QAAQ,CACRC,SAAS,CAAAL,IAAA,CAATK,SAAS,CACTC,YAAY,CAAAN,IAAA,CAAZM,YAAY,CACZC,WAAW,CAAAP,IAAA,CAAXO,WAAW,CACXC,WAAW,CAAAR,IAAA,CAAXQ,WAAW,CACXC,SAAS,CAAAT,IAAA,CAATS,SAAS,CACTC,iBAAiB,CAAAV,IAAA,CAAjBU,iBAAiB,CACjBC,YAAY,CAAAX,IAAA,CAAZW,YAAY,CACZC,kBAAkB,CAAAZ,IAAA,CAAlBY,kBAAkB,CAClBC,kBAAkB,CAAAb,IAAA,CAAlBa,kBAAkB,CAClBC,0BAA0B,CAAAd,IAAA,CAA1Bc,0BAA0B,CAE1B,GAAM,CAAAC,MAAM,CAAG,CACbC,GAAG,CAAE,CACH,CACEC,IAAI,CAAE,cAAc,CACpBC,KAAK,CAAEf,CAAC,CAAC,yBAAyB,CAAC,CACnCgB,IAAI,CAAE,QAAQ,CACdC,OAAO,CAAEb,WAAW,CACpBc,OAAO,CAAE,IAAI,CACbC,QAAQ,CAAE,IACZ,CAAC,CACD,CACEL,IAAI,CAAE,cAAc,CACpBC,KAAK,CAAEf,CAAC,CAAC,yBAAyB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,CAAE,QAAQ,CACdC,KAAK,CAAEf,CAAC,CAAC,oDAAoD,CAAC,CAC9DgB,IAAI,CAAE,cAAc,CACpBuB,IAAI,CAAE,WAAW,CACjBC,cAAc,CAAE,KAAK,CACrBC,gBAAgB,CAAE,OAAO,CACzBvB,OAAO,CAAE,IACX,CAAC,CAEL,CAAC,CAED,MAAO,CAAAN,MAAM,CACf","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
@@ -6922,16 +6922,6 @@
6922
6922
  "node": ">=0.10.0"
6923
6923
  }
6924
6924
  },
6925
- "node_modules/clipboard": {
6926
- "version": "2.0.11",
6927
- "resolved": "https://registry.npmjs.org/clipboard/-/clipboard-2.0.11.tgz",
6928
- "integrity": "sha512-C+0bbOqkezLIsmWSvlsXS0Q0bmkugu7jcfMIACB+RDEntIzQIkdr148we28AfSloQLRdZlYL/QYyrq05j/3Faw==",
6929
- "dependencies": {
6930
- "good-listener": "^1.2.2",
6931
- "select": "^1.1.2",
6932
- "tiny-emitter": "^2.0.0"
6933
- }
6934
- },
6935
6925
  "node_modules/cliui": {
6936
6926
  "version": "7.0.4",
6937
6927
  "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz",
@@ -7844,11 +7834,6 @@
7844
7834
  "node": ">=0.4.0"
7845
7835
  }
7846
7836
  },
7847
- "node_modules/delegate": {
7848
- "version": "3.2.0",
7849
- "resolved": "https://registry.npmjs.org/delegate/-/delegate-3.2.0.tgz",
7850
- "integrity": "sha512-IofjkYBZaZivn0V8nnsMJGBr4jVLxHDheKSW88PyxS5QC4Vo9ZbZVvhzlSxY87fVq3STR6r+4cGepyHkcWOQSw=="
7851
- },
7852
7837
  "node_modules/depd": {
7853
7838
  "version": "2.0.0",
7854
7839
  "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
@@ -9919,14 +9904,6 @@
9919
9904
  "url": "https://github.com/sponsors/sindresorhus"
9920
9905
  }
9921
9906
  },
9922
- "node_modules/good-listener": {
9923
- "version": "1.2.2",
9924
- "resolved": "https://registry.npmjs.org/good-listener/-/good-listener-1.2.2.tgz",
9925
- "integrity": "sha512-goW1b+d9q/HIwbVYZzZ6SsTr4IgE+WA44A0GmPIQstuOrgsFcT7VEJ48nmr9GaRtNu0XTKacFLGnBPAM6Afouw==",
9926
- "dependencies": {
9927
- "delegate": "^3.1.2"
9928
- }
9929
- },
9930
9907
  "node_modules/gopd": {
9931
9908
  "version": "1.0.1",
9932
9909
  "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz",
@@ -16946,11 +16923,6 @@
16946
16923
  "url": "https://opencollective.com/webpack"
16947
16924
  }
16948
16925
  },
16949
- "node_modules/select": {
16950
- "version": "1.1.2",
16951
- "resolved": "https://registry.npmjs.org/select/-/select-1.1.2.tgz",
16952
- "integrity": "sha512-OwpTSOfy6xSs1+pwcNrv0RBMOzI39Lp3qQKUTPVVPRjCdNa5JH/oPRiqsesIskK8TVgmRiHwO4KXlV2Li9dANA=="
16953
- },
16954
16926
  "node_modules/select-hose": {
16955
16927
  "version": "2.0.0",
16956
16928
  "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz",
@@ -18008,11 +17980,6 @@
18008
17980
  "resolved": "https://registry.npmjs.org/tiny-case/-/tiny-case-1.0.3.tgz",
18009
17981
  "integrity": "sha512-Eet/eeMhkO6TX8mnUteS9zgPbUMQa4I6Kkp5ORiBD5476/m+PIRiumP5tmh5ioJpH7k51Kehawy2UDfsnxxY8Q=="
18010
17982
  },
18011
- "node_modules/tiny-emitter": {
18012
- "version": "2.1.0",
18013
- "resolved": "https://registry.npmjs.org/tiny-emitter/-/tiny-emitter-2.1.0.tgz",
18014
- "integrity": "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q=="
18015
- },
18016
17983
  "node_modules/tiny-warning": {
18017
17984
  "version": "1.0.3",
18018
17985
  "resolved": "https://registry.npmjs.org/tiny-warning/-/tiny-warning-1.0.3.tgz",
@@ -27,7 +27,6 @@
27
27
  "@testing-library/jest-dom": "^5.16.5",
28
28
  "@testing-library/react": "^13.4.0",
29
29
  "@testing-library/user-event": "^13.5.0",
30
- "clipboard": "^2.0.11",
31
30
  "formik": "^2.4.2",
32
31
  "i18next": "^23.0.0",
33
32
  "nunjucks": "^3.2.4",
@@ -6972,16 +6971,6 @@
6972
6971
  "node": ">=0.10.0"
6973
6972
  }
6974
6973
  },
6975
- "node_modules/clipboard": {
6976
- "version": "2.0.11",
6977
- "resolved": "https://registry.npmjs.org/clipboard/-/clipboard-2.0.11.tgz",
6978
- "integrity": "sha512-C+0bbOqkezLIsmWSvlsXS0Q0bmkugu7jcfMIACB+RDEntIzQIkdr148we28AfSloQLRdZlYL/QYyrq05j/3Faw==",
6979
- "dependencies": {
6980
- "good-listener": "^1.2.2",
6981
- "select": "^1.1.2",
6982
- "tiny-emitter": "^2.0.0"
6983
- }
6984
- },
6985
6974
  "node_modules/cliui": {
6986
6975
  "version": "7.0.4",
6987
6976
  "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz",
@@ -7894,11 +7883,6 @@
7894
7883
  "node": ">=0.4.0"
7895
7884
  }
7896
7885
  },
7897
- "node_modules/delegate": {
7898
- "version": "3.2.0",
7899
- "resolved": "https://registry.npmjs.org/delegate/-/delegate-3.2.0.tgz",
7900
- "integrity": "sha512-IofjkYBZaZivn0V8nnsMJGBr4jVLxHDheKSW88PyxS5QC4Vo9ZbZVvhzlSxY87fVq3STR6r+4cGepyHkcWOQSw=="
7901
- },
7902
7886
  "node_modules/depd": {
7903
7887
  "version": "2.0.0",
7904
7888
  "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
@@ -9982,14 +9966,6 @@
9982
9966
  "url": "https://github.com/sponsors/sindresorhus"
9983
9967
  }
9984
9968
  },
9985
- "node_modules/good-listener": {
9986
- "version": "1.2.2",
9987
- "resolved": "https://registry.npmjs.org/good-listener/-/good-listener-1.2.2.tgz",
9988
- "integrity": "sha512-goW1b+d9q/HIwbVYZzZ6SsTr4IgE+WA44A0GmPIQstuOrgsFcT7VEJ48nmr9GaRtNu0XTKacFLGnBPAM6Afouw==",
9989
- "dependencies": {
9990
- "delegate": "^3.1.2"
9991
- }
9992
- },
9993
9969
  "node_modules/gopd": {
9994
9970
  "version": "1.0.1",
9995
9971
  "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz",
@@ -17009,11 +16985,6 @@
17009
16985
  "url": "https://opencollective.com/webpack"
17010
16986
  }
17011
16987
  },
17012
- "node_modules/select": {
17013
- "version": "1.1.2",
17014
- "resolved": "https://registry.npmjs.org/select/-/select-1.1.2.tgz",
17015
- "integrity": "sha512-OwpTSOfy6xSs1+pwcNrv0RBMOzI39Lp3qQKUTPVVPRjCdNa5JH/oPRiqsesIskK8TVgmRiHwO4KXlV2Li9dANA=="
17016
- },
17017
16988
  "node_modules/select-hose": {
17018
16989
  "version": "2.0.0",
17019
16990
  "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz",
@@ -18071,11 +18042,6 @@
18071
18042
  "resolved": "https://registry.npmjs.org/tiny-case/-/tiny-case-1.0.3.tgz",
18072
18043
  "integrity": "sha512-Eet/eeMhkO6TX8mnUteS9zgPbUMQa4I6Kkp5ORiBD5476/m+PIRiumP5tmh5ioJpH7k51Kehawy2UDfsnxxY8Q=="
18073
18044
  },
18074
- "node_modules/tiny-emitter": {
18075
- "version": "2.1.0",
18076
- "resolved": "https://registry.npmjs.org/tiny-emitter/-/tiny-emitter-2.1.0.tgz",
18077
- "integrity": "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q=="
18078
- },
18079
18045
  "node_modules/tiny-warning": {
18080
18046
  "version": "1.0.3",
18081
18047
  "resolved": "https://registry.npmjs.org/tiny-warning/-/tiny-warning-1.0.3.tgz",
@@ -23,7 +23,6 @@
23
23
  "@testing-library/jest-dom": "^5.16.5",
24
24
  "@testing-library/react": "^13.4.0",
25
25
  "@testing-library/user-event": "^13.5.0",
26
- "clipboard": "^2.0.11",
27
26
  "formik": "^2.4.2",
28
27
  "i18next": "^23.0.0",
29
28
  "nunjucks": "^3.2.4",