xinference 1.10.0__py3-none-any.whl → 1.11.0__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 (328) hide show
  1. xinference/_version.py +3 -3
  2. xinference/api/restful_api.py +473 -31
  3. xinference/client/restful/async_restful_client.py +178 -8
  4. xinference/client/restful/restful_client.py +151 -3
  5. xinference/core/supervisor.py +99 -53
  6. xinference/core/worker.py +10 -0
  7. xinference/deploy/cmdline.py +15 -0
  8. xinference/model/audio/core.py +21 -6
  9. xinference/model/audio/indextts2.py +166 -0
  10. xinference/model/audio/model_spec.json +58 -21
  11. xinference/model/image/model_spec.json +159 -90
  12. xinference/model/image/stable_diffusion/core.py +13 -4
  13. xinference/model/llm/__init__.py +6 -2
  14. xinference/model/llm/llm_family.json +1299 -174
  15. xinference/model/llm/mlx/distributed_models/core.py +41 -0
  16. xinference/model/llm/mlx/distributed_models/qwen2.py +1 -2
  17. xinference/model/llm/sglang/core.py +44 -11
  18. xinference/model/llm/tool_parsers/deepseek_r1_tool_parser.py +94 -32
  19. xinference/model/llm/tool_parsers/qwen_tool_parser.py +29 -4
  20. xinference/model/llm/transformers/chatglm.py +3 -0
  21. xinference/model/llm/transformers/core.py +129 -36
  22. xinference/model/llm/transformers/multimodal/minicpmv45.py +340 -0
  23. xinference/model/llm/transformers/multimodal/qwen2_vl.py +34 -8
  24. xinference/model/llm/transformers/utils.py +23 -0
  25. xinference/model/llm/utils.py +48 -32
  26. xinference/model/llm/vllm/core.py +207 -72
  27. xinference/model/utils.py +74 -31
  28. xinference/thirdparty/audiotools/__init__.py +10 -0
  29. xinference/thirdparty/audiotools/core/__init__.py +4 -0
  30. xinference/thirdparty/audiotools/core/audio_signal.py +1682 -0
  31. xinference/thirdparty/audiotools/core/display.py +194 -0
  32. xinference/thirdparty/audiotools/core/dsp.py +390 -0
  33. xinference/thirdparty/audiotools/core/effects.py +647 -0
  34. xinference/thirdparty/audiotools/core/ffmpeg.py +211 -0
  35. xinference/thirdparty/audiotools/core/loudness.py +320 -0
  36. xinference/thirdparty/audiotools/core/playback.py +252 -0
  37. xinference/thirdparty/audiotools/core/templates/__init__.py +0 -0
  38. xinference/thirdparty/audiotools/core/templates/headers.html +322 -0
  39. xinference/thirdparty/audiotools/core/templates/pandoc.css +407 -0
  40. xinference/thirdparty/audiotools/core/templates/widget.html +52 -0
  41. xinference/thirdparty/audiotools/core/util.py +671 -0
  42. xinference/thirdparty/audiotools/core/whisper.py +97 -0
  43. xinference/thirdparty/audiotools/data/__init__.py +3 -0
  44. xinference/thirdparty/audiotools/data/datasets.py +517 -0
  45. xinference/thirdparty/audiotools/data/preprocess.py +81 -0
  46. xinference/thirdparty/audiotools/data/transforms.py +1592 -0
  47. xinference/thirdparty/audiotools/metrics/__init__.py +6 -0
  48. xinference/thirdparty/audiotools/metrics/distance.py +131 -0
  49. xinference/thirdparty/audiotools/metrics/quality.py +159 -0
  50. xinference/thirdparty/audiotools/metrics/spectral.py +247 -0
  51. xinference/thirdparty/audiotools/ml/__init__.py +5 -0
  52. xinference/thirdparty/audiotools/ml/accelerator.py +184 -0
  53. xinference/thirdparty/audiotools/ml/decorators.py +440 -0
  54. xinference/thirdparty/audiotools/ml/experiment.py +90 -0
  55. xinference/thirdparty/audiotools/ml/layers/__init__.py +2 -0
  56. xinference/thirdparty/audiotools/ml/layers/base.py +328 -0
  57. xinference/thirdparty/audiotools/ml/layers/spectral_gate.py +127 -0
  58. xinference/thirdparty/audiotools/post.py +140 -0
  59. xinference/thirdparty/audiotools/preference.py +600 -0
  60. xinference/thirdparty/fish_speech/fish_speech/text/chn_text_norm/text.py +1 -1
  61. xinference/thirdparty/indextts/BigVGAN/ECAPA_TDNN.py +656 -0
  62. xinference/thirdparty/indextts/BigVGAN/__init__.py +0 -0
  63. xinference/thirdparty/indextts/BigVGAN/activations.py +122 -0
  64. xinference/thirdparty/indextts/BigVGAN/alias_free_activation/__init__.py +0 -0
  65. xinference/thirdparty/indextts/BigVGAN/alias_free_activation/cuda/.gitignore +1 -0
  66. xinference/thirdparty/indextts/BigVGAN/alias_free_activation/cuda/__init__.py +0 -0
  67. xinference/thirdparty/indextts/BigVGAN/alias_free_activation/cuda/activation1d.py +76 -0
  68. xinference/thirdparty/indextts/BigVGAN/alias_free_activation/cuda/anti_alias_activation.cpp +23 -0
  69. xinference/thirdparty/indextts/BigVGAN/alias_free_activation/cuda/anti_alias_activation_cuda.cu +256 -0
  70. xinference/thirdparty/indextts/BigVGAN/alias_free_activation/cuda/compat.h +29 -0
  71. xinference/thirdparty/indextts/BigVGAN/alias_free_activation/cuda/load.py +121 -0
  72. xinference/thirdparty/indextts/BigVGAN/alias_free_activation/cuda/type_shim.h +92 -0
  73. xinference/thirdparty/indextts/BigVGAN/alias_free_activation/torch/__init__.py +6 -0
  74. xinference/thirdparty/indextts/BigVGAN/alias_free_activation/torch/act.py +31 -0
  75. xinference/thirdparty/indextts/BigVGAN/alias_free_activation/torch/filter.py +102 -0
  76. xinference/thirdparty/indextts/BigVGAN/alias_free_activation/torch/resample.py +58 -0
  77. xinference/thirdparty/indextts/BigVGAN/alias_free_torch/__init__.py +6 -0
  78. xinference/thirdparty/indextts/BigVGAN/alias_free_torch/act.py +29 -0
  79. xinference/thirdparty/indextts/BigVGAN/alias_free_torch/filter.py +96 -0
  80. xinference/thirdparty/indextts/BigVGAN/alias_free_torch/resample.py +49 -0
  81. xinference/thirdparty/indextts/BigVGAN/bigvgan.py +534 -0
  82. xinference/thirdparty/indextts/BigVGAN/models.py +451 -0
  83. xinference/thirdparty/indextts/BigVGAN/nnet/CNN.py +546 -0
  84. xinference/thirdparty/indextts/BigVGAN/nnet/__init__.py +0 -0
  85. xinference/thirdparty/indextts/BigVGAN/nnet/linear.py +89 -0
  86. xinference/thirdparty/indextts/BigVGAN/nnet/normalization.py +670 -0
  87. xinference/thirdparty/indextts/BigVGAN/utils.py +101 -0
  88. xinference/thirdparty/indextts/__init__.py +0 -0
  89. xinference/thirdparty/indextts/cli.py +65 -0
  90. xinference/thirdparty/indextts/gpt/__init__.py +0 -0
  91. xinference/thirdparty/indextts/gpt/conformer/__init__.py +0 -0
  92. xinference/thirdparty/indextts/gpt/conformer/attention.py +312 -0
  93. xinference/thirdparty/indextts/gpt/conformer/embedding.py +163 -0
  94. xinference/thirdparty/indextts/gpt/conformer/subsampling.py +348 -0
  95. xinference/thirdparty/indextts/gpt/conformer_encoder.py +520 -0
  96. xinference/thirdparty/indextts/gpt/model.py +713 -0
  97. xinference/thirdparty/indextts/gpt/model_v2.py +747 -0
  98. xinference/thirdparty/indextts/gpt/perceiver.py +317 -0
  99. xinference/thirdparty/indextts/gpt/transformers_beam_search.py +1013 -0
  100. xinference/thirdparty/indextts/gpt/transformers_generation_utils.py +4747 -0
  101. xinference/thirdparty/indextts/gpt/transformers_gpt2.py +1878 -0
  102. xinference/thirdparty/indextts/gpt/transformers_modeling_utils.py +5525 -0
  103. xinference/thirdparty/indextts/infer.py +690 -0
  104. xinference/thirdparty/indextts/infer_v2.py +739 -0
  105. xinference/thirdparty/indextts/s2mel/dac/__init__.py +16 -0
  106. xinference/thirdparty/indextts/s2mel/dac/__main__.py +36 -0
  107. xinference/thirdparty/indextts/s2mel/dac/model/__init__.py +4 -0
  108. xinference/thirdparty/indextts/s2mel/dac/model/base.py +294 -0
  109. xinference/thirdparty/indextts/s2mel/dac/model/dac.py +400 -0
  110. xinference/thirdparty/indextts/s2mel/dac/model/discriminator.py +228 -0
  111. xinference/thirdparty/indextts/s2mel/dac/model/encodec.py +320 -0
  112. xinference/thirdparty/indextts/s2mel/dac/nn/__init__.py +3 -0
  113. xinference/thirdparty/indextts/s2mel/dac/nn/layers.py +33 -0
  114. xinference/thirdparty/indextts/s2mel/dac/nn/loss.py +368 -0
  115. xinference/thirdparty/indextts/s2mel/dac/nn/quantize.py +339 -0
  116. xinference/thirdparty/indextts/s2mel/dac/utils/__init__.py +123 -0
  117. xinference/thirdparty/indextts/s2mel/dac/utils/decode.py +95 -0
  118. xinference/thirdparty/indextts/s2mel/dac/utils/encode.py +94 -0
  119. xinference/thirdparty/indextts/s2mel/hf_utils.py +12 -0
  120. xinference/thirdparty/indextts/s2mel/modules/alias_free_torch/__init__.py +5 -0
  121. xinference/thirdparty/indextts/s2mel/modules/alias_free_torch/act.py +29 -0
  122. xinference/thirdparty/indextts/s2mel/modules/alias_free_torch/filter.py +96 -0
  123. xinference/thirdparty/indextts/s2mel/modules/alias_free_torch/resample.py +57 -0
  124. xinference/thirdparty/indextts/s2mel/modules/audio.py +82 -0
  125. xinference/thirdparty/indextts/s2mel/modules/bigvgan/activations.py +120 -0
  126. xinference/thirdparty/indextts/s2mel/modules/bigvgan/alias_free_activation/cuda/__init__.py +0 -0
  127. xinference/thirdparty/indextts/s2mel/modules/bigvgan/alias_free_activation/cuda/activation1d.py +77 -0
  128. xinference/thirdparty/indextts/s2mel/modules/bigvgan/alias_free_activation/cuda/anti_alias_activation.cpp +23 -0
  129. xinference/thirdparty/indextts/s2mel/modules/bigvgan/alias_free_activation/cuda/anti_alias_activation_cuda.cu +246 -0
  130. xinference/thirdparty/indextts/s2mel/modules/bigvgan/alias_free_activation/cuda/compat.h +29 -0
  131. xinference/thirdparty/indextts/s2mel/modules/bigvgan/alias_free_activation/cuda/load.py +86 -0
  132. xinference/thirdparty/indextts/s2mel/modules/bigvgan/alias_free_activation/cuda/type_shim.h +92 -0
  133. xinference/thirdparty/indextts/s2mel/modules/bigvgan/alias_free_activation/torch/__init__.py +6 -0
  134. xinference/thirdparty/indextts/s2mel/modules/bigvgan/alias_free_activation/torch/act.py +30 -0
  135. xinference/thirdparty/indextts/s2mel/modules/bigvgan/alias_free_activation/torch/filter.py +101 -0
  136. xinference/thirdparty/indextts/s2mel/modules/bigvgan/alias_free_activation/torch/resample.py +58 -0
  137. xinference/thirdparty/indextts/s2mel/modules/bigvgan/bigvgan.py +492 -0
  138. xinference/thirdparty/indextts/s2mel/modules/bigvgan/config.json +63 -0
  139. xinference/thirdparty/indextts/s2mel/modules/bigvgan/env.py +18 -0
  140. xinference/thirdparty/indextts/s2mel/modules/bigvgan/meldataset.py +354 -0
  141. xinference/thirdparty/indextts/s2mel/modules/bigvgan/utils.py +99 -0
  142. xinference/thirdparty/indextts/s2mel/modules/campplus/DTDNN.py +115 -0
  143. xinference/thirdparty/indextts/s2mel/modules/campplus/classifier.py +70 -0
  144. xinference/thirdparty/indextts/s2mel/modules/campplus/layers.py +253 -0
  145. xinference/thirdparty/indextts/s2mel/modules/commons.py +632 -0
  146. xinference/thirdparty/indextts/s2mel/modules/diffusion_transformer.py +257 -0
  147. xinference/thirdparty/indextts/s2mel/modules/encodec.py +292 -0
  148. xinference/thirdparty/indextts/s2mel/modules/flow_matching.py +171 -0
  149. xinference/thirdparty/indextts/s2mel/modules/gpt_fast/generate.py +436 -0
  150. xinference/thirdparty/indextts/s2mel/modules/gpt_fast/model.py +360 -0
  151. xinference/thirdparty/indextts/s2mel/modules/gpt_fast/quantize.py +622 -0
  152. xinference/thirdparty/indextts/s2mel/modules/hifigan/f0_predictor.py +55 -0
  153. xinference/thirdparty/indextts/s2mel/modules/hifigan/generator.py +454 -0
  154. xinference/thirdparty/indextts/s2mel/modules/layers.py +354 -0
  155. xinference/thirdparty/indextts/s2mel/modules/length_regulator.py +141 -0
  156. xinference/thirdparty/indextts/s2mel/modules/openvoice/__init__.py +0 -0
  157. xinference/thirdparty/indextts/s2mel/modules/openvoice/api.py +186 -0
  158. xinference/thirdparty/indextts/s2mel/modules/openvoice/attentions.py +465 -0
  159. xinference/thirdparty/indextts/s2mel/modules/openvoice/checkpoints_v2/converter/config.json +57 -0
  160. xinference/thirdparty/indextts/s2mel/modules/openvoice/commons.py +160 -0
  161. xinference/thirdparty/indextts/s2mel/modules/openvoice/mel_processing.py +183 -0
  162. xinference/thirdparty/indextts/s2mel/modules/openvoice/models.py +499 -0
  163. xinference/thirdparty/indextts/s2mel/modules/openvoice/modules.py +598 -0
  164. xinference/thirdparty/indextts/s2mel/modules/openvoice/openvoice_app.py +275 -0
  165. xinference/thirdparty/indextts/s2mel/modules/openvoice/se_extractor.py +153 -0
  166. xinference/thirdparty/indextts/s2mel/modules/openvoice/transforms.py +209 -0
  167. xinference/thirdparty/indextts/s2mel/modules/openvoice/utils.py +194 -0
  168. xinference/thirdparty/indextts/s2mel/modules/quantize.py +229 -0
  169. xinference/thirdparty/indextts/s2mel/modules/rmvpe.py +631 -0
  170. xinference/thirdparty/indextts/s2mel/modules/vocos/__init__.py +4 -0
  171. xinference/thirdparty/indextts/s2mel/modules/vocos/heads.py +164 -0
  172. xinference/thirdparty/indextts/s2mel/modules/vocos/helpers.py +71 -0
  173. xinference/thirdparty/indextts/s2mel/modules/vocos/loss.py +114 -0
  174. xinference/thirdparty/indextts/s2mel/modules/vocos/models.py +118 -0
  175. xinference/thirdparty/indextts/s2mel/modules/vocos/modules.py +213 -0
  176. xinference/thirdparty/indextts/s2mel/modules/vocos/pretrained.py +51 -0
  177. xinference/thirdparty/indextts/s2mel/modules/vocos/spectral_ops.py +192 -0
  178. xinference/thirdparty/indextts/s2mel/modules/wavenet.py +174 -0
  179. xinference/thirdparty/indextts/s2mel/optimizers.py +96 -0
  180. xinference/thirdparty/indextts/s2mel/wav2vecbert_extract.py +148 -0
  181. xinference/thirdparty/indextts/utils/__init__.py +0 -0
  182. xinference/thirdparty/indextts/utils/arch_util.py +120 -0
  183. xinference/thirdparty/indextts/utils/checkpoint.py +34 -0
  184. xinference/thirdparty/indextts/utils/common.py +121 -0
  185. xinference/thirdparty/indextts/utils/feature_extractors.py +50 -0
  186. xinference/thirdparty/indextts/utils/front.py +536 -0
  187. xinference/thirdparty/indextts/utils/maskgct/models/codec/__init__.py +0 -0
  188. xinference/thirdparty/indextts/utils/maskgct/models/codec/amphion_codec/codec.py +427 -0
  189. xinference/thirdparty/indextts/utils/maskgct/models/codec/amphion_codec/quantize/__init__.py +11 -0
  190. xinference/thirdparty/indextts/utils/maskgct/models/codec/amphion_codec/quantize/factorized_vector_quantize.py +150 -0
  191. xinference/thirdparty/indextts/utils/maskgct/models/codec/amphion_codec/quantize/lookup_free_quantize.py +77 -0
  192. xinference/thirdparty/indextts/utils/maskgct/models/codec/amphion_codec/quantize/residual_vq.py +177 -0
  193. xinference/thirdparty/indextts/utils/maskgct/models/codec/amphion_codec/quantize/vector_quantize.py +401 -0
  194. xinference/thirdparty/indextts/utils/maskgct/models/codec/amphion_codec/vocos.py +881 -0
  195. xinference/thirdparty/indextts/utils/maskgct/models/codec/codec_dataset.py +264 -0
  196. xinference/thirdparty/indextts/utils/maskgct/models/codec/codec_inference.py +515 -0
  197. xinference/thirdparty/indextts/utils/maskgct/models/codec/codec_sampler.py +126 -0
  198. xinference/thirdparty/indextts/utils/maskgct/models/codec/codec_trainer.py +166 -0
  199. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/__init__.py +0 -0
  200. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/alias_free_torch/__init__.py +5 -0
  201. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/alias_free_torch/act.py +29 -0
  202. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/alias_free_torch/filter.py +96 -0
  203. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/alias_free_torch/resample.py +57 -0
  204. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/facodec_dataset.py +98 -0
  205. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/facodec_inference.py +137 -0
  206. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/facodec_trainer.py +776 -0
  207. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/modules/JDC/__init__.py +1 -0
  208. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/modules/JDC/bst.t7 +0 -0
  209. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/modules/JDC/model.py +219 -0
  210. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/modules/attentions.py +437 -0
  211. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/modules/commons.py +331 -0
  212. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/modules/gradient_reversal.py +35 -0
  213. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/modules/layers.py +460 -0
  214. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/modules/quantize.py +741 -0
  215. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/modules/style_encoder.py +110 -0
  216. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/modules/wavenet.py +224 -0
  217. xinference/thirdparty/indextts/utils/maskgct/models/codec/facodec/optimizer.py +104 -0
  218. xinference/thirdparty/indextts/utils/maskgct/models/codec/kmeans/repcodec_model.py +210 -0
  219. xinference/thirdparty/indextts/utils/maskgct/models/codec/kmeans/vocos.py +850 -0
  220. xinference/thirdparty/indextts/utils/maskgct/models/codec/melvqgan/melspec.py +108 -0
  221. xinference/thirdparty/indextts/utils/maskgct/models/codec/ns3_codec/README.md +216 -0
  222. xinference/thirdparty/indextts/utils/maskgct/models/codec/ns3_codec/__init__.py +6 -0
  223. xinference/thirdparty/indextts/utils/maskgct/models/codec/ns3_codec/alias_free_torch/__init__.py +5 -0
  224. xinference/thirdparty/indextts/utils/maskgct/models/codec/ns3_codec/alias_free_torch/act.py +29 -0
  225. xinference/thirdparty/indextts/utils/maskgct/models/codec/ns3_codec/alias_free_torch/filter.py +96 -0
  226. xinference/thirdparty/indextts/utils/maskgct/models/codec/ns3_codec/alias_free_torch/resample.py +57 -0
  227. xinference/thirdparty/indextts/utils/maskgct/models/codec/ns3_codec/facodec.py +1222 -0
  228. xinference/thirdparty/indextts/utils/maskgct/models/codec/ns3_codec/gradient_reversal.py +35 -0
  229. xinference/thirdparty/indextts/utils/maskgct/models/codec/ns3_codec/melspec.py +102 -0
  230. xinference/thirdparty/indextts/utils/maskgct/models/codec/ns3_codec/quantize/__init__.py +7 -0
  231. xinference/thirdparty/indextts/utils/maskgct/models/codec/ns3_codec/quantize/fvq.py +116 -0
  232. xinference/thirdparty/indextts/utils/maskgct/models/codec/ns3_codec/quantize/rvq.py +87 -0
  233. xinference/thirdparty/indextts/utils/maskgct/models/codec/ns3_codec/transformer.py +234 -0
  234. xinference/thirdparty/indextts/utils/maskgct/models/codec/speechtokenizer/model.py +184 -0
  235. xinference/thirdparty/indextts/utils/maskgct/models/codec/speechtokenizer/modules/__init__.py +27 -0
  236. xinference/thirdparty/indextts/utils/maskgct/models/codec/speechtokenizer/modules/conv.py +346 -0
  237. xinference/thirdparty/indextts/utils/maskgct/models/codec/speechtokenizer/modules/lstm.py +46 -0
  238. xinference/thirdparty/indextts/utils/maskgct/models/codec/speechtokenizer/modules/norm.py +37 -0
  239. xinference/thirdparty/indextts/utils/maskgct/models/codec/speechtokenizer/modules/quantization/__init__.py +14 -0
  240. xinference/thirdparty/indextts/utils/maskgct/models/codec/speechtokenizer/modules/quantization/ac.py +317 -0
  241. xinference/thirdparty/indextts/utils/maskgct/models/codec/speechtokenizer/modules/quantization/core_vq.py +388 -0
  242. xinference/thirdparty/indextts/utils/maskgct/models/codec/speechtokenizer/modules/quantization/distrib.py +135 -0
  243. xinference/thirdparty/indextts/utils/maskgct/models/codec/speechtokenizer/modules/quantization/vq.py +125 -0
  244. xinference/thirdparty/indextts/utils/maskgct/models/codec/speechtokenizer/modules/seanet.py +414 -0
  245. xinference/thirdparty/indextts/utils/maskgct/models/codec/vevo/vevo_repcodec.py +592 -0
  246. xinference/thirdparty/indextts/utils/maskgct/models/tts/maskgct/ckpt/wav2vec2bert_stats.pt +0 -0
  247. xinference/thirdparty/indextts/utils/maskgct/models/tts/maskgct/llama_nar.py +650 -0
  248. xinference/thirdparty/indextts/utils/maskgct/models/tts/maskgct/maskgct_s2a.py +503 -0
  249. xinference/thirdparty/indextts/utils/maskgct_utils.py +259 -0
  250. xinference/thirdparty/indextts/utils/text_utils.py +41 -0
  251. xinference/thirdparty/indextts/utils/typical_sampling.py +30 -0
  252. xinference/thirdparty/indextts/utils/utils.py +93 -0
  253. xinference/thirdparty/indextts/utils/webui_utils.py +42 -0
  254. xinference/thirdparty/indextts/utils/xtransformers.py +1247 -0
  255. xinference/thirdparty/indextts/vqvae/__init__.py +0 -0
  256. xinference/thirdparty/indextts/vqvae/xtts_dvae.py +395 -0
  257. xinference/thirdparty/melo/text/chinese_mix.py +2 -2
  258. xinference/types.py +9 -0
  259. xinference/ui/gradio/media_interface.py +66 -8
  260. xinference/ui/web/ui/build/asset-manifest.json +6 -6
  261. xinference/ui/web/ui/build/index.html +1 -1
  262. xinference/ui/web/ui/build/static/css/main.5ea97072.css +2 -0
  263. xinference/ui/web/ui/build/static/css/main.5ea97072.css.map +1 -0
  264. xinference/ui/web/ui/build/static/js/main.45e78536.js +3 -0
  265. xinference/ui/web/ui/build/static/js/{main.1086c759.js.LICENSE.txt → main.45e78536.js.LICENSE.txt} +0 -7
  266. xinference/ui/web/ui/build/static/js/main.45e78536.js.map +1 -0
  267. xinference/ui/web/ui/node_modules/.cache/babel-loader/089c38df5f52348d212ed868dda5c518a42e0c2762caed4175487c0405830c35.json +1 -0
  268. xinference/ui/web/ui/node_modules/.cache/babel-loader/2b6e3a5b6eb2c5c5f2d007e68cd46c372721cd52bf63508adcdb21ecf79241d8.json +1 -0
  269. xinference/ui/web/ui/node_modules/.cache/babel-loader/2d887825fd07a56f872eda4420da25fba0b5b62a23bdcc6c6da1a5281887f618.json +1 -0
  270. xinference/ui/web/ui/node_modules/.cache/babel-loader/4001f9c3e64e73a4f2158826650c174a59d5e3f89ddecddf17cbb6bb688cc4ca.json +1 -0
  271. xinference/ui/web/ui/node_modules/.cache/babel-loader/4a7018a69e6b7f90fc313248c2aa86f2a8f1eb1db120df586047a8023549b44b.json +1 -0
  272. xinference/ui/web/ui/node_modules/.cache/babel-loader/64b12aaa1c1d1bf53820ada8a63769067c0ccc5aab46b32348eb1917ae7f2a11.json +1 -0
  273. xinference/ui/web/ui/node_modules/.cache/babel-loader/7275b67c78ec76ce38a686bb8a576d8c9cecf54e1573614c84859d538efb9be5.json +1 -0
  274. xinference/ui/web/ui/node_modules/.cache/babel-loader/a68b6ee3b31eadc051fb95ce8f8ccb9c2e8b52c60f290dbab545a1917e065282.json +1 -0
  275. xinference/ui/web/ui/node_modules/.cache/babel-loader/ae8771cc37693feb160fa8727231312a0c54ef2d1d1ca893be568cd70016ca7e.json +1 -0
  276. xinference/ui/web/ui/node_modules/.cache/babel-loader/bb4e8722d2d41d87f1fce3661bc8937bffe9448e231fc5f0462630849e851592.json +1 -0
  277. xinference/ui/web/ui/node_modules/.cache/babel-loader/be6aada1ee4adc2bbf65dbe56d17db32bb3b5478be05d6b527805a8ba6cfb2b9.json +1 -0
  278. xinference/ui/web/ui/node_modules/.cache/babel-loader/de91c352653c233cf0cb6674e6e04049a44fd0e1156560de65d5c4620521391e.json +1 -0
  279. xinference/ui/web/ui/node_modules/.cache/babel-loader/e85f7002fc325c83b9c9cd8a1619e5b3ebc701d30e811afc284b88e6ae710cb5.json +1 -0
  280. xinference/ui/web/ui/node_modules/.cache/babel-loader/e8b603c78944bf3d213639078bfe155ff5c0dfa4048a93cbb967cad6a4eb4ff3.json +1 -0
  281. xinference/ui/web/ui/node_modules/.cache/babel-loader/ea2a26361204e70cf1018d6990fb6354bed82b3ac69690391e0f100385e7abb7.json +1 -0
  282. xinference/ui/web/ui/node_modules/.cache/babel-loader/f05535160a508b2a312de546a6de234776c613db276479ea4253c0b1bdeeb7d6.json +1 -0
  283. xinference/ui/web/ui/node_modules/.cache/babel-loader/f09ba9e11106bd59a0de10cc85c55084097729dcab575f43dfcf07375961ed87.json +1 -0
  284. xinference/ui/web/ui/node_modules/.package-lock.json +0 -33
  285. xinference/ui/web/ui/package-lock.json +0 -34
  286. xinference/ui/web/ui/package.json +0 -1
  287. xinference/ui/web/ui/src/locales/en.json +9 -3
  288. xinference/ui/web/ui/src/locales/ja.json +9 -3
  289. xinference/ui/web/ui/src/locales/ko.json +9 -3
  290. xinference/ui/web/ui/src/locales/zh.json +9 -3
  291. {xinference-1.10.0.dist-info → xinference-1.11.0.dist-info}/METADATA +24 -6
  292. {xinference-1.10.0.dist-info → xinference-1.11.0.dist-info}/RECORD +296 -77
  293. xinference/ui/web/ui/build/static/css/main.013f296b.css +0 -2
  294. xinference/ui/web/ui/build/static/css/main.013f296b.css.map +0 -1
  295. xinference/ui/web/ui/build/static/js/main.1086c759.js +0 -3
  296. xinference/ui/web/ui/build/static/js/main.1086c759.js.map +0 -1
  297. xinference/ui/web/ui/node_modules/.cache/babel-loader/0b0f77000cc1b482ca091cfbcae511dfe02f08916971645fad21d0b1234d04a2.json +0 -1
  298. xinference/ui/web/ui/node_modules/.cache/babel-loader/1c5f8ff423a7c9202bea60b15680f04b1e9964b445b0da3f86c6ff70cf24e797.json +0 -1
  299. xinference/ui/web/ui/node_modules/.cache/babel-loader/44ce7993e344980e3ed4f13e8f69237d4a5dfc60e37ca6b54f51f8ee1357bd67.json +0 -1
  300. xinference/ui/web/ui/node_modules/.cache/babel-loader/4aec1cc414ac3ebb3481d3d915e4db597d9127de813291346eacb8554ab170d4.json +0 -1
  301. xinference/ui/web/ui/node_modules/.cache/babel-loader/644cfec52f3c57a6e222ce60f112237a1efefe9835efd9aad857a685f53d8eed.json +0 -1
  302. xinference/ui/web/ui/node_modules/.cache/babel-loader/663436f72af53fe0d72394f56d003fa4e0bba489e5bb4e483fd34b00f84637f7.json +0 -1
  303. xinference/ui/web/ui/node_modules/.cache/babel-loader/69db82ca9bfe27fe417cc6cf2b1716b09be9c6f0cd198530f12bfc60e801bbcf.json +0 -1
  304. xinference/ui/web/ui/node_modules/.cache/babel-loader/85087e27618d740c236bf159f30e0219db443ab55f0997388eed5fde6f9e90cc.json +0 -1
  305. xinference/ui/web/ui/node_modules/.cache/babel-loader/88b07838348864aa86c672be3bbca1e9f58f6f3a2881b32070ec27f4e7b449d1.json +0 -1
  306. xinference/ui/web/ui/node_modules/.cache/babel-loader/8b8cd408ccfbe115acef27ccfa5b233da8597131a2a5712add13e1e4d5d4504b.json +0 -1
  307. xinference/ui/web/ui/node_modules/.cache/babel-loader/a23824fe746b9c6ca5eee9159b5764d1ff1653c1d856288c0f75c742bbb0023b.json +0 -1
  308. xinference/ui/web/ui/node_modules/.cache/babel-loader/a3eb18af328280b139693c9092dff2a0ef8c9a967e6c8956ceee0996611f1984.json +0 -1
  309. xinference/ui/web/ui/node_modules/.cache/babel-loader/bc1aacc65a102db325ca61bcd2f681e1ae22c36a1f1d98a6ff5e4ad49dc7544f.json +0 -1
  310. xinference/ui/web/ui/node_modules/.cache/babel-loader/c682fd521747c19dae437d83ce3235a306ce6b68e24a117bc57c27ebb8d1f1ca.json +0 -1
  311. xinference/ui/web/ui/node_modules/.cache/babel-loader/d5c224be7081f18cba1678b7874a9782eba895df004874ff8f243f94ba79942a.json +0 -1
  312. xinference/ui/web/ui/node_modules/.cache/babel-loader/f7f18bfb539b036a6a342176dd98a85df5057a884a8da978d679f2a0264883d0.json +0 -1
  313. xinference/ui/web/ui/node_modules/clipboard/.babelrc.json +0 -11
  314. xinference/ui/web/ui/node_modules/clipboard/.eslintrc.json +0 -24
  315. xinference/ui/web/ui/node_modules/clipboard/.prettierrc.json +0 -9
  316. xinference/ui/web/ui/node_modules/clipboard/bower.json +0 -18
  317. xinference/ui/web/ui/node_modules/clipboard/composer.json +0 -25
  318. xinference/ui/web/ui/node_modules/clipboard/package.json +0 -63
  319. xinference/ui/web/ui/node_modules/delegate/package.json +0 -31
  320. xinference/ui/web/ui/node_modules/good-listener/bower.json +0 -11
  321. xinference/ui/web/ui/node_modules/good-listener/package.json +0 -35
  322. xinference/ui/web/ui/node_modules/select/bower.json +0 -13
  323. xinference/ui/web/ui/node_modules/select/package.json +0 -29
  324. xinference/ui/web/ui/node_modules/tiny-emitter/package.json +0 -53
  325. {xinference-1.10.0.dist-info → xinference-1.11.0.dist-info}/WHEEL +0 -0
  326. {xinference-1.10.0.dist-info → xinference-1.11.0.dist-info}/entry_points.txt +0 -0
  327. {xinference-1.10.0.dist-info → xinference-1.11.0.dist-info}/licenses/LICENSE +0 -0
  328. {xinference-1.10.0.dist-info → xinference-1.11.0.dist-info}/top_level.txt +0 -0
@@ -1 +0,0 @@
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'./styles/modelCardStyle.css';import{ChatOutlined,Close,ContentPasteGo,Delete,EditNote,EditNoteOutlined,ExpandLess,ExpandMore,Grade,HelpCenterOutlined,HelpOutline,RocketLaunchOutlined,StarBorder,StopCircle,UndoOutlined}from'@mui/icons-material';import{Alert,Backdrop,Box,Button,Chip,CircularProgress,Collapse,FormControl,FormControlLabel,Grid,IconButton,InputLabel,ListItemButton,ListItemText,MenuItem,Paper,Radio,RadioGroup,Select,Snackbar,Stack,Switch,Table,TableBody,TableCell,TableContainer,TableHead,TablePagination,TableRow,TextField,Tooltip}from'@mui/material';import{useTheme}from'@mui/material';import{styled}from'@mui/material/styles';import React,{useContext,useEffect,useRef,useState}from'react';import{useTranslation}from'react-i18next';import{useNavigate}from'react-router-dom';import{ApiContext}from'../../components/apiContext';import CopyComponent from'../../components/copyComponent/copyComponent';import DeleteDialog from'../../components/deleteDialog';import fetchWrapper from'../../components/fetchWrapper';import TitleTypography from'../../components/titleTypography';import AddPair from'./components/addPair';import AddValue from'./components/addValue';import CopyToCommandLine from'./components/copyComponent';import Drawer from'./components/drawer';import PasteDialog from'./components/pasteDialog';import Progress from'./components/progress';import{additionalParameterTipList,llmAllDataKey,quantizationParametersTipList}from'./data/data';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 csghubArr=['qwen2-instruct'];var enginesWithNWorker=['SGLang','vLLM','MLX'];var ModelCard=function ModelCard(_ref){var _JSON$parse,_JSON$parse2,_modelData$model_abil4,_modelData$model_abil5;var url=_ref.url,modelData=_ref.modelData,gpuAvailable=_ref.gpuAvailable,modelType=_ref.modelType,_ref$is_custom=_ref.is_custom,is_custom=_ref$is_custom===void 0?false:_ref$is_custom,onHandleCompleteDelete=_ref.onHandleCompleteDelete,onHandlecustomDelete=_ref.onHandlecustomDelete,onGetCollectionArr=_ref.onGetCollectionArr;var _useState=useState(false),_useState2=_slicedToArray(_useState,2),hover=_useState2[0],setHover=_useState2[1];var _useState3=useState(false),_useState4=_slicedToArray(_useState3,2),selected=_useState4[0],setSelected=_useState4[1];var _useState5=useState(false),_useState6=_slicedToArray(_useState5,2),requestLimitsAlert=_useState6[0],setRequestLimitsAlert=_useState6[1];var _useState7=useState(false),_useState8=_slicedToArray(_useState7,2),GPUIdxAlert=_useState8[0],setGPUIdxAlert=_useState8[1];var _useState9=useState(false),_useState10=_slicedToArray(_useState9,2),isOther=_useState10[0],setIsOther=_useState10[1];var _useState11=useState(false),_useState12=_slicedToArray(_useState11,2),isPeftModelConfig=_useState12[0],setIsPeftModelConfig=_useState12[1];var _useState13=useState(false),_useState14=_slicedToArray(_useState13,2),isVirtualEnvConfig=_useState14[0],setIsVirtualEnvConfig=_useState14[1];var _useState15=useState(false),_useState16=_slicedToArray(_useState15,2),isEnvsConfig=_useState16[0],setIsEnvsConfig=_useState16[1];var _useState17=useState(false),_useState18=_slicedToArray(_useState17,2),openSnackbar=_useState18[0],setOpenSnackbar=_useState18[1];var _useContext=useContext(ApiContext),isCallingApi=_useContext.isCallingApi,setIsCallingApi=_useContext.setIsCallingApi;var _useContext2=useContext(ApiContext),isUpdatingModel=_useContext2.isUpdatingModel;var _useContext3=useContext(ApiContext),setErrorMsg=_useContext3.setErrorMsg,setSuccessMsg=_useContext3.setSuccessMsg;var navigate=useNavigate();// Model parameter selections\nvar _useState19=useState(''),_useState20=_slicedToArray(_useState19,2),modelUID=_useState20[0],setModelUID=_useState20[1];var _useState21=useState(''),_useState22=_slicedToArray(_useState21,2),modelEngine=_useState22[0],setModelEngine=_useState22[1];var _useState23=useState(''),_useState24=_slicedToArray(_useState23,2),modelFormat=_useState24[0],setModelFormat=_useState24[1];var _useState25=useState(''),_useState26=_slicedToArray(_useState25,2),modelSize=_useState26[0],setModelSize=_useState26[1];var _useState27=useState(''),_useState28=_slicedToArray(_useState27,2),quantization=_useState28[0],setQuantization=_useState28[1];var _useState29=useState(''),_useState30=_slicedToArray(_useState29,2),multimodalProjector=_useState30[0],setMultimodalProjector=_useState30[1];var _useState31=useState(1),_useState32=_slicedToArray(_useState31,2),nWorker=_useState32[0],setNWorker=_useState32[1];var _useState33=useState('auto'),_useState34=_slicedToArray(_useState33,2),nGPU=_useState34[0],setNGPU=_useState34[1];var _useState35=useState(gpuAvailable===0?'CPU':'GPU'),_useState36=_slicedToArray(_useState35,2),nGpu=_useState36[0],setNGpu=_useState36[1];var _useState37=useState(-1),_useState38=_slicedToArray(_useState37,2),nGPULayers=_useState38[0],setNGPULayers=_useState38[1];var _useState39=useState(1),_useState40=_slicedToArray(_useState39,2),replica=_useState40[0],setReplica=_useState40[1];var _useState41=useState(''),_useState42=_slicedToArray(_useState41,2),requestLimits=_useState42[0],setRequestLimits=_useState42[1];var _useState43=useState(''),_useState44=_slicedToArray(_useState43,2),workerIp=_useState44[0],setWorkerIp=_useState44[1];var _useState45=useState(''),_useState46=_slicedToArray(_useState45,2),GPUIdx=_useState46[0],setGPUIdx=_useState46[1];var _useState47=useState(''),_useState48=_slicedToArray(_useState47,2),downloadHub=_useState48[0],setDownloadHub=_useState48[1];var _useState49=useState(''),_useState50=_slicedToArray(_useState49,2),modelPath=_useState50[0],setModelPath=_useState50[1];var _useState51=useState(true),_useState52=_slicedToArray(_useState51,2),enableThinking=_useState52[0],setEnableThinking=_useState52[1];var _useState53=useState(false),_useState54=_slicedToArray(_useState53,2),reasoningContent=_useState54[0],setReasoningContent=_useState54[1];var _useState55=useState('unset'),_useState56=_slicedToArray(_useState55,2),enableVirtualEnv=_useState56[0],setEnableVirtualEnv=_useState56[1];var _useState57=useState(''),_useState58=_slicedToArray(_useState57,2),ggufQuantizations=_useState58[0],setGgufQuantizations=_useState58[1];var _useState59=useState(''),_useState60=_slicedToArray(_useState59,2),ggufModelPath=_useState60[0],setGgufModelPath=_useState60[1];var _useState61=useState(false),_useState62=_slicedToArray(_useState61,2),cpuOffload=_useState62[0],setCpuOffload=_useState62[1];var _useState63=useState(''),_useState64=_slicedToArray(_useState63,2),lightningVersions=_useState64[0],setLightningVersions=_useState64[1];var _useState65=useState(''),_useState66=_slicedToArray(_useState65,2),lightningModelPath=_useState66[0],setLightningModelPath=_useState66[1];var _useState67=useState({}),_useState68=_slicedToArray(_useState67,2),enginesObj=_useState68[0],setEnginesObj=_useState68[1];var _useState69=useState([]),_useState70=_slicedToArray(_useState69,2),engineOptions=_useState70[0],setEngineOptions=_useState70[1];var _useState71=useState([]),_useState72=_slicedToArray(_useState71,2),formatOptions=_useState72[0],setFormatOptions=_useState72[1];var _useState73=useState([]),_useState74=_slicedToArray(_useState73,2),sizeOptions=_useState74[0],setSizeOptions=_useState74[1];var _useState75=useState([]),_useState76=_slicedToArray(_useState75,2),quantizationOptions=_useState76[0],setQuantizationOptions=_useState76[1];var _useState77=useState([]),_useState78=_slicedToArray(_useState77,2),multimodalProjectorOptions=_useState78[0],setMultimodalProjectorOptions=_useState78[1];var _useState79=useState(false),_useState80=_slicedToArray(_useState79,2),customDeleted=_useState80[0],setCustomDeleted=_useState80[1];var _useState81=useState([]),_useState82=_slicedToArray(_useState81,2),customParametersArr=_useState82[0],setCustomParametersArr=_useState82[1];var _useState83=useState([]),_useState84=_slicedToArray(_useState83,2),quantizationParametersArr=_useState84[0],setQuantizationParametersArr=_useState84[1];var _useState85=useState([]),_useState86=_slicedToArray(_useState85,2),loraListArr=_useState86[0],setLoraListArr=_useState86[1];var _useState87=useState([]),_useState88=_slicedToArray(_useState87,2),imageLoraLoadKwargsArr=_useState88[0],setImageLoraLoadKwargsArr=_useState88[1];var _useState89=useState([]),_useState90=_slicedToArray(_useState89,2),imageLoraFuseKwargsArr=_useState90[0],setImageLoraFuseKwargsArr=_useState90[1];var _useState91=useState(false),_useState92=_slicedToArray(_useState91,2),isOpenCachedList=_useState92[0],setIsOpenCachedList=_useState92[1];var _useState93=useState(false),_useState94=_slicedToArray(_useState93,2),isDeleteCached=_useState94[0],setIsDeleteCached=_useState94[1];var _useState95=useState([]),_useState96=_slicedToArray(_useState95,2),cachedListArr=_useState96[0],setCachedListArr=_useState96[1];var _useState97=useState(''),_useState98=_slicedToArray(_useState97,2),cachedModelVersion=_useState98[0],setCachedModelVersion=_useState98[1];var _useState99=useState(''),_useState100=_slicedToArray(_useState99,2),cachedRealPath=_useState100[0],setCachedRealPath=_useState100[1];var _useState101=useState(0),_useState102=_slicedToArray(_useState101,2),page=_useState102[0],setPage=_useState102[1];var _useState103=useState(false),_useState104=_slicedToArray(_useState103,2),isDeleteCustomModel=_useState104[0],setIsDeleteCustomModel=_useState104[1];var _useState105=useState(false),_useState106=_slicedToArray(_useState105,2),isJsonShow=_useState106[0],setIsJsonShow=_useState106[1];var _useState107=useState(false),_useState108=_slicedToArray(_useState107,2),isHistory=_useState108[0],setIsHistory=_useState108[1];var _useState109=useState([]),_useState110=_slicedToArray(_useState109,2),customArr=_useState110[0],setCustomArr=_useState110[1];var _useState111=useState([]),_useState112=_slicedToArray(_useState111,2),quantizationConfigArr=_useState112[0],setQuantizationConfigArr=_useState112[1];var _useState113=useState([]),_useState114=_slicedToArray(_useState113,2),loraArr=_useState114[0],setLoraArr=_useState114[1];var _useState115=useState([]),_useState116=_slicedToArray(_useState115,2),imageLoraLoadArr=_useState116[0],setImageLoraLoadArr=_useState116[1];var _useState117=useState([]),_useState118=_slicedToArray(_useState117,2),imageLoraFuseArr=_useState118[0],setImageLoraFuseArr=_useState118[1];var _useState119=useState([]),_useState120=_slicedToArray(_useState119,2),virtualEnvPackagesArr=_useState120[0],setVirtualEnvPackagesArr=_useState120[1];var _useState121=useState([]),_useState122=_slicedToArray(_useState121,2),virtualEnvPackagesHistoryArr=_useState122[0],setVirtualEnvPackagesHistoryArr=_useState122[1];var _useState123=useState([]),_useState124=_slicedToArray(_useState123,2),envsArr=_useState124[0],setEnvsArr=_useState124[1];var _useState125=useState([]),_useState126=_slicedToArray(_useState125,2),envsHistoryArr=_useState126[0],setEnvsHistoryArr=_useState126[1];var _useState127=useState(0),_useState128=_slicedToArray(_useState127,2),customParametersArrLength=_useState128[0],setCustomParametersArrLength=_useState128[1];var _useState129=useState(false),_useState130=_slicedToArray(_useState129,2),isOpenPasteDialog=_useState130[0],setIsOpenPasteDialog=_useState130[1];var _useState131=useState(false),_useState132=_slicedToArray(_useState131,2),isShowProgress=_useState132[0],setIsShowProgress=_useState132[1];var _useState133=useState(0),_useState134=_slicedToArray(_useState133,2),progress=_useState134[0],setProgress=_useState134[1];var _useState135=useState(false),_useState136=_slicedToArray(_useState135,2),isShowCancel=_useState136[0],setIsShowCancel=_useState136[1];var _useState137=useState(false),_useState138=_slicedToArray(_useState137,2),isLoading=_useState138[0],setIsLoading=_useState138[1];var parentRef=useRef(null);var intervalRef=useRef(null);var _useTranslation=useTranslation(),t=_useTranslation.t;var theme=useTheme();var range=function range(start,end){return new Array(end-start+1).fill(undefined).map(function(_,i){return i+start;});};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;}};// model size can be int or string. For string style, \"1_8\" means 1.8 as an example.\nvar convertModelSize=function convertModelSize(size){return size.toString().includes('_')?size:parseInt(size,10);};useEffect(function(){var keyArr=[];for(var key in enginesObj){keyArr.push(key);}var data=handleGetHistory();if(keyArr.length&&data.model_name){if(modelType==='LLM'){handleLlmHistory(data);}else{handleOtherHistory(data);}}},[enginesObj]);useEffect(function(){if(modelEngine&&['LLM','embedding','rerank'].includes(modelType)){var format=_toConsumableArray(new Set(enginesObj[modelEngine].map(function(item){return item.model_format;})));setFormatOptions(format);if(!format.includes(modelFormat)){setModelFormat('');}if(format.length===1){setModelFormat(format[0]);}}},[modelEngine]);useEffect(function(){if(modelEngine&&modelFormat&&['LLM'].includes(modelType)){var sizes=_toConsumableArray(new Set(enginesObj[modelEngine].filter(function(item){return item.model_format===modelFormat;}).map(function(item){return item.model_size_in_billions;})));setSizeOptions(sizes);if(sizeOptions.length&&JSON.stringify(sizes)!==JSON.stringify(sizeOptions)){setModelSize('');}if(sizes.length===1){setModelSize(sizes[0]);}}else if(modelEngine&&modelFormat&&['embedding','rerank'].includes(modelType)){var quants=_toConsumableArray(new Set(enginesObj[modelEngine].filter(function(item){return item.model_format===modelFormat;}).map(function(item){return item.quantization;})));setQuantizationOptions(quants);if(!quants.includes(quantization)){setQuantization('');}if(quants.length===1){setQuantization(quants[0]);}}},[modelEngine,modelFormat]);useEffect(function(){if(modelEngine&&modelFormat&&modelSize){var quants=_toConsumableArray(new Set(enginesObj[modelEngine].filter(function(item){return item.model_format===modelFormat&&item.model_size_in_billions===convertModelSize(modelSize);}).flatMap(function(item){return item.quantizations;})));var multimodal_projectors=_toConsumableArray(new Set(enginesObj[modelEngine].filter(function(item){return item.model_format===modelFormat&&item.model_size_in_billions===convertModelSize(modelSize);}).flatMap(function(item){return item.multimodal_projectors||[];})));setQuantizationOptions(quants);setMultimodalProjectorOptions(multimodal_projectors||[]);if(!quants.includes(quantization)){setQuantization('');}if(quants.length===1){setQuantization(quants[0]);}if(!multimodal_projectors.includes(multimodalProjector)){setMultimodalProjector('');}if(multimodal_projectors.length>0&&!multimodalProjector){setMultimodalProjector(multimodal_projectors[0]);}}},[modelEngine,modelFormat,modelSize]);useEffect(function(){setCustomParametersArrLength(customParametersArr.length);if(parentRef.current&&customParametersArr.length>customParametersArrLength){parentRef.current.scrollTo({top:parentRef.current.scrollHeight,behavior:'smooth'});}},[customParametersArr]);var getNGPURange=function getNGPURange(){if(gpuAvailable>0){return['auto','CPU'].concat(range(1,gpuAvailable));}return['auto','CPU'];};var getNewNGPURange=function getNewNGPURange(){if(gpuAvailable===0){return['CPU'];}else{return['GPU','CPU'];}};var getModelEngine=function getModelEngine(model_name,model_type){fetchWrapper.get(model_type==='LLM'?\"/v1/engines/\".concat(model_name):\"/v1/engines/\".concat(model_type,\"/\").concat(model_name)).then(function(data){setEnginesObj(data);setEngineOptions(Object.keys(data));setIsCallingApi(false);}).catch(function(error){console.error('Error:',error);if(error.response.status!==403){setErrorMsg(error.message);}setIsCallingApi(false);});};var fetchProgress=/*#__PURE__*/function(){var _ref2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var res;return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:_context.prev=0;_context.next=3;return fetchWrapper.get(\"/v1/models/\".concat(modelData.model_name,\"/progress\"));case 3:res=_context.sent;if(res.progress!==1.0)setProgress(Number(res.progress));_context.next=11;break;case 7:_context.prev=7;_context.t0=_context[\"catch\"](0);stopPolling();setIsCallingApi(false);case 11:case\"end\":return _context.stop();}},_callee,null,[[0,7]]);}));return function fetchProgress(){return _ref2.apply(this,arguments);};}();var startPolling=function startPolling(){if(intervalRef.current)return;intervalRef.current=setInterval(fetchProgress,500);};var stopPolling=function stopPolling(){if(intervalRef.current!==null){clearInterval(intervalRef.current);intervalRef.current=null;}};var handleModelData=function handleModelData(){var _String,_String2,_modelData$model_abil,_modelData$model_abil2,_modelData$model_abil3;var modelDataWithID_LLM={// If user does not fill model_uid, pass null (None) to server and server generates it.\nmodel_uid:(modelUID===null||modelUID===void 0?void 0:modelUID.trim())===''?null:modelUID===null||modelUID===void 0?void 0:modelUID.trim(),model_name:modelData.model_name,model_type:modelType,model_engine:modelEngine,model_format:modelFormat,model_size_in_billions:convertModelSize(modelSize),quantization:quantization,n_gpu:parseInt(nGPU,10)===0||nGPU==='CPU'?null:nGPU==='auto'?'auto':parseInt(nGPU,10),replica:replica,request_limits:((_String=String(requestLimits))===null||_String===void 0?void 0:_String.trim())===''?null:Number((_String2=String(requestLimits))===null||_String2===void 0?void 0:_String2.trim()),n_worker:nWorker,worker_ip:(workerIp===null||workerIp===void 0?void 0:workerIp.trim())===''?null:workerIp===null||workerIp===void 0?void 0:workerIp.trim(),gpu_idx:(GPUIdx===null||GPUIdx===void 0?void 0:GPUIdx.trim())===''?null:handleGPUIdx(GPUIdx===null||GPUIdx===void 0?void 0:GPUIdx.trim()),download_hub:downloadHub===''?null:downloadHub,model_path:(modelPath===null||modelPath===void 0?void 0:modelPath.trim())===''?null:modelPath===null||modelPath===void 0?void 0:modelPath.trim()};var modelDataWithID_other={model_uid:(modelUID===null||modelUID===void 0?void 0:modelUID.trim())===''?null:modelUID===null||modelUID===void 0?void 0:modelUID.trim(),model_name:modelData.model_name,model_type:modelType,replica:replica,n_gpu:modelType==='image'?parseInt(nGPU,10)===0||nGPU==='CPU'?null:nGPU==='auto'?'auto':parseInt(nGPU,10):nGpu==='GPU'?'auto':null,worker_ip:(workerIp===null||workerIp===void 0?void 0:workerIp.trim())===''?null:workerIp===null||workerIp===void 0?void 0:workerIp.trim(),gpu_idx:(GPUIdx===null||GPUIdx===void 0?void 0:GPUIdx.trim())===''?null:handleGPUIdx(GPUIdx===null||GPUIdx===void 0?void 0:GPUIdx.trim()),download_hub:downloadHub===''?null:downloadHub,model_path:(modelPath===null||modelPath===void 0?void 0:modelPath.trim())===''?null:modelPath===null||modelPath===void 0?void 0:modelPath.trim()};if(multimodalProjector)modelDataWithID_LLM.multimodal_projector=multimodalProjector;if(nGPULayers>=0)modelDataWithID_LLM.n_gpu_layers=nGPULayers;if((_modelData$model_abil=modelData.model_ability)!==null&&_modelData$model_abil!==void 0&&_modelData$model_abil.includes('hybrid'))modelDataWithID_LLM.enable_thinking=enableThinking;if((_modelData$model_abil2=modelData.model_ability)!==null&&_modelData$model_abil2!==void 0&&_modelData$model_abil2.includes('reasoning')&&(!((_modelData$model_abil3=modelData.model_ability)!==null&&_modelData$model_abil3!==void 0&&_modelData$model_abil3.includes('hybrid'))||enableThinking))modelDataWithID_LLM.reasoning_content=reasoningContent;if(ggufQuantizations)modelDataWithID_other.gguf_quantization=ggufQuantizations;if(ggufModelPath)modelDataWithID_other.gguf_model_path=ggufModelPath;if(lightningVersions)modelDataWithID_other.lightning_version=lightningVersions;if(lightningModelPath)modelDataWithID_other.lightning_model_path=lightningModelPath;if(['image','video'].includes(modelType))modelDataWithID_other.cpu_offload=cpuOffload;if(['embedding','rerank'].includes(modelType)){modelDataWithID_other.model_engine=modelEngine;modelDataWithID_other.model_format=modelFormat;modelDataWithID_other.quantization=quantization;}var modelDataWithID=modelType==='LLM'?modelDataWithID_LLM:modelDataWithID_other;if(loraListArr.length||imageLoraLoadKwargsArr.length||imageLoraFuseKwargsArr.length){var peft_model_config={};if(imageLoraLoadKwargsArr.length){var image_lora_load_kwargs={};imageLoraLoadKwargsArr.forEach(function(item){image_lora_load_kwargs[item.key]=handleValueType(item.value);});peft_model_config['image_lora_load_kwargs']=image_lora_load_kwargs;}if(imageLoraFuseKwargsArr.length){var image_lora_fuse_kwargs={};imageLoraFuseKwargsArr.forEach(function(item){image_lora_fuse_kwargs[item.key]=handleValueType(item.value);});peft_model_config['image_lora_fuse_kwargs']=image_lora_fuse_kwargs;}if(loraListArr.length){var lora_list=loraListArr;lora_list.map(function(item){delete item.id;});peft_model_config['lora_list']=lora_list;}modelDataWithID['peft_model_config']=peft_model_config;}if(customParametersArr.length){customParametersArr.forEach(function(item){modelDataWithID[item.key]=handleValueType(item.value);});}if(quantizationParametersArr.length){var quantizationConfig={};quantizationParametersArr.forEach(function(item){quantizationConfig[item.key]=handleValueType(item.value);});modelDataWithID['quantization_config']=quantizationConfig;}if(enableVirtualEnv!=='unset'){modelDataWithID['enable_virtual_env']=handleValueType(enableVirtualEnv);}if(envsArr.length){var arr={};envsArr.forEach(function(item){arr[item.key]=item.value;});modelDataWithID['envs']=arr;}if(virtualEnvPackagesArr.length){var _arr=[];virtualEnvPackagesArr.forEach(function(item){_arr.push(item.value);});modelDataWithID['virtual_env_packages']=_arr;}return modelDataWithID;};var launchModel=function launchModel(){if(isCallingApi||isUpdatingModel){return;}setIsCallingApi(true);setProgress(0);setIsShowProgress(true);setIsShowCancel(true);try{var modelDataWithID=handleModelData();// First fetcher request to initiate the model\nfetchWrapper.post('/v1/models',modelDataWithID).then(function(){navigate(\"/running_models/\".concat(modelType));sessionStorage.setItem('runningModelType',\"/running_models/\".concat(modelType));var historyArr=JSON.parse(localStorage.getItem('historyArr'))||[];var historyModelNameArr=historyArr.map(function(item){return item.model_name;});if(historyModelNameArr.includes(modelDataWithID.model_name)){historyArr=historyArr.map(function(item){if(item.model_name===modelDataWithID.model_name){return modelDataWithID;}return item;});}else{historyArr.push(modelDataWithID);}localStorage.setItem('historyArr',JSON.stringify(historyArr));}).catch(function(error){var _error$response,_error$response2;console.error('Error:',error);if(((_error$response=error.response)===null||_error$response===void 0?void 0:_error$response.status)===499){setSuccessMsg(t('launchModel.cancelledSuccessfully'));}else if(((_error$response2=error.response)===null||_error$response2===void 0?void 0:_error$response2.status)!==403){setErrorMsg(error.message);}}).finally(function(){setIsCallingApi(false);stopPolling();setIsShowProgress(false);setIsShowCancel(false);setIsLoading(false);});startPolling();}catch(error){setErrorMsg(\"\".concat(error));setIsCallingApi(false);}};var cancelModel=/*#__PURE__*/function(){var _ref3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){return _regeneratorRuntime().wrap(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.prev=0;_context2.next=3;return fetchWrapper.post(\"/v1/models/\".concat(modelData.model_name,\"/cancel\"));case 3:setIsLoading(true);_context2.next=9;break;case 6:_context2.prev=6;_context2.t0=_context2[\"catch\"](0);console.log('err',_context2.t0);case 9:_context2.prev=9;stopPolling();setIsShowProgress(false);setIsShowCancel(false);return _context2.finish(9);case 14:case\"end\":return _context2.stop();}},_callee2,null,[[0,6,9,14]]);}));return function cancelModel(){return _ref3.apply(this,arguments);};}();var handleGPUIdx=function handleGPUIdx(data){var arr=[];data===null||data===void 0?void 0:data.split(',').forEach(function(item){arr.push(Number(item));});return arr;};var 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(){setCustomDeleted(true);onHandlecustomDelete(modelData.model_name);setIsDeleteCustomModel(false);}).catch(function(error){console.error(error);if(error.response.status!==403){setErrorMsg(error.message);}});}};var judgeArr=function judgeArr(arr,keysArr){if(arr.length&&arr[arr.length-1][keysArr[0]]!==''&&arr[arr.length-1][keysArr[1]]!==''){return true;}else if(arr.length===0){return true;}else{return false;}};var handleValueType=function handleValueType(str){str=String(str);if(str.toLowerCase()==='none'){return null;}else if(str.toLowerCase()==='true'){return true;}else if(str.toLowerCase()==='false'){return false;}else if(str.includes(',')){return str.split(',');}else if(str.includes(',')){return str.split(',');}else if(Number(str)||str!==''&&Number(str)===0){return Number(str);}else{return str;}};var StyledTableRow=styled(TableRow)(function(_ref4){var theme=_ref4.theme;return{'&:nth-of-type(odd)':{backgroundColor:theme.palette.action.hover}};});var emptyRows=page>=0?Math.max(0,(1+page)*5-cachedListArr.length):0;var handleChangePage=function handleChangePage(_,newPage){setPage(newPage);};var handleOpenCachedList=function handleOpenCachedList(){setIsOpenCachedList(true);getCachedList();document.body.style.overflow='hidden';};var handleCloseCachedList=function handleCloseCachedList(){document.body.style.overflow='auto';setHover(false);setIsOpenCachedList(false);if(cachedListArr.length===0){onHandleCompleteDelete(modelData.model_name);}};var getCachedList=function getCachedList(){fetchWrapper.get(\"/v1/cache/models?model_name=\".concat(modelData.model_name)).then(function(data){return setCachedListArr(data.list);}).catch(function(error){console.error(error);if(error.response.status!==403){setErrorMsg(error.message);}});};var handleOpenDeleteCachedDialog=function handleOpenDeleteCachedDialog(real_path,model_version){setCachedRealPath(real_path);setCachedModelVersion(model_version);setIsDeleteCached(true);};var handleDeleteCached=function handleDeleteCached(){fetchWrapper.delete(\"/v1/cache/models?model_version=\".concat(cachedModelVersion)).then(function(){var cachedArr=cachedListArr.filter(function(item){return item.real_path!==cachedRealPath;});setCachedListArr(cachedArr);setIsDeleteCached(false);if(cachedArr.length){if((page+1)*5>=cachedListArr.length&&cachedArr.length%5===0){setPage(cachedArr.length/5-1);}}}).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 handleGetHistory=function handleGetHistory(){var historyArr=JSON.parse(localStorage.getItem('historyArr'))||[];return historyArr.find(function(item){return item.model_name===modelData.model_name;})||{};};var handleLlmHistory=function handleLlmHistory(data){var _peft_model_config$lo;var model_engine=data.model_engine,model_format=data.model_format,model_size_in_billions=data.model_size_in_billions,quantization=data.quantization,multimodal_projector=data.multimodal_projector,n_worker=data.n_worker,n_gpu=data.n_gpu,n_gpu_layers=data.n_gpu_layers,replica=data.replica,model_uid=data.model_uid,request_limits=data.request_limits,worker_ip=data.worker_ip,gpu_idx=data.gpu_idx,download_hub=data.download_hub,model_path=data.model_path,enable_thinking=data.enable_thinking,reasoning_content=data.reasoning_content,peft_model_config=data.peft_model_config,quantization_config=data.quantization_config,enable_virtual_env=data.enable_virtual_env,virtual_env_packages=data.virtual_env_packages,envs=data.envs;if(!engineOptions.includes(model_engine)){setModelEngine('');}else{setModelEngine(model_engine||'');}setModelFormat(model_format||'');setModelSize(String(model_size_in_billions)||'');setQuantization(quantization||'');setMultimodalProjector(multimodal_projector||'');setNWorker(Number(n_worker)||1);setNGPU(n_gpu||'auto');if(n_gpu_layers>=0){setNGPULayers(n_gpu_layers);}else{setNGPULayers(-1);}setReplica(Number(replica)||1);setModelUID(model_uid||'');setRequestLimits(request_limits||'');setWorkerIp(worker_ip||'');setGPUIdx((gpu_idx===null||gpu_idx===void 0?void 0:gpu_idx.join(','))||'');setDownloadHub(download_hub||'');setModelPath(model_path||'');setEnableThinking(enable_thinking!==false);setReasoningContent(reasoning_content||false);setEnableVirtualEnv(enable_virtual_env!==null&&enable_virtual_env!==void 0?enable_virtual_env:'unset');setVirtualEnvPackagesHistoryArr(virtual_env_packages||[]);var loraData=[];peft_model_config===null||peft_model_config===void 0?void 0:(_peft_model_config$lo=peft_model_config.lora_list)===null||_peft_model_config$lo===void 0?void 0:_peft_model_config$lo.forEach(function(item){loraData.push({lora_name:item.lora_name,local_path:item.local_path});});setLoraArr(loraData);var envsData=[];for(var key in envs){envsData.push({key:key,value:envs[key]===null?'none':envs[key]===false?false:envs[key]});}setEnvsHistoryArr(envsData);var customData=[];for(var _key in data){!llmAllDataKey.includes(_key)&&customData.push({key:_key,value:data[_key]===null?'none':data[_key]===false?false:data[_key]});}setCustomArr(customData);var quantizationConfigData=[];for(var _key2 in quantization_config){quantizationConfigData.push({key:_key2,value:quantization_config[_key2]===null?'none':quantization_config[_key2]===false?false:quantization_config[_key2]});}setQuantizationConfigArr(quantizationConfigData);if(model_uid||request_limits||worker_ip||gpu_idx!==null&&gpu_idx!==void 0&&gpu_idx.join(',')||download_hub||model_path)setIsOther(true);if(loraData.length){setIsOther(true);setIsPeftModelConfig(true);}if(virtual_env_packages!==null&&virtual_env_packages!==void 0&&virtual_env_packages.length||enable_virtual_env!==undefined){setIsOther(true);setIsVirtualEnvConfig(true);}if(envsData.length){setIsOther(true);setIsEnvsConfig(true);}};var handleOtherHistory=function handleOtherHistory(data){var model_engine=data.model_engine,model_format=data.model_format,quantization=data.quantization,model_uid=data.model_uid,replica=data.replica,n_gpu=data.n_gpu,gpu_idx=data.gpu_idx,worker_ip=data.worker_ip,download_hub=data.download_hub,model_path=data.model_path,gguf_quantization=data.gguf_quantization,gguf_model_path=data.gguf_model_path,lightning_version=data.lightning_version,lightning_model_path=data.lightning_model_path,cpu_offload=data.cpu_offload,model_type=data.model_type,peft_model_config=data.peft_model_config,enable_virtual_env=data.enable_virtual_env,virtual_env_packages=data.virtual_env_packages,envs=data.envs;if(!engineOptions.includes(model_engine)){setModelEngine('');}else{setModelEngine(model_engine||'');}setModelFormat(model_format||'');setQuantization(quantization||'');setModelUID(model_uid||'');setReplica(replica||1);if(modelType==='image'){setNGPU(n_gpu||'auto');}else{setNGpu(n_gpu==='auto'?'GPU':'CPU');}setGPUIdx((gpu_idx===null||gpu_idx===void 0?void 0:gpu_idx.join(','))||'');setWorkerIp(worker_ip||'');setDownloadHub(download_hub||'');setModelPath(model_path||'');setGgufQuantizations(gguf_quantization||'');setGgufModelPath(gguf_model_path||'');setLightningVersions(lightning_version||'');setLightningModelPath(lightning_model_path||'');setCpuOffload(cpu_offload||false);setEnableVirtualEnv(enable_virtual_env!==null&&enable_virtual_env!==void 0?enable_virtual_env:'unset');setVirtualEnvPackagesHistoryArr(virtual_env_packages||[]);var envsData=[];for(var key in envs){envsData.push({key:key,value:envs[key]===null?'none':envs[key]===false?false:envs[key]});}setEnvsHistoryArr(envsData);if(model_type==='image'){var _peft_model_config$lo2;var loraData=[];peft_model_config===null||peft_model_config===void 0?void 0:(_peft_model_config$lo2=peft_model_config.lora_list)===null||_peft_model_config$lo2===void 0?void 0:_peft_model_config$lo2.forEach(function(item){loraData.push({lora_name:item.lora_name,local_path:item.local_path});});setLoraArr(loraData);var ImageLoraLoadData=[];for(var _key3 in peft_model_config===null||peft_model_config===void 0?void 0:peft_model_config.image_lora_load_kwargs){ImageLoraLoadData.push({key:_key3,value:(peft_model_config===null||peft_model_config===void 0?void 0:peft_model_config.image_lora_load_kwargs[_key3])||'none'});}setImageLoraLoadArr(ImageLoraLoadData);var ImageLoraFuseData=[];for(var _key4 in peft_model_config===null||peft_model_config===void 0?void 0:peft_model_config.image_lora_fuse_kwargs){ImageLoraFuseData.push({key:_key4,value:(peft_model_config===null||peft_model_config===void 0?void 0:peft_model_config.image_lora_fuse_kwargs[_key4])||'none'});}setImageLoraFuseArr(ImageLoraFuseData);if(loraData.length||ImageLoraLoadData.length||ImageLoraFuseData.length){setIsPeftModelConfig(true);}}if(virtual_env_packages!==null&&virtual_env_packages!==void 0&&virtual_env_packages.length||enable_virtual_env!==undefined){setIsVirtualEnvConfig(true);}if(envsData.length){setIsEnvsConfig(true);}var customData=[];for(var _key5 in data){!llmAllDataKey.includes(_key5)&&customData.push({key:_key5,value:data[_key5]||'none'});}setCustomArr(customData);};var handleCollection=function handleCollection(bool){setHover(false);var collectionArr=JSON.parse(localStorage.getItem('collectionArr'))||[];if(bool){collectionArr.push(modelData.model_name);}else{collectionArr=collectionArr.filter(function(item){return item!==modelData.model_name;});}localStorage.setItem('collectionArr',JSON.stringify(collectionArr));onGetCollectionArr(collectionArr);};var handleDeleteChip=function handleDeleteChip(){var arr=JSON.parse(localStorage.getItem('historyArr'));var newArr=arr.filter(function(item){return item.model_name!==modelData.model_name;});localStorage.setItem('historyArr',JSON.stringify(newArr));setIsHistory(false);if(modelType==='LLM'){setModelEngine('');setModelFormat('');setModelSize('');setQuantization('');setMultimodalProjector('');setNWorker(1);setNGPU('auto');setReplica(1);setModelUID('');setRequestLimits('');setWorkerIp('');setGPUIdx('');setDownloadHub('');setModelPath('');setEnableThinking(true);setReasoningContent(false);setLoraArr([]);setCustomArr([]);setQuantizationConfigArr([]);setEnableVirtualEnv('unset');setVirtualEnvPackagesHistoryArr([]);setEnvsHistoryArr([]);setIsOther(false);setIsPeftModelConfig(false);setIsVirtualEnvConfig(false);setIsEnvsConfig(false);}else{setModelEngine('');setModelFormat('');setQuantization('');setModelUID('');setReplica(1);setNGPU('auto');setNGpu(gpuAvailable===0?'CPU':'GPU');setGPUIdx('');setWorkerIp('');setDownloadHub('');setModelPath('');setGgufQuantizations('');setGgufModelPath('');setCpuOffload(false);setLoraArr([]);setImageLoraLoadArr([]);setImageLoraFuseArr([]);setCustomArr([]);setEnableVirtualEnv('unset');setVirtualEnvPackagesHistoryArr([]);setEnvsHistoryArr([]);setIsPeftModelConfig(false);setIsVirtualEnvConfig(false);setIsEnvsConfig(false);}};var normalizeLanguage=function normalizeLanguage(language){if(Array.isArray(language)){return language.map(function(lang){return lang.toLowerCase();});}else if(typeof language==='string'){return[language.toLowerCase()];}else{return[];}};var handleCommandLine=function handleCommandLine(data){if(data.model_name===modelData.model_name){if(data.model_type==='LLM'){handleLlmHistory(data);}else{handleOtherHistory(data);}}else{setErrorMsg(t('launchModel.commandLineTip'));}};var isModelStartable=function isModelStartable(){return!(modelType==='LLM'&&(isCallingApi||isUpdatingModel||!(modelFormat&&modelSize&&modelData&&(quantization||!modelData.is_builtin&&modelFormat!=='pytorch'))||!judgeArr(loraListArr,['lora_name','local_path'])||!judgeArr(imageLoraLoadKwargsArr,['key','value'])||!judgeArr(imageLoraFuseKwargsArr,['key','value'])||requestLimitsAlert||GPUIdxAlert)&&!isShowCancel||(modelType==='embedding'||modelType==='rerank')&&GPUIdxAlert||!judgeArr(customParametersArr,['key','value'])||!judgeArr(quantizationParametersArr,['key','value']));};var renderButtonContent=function renderButtonContent(){if(isShowCancel){return/*#__PURE__*/_jsx(StopCircle,{sx:{fontSize:26}});}if(isLoading){return/*#__PURE__*/_jsx(CircularProgress,{size:26});}return/*#__PURE__*/_jsx(RocketLaunchOutlined,{sx:{fontSize:26}});};var showAbilityParameter=function showAbilityParameter(){if(!modelData.model_ability)return;if(Array.isArray(modelData.model_ability)){return modelData.model_ability.map(function(v){return/*#__PURE__*/_jsx(Chip,{label:v,size:\"small\",onClick:function onClick(e){e.stopPropagation();}},v);});}else{return/*#__PURE__*/_jsx(Chip,{label:modelData.model_ability,size:\"small\",onClick:function onClick(e){e.stopPropagation();}});}};// Set two different states based on mouse hover\nreturn/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(Paper,{id:modelData.model_name,className:\"container\",onMouseEnter:function onMouseEnter(){return setHover(true);},onMouseLeave:function onMouseLeave(){return setHover(false);},onClick:function onClick(){if(!selected&&!customDeleted){var data=handleGetHistory();if(data!==null&&data!==void 0&&data.model_name)setIsHistory(true);setSelected(true);if(['LLM','embedding','rerank'].includes(modelType)){getModelEngine(modelData.model_name,modelType);}else if(data!==null&&data!==void 0&&data.model_name){handleOtherHistory(data);}}},elevation:hover?24:4,children:modelType==='LLM'?/*#__PURE__*/_jsxs(Box,{className:\"descriptionCard\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"cardTitle\",children:[/*#__PURE__*/_jsx(TitleTypography,{value:modelData.model_name}),/*#__PURE__*/_jsx(\"div\",{className:\"iconButtonBox\",children:is_custom?/*#__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.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.stopPropagation();setIsDeleteCustomModel(true);},children:/*#__PURE__*/_jsx(Delete,{})})})]}):/*#__PURE__*/_jsx(_Fragment,{children:(_JSON$parse=JSON.parse(localStorage.getItem('collectionArr')))!==null&&_JSON$parse!==void 0&&_JSON$parse.includes(modelData.model_name)?/*#__PURE__*/_jsx(Tooltip,{title:t('launchModel.unfavorite'),placement:\"top\",children:/*#__PURE__*/_jsx(IconButton,{\"aria-label\":\"collection\",onClick:function onClick(e){e.stopPropagation();handleCollection(false);},children:/*#__PURE__*/_jsx(Grade,{style:{color:'rgb(255, 206, 0)'}})})}):/*#__PURE__*/_jsx(Tooltip,{title:t('launchModel.favorite'),placement:\"top\",children:/*#__PURE__*/_jsx(IconButton,{\"aria-label\":\"cancellation-of-collections\",onClick:function onClick(e){e.stopPropagation();handleCollection(true);},children:/*#__PURE__*/_jsx(StarBorder,{})})})})})]}),/*#__PURE__*/_jsxs(Stack,{spacing:1,direction:\"row\",useFlexGap:true,flexWrap:\"wrap\",sx:{marginLeft:1},children:[showAbilityParameter(),modelData.model_lang&&function(){return modelData.model_lang.map(function(v){return/*#__PURE__*/_jsx(Chip,{label:v,variant:\"outlined\",size:\"small\",onClick:function onClick(e){e.stopPropagation();}},v);});}(),function(){if(modelData.model_specs&&modelData.model_specs.some(function(spec){return isCached(spec);})){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.stopPropagation();handleOpenCachedList();}});}}(),function(){if(is_custom&&customDeleted){return/*#__PURE__*/_jsx(Chip,{label:\"Deleted\",variant:\"outlined\",size:\"small\"});}}()]}),modelData.model_description&&/*#__PURE__*/_jsx(\"p\",{className:\"p\",title:modelData.model_description,children:modelData.model_description}),/*#__PURE__*/_jsxs(\"div\",{className:\"iconRow\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"iconItem\",children:[/*#__PURE__*/_jsxs(\"span\",{className:\"boldIconText\",children:[Math.floor(modelData.context_length/1000),\"K\"]}),/*#__PURE__*/_jsx(\"small\",{className:\"smallText\",children:t('launchModel.contextLength')})]}),function(){if(modelData.model_ability&&modelData.model_ability.includes('chat')){return/*#__PURE__*/_jsxs(\"div\",{className:\"iconItem\",children:[/*#__PURE__*/_jsx(ChatOutlined,{className:\"muiIcon\"}),/*#__PURE__*/_jsx(\"small\",{className:\"smallText\",children:t('launchModel.chatModel')})]});}else if(modelData.model_ability&&modelData.model_ability.includes('generate')){return/*#__PURE__*/_jsxs(\"div\",{className:\"iconItem\",children:[/*#__PURE__*/_jsx(EditNoteOutlined,{className:\"muiIcon\"}),/*#__PURE__*/_jsx(\"small\",{className:\"smallText\",children:t('launchModel.generateModel')})]});}else{return/*#__PURE__*/_jsxs(\"div\",{className:\"iconItem\",children:[/*#__PURE__*/_jsx(HelpCenterOutlined,{className:\"muiIcon\"}),/*#__PURE__*/_jsx(\"small\",{className:\"smallText\",children:t('launchModel.otherModel')})]});}}()]})]}):/*#__PURE__*/_jsxs(Box,{className:\"descriptionCard\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"titleContainer\",children:[is_custom&&/*#__PURE__*/_jsxs(\"div\",{className:\"cardTitle\",children:[/*#__PURE__*/_jsx(TitleTypography,{value:modelData.model_name}),/*#__PURE__*/_jsxs(\"div\",{className:\"iconButtonBox\",children:[/*#__PURE__*/_jsx(Tooltip,{title:t('launchModel.edit'),placement:\"top\",children:/*#__PURE__*/_jsx(IconButton,{\"aria-label\":\"show\",onClick:function onClick(e){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.stopPropagation();setIsDeleteCustomModel(true);},disabled:customDeleted,children:/*#__PURE__*/_jsx(Delete,{})})})]})]}),!is_custom&&/*#__PURE__*/_jsxs(\"div\",{className:\"cardTitle\",children:[/*#__PURE__*/_jsx(TitleTypography,{value:modelData.model_name}),/*#__PURE__*/_jsx(\"div\",{className:\"iconButtonBox\",children:(_JSON$parse2=JSON.parse(localStorage.getItem('collectionArr')))!==null&&_JSON$parse2!==void 0&&_JSON$parse2.includes(modelData.model_name)?/*#__PURE__*/_jsx(Tooltip,{title:t('launchModel.unfavorite'),placement:\"top\",children:/*#__PURE__*/_jsx(IconButton,{\"aria-label\":\"collection\",onClick:function onClick(e){e.stopPropagation();handleCollection(false);},children:/*#__PURE__*/_jsx(Grade,{style:{color:'rgb(255, 206, 0)'}})})}):/*#__PURE__*/_jsx(Tooltip,{title:t('launchModel.favorite'),placement:\"top\",children:/*#__PURE__*/_jsx(IconButton,{\"aria-label\":\"cancellation-of-collections\",onClick:function onClick(e){e.stopPropagation();handleCollection(true);},children:/*#__PURE__*/_jsx(StarBorder,{})})})})]}),/*#__PURE__*/_jsxs(Stack,{spacing:1,direction:\"row\",useFlexGap:true,flexWrap:\"wrap\",sx:{marginLeft:1},children:[showAbilityParameter(),function(){if(modelData.language){return normalizeLanguage(modelData.language).map(function(v){return/*#__PURE__*/_jsx(Chip,{label:v,variant:\"outlined\",size:\"small\",onClick:function onClick(e){e.stopPropagation();}},v);});}else if(modelData.model_family){return/*#__PURE__*/_jsx(Chip,{label:modelData.model_family,variant:\"outlined\",size:\"small\",onClick:function onClick(e){e.stopPropagation();}});}}(),function(){if(modelData.model_specs&&modelData.model_specs.some(function(spec){return isCached(spec);})||modelData.cache_status){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.stopPropagation();handleOpenCachedList();}});}}(),function(){if(is_custom&&customDeleted){return/*#__PURE__*/_jsx(Chip,{label:\"Deleted\",variant:\"outlined\",size:\"small\"});}}()]}),modelData.model_description&&/*#__PURE__*/_jsx(\"p\",{className:\"p\",title:modelData.model_description,children:modelData.model_description})]}),(modelData.dimensions||modelData.max_tokens)&&/*#__PURE__*/_jsxs(\"div\",{className:\"iconRow\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"iconItem\",children:modelData.dimensions&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"span\",{className:\"boldIconText\",children:modelData.dimensions}),/*#__PURE__*/_jsx(\"small\",{className:\"smallText\",children:t('launchModel.dimensions')})]})}),/*#__PURE__*/_jsx(\"div\",{className:\"iconItem\",children:modelData.max_tokens&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"span\",{className:\"boldIconText\",children:modelData.max_tokens}),/*#__PURE__*/_jsx(\"small\",{className:\"smallText\",children:t('launchModel.maxTokens')})]})})]}),!selected&&hover&&/*#__PURE__*/_jsx(\"p\",{className:\"instructionText\",children:t('launchModel.clickToLaunchModel')})]})}),/*#__PURE__*/_jsx(DeleteDialog,{text:t('launchModel.confirmDeleteCustomModel'),isDelete:isDeleteCustomModel,onHandleIsDelete:function onHandleIsDelete(){return setIsDeleteCustomModel(false);},onHandleDelete:handeCustomDelete}),/*#__PURE__*/_jsx(Drawer,{isOpen:selected,onClose:function onClose(){setSelected(false);setHover(false);},children:/*#__PURE__*/_jsxs(\"div\",{className:\"drawerCard\",children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:'flex',alignItems:'center',justifyContent:'space-between'},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:'flex',alignItems:'center'},children:[/*#__PURE__*/_jsx(TitleTypography,{value:modelData.model_name}),isHistory&&/*#__PURE__*/_jsx(Chip,{label:t('launchModel.lastConfig'),variant:\"outlined\",size:\"small\",color:\"primary\",onDelete:handleDeleteChip})]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:'flex',alignItems:'center'},children:[/*#__PURE__*/_jsx(Tooltip,{title:t('launchModel.commandLineParsing'),placement:\"top\",children:/*#__PURE__*/_jsx(ContentPasteGo,{className:\"pasteText\",onClick:function onClick(){return setIsOpenPasteDialog(true);}})}),isModelStartable()&&/*#__PURE__*/_jsx(CopyToCommandLine,{style:{fontSize:'30px'},modelData:selected&&handleModelData(),predefinedKeys:llmAllDataKey,getData:handleModelData})]})]}),modelType==='LLM'?/*#__PURE__*/_jsx(Box,{ref:parentRef,className:\"formContainer\",display:\"flex\",flexDirection:\"column\",width:\"100%\",mx:\"auto\",children:/*#__PURE__*/_jsxs(Grid,{rowSpacing:0,columnSpacing:1,children:[/*#__PURE__*/_jsx(Grid,{item:true,xs:12,children:/*#__PURE__*/_jsxs(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,children:[/*#__PURE__*/_jsx(InputLabel,{id:\"modelEngine-label\",children:t('launchModel.modelEngine')}),/*#__PURE__*/_jsx(Select,{className:\"textHighlight\",labelId:\"modelEngine-label\",value:modelEngine,onChange:function onChange(e){return setModelEngine(e.target.value);},label:t('launchModel.modelEngine'),children:engineOptions.map(function(engine){var subArr=[];enginesObj[engine].forEach(function(item){subArr.push(item.model_format);});var arr=_toConsumableArray(new Set(subArr));var specs=modelData.model_specs.filter(function(spec){return arr.includes(spec.model_format);});var cached=specs.some(function(spec){return isCached(spec);});var displayedEngine=cached?engine+' '+t('launchModel.cached'):engine;return/*#__PURE__*/_jsx(MenuItem,{value:engine,children:displayedEngine},engine);})})]})}),/*#__PURE__*/_jsx(Grid,{item:true,xs:12,children:/*#__PURE__*/_jsxs(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,disabled:!modelEngine,children:[/*#__PURE__*/_jsx(InputLabel,{id:\"modelFormat-label\",children:t('launchModel.modelFormat')}),/*#__PURE__*/_jsx(Select,{className:\"textHighlight\",labelId:\"modelFormat-label\",value:modelFormat,onChange:function onChange(e){return setModelFormat(e.target.value);},label:t('launchModel.modelFormat'),children:formatOptions.map(function(format){var specs=modelData.model_specs.filter(function(spec){return spec.model_format===format;});var cached=specs.some(function(spec){return isCached(spec);});var displayedFormat=cached?format+' '+t('launchModel.cached'):format;return/*#__PURE__*/_jsx(MenuItem,{value:format,children:displayedFormat},format);})})]})}),/*#__PURE__*/_jsx(Grid,{item:true,xs:12,children:/*#__PURE__*/_jsxs(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,disabled:!modelFormat,children:[/*#__PURE__*/_jsx(InputLabel,{id:\"modelSize-label\",children:t('launchModel.modelSize')}),/*#__PURE__*/_jsx(Select,{className:\"textHighlight\",labelId:\"modelSize-label\",value:modelSize,onChange:function onChange(e){return setModelSize(e.target.value);},label:t('launchModel.modelSize'),children:sizeOptions.map(function(size){var specs=modelData.model_specs.filter(function(spec){return spec.model_format===modelFormat;}).filter(function(spec){return spec.model_size_in_billions===size;});var cached=specs.some(function(spec){return isCached(spec);});var displayedSize=cached?size+' '+t('launchModel.cached'):size;return/*#__PURE__*/_jsx(MenuItem,{value:size,children:displayedSize},size);})})]})}),/*#__PURE__*/_jsx(Grid,{item:true,xs:12,children:/*#__PURE__*/_jsxs(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,disabled:!modelFormat||!modelSize,children:[/*#__PURE__*/_jsx(InputLabel,{id:\"quantization-label\",children:t('launchModel.quantization')}),/*#__PURE__*/_jsx(Select,{className:\"textHighlight\",labelId:\"quantization-label\",value:quantization,onChange:function onChange(e){return setQuantization(e.target.value);},label:t('launchModel.quantization'),children:quantizationOptions.map(function(quant){var specs=modelData.model_specs.filter(function(spec){return spec.model_format===modelFormat;}).filter(function(spec){return spec.model_size_in_billions===convertModelSize(modelSize);});var spec=specs.find(function(s){return s.quantizations===quant;});var cached=Array.isArray(spec===null||spec===void 0?void 0:spec.cache_status)?spec===null||spec===void 0?void 0:spec.cache_status[spec===null||spec===void 0?void 0:spec.quantizations.indexOf(quant)]:spec===null||spec===void 0?void 0:spec.cache_status;var displayedQuant=cached?quant+' '+t('launchModel.cached'):quant;return/*#__PURE__*/_jsx(MenuItem,{value:quant,children:displayedQuant},quant);})})]})}),multimodalProjectorOptions.length>0&&/*#__PURE__*/_jsxs(Grid,{item:true,xs:12,children:[/*#__PURE__*/_jsxs(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,disabled:!modelFormat||!modelSize,children:[/*#__PURE__*/_jsx(InputLabel,{id:\"multimodelProjector-label\",children:t('launchModel.multimodelProjector')}),/*#__PURE__*/_jsx(Select,{className:\"textHighlight\",labelId:\"multimodelProjector-label\",value:multimodalProjector,onChange:function onChange(e){return setMultimodalProjector(e.target.value);},label:t('launchModel.multimodelProjector'),children:multimodalProjectorOptions.map(function(projector){var specs=modelData.model_specs.filter(function(spec){return spec.model_format===modelFormat;}).filter(function(spec){return spec.model_size_in_billions===convertModelSize(modelSize);});var spec=specs.find(function(s){return s.multimodal_projectors.includes(projector);});var cached=Array.isArray(spec===null||spec===void 0?void 0:spec.cache_status)?spec===null||spec===void 0?void 0:spec.cache_status[spec===null||spec===void 0?void 0:spec.multimodal_projectors.indexOf(projector)]:spec===null||spec===void 0?void 0:spec.cache_status;var displayedProjector=cached?projector+' '+t('launchModel.cached'):projector;return/*#__PURE__*/_jsx(MenuItem,{value:projector,children:displayedProjector},projector);})})]}),/*#__PURE__*/_jsxs(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,disabled:!modelFormat||!modelSize,children:[/*#__PURE__*/_jsx(InputLabel,{id:\"quantization-label\",children:t('launchModel.quantization')}),/*#__PURE__*/_jsx(Select,{className:\"textHighlight\",labelId:\"quantization-label\",value:quantization,onChange:function onChange(e){return setQuantization(e.target.value);},label:t('launchModel.quantization'),children:quantizationOptions.map(function(quant){var specs=modelData.model_specs.filter(function(spec){return spec.model_format===modelFormat;}).filter(function(spec){return spec.model_size_in_billions===convertModelSize(modelSize);});var spec=specs.find(function(s){return s.quantizations===quant;});var cached=Array.isArray(spec===null||spec===void 0?void 0:spec.cache_status)?spec===null||spec===void 0?void 0:spec.cache_status[spec===null||spec===void 0?void 0:spec.quantizations.indexOf(quant)]:spec===null||spec===void 0?void 0:spec.cache_status;var displayedQuant=cached?quant+' '+t('launchModel.cached'):quant;return/*#__PURE__*/_jsx(MenuItem,{value:quant,children:displayedQuant},quant);})})]})]}),/*#__PURE__*/_jsx(Grid,{item:true,xs:12,children:/*#__PURE__*/_jsxs(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,disabled:!modelFormat||!modelSize||!quantization,children:[/*#__PURE__*/_jsx(InputLabel,{id:\"n-gpu-label\",children:t(enginesWithNWorker.includes(modelEngine)?'launchModel.nGPUPerWorker':'launchModel.nGPU')}),/*#__PURE__*/_jsx(Select,{className:\"textHighlight\",labelId:\"n-gpu-label\",value:nGPU,onChange:function onChange(e){return setNGPU(e.target.value);},label:t(enginesWithNWorker.includes(modelEngine)?'launchModel.nGPUPerWorker':'launchModel.nGPU'),children:getNGPURange().map(function(v){return/*#__PURE__*/_jsx(MenuItem,{value:v,children:v},v);})})]})}),/*#__PURE__*/_jsx(Grid,{item:true,xs:12,children:(modelFormat==='ggufv2'||modelFormat==='ggmlv3')&&/*#__PURE__*/_jsx(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,children:/*#__PURE__*/_jsx(TextField,{className:\"textHighlight\",disabled:!modelFormat||!modelSize||!quantization,type:\"number\",label:t('launchModel.nGpuLayers'),InputProps:{inputProps:{min:-1}},value:nGPULayers,onChange:function onChange(e){return setNGPULayers(parseInt(e.target.value,10));}})})}),/*#__PURE__*/_jsx(Grid,{item:true,xs:12,children:/*#__PURE__*/_jsx(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,children:/*#__PURE__*/_jsx(TextField,{className:\"textHighlight\",disabled:!modelFormat||!modelSize||!quantization,type:\"number\",InputProps:{inputProps:{min:1}},label:t('launchModel.replica'),value:replica,onChange:function onChange(e){return setReplica(parseInt(e.target.value,10));}})})}),((_modelData$model_abil4=modelData.model_ability)===null||_modelData$model_abil4===void 0?void 0:_modelData$model_abil4.includes('hybrid'))&&/*#__PURE__*/_jsx(Grid,{item:true,xs:12,children:/*#__PURE__*/_jsx(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,children:/*#__PURE__*/_jsx(\"div\",{children:/*#__PURE__*/_jsx(FormControlLabel,{label:t('launchModel.enableThinking'),labelPlacement:\"start\",control:/*#__PURE__*/_jsx(Switch,{checked:enableThinking}),onChange:function onChange(e){setEnableThinking(e.target.checked);}})})})}),((_modelData$model_abil5=modelData.model_ability)===null||_modelData$model_abil5===void 0?void 0:_modelData$model_abil5.includes('reasoning'))&&enableThinking&&/*#__PURE__*/_jsx(Grid,{item:true,xs:12,children:/*#__PURE__*/_jsx(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,children:/*#__PURE__*/_jsx(\"div\",{children:/*#__PURE__*/_jsx(FormControlLabel,{label:t('launchModel.parsingReasoningContent'),labelPlacement:\"start\",control:/*#__PURE__*/_jsx(Switch,{checked:reasoningContent}),onChange:function onChange(e){setReasoningContent(e.target.checked);}})})})}),/*#__PURE__*/_jsx(ListItemButton,{onClick:function onClick(){return setIsOther(!isOther);},children:/*#__PURE__*/_jsxs(\"div\",{style:{display:'flex',alignItems:'center'},children:[/*#__PURE__*/_jsx(ListItemText,{primary:t('launchModel.optionalConfigurations'),style:{marginRight:10}}),isOther?/*#__PURE__*/_jsx(ExpandLess,{}):/*#__PURE__*/_jsx(ExpandMore,{})]})}),/*#__PURE__*/_jsxs(Collapse,{in:isOther,timeout:\"auto\",unmountOnExit:true,children:[/*#__PURE__*/_jsx(Grid,{item:true,xs:12,children:/*#__PURE__*/_jsx(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,children:/*#__PURE__*/_jsx(TextField,{className:\"textHighlight\",variant:\"outlined\",value:modelUID,label:t('launchModel.modelUID.optional'),onChange:function onChange(e){return setModelUID(e.target.value);}})})}),/*#__PURE__*/_jsx(Grid,{item:true,xs:12,children:/*#__PURE__*/_jsxs(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,children:[/*#__PURE__*/_jsx(TextField,{className:\"textHighlight\",value:requestLimits,label:t('launchModel.requestLimits.optional'),onChange:function onChange(e){setRequestLimitsAlert(false);setRequestLimits(e.target.value);if(e.target.value!==''&&(!Number(e.target.value)||Number(e.target.value)<1||parseInt(e.target.value)!==parseFloat(e.target.value))){setRequestLimitsAlert(true);}}}),requestLimitsAlert&&/*#__PURE__*/_jsx(Alert,{severity:\"error\",children:t('launchModel.enterIntegerGreaterThanZero')})]})}),/*#__PURE__*/_jsx(Grid,{item:true,xs:12,children:enginesWithNWorker.includes(modelEngine)&&/*#__PURE__*/_jsx(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,children:/*#__PURE__*/_jsx(TextField,{className:\"textHighlight\",type:\"number\",InputProps:{inputProps:{min:1}},label:t('launchModel.workerCount.optional'),value:nWorker,onChange:function onChange(e){return setNWorker(parseInt(e.target.value,10));}})})}),/*#__PURE__*/_jsx(Grid,{item:true,xs:12,children:/*#__PURE__*/_jsx(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,children:/*#__PURE__*/_jsx(TextField,{className:\"textHighlight\",variant:\"outlined\",value:workerIp,label:t('launchModel.workerIp.optional'),onChange:function onChange(e){return setWorkerIp(e.target.value);}})})}),/*#__PURE__*/_jsx(Grid,{item:true,xs:12,children:/*#__PURE__*/_jsxs(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,children:[/*#__PURE__*/_jsx(TextField,{className:\"textHighlight\",value:GPUIdx,label:t('launchModel.GPUIdx.optional'),onChange:function onChange(e){setGPUIdxAlert(false);setGPUIdx(e.target.value);var regular=/^\\d+(?:,\\d+)*$/;if(e.target.value!==''&&!regular.test(e.target.value)){setGPUIdxAlert(true);}}}),GPUIdxAlert&&/*#__PURE__*/_jsx(Alert,{severity:\"error\",children:t('launchModel.enterCommaSeparatedNumbers')})]})}),/*#__PURE__*/_jsx(Grid,{item:true,xs:12,children:/*#__PURE__*/_jsxs(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,children:[/*#__PURE__*/_jsx(InputLabel,{id:\"quantization-label\",children:t('launchModel.downloadHub.optional')}),/*#__PURE__*/_jsx(Select,{className:\"textHighlight\",labelId:\"download_hub-label\",value:downloadHub,onChange:function onChange(e){e.target.value==='none'?setDownloadHub(''):setDownloadHub(e.target.value);},label:t('launchModel.downloadHub.optional'),children:(csghubArr.includes(modelData.model_name)?['none','huggingface','modelscope','openmind_hub','csghub']:['none','huggingface','modelscope','openmind_hub']).map(function(item){return/*#__PURE__*/_jsx(MenuItem,{value:item,children:item},item);})})]})}),/*#__PURE__*/_jsx(Grid,{item:true,xs:12,children:/*#__PURE__*/_jsx(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,children:/*#__PURE__*/_jsx(TextField,{className:\"textHighlight\",variant:\"outlined\",value:modelPath,label:t('launchModel.modelPath.optional'),onChange:function onChange(e){return setModelPath(e.target.value);}})})}),/*#__PURE__*/_jsx(ListItemButton,{onClick:function onClick(){return setIsPeftModelConfig(!isPeftModelConfig);},children:/*#__PURE__*/_jsxs(\"div\",{style:{display:'flex',alignItems:'center'},children:[/*#__PURE__*/_jsx(ListItemText,{primary:t('launchModel.loraConfig'),style:{marginRight:10}}),isPeftModelConfig?/*#__PURE__*/_jsx(ExpandLess,{}):/*#__PURE__*/_jsx(ExpandMore,{})]})}),/*#__PURE__*/_jsx(Collapse,{in:isPeftModelConfig,timeout:\"auto\",unmountOnExit:true,style:{marginLeft:'30px'},children:/*#__PURE__*/_jsx(AddPair,{customData:{title:t('launchModel.loraModelConfig'),key:'lora_name',value:'local_path'},onGetArr:function onGetArr(arr){setLoraListArr(arr);},onJudgeArr:judgeArr,pairData:loraArr})}),/*#__PURE__*/_jsx(ListItemButton,{onClick:function onClick(){return setIsVirtualEnvConfig(!isVirtualEnvConfig);},children:/*#__PURE__*/_jsxs(\"div\",{style:{display:'flex',alignItems:'center'},children:[/*#__PURE__*/_jsx(ListItemText,{primary:t('launchModel.virtualEnvConfig'),style:{marginRight:10}}),isVirtualEnvConfig?/*#__PURE__*/_jsx(ExpandLess,{}):/*#__PURE__*/_jsx(ExpandMore,{})]})}),/*#__PURE__*/_jsx(Collapse,{in:isVirtualEnvConfig,timeout:\"auto\",unmountOnExit:true,style:{marginLeft:'30px'},children:/*#__PURE__*/_jsxs(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:'flex',alignItems:'center',gap:10,marginLeft:15},children:[/*#__PURE__*/_jsx(\"span\",{children:t('launchModel.modelVirtualEnv')}),/*#__PURE__*/_jsxs(RadioGroup,{row:true,name:\"row-radio-buttons-group\",value:enableVirtualEnv,onChange:function onChange(e){return setEnableVirtualEnv(e.target.value);},children:[/*#__PURE__*/_jsx(FormControlLabel,{value:\"unset\",control:/*#__PURE__*/_jsx(Radio,{}),label:\"Unset\"}),/*#__PURE__*/_jsx(FormControlLabel,{value:false,control:/*#__PURE__*/_jsx(Radio,{}),label:\"False\"}),/*#__PURE__*/_jsx(FormControlLabel,{value:true,control:/*#__PURE__*/_jsx(Radio,{}),label:\"True\"})]})]}),/*#__PURE__*/_jsx(AddValue,{customData:{title:t('launchModel.virtualEnvPackage'),value:'value'},onGetArr:function onGetArr(arr){setVirtualEnvPackagesArr(arr);},onJudgeArr:judgeArr,pairData:virtualEnvPackagesHistoryArr})]})}),/*#__PURE__*/_jsx(ListItemButton,{onClick:function onClick(){return setIsEnvsConfig(!isEnvsConfig);},children:/*#__PURE__*/_jsxs(\"div\",{style:{display:'flex',alignItems:'center'},children:[/*#__PURE__*/_jsx(ListItemText,{primary:t('launchModel.envVariableConfig'),style:{marginRight:10}}),isEnvsConfig?/*#__PURE__*/_jsx(ExpandLess,{}):/*#__PURE__*/_jsx(ExpandMore,{})]})}),/*#__PURE__*/_jsx(Collapse,{in:isEnvsConfig,timeout:\"auto\",unmountOnExit:true,style:{marginLeft:'30px'},children:/*#__PURE__*/_jsx(AddPair,{customData:{title:t('launchModel.envVariable'),key:'key',value:'value'},onGetArr:function onGetArr(arr){setEnvsArr(arr);},onJudgeArr:judgeArr,pairData:envsHistoryArr})})]}),modelEngine==='Transformers'&&/*#__PURE__*/_jsx(AddPair,{customData:{title:t('launchModel.additionalQuantizationParametersForInferenceEngine'),key:'key',value:'value'},onGetArr:function onGetArr(arr){setQuantizationParametersArr(arr);},onJudgeArr:judgeArr,pairData:quantizationConfigArr,tipOptions:quantizationParametersTipList}),/*#__PURE__*/_jsx(AddPair,{customData:{title:\"\".concat(t('launchModel.additionalParametersForInferenceEngine')).concat(modelEngine?': '+modelEngine:''),key:'key',value:'value'},onGetArr:function onGetArr(arr){setCustomParametersArr(arr);},onJudgeArr:judgeArr,pairData:customArr,tipOptions:additionalParameterTipList[modelEngine===null||modelEngine===void 0?void 0:modelEngine.toLocaleLowerCase()]})]})}):/*#__PURE__*/_jsx(Box,{ref:parentRef,className:\"formContainer\",display:\"flex\",flexDirection:\"column\",width:\"100%\",mx:\"auto\",children:/*#__PURE__*/_jsxs(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,children:[['embedding','rerank'].includes(modelType)&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsxs(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,children:[/*#__PURE__*/_jsx(InputLabel,{id:\"modelEngine-label\",children:t('launchModel.modelEngine')}),/*#__PURE__*/_jsx(Select,{className:\"textHighlight\",labelId:\"modelEngine-label\",value:modelEngine,onChange:function onChange(e){return setModelEngine(e.target.value);},label:t('launchModel.modelEngine'),children:engineOptions.map(function(engine){var subArr=[];enginesObj[engine].forEach(function(item){subArr.push(item.model_format);});var arr=_toConsumableArray(new Set(subArr));var specs=modelData.model_specs.filter(function(spec){return arr.includes(spec.model_format);});var cached=specs.some(function(spec){return isCached(spec);});var displayedEngine=cached?engine+' '+t('launchModel.cached'):engine;return/*#__PURE__*/_jsx(MenuItem,{value:engine,children:displayedEngine},engine);})})]}),/*#__PURE__*/_jsxs(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,disabled:!modelEngine,children:[/*#__PURE__*/_jsx(InputLabel,{id:\"modelFormat-label\",children:t('launchModel.modelFormat')}),/*#__PURE__*/_jsx(Select,{className:\"textHighlight\",labelId:\"modelFormat-label\",value:modelFormat,onChange:function onChange(e){return setModelFormat(e.target.value);},label:t('launchModel.modelFormat'),children:formatOptions.map(function(format){var specs=modelData.model_specs.filter(function(spec){return spec.model_format===format;});var cached=specs.some(function(spec){return isCached(spec);});var displayedFormat=cached?format+' '+t('launchModel.cached'):format;return/*#__PURE__*/_jsx(MenuItem,{value:format,children:displayedFormat},format);})})]}),/*#__PURE__*/_jsxs(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,disabled:!modelFormat,children:[/*#__PURE__*/_jsx(InputLabel,{id:\"quantization-label\",children:t('launchModel.quantization')}),/*#__PURE__*/_jsx(Select,{className:\"textHighlight\",labelId:\"quantization-label\",value:quantization,onChange:function onChange(e){return setQuantization(e.target.value);},label:t('launchModel.quantization'),children:quantizationOptions.map(function(quant){var specs=modelData.model_specs.filter(function(spec){return spec.model_format===modelFormat;});var spec=specs.find(function(s){return s.quantization===quant;});var cached=Array.isArray(spec===null||spec===void 0?void 0:spec.cache_status)?spec===null||spec===void 0?void 0:spec.cache_status[spec===null||spec===void 0?void 0:spec.quantizations.indexOf(quant)]:spec===null||spec===void 0?void 0:spec.cache_status;var displayedQuant=cached?quant+' '+t('launchModel.cached'):quant;return/*#__PURE__*/_jsx(MenuItem,{value:quant,children:displayedQuant},quant);})})]})]}),/*#__PURE__*/_jsx(TextField,{className:\"textHighlight\",variant:\"outlined\",value:modelUID,label:t('launchModel.modelUID.optional'),onChange:function onChange(e){return setModelUID(e.target.value);}}),/*#__PURE__*/_jsx(TextField,{className:\"textHighlight\",style:{marginTop:'25px'},type:\"number\",InputProps:{inputProps:{min:1}},label:t('launchModel.replica'),value:replica,onChange:function onChange(e){return setReplica(parseInt(e.target.value,10));}}),['image'].includes(modelType)?/*#__PURE__*/_jsxs(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,children:[/*#__PURE__*/_jsx(InputLabel,{id:\"n-gpu-label\",children:t('launchModel.nGPU')}),/*#__PURE__*/_jsx(Select,{className:\"textHighlight\",labelId:\"n-gpu-label\",value:nGPU,onChange:function onChange(e){return setNGPU(e.target.value);},label:t('launchModel.nGPU'),children:getNGPURange().map(function(v){return/*#__PURE__*/_jsx(MenuItem,{value:v,children:v},v);})})]}):/*#__PURE__*/_jsxs(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,children:[/*#__PURE__*/_jsx(InputLabel,{id:\"device-label\",children:t('launchModel.device')}),/*#__PURE__*/_jsx(Select,{className:\"textHighlight\",labelId:\"device-label\",value:nGpu,onChange:function onChange(e){return setNGpu(e.target.value);},label:t('launchModel.device'),children:getNewNGPURange().map(function(v){return/*#__PURE__*/_jsx(MenuItem,{value:v,children:v},v);})})]}),(modelType==='image'?nGPU!=='CPU':nGpu==='GPU')&&/*#__PURE__*/_jsxs(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,children:[/*#__PURE__*/_jsx(TextField,{className:\"textHighlight\",value:GPUIdx,label:t('launchModel.GPUIdx'),onChange:function onChange(e){setGPUIdxAlert(false);setGPUIdx(e.target.value);var regular=/^\\d+(?:,\\d+)*$/;if(e.target.value!==''&&!regular.test(e.target.value)){setGPUIdxAlert(true);}}}),GPUIdxAlert&&/*#__PURE__*/_jsx(Alert,{severity:\"error\",children:t('launchModel.enterCommaSeparatedNumbers')})]}),/*#__PURE__*/_jsx(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,children:/*#__PURE__*/_jsx(TextField,{className:\"textHighlight\",variant:\"outlined\",value:workerIp,label:t('launchModel.workerIp'),onChange:function onChange(e){return setWorkerIp(e.target.value);}})}),/*#__PURE__*/_jsxs(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,children:[/*#__PURE__*/_jsx(InputLabel,{id:\"quantization-label\",children:t('launchModel.downloadHub.optional')}),/*#__PURE__*/_jsx(Select,{className:\"textHighlight\",labelId:\"download_hub-label\",value:downloadHub,onChange:function onChange(e){e.target.value==='none'?setDownloadHub(''):setDownloadHub(e.target.value);},label:t('launchModel.downloadHub.optional'),children:['none','huggingface','modelscope','openmind_hub'].map(function(item){return/*#__PURE__*/_jsx(MenuItem,{value:item,children:item},item);})})]}),/*#__PURE__*/_jsx(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,children:/*#__PURE__*/_jsx(TextField,{className:\"textHighlight\",variant:\"outlined\",value:modelPath,label:t('launchModel.modelPath.optional'),onChange:function onChange(e){return setModelPath(e.target.value);}})}),modelData.gguf_quantizations&&/*#__PURE__*/_jsxs(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,children:[/*#__PURE__*/_jsx(InputLabel,{id:\"quantization-label\",children:t('launchModel.GGUFQuantization.optional')}),/*#__PURE__*/_jsx(Select,{className:\"textHighlight\",labelId:\"gguf_quantizations-label\",value:ggufQuantizations,onChange:function onChange(e){e.target.value==='none'?setGgufQuantizations(''):setGgufQuantizations(e.target.value);},label:t('launchModel.GGUFQuantization.optional'),children:['none'].concat(_toConsumableArray(modelData.gguf_quantizations)).map(function(item){return/*#__PURE__*/_jsx(MenuItem,{value:item,children:item},item);})})]}),modelData.gguf_quantizations&&/*#__PURE__*/_jsx(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,children:/*#__PURE__*/_jsx(TextField,{className:\"textHighlight\",variant:\"outlined\",value:ggufModelPath,label:t('launchModel.GGUFModelPath.optional'),onChange:function onChange(e){return setGgufModelPath(e.target.value);}})}),modelData.lightning_versions&&/*#__PURE__*/_jsxs(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,children:[/*#__PURE__*/_jsx(InputLabel,{id:\"quantization-label\",children:t('launchModel.lightningVersions.optional')}),/*#__PURE__*/_jsx(Select,{className:\"textHighlight\",labelId:\"lightning-versions-label\",value:lightningVersions,onChange:function onChange(e){e.target.value==='none'?setLightningVersions(''):setLightningVersions(e.target.value);},label:t('launchModel.lightningVersions.optional'),children:['none'].concat(_toConsumableArray(modelData.lightning_versions)).map(function(item){return/*#__PURE__*/_jsx(MenuItem,{value:item,children:item},item);})})]}),modelData.lightning_versions&&/*#__PURE__*/_jsx(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,children:/*#__PURE__*/_jsx(TextField,{className:\"textHighlight\",variant:\"outlined\",value:lightningModelPath,label:t('launchModel.lightningModelPath.optional'),onChange:function onChange(e){return setLightningModelPath(e.target.value);}})}),['image','video'].includes(modelType)&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{style:{marginBlock:'10px'},children:/*#__PURE__*/_jsx(FormControlLabel,{label:/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"span\",{children:t('launchModel.CPUOffload')}),/*#__PURE__*/_jsx(Tooltip,{title:t('launchModel.CPUOffload.tip'),placement:\"top\",children:/*#__PURE__*/_jsx(IconButton,{children:/*#__PURE__*/_jsx(HelpOutline,{})})})]}),labelPlacement:\"start\",control:/*#__PURE__*/_jsx(Switch,{checked:cpuOffload}),onChange:function onChange(e){setCpuOffload(e.target.checked);}})}),/*#__PURE__*/_jsx(ListItemButton,{onClick:function onClick(){return setIsPeftModelConfig(!isPeftModelConfig);},children:/*#__PURE__*/_jsxs(\"div\",{style:{display:'flex',alignItems:'center'},children:[/*#__PURE__*/_jsx(ListItemText,{primary:t('launchModel.loraConfig'),style:{marginRight:10}}),isPeftModelConfig?/*#__PURE__*/_jsx(ExpandLess,{}):/*#__PURE__*/_jsx(ExpandMore,{})]})}),/*#__PURE__*/_jsxs(Collapse,{in:isPeftModelConfig,timeout:\"auto\",unmountOnExit:true,style:{marginLeft:'30px'},children:[/*#__PURE__*/_jsx(AddPair,{customData:{title:t('launchModel.loraModelConfig'),key:'lora_name',value:'local_path'},onGetArr:function onGetArr(arr){setLoraListArr(arr);},onJudgeArr:judgeArr,pairData:loraArr}),/*#__PURE__*/_jsx(AddPair,{customData:{title:t('launchModel.loraLoadKwargsForImageModel'),key:'key',value:'value'},onGetArr:function onGetArr(arr){setImageLoraLoadKwargsArr(arr);},onJudgeArr:judgeArr,pairData:imageLoraLoadArr}),/*#__PURE__*/_jsx(AddPair,{customData:{title:t('launchModel.loraFuseKwargsForImageModel'),key:'key',value:'value'},onGetArr:function onGetArr(arr){setImageLoraFuseKwargsArr(arr);},onJudgeArr:judgeArr,pairData:imageLoraFuseArr})]})]}),/*#__PURE__*/_jsx(ListItemButton,{onClick:function onClick(){return setIsVirtualEnvConfig(!isVirtualEnvConfig);},children:/*#__PURE__*/_jsxs(\"div\",{style:{display:'flex',alignItems:'center'},children:[/*#__PURE__*/_jsx(ListItemText,{primary:t('launchModel.virtualEnvConfig'),style:{marginRight:10}}),isVirtualEnvConfig?/*#__PURE__*/_jsx(ExpandLess,{}):/*#__PURE__*/_jsx(ExpandMore,{})]})}),/*#__PURE__*/_jsx(Collapse,{in:isVirtualEnvConfig,timeout:\"auto\",unmountOnExit:true,style:{marginLeft:'30px'},children:/*#__PURE__*/_jsxs(FormControl,{variant:\"outlined\",margin:\"normal\",fullWidth:true,children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:'flex',alignItems:'center',gap:10,marginLeft:15},children:[/*#__PURE__*/_jsx(\"span\",{children:t('launchModel.modelVirtualEnv')}),/*#__PURE__*/_jsxs(RadioGroup,{row:true,name:\"row-radio-buttons-group\",value:enableVirtualEnv,onChange:function onChange(e){return setEnableVirtualEnv(e.target.value);},children:[/*#__PURE__*/_jsx(FormControlLabel,{value:\"unset\",control:/*#__PURE__*/_jsx(Radio,{}),label:\"Unset\"}),/*#__PURE__*/_jsx(FormControlLabel,{value:false,control:/*#__PURE__*/_jsx(Radio,{}),label:\"False\"}),/*#__PURE__*/_jsx(FormControlLabel,{value:true,control:/*#__PURE__*/_jsx(Radio,{}),label:\"True\"})]})]}),/*#__PURE__*/_jsx(AddValue,{customData:{title:t('launchModel.virtualEnvPackage'),value:'value'},onGetArr:function onGetArr(arr){setVirtualEnvPackagesArr(arr);},onJudgeArr:judgeArr,pairData:virtualEnvPackagesHistoryArr})]})}),/*#__PURE__*/_jsx(ListItemButton,{onClick:function onClick(){return setIsEnvsConfig(!isEnvsConfig);},children:/*#__PURE__*/_jsxs(\"div\",{style:{display:'flex',alignItems:'center'},children:[/*#__PURE__*/_jsx(ListItemText,{primary:t('launchModel.envVariableConfig'),style:{marginRight:10}}),isEnvsConfig?/*#__PURE__*/_jsx(ExpandLess,{}):/*#__PURE__*/_jsx(ExpandMore,{})]})}),/*#__PURE__*/_jsx(Collapse,{in:isEnvsConfig,timeout:\"auto\",unmountOnExit:true,style:{marginLeft:'30px'},children:/*#__PURE__*/_jsx(AddPair,{customData:{title:t('launchModel.envVariable'),key:'key',value:'value'},onGetArr:function onGetArr(arr){setEnvsArr(arr);},onJudgeArr:judgeArr,pairData:envsHistoryArr})}),/*#__PURE__*/_jsx(AddPair,{customData:{title:t('launchModel.additionalParametersForInferenceEngine'),key:'key',value:'value'},onGetArr:function onGetArr(arr){setCustomParametersArr(arr);},onJudgeArr:judgeArr,pairData:customArr})]})}),/*#__PURE__*/_jsxs(Box,{className:\"buttonsContainer\",children:[isShowProgress&&/*#__PURE__*/_jsx(Progress,{progress:progress}),/*#__PURE__*/_jsxs(\"div\",{className:\"buttons\",children:[/*#__PURE__*/_jsx(Button,{variant:\"outlined\",title:t(isShowCancel?'launchModel.cancel':'launchModel.launch'),style:{flex:1},disabled:!isModelStartable()||isLoading,onClick:function onClick(){if(isShowCancel){cancelModel();}else{launchModel(url,modelData);}},children:renderButtonContent()}),/*#__PURE__*/_jsx(Button,{variant:\"outlined\",title:t('launchModel.goBack'),style:{flex:1},onClick:function onClick(){setSelected(false);setHover(false);},children:/*#__PURE__*/_jsx(UndoOutlined,{sx:{fontSize:26}})})]})]})]})}),/*#__PURE__*/_jsx(Backdrop,{sx:{color:'#fff',zIndex:function zIndex(theme){return theme.zIndex.drawer+1;}},open:isJsonShow,children:/*#__PURE__*/_jsxs(\"div\",{className:\"jsonDialog\",style:{backgroundColor:theme.palette.mode==='dark'?'#121212':'#fff',color:theme.palette.mode==='dark'?'#fff':'#000'},children:[/*#__PURE__*/_jsxs(\"div\",{className:\"jsonDialog-title\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"title-name\",children:modelData.model_name}),/*#__PURE__*/_jsx(CopyComponent,{tip:t('launchModel.copyJson'),text:JSON.stringify(modelData,null,4)})]}),/*#__PURE__*/_jsx(\"div\",{className:\"main-box\",children:/*#__PURE__*/_jsx(TextField,{multiline:true,fullWidth:true,rows:24,disabled:true,defaultValue:JSON.stringify(modelData,null,4)})}),/*#__PURE__*/_jsxs(\"div\",{className:\"but-box\",children:[/*#__PURE__*/_jsx(Button,{onClick:function onClick(){setIsJsonShow(false);},style:{marginRight:30},children:t('launchModel.cancel')}),/*#__PURE__*/_jsx(Button,{onClick:handleJsonDataPresentation,children:t('launchModel.edit')})]})]})}),/*#__PURE__*/_jsx(Snackbar,{anchorOrigin:{vertical:'top',horizontal:'center'},open:openSnackbar,onClose:function onClose(){return setOpenSnackbar(false);},message:t('launchModel.fillCompleteParametersBeforeAdding')}),/*#__PURE__*/_jsx(Backdrop,{sx:{color:'#fff',zIndex:function zIndex(theme){return theme.zIndex.drawer+1;}},open:isOpenCachedList,children:/*#__PURE__*/_jsxs(\"div\",{className:\"dialogBox\",style:{backgroundColor:theme.palette.mode==='dark'?'#121212':'#fff',color:theme.palette.mode==='dark'?'#fff':'#000'},children:[/*#__PURE__*/_jsxs(\"div\",{className:\"dialogTitle\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"dialogTitle-model_name\",children:modelData.model_name}),/*#__PURE__*/_jsx(Close,{style:{cursor:'pointer'},onClick:handleCloseCachedList})]}),/*#__PURE__*/_jsx(TableContainer,{component:Paper,children:/*#__PURE__*/_jsxs(Table,{sx:{minWidth:500},style:{height:'500px',width:'100%'},stickyHeader:true,\"aria-label\":\"simple pagination table\",children:[/*#__PURE__*/_jsx(TableHead,{children:/*#__PURE__*/_jsxs(TableRow,{children:[modelType==='LLM'&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(TableCell,{align:\"left\",children:t('launchModel.model_format')}),/*#__PURE__*/_jsx(TableCell,{align:\"left\",children:t('launchModel.model_size_in_billions')}),/*#__PURE__*/_jsx(TableCell,{align:\"left\",children:t('launchModel.quantizations')})]}),/*#__PURE__*/_jsx(TableCell,{align:\"left\",style:{width:192},children:t('launchModel.real_path')}),/*#__PURE__*/_jsx(TableCell,{align:\"left\",style:{width:46}}),/*#__PURE__*/_jsx(TableCell,{align:\"left\",style:{width:192},children:t('launchModel.path')}),/*#__PURE__*/_jsx(TableCell,{align:\"left\",style:{width:46}}),/*#__PURE__*/_jsx(TableCell,{align:\"left\",style:{whiteSpace:'nowrap',minWidth:116},children:t('launchModel.ipAddress')}),/*#__PURE__*/_jsx(TableCell,{align:\"left\",children:t('launchModel.operation')})]})}),/*#__PURE__*/_jsxs(TableBody,{style:{position:'relative'},children:[cachedListArr.slice(page*5,page*5+5).map(function(row){return/*#__PURE__*/_jsxs(StyledTableRow,{style:{maxHeight:90},children:[modelType==='LLM'&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(TableCell,{component:\"th\",scope:\"row\",children:row.model_format===null?'—':row.model_format}),/*#__PURE__*/_jsx(TableCell,{children:row.model_size_in_billions===null?'—':row.model_size_in_billions}),/*#__PURE__*/_jsx(TableCell,{children:row.quantization===null?'—':row.quantization})]}),/*#__PURE__*/_jsx(TableCell,{children:/*#__PURE__*/_jsx(Tooltip,{title:row.real_path,children:/*#__PURE__*/_jsx(\"div\",{className:modelType==='LLM'?'pathBox':'pathBox pathBox2',children:row.real_path})})}),/*#__PURE__*/_jsx(TableCell,{children:/*#__PURE__*/_jsx(CopyComponent,{tip:t('launchModel.copyRealPath'),text:row.real_path})}),/*#__PURE__*/_jsx(TableCell,{children:/*#__PURE__*/_jsx(Tooltip,{title:row.path,children:/*#__PURE__*/_jsx(\"div\",{className:modelType==='LLM'?'pathBox':'pathBox pathBox2',children:row.path})})}),/*#__PURE__*/_jsx(TableCell,{children:/*#__PURE__*/_jsx(CopyComponent,{tip:t('launchModel.copyPath'),text:row.path})}),/*#__PURE__*/_jsx(TableCell,{children:row.actor_ip_address}),/*#__PURE__*/_jsx(TableCell,{align:modelType==='LLM'?'center':'left',children:/*#__PURE__*/_jsx(IconButton,{\"aria-label\":\"delete\",size:\"large\",onClick:function onClick(){return handleOpenDeleteCachedDialog(row.real_path,row.model_version);},children:/*#__PURE__*/_jsx(Delete,{})})})]},row.model_name);}),emptyRows>0&&/*#__PURE__*/_jsx(TableRow,{style:{height:89.4*emptyRows},children:/*#__PURE__*/_jsx(TableCell,{})}),cachedListArr.length===0&&/*#__PURE__*/_jsx(\"div\",{className:\"empty\",children:t('launchModel.noCacheForNow')})]})]})}),/*#__PURE__*/_jsx(TablePagination,{style:{float:'right'},rowsPerPageOptions:[5],count:cachedListArr.length,rowsPerPage:5,page:page,onPageChange:handleChangePage})]})}),/*#__PURE__*/_jsx(DeleteDialog,{text:t('launchModel.confirmDeleteCacheFiles'),isDelete:isDeleteCached,onHandleIsDelete:function onHandleIsDelete(){return setIsDeleteCached(false);},onHandleDelete:handleDeleteCached}),/*#__PURE__*/_jsx(PasteDialog,{open:isOpenPasteDialog,onHandleClose:function onHandleClose(){return setIsOpenPasteDialog(false);},onHandleCommandLine:handleCommandLine})]});};export default ModelCard;","map":{"version":3,"names":["ChatOutlined","Close","ContentPasteGo","Delete","EditNote","EditNoteOutlined","ExpandLess","ExpandMore","Grade","HelpCenterOutlined","HelpOutline","RocketLaunchOutlined","StarBorder","StopCircle","UndoOutlined","Alert","Backdrop","Box","Button","Chip","CircularProgress","Collapse","FormControl","FormControlLabel","Grid","IconButton","InputLabel","ListItemButton","ListItemText","MenuItem","Paper","Radio","RadioGroup","Select","Snackbar","Stack","Switch","Table","TableBody","TableCell","TableContainer","TableHead","TablePagination","TableRow","TextField","Tooltip","useTheme","styled","React","useContext","useEffect","useRef","useState","useTranslation","useNavigate","ApiContext","CopyComponent","DeleteDialog","fetchWrapper","TitleTypography","AddPair","AddValue","CopyToCommandLine","Drawer","PasteDialog","Progress","additionalParameterTipList","llmAllDataKey","quantizationParametersTipList","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","csghubArr","enginesWithNWorker","ModelCard","_ref","_JSON$parse","_JSON$parse2","_modelData$model_abil4","_modelData$model_abil5","url","modelData","gpuAvailable","modelType","_ref$is_custom","is_custom","onHandleCompleteDelete","onHandlecustomDelete","onGetCollectionArr","_useState","_useState2","_slicedToArray","hover","setHover","_useState3","_useState4","selected","setSelected","_useState5","_useState6","requestLimitsAlert","setRequestLimitsAlert","_useState7","_useState8","GPUIdxAlert","setGPUIdxAlert","_useState9","_useState10","isOther","setIsOther","_useState11","_useState12","isPeftModelConfig","setIsPeftModelConfig","_useState13","_useState14","isVirtualEnvConfig","setIsVirtualEnvConfig","_useState15","_useState16","isEnvsConfig","setIsEnvsConfig","_useState17","_useState18","openSnackbar","setOpenSnackbar","_useContext","isCallingApi","setIsCallingApi","_useContext2","isUpdatingModel","_useContext3","setErrorMsg","setSuccessMsg","navigate","_useState19","_useState20","modelUID","setModelUID","_useState21","_useState22","modelEngine","setModelEngine","_useState23","_useState24","modelFormat","setModelFormat","_useState25","_useState26","modelSize","setModelSize","_useState27","_useState28","quantization","setQuantization","_useState29","_useState30","multimodalProjector","setMultimodalProjector","_useState31","_useState32","nWorker","setNWorker","_useState33","_useState34","nGPU","setNGPU","_useState35","_useState36","nGpu","setNGpu","_useState37","_useState38","nGPULayers","setNGPULayers","_useState39","_useState40","replica","setReplica","_useState41","_useState42","requestLimits","setRequestLimits","_useState43","_useState44","workerIp","setWorkerIp","_useState45","_useState46","GPUIdx","setGPUIdx","_useState47","_useState48","downloadHub","setDownloadHub","_useState49","_useState50","modelPath","setModelPath","_useState51","_useState52","enableThinking","setEnableThinking","_useState53","_useState54","reasoningContent","setReasoningContent","_useState55","_useState56","enableVirtualEnv","setEnableVirtualEnv","_useState57","_useState58","ggufQuantizations","setGgufQuantizations","_useState59","_useState60","ggufModelPath","setGgufModelPath","_useState61","_useState62","cpuOffload","setCpuOffload","_useState63","_useState64","lightningVersions","setLightningVersions","_useState65","_useState66","lightningModelPath","setLightningModelPath","_useState67","_useState68","enginesObj","setEnginesObj","_useState69","_useState70","engineOptions","setEngineOptions","_useState71","_useState72","formatOptions","setFormatOptions","_useState73","_useState74","sizeOptions","setSizeOptions","_useState75","_useState76","quantizationOptions","setQuantizationOptions","_useState77","_useState78","multimodalProjectorOptions","setMultimodalProjectorOptions","_useState79","_useState80","customDeleted","setCustomDeleted","_useState81","_useState82","customParametersArr","setCustomParametersArr","_useState83","_useState84","quantizationParametersArr","setQuantizationParametersArr","_useState85","_useState86","loraListArr","setLoraListArr","_useState87","_useState88","imageLoraLoadKwargsArr","setImageLoraLoadKwargsArr","_useState89","_useState90","imageLoraFuseKwargsArr","setImageLoraFuseKwargsArr","_useState91","_useState92","isOpenCachedList","setIsOpenCachedList","_useState93","_useState94","isDeleteCached","setIsDeleteCached","_useState95","_useState96","cachedListArr","setCachedListArr","_useState97","_useState98","cachedModelVersion","setCachedModelVersion","_useState99","_useState100","cachedRealPath","setCachedRealPath","_useState101","_useState102","page","setPage","_useState103","_useState104","isDeleteCustomModel","setIsDeleteCustomModel","_useState105","_useState106","isJsonShow","setIsJsonShow","_useState107","_useState108","isHistory","setIsHistory","_useState109","_useState110","customArr","setCustomArr","_useState111","_useState112","quantizationConfigArr","setQuantizationConfigArr","_useState113","_useState114","loraArr","setLoraArr","_useState115","_useState116","imageLoraLoadArr","setImageLoraLoadArr","_useState117","_useState118","imageLoraFuseArr","setImageLoraFuseArr","_useState119","_useState120","virtualEnvPackagesArr","setVirtualEnvPackagesArr","_useState121","_useState122","virtualEnvPackagesHistoryArr","setVirtualEnvPackagesHistoryArr","_useState123","_useState124","envsArr","setEnvsArr","_useState125","_useState126","envsHistoryArr","setEnvsHistoryArr","_useState127","_useState128","customParametersArrLength","setCustomParametersArrLength","_useState129","_useState130","isOpenPasteDialog","setIsOpenPasteDialog","_useState131","_useState132","isShowProgress","setIsShowProgress","_useState133","_useState134","progress","setProgress","_useState135","_useState136","isShowCancel","setIsShowCancel","_useState137","_useState138","isLoading","setIsLoading","parentRef","intervalRef","_useTranslation","t","theme","range","start","end","Array","fill","undefined","map","_","i","isCached","spec","isArray","cache_status","some","cs","convertModelSize","size","toString","includes","parseInt","keyArr","key","push","data","handleGetHistory","length","model_name","handleLlmHistory","handleOtherHistory","format","_toConsumableArray","Set","item","model_format","sizes","filter","model_size_in_billions","JSON","stringify","quants","flatMap","quantizations","multimodal_projectors","current","scrollTo","top","scrollHeight","behavior","getNGPURange","concat","getNewNGPURange","getModelEngine","model_type","get","then","Object","keys","catch","error","console","response","status","message","fetchProgress","_ref2","_asyncToGenerator","_regeneratorRuntime","mark","_callee","res","wrap","_callee$","_context","prev","next","sent","Number","t0","stopPolling","stop","apply","arguments","startPolling","setInterval","clearInterval","handleModelData","_String","_String2","_modelData$model_abil","_modelData$model_abil2","_modelData$model_abil3","modelDataWithID_LLM","model_uid","trim","model_engine","n_gpu","request_limits","String","n_worker","worker_ip","gpu_idx","handleGPUIdx","download_hub","model_path","modelDataWithID_other","multimodal_projector","n_gpu_layers","model_ability","enable_thinking","reasoning_content","gguf_quantization","gguf_model_path","lightning_version","lightning_model_path","cpu_offload","modelDataWithID","peft_model_config","image_lora_load_kwargs","forEach","handleValueType","value","image_lora_fuse_kwargs","lora_list","id","quantizationConfig","arr","launchModel","post","sessionStorage","setItem","historyArr","parse","localStorage","getItem","historyModelNameArr","_error$response","_error$response2","finally","cancelModel","_ref3","_callee2","_callee2$","_context2","log","finish","split","handeCustomDelete","e","stopPropagation","subType","delete","judgeArr","keysArr","str","toLowerCase","StyledTableRow","_ref4","backgroundColor","palette","action","emptyRows","Math","max","handleChangePage","newPage","handleOpenCachedList","getCachedList","document","body","style","overflow","handleCloseCachedList","list","handleOpenDeleteCachedDialog","real_path","model_version","handleDeleteCached","cachedArr","handleJsonDataPresentation","find","_peft_model_config$lo","quantization_config","enable_virtual_env","virtual_env_packages","envs","join","loraData","lora_name","local_path","envsData","customData","quantizationConfigData","_peft_model_config$lo2","ImageLoraLoadData","ImageLoraFuseData","handleCollection","bool","collectionArr","handleDeleteChip","newArr","normalizeLanguage","language","lang","handleCommandLine","isModelStartable","is_builtin","renderButtonContent","sx","fontSize","showAbilityParameter","v","label","onClick","children","className","onMouseEnter","onMouseLeave","elevation","title","placement","color","spacing","direction","useFlexGap","flexWrap","marginLeft","model_lang","variant","model_specs","deleteIcon","onDelete","model_description","floor","context_length","disabled","model_family","dimensions","max_tokens","text","isDelete","onHandleIsDelete","onHandleDelete","isOpen","onClose","display","alignItems","justifyContent","predefinedKeys","getData","ref","flexDirection","width","mx","rowSpacing","columnSpacing","xs","margin","fullWidth","labelId","onChange","target","engine","subArr","specs","cached","displayedEngine","displayedFormat","displayedSize","quant","s","indexOf","displayedQuant","projector","displayedProjector","type","InputProps","inputProps","min","labelPlacement","control","checked","primary","marginRight","in","timeout","unmountOnExit","parseFloat","severity","regular","test","onGetArr","onJudgeArr","pairData","gap","row","name","tipOptions","toLocaleLowerCase","marginTop","gguf_quantizations","lightning_versions","marginBlock","flex","zIndex","drawer","open","mode","tip","multiline","rows","defaultValue","anchorOrigin","vertical","horizontal","cursor","component","minWidth","height","stickyHeader","align","whiteSpace","position","slice","maxHeight","scope","path","actor_ip_address","float","rowsPerPageOptions","count","rowsPerPage","onPageChange","onHandleClose","onHandleCommandLine"],"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 Close,\n ContentPasteGo,\n Delete,\n EditNote,\n EditNoteOutlined,\n ExpandLess,\n ExpandMore,\n Grade,\n HelpCenterOutlined,\n HelpOutline,\n RocketLaunchOutlined,\n StarBorder,\n StopCircle,\n UndoOutlined,\n} from '@mui/icons-material'\nimport {\n Alert,\n Backdrop,\n Box,\n Button,\n Chip,\n CircularProgress,\n Collapse,\n FormControl,\n FormControlLabel,\n Grid,\n IconButton,\n InputLabel,\n ListItemButton,\n ListItemText,\n MenuItem,\n Paper,\n Radio,\n RadioGroup,\n Select,\n Snackbar,\n Stack,\n Switch,\n Table,\n TableBody,\n TableCell,\n TableContainer,\n TableHead,\n TablePagination,\n TableRow,\n TextField,\n Tooltip,\n} from '@mui/material'\nimport { useTheme } from '@mui/material'\nimport { styled } from '@mui/material/styles'\nimport React, { useContext, useEffect, useRef, useState } from 'react'\nimport { useTranslation } from 'react-i18next'\nimport { useNavigate } from 'react-router-dom'\n\nimport { ApiContext } from '../../components/apiContext'\nimport CopyComponent from '../../components/copyComponent/copyComponent'\nimport DeleteDialog from '../../components/deleteDialog'\nimport fetchWrapper from '../../components/fetchWrapper'\nimport TitleTypography from '../../components/titleTypography'\nimport AddPair from './components/addPair'\nimport AddValue from './components/addValue'\nimport CopyToCommandLine from './components/copyComponent'\nimport Drawer from './components/drawer'\nimport PasteDialog from './components/pasteDialog'\nimport Progress from './components/progress'\nimport {\n additionalParameterTipList,\n llmAllDataKey,\n quantizationParametersTipList,\n} from './data/data'\n\nconst csghubArr = ['qwen2-instruct']\nconst enginesWithNWorker = ['SGLang', 'vLLM', 'MLX']\n\nconst ModelCard = ({\n url,\n modelData,\n gpuAvailable,\n modelType,\n is_custom = false,\n onHandleCompleteDelete,\n onHandlecustomDelete,\n onGetCollectionArr,\n}) => {\n const [hover, setHover] = useState(false)\n const [selected, setSelected] = useState(false)\n const [requestLimitsAlert, setRequestLimitsAlert] = useState(false)\n const [GPUIdxAlert, setGPUIdxAlert] = useState(false)\n const [isOther, setIsOther] = useState(false)\n const [isPeftModelConfig, setIsPeftModelConfig] = useState(false)\n const [isVirtualEnvConfig, setIsVirtualEnvConfig] = useState(false)\n const [isEnvsConfig, setIsEnvsConfig] = useState(false)\n const [openSnackbar, setOpenSnackbar] = useState(false)\n const { isCallingApi, setIsCallingApi } = useContext(ApiContext)\n const { isUpdatingModel } = useContext(ApiContext)\n const { setErrorMsg, setSuccessMsg } = useContext(ApiContext)\n const navigate = useNavigate()\n\n // Model parameter selections\n const [modelUID, setModelUID] = useState('')\n const [modelEngine, setModelEngine] = useState('')\n const [modelFormat, setModelFormat] = useState('')\n const [modelSize, setModelSize] = useState('')\n const [quantization, setQuantization] = useState('')\n const [multimodalProjector, setMultimodalProjector] = useState('')\n const [nWorker, setNWorker] = useState(1)\n const [nGPU, setNGPU] = useState('auto')\n const [nGpu, setNGpu] = useState(gpuAvailable === 0 ? 'CPU' : 'GPU')\n const [nGPULayers, setNGPULayers] = useState(-1)\n const [replica, setReplica] = useState(1)\n const [requestLimits, setRequestLimits] = useState('')\n const [workerIp, setWorkerIp] = useState('')\n const [GPUIdx, setGPUIdx] = useState('')\n const [downloadHub, setDownloadHub] = useState('')\n const [modelPath, setModelPath] = useState('')\n const [enableThinking, setEnableThinking] = useState(true)\n const [reasoningContent, setReasoningContent] = useState(false)\n const [enableVirtualEnv, setEnableVirtualEnv] = useState('unset')\n const [ggufQuantizations, setGgufQuantizations] = useState('')\n const [ggufModelPath, setGgufModelPath] = useState('')\n const [cpuOffload, setCpuOffload] = useState(false)\n const [lightningVersions, setLightningVersions] = useState('')\n const [lightningModelPath, setLightningModelPath] = useState('')\n\n const [enginesObj, setEnginesObj] = useState({})\n const [engineOptions, setEngineOptions] = useState([])\n const [formatOptions, setFormatOptions] = useState([])\n const [sizeOptions, setSizeOptions] = useState([])\n const [quantizationOptions, setQuantizationOptions] = useState([])\n const [multimodalProjectorOptions, setMultimodalProjectorOptions] = useState(\n []\n )\n const [customDeleted, setCustomDeleted] = useState(false)\n const [customParametersArr, setCustomParametersArr] = useState([])\n const [quantizationParametersArr, setQuantizationParametersArr] = useState([])\n const [loraListArr, setLoraListArr] = useState([])\n const [imageLoraLoadKwargsArr, setImageLoraLoadKwargsArr] = useState([])\n const [imageLoraFuseKwargsArr, setImageLoraFuseKwargsArr] = useState([])\n const [isOpenCachedList, setIsOpenCachedList] = useState(false)\n const [isDeleteCached, setIsDeleteCached] = useState(false)\n const [cachedListArr, setCachedListArr] = useState([])\n const [cachedModelVersion, setCachedModelVersion] = useState('')\n const [cachedRealPath, setCachedRealPath] = useState('')\n const [page, setPage] = useState(0)\n const [isDeleteCustomModel, setIsDeleteCustomModel] = useState(false)\n const [isJsonShow, setIsJsonShow] = useState(false)\n const [isHistory, setIsHistory] = useState(false)\n const [customArr, setCustomArr] = useState([])\n const [quantizationConfigArr, setQuantizationConfigArr] = useState([])\n const [loraArr, setLoraArr] = useState([])\n const [imageLoraLoadArr, setImageLoraLoadArr] = useState([])\n const [imageLoraFuseArr, setImageLoraFuseArr] = useState([])\n const [virtualEnvPackagesArr, setVirtualEnvPackagesArr] = useState([])\n const [virtualEnvPackagesHistoryArr, setVirtualEnvPackagesHistoryArr] =\n useState([])\n const [envsArr, setEnvsArr] = useState([])\n const [envsHistoryArr, setEnvsHistoryArr] = useState([])\n const [customParametersArrLength, setCustomParametersArrLength] = useState(0)\n const [isOpenPasteDialog, setIsOpenPasteDialog] = useState(false)\n const [isShowProgress, setIsShowProgress] = useState(false)\n const [progress, setProgress] = useState(0)\n const [isShowCancel, setIsShowCancel] = useState(false)\n const [isLoading, setIsLoading] = useState(false)\n\n const parentRef = useRef(null)\n const intervalRef = useRef(null)\n const { t } = useTranslation()\n const theme = useTheme()\n\n const range = (start, end) => {\n return new Array(end - start + 1).fill(undefined).map((_, i) => i + start)\n }\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 // model size can be int or string. For string style, \"1_8\" means 1.8 as an example.\n const convertModelSize = (size) => {\n return size.toString().includes('_') ? size : parseInt(size, 10)\n }\n\n useEffect(() => {\n let keyArr = []\n for (let key in enginesObj) {\n keyArr.push(key)\n }\n const data = handleGetHistory()\n if (keyArr.length && data.model_name) {\n if (modelType === 'LLM') {\n handleLlmHistory(data)\n } else {\n handleOtherHistory(data)\n }\n }\n }, [enginesObj])\n\n useEffect(() => {\n if (modelEngine && ['LLM', 'embedding', 'rerank'].includes(modelType)) {\n const format = [\n ...new Set(enginesObj[modelEngine].map((item) => item.model_format)),\n ]\n setFormatOptions(format)\n if (!format.includes(modelFormat)) {\n setModelFormat('')\n }\n if (format.length === 1) {\n setModelFormat(format[0])\n }\n }\n }, [modelEngine])\n\n useEffect(() => {\n if (modelEngine && modelFormat && ['LLM'].includes(modelType)) {\n const sizes = [\n ...new Set(\n enginesObj[modelEngine]\n .filter((item) => item.model_format === modelFormat)\n .map((item) => item.model_size_in_billions)\n ),\n ]\n setSizeOptions(sizes)\n if (\n sizeOptions.length &&\n JSON.stringify(sizes) !== JSON.stringify(sizeOptions)\n ) {\n setModelSize('')\n }\n if (sizes.length === 1) {\n setModelSize(sizes[0])\n }\n } else if (\n modelEngine &&\n modelFormat &&\n ['embedding', 'rerank'].includes(modelType)\n ) {\n const quants = [\n ...new Set(\n enginesObj[modelEngine]\n .filter((item) => item.model_format === modelFormat)\n .map((item) => item.quantization)\n ),\n ]\n setQuantizationOptions(quants)\n if (!quants.includes(quantization)) {\n setQuantization('')\n }\n if (quants.length === 1) {\n setQuantization(quants[0])\n }\n }\n }, [modelEngine, modelFormat])\n\n useEffect(() => {\n if (modelEngine && modelFormat && modelSize) {\n const quants = [\n ...new Set(\n enginesObj[modelEngine]\n .filter(\n (item) =>\n item.model_format === modelFormat &&\n item.model_size_in_billions === convertModelSize(modelSize)\n )\n .flatMap((item) => item.quantizations)\n ),\n ]\n const multimodal_projectors = [\n ...new Set(\n enginesObj[modelEngine]\n .filter(\n (item) =>\n item.model_format === modelFormat &&\n item.model_size_in_billions === convertModelSize(modelSize)\n )\n .flatMap((item) => item.multimodal_projectors || [])\n ),\n ]\n setQuantizationOptions(quants)\n setMultimodalProjectorOptions(multimodal_projectors || [])\n if (!quants.includes(quantization)) {\n setQuantization('')\n }\n if (quants.length === 1) {\n setQuantization(quants[0])\n }\n if (!multimodal_projectors.includes(multimodalProjector)) {\n setMultimodalProjector('')\n }\n if (multimodal_projectors.length > 0 && !multimodalProjector) {\n setMultimodalProjector(multimodal_projectors[0])\n }\n }\n }, [modelEngine, modelFormat, modelSize])\n\n useEffect(() => {\n setCustomParametersArrLength(customParametersArr.length)\n if (\n parentRef.current &&\n customParametersArr.length > customParametersArrLength\n ) {\n parentRef.current.scrollTo({\n top: parentRef.current.scrollHeight,\n behavior: 'smooth',\n })\n }\n }, [customParametersArr])\n\n const getNGPURange = () => {\n if (gpuAvailable > 0) {\n return ['auto', 'CPU'].concat(range(1, gpuAvailable))\n }\n\n return ['auto', 'CPU']\n }\n\n const getNewNGPURange = () => {\n if (gpuAvailable === 0) {\n return ['CPU']\n } else {\n return ['GPU', 'CPU']\n }\n }\n\n const getModelEngine = (model_name, model_type) => {\n fetchWrapper\n .get(\n model_type === 'LLM'\n ? `/v1/engines/${model_name}`\n : `/v1/engines/${model_type}/${model_name}`\n )\n .then((data) => {\n setEnginesObj(data)\n setEngineOptions(Object.keys(data))\n setIsCallingApi(false)\n })\n .catch((error) => {\n console.error('Error:', error)\n if (error.response.status !== 403) {\n setErrorMsg(error.message)\n }\n setIsCallingApi(false)\n })\n }\n\n const fetchProgress = async () => {\n try {\n const res = await fetchWrapper.get(\n `/v1/models/${modelData.model_name}/progress`\n )\n if (res.progress !== 1.0) setProgress(Number(res.progress))\n } catch (err) {\n stopPolling()\n setIsCallingApi(false)\n }\n }\n\n const startPolling = () => {\n if (intervalRef.current) return\n intervalRef.current = setInterval(fetchProgress, 500)\n }\n\n const stopPolling = () => {\n if (intervalRef.current !== null) {\n clearInterval(intervalRef.current)\n intervalRef.current = null\n }\n }\n\n const handleModelData = () => {\n const modelDataWithID_LLM = {\n // If user does not fill model_uid, pass null (None) to server and server generates it.\n model_uid: modelUID?.trim() === '' ? null : modelUID?.trim(),\n model_name: modelData.model_name,\n model_type: modelType,\n model_engine: modelEngine,\n model_format: modelFormat,\n model_size_in_billions: convertModelSize(modelSize),\n quantization: quantization,\n n_gpu:\n parseInt(nGPU, 10) === 0 || nGPU === 'CPU'\n ? null\n : nGPU === 'auto'\n ? 'auto'\n : parseInt(nGPU, 10),\n replica: replica,\n request_limits:\n String(requestLimits)?.trim() === ''\n ? null\n : Number(String(requestLimits)?.trim()),\n n_worker: nWorker,\n worker_ip: workerIp?.trim() === '' ? null : workerIp?.trim(),\n gpu_idx: GPUIdx?.trim() === '' ? null : handleGPUIdx(GPUIdx?.trim()),\n download_hub: downloadHub === '' ? null : downloadHub,\n model_path: modelPath?.trim() === '' ? null : modelPath?.trim(),\n }\n\n const modelDataWithID_other = {\n model_uid: modelUID?.trim() === '' ? null : modelUID?.trim(),\n model_name: modelData.model_name,\n model_type: modelType,\n replica: replica,\n n_gpu:\n modelType === 'image'\n ? parseInt(nGPU, 10) === 0 || nGPU === 'CPU'\n ? null\n : nGPU === 'auto'\n ? 'auto'\n : parseInt(nGPU, 10)\n : nGpu === 'GPU'\n ? 'auto'\n : null,\n worker_ip: workerIp?.trim() === '' ? null : workerIp?.trim(),\n gpu_idx: GPUIdx?.trim() === '' ? null : handleGPUIdx(GPUIdx?.trim()),\n download_hub: downloadHub === '' ? null : downloadHub,\n model_path: modelPath?.trim() === '' ? null : modelPath?.trim(),\n }\n\n if (multimodalProjector)\n modelDataWithID_LLM.multimodal_projector = multimodalProjector\n if (nGPULayers >= 0) modelDataWithID_LLM.n_gpu_layers = nGPULayers\n if (modelData.model_ability?.includes('hybrid'))\n modelDataWithID_LLM.enable_thinking = enableThinking\n if (\n modelData.model_ability?.includes('reasoning') &&\n (!modelData.model_ability?.includes('hybrid') || enableThinking)\n )\n modelDataWithID_LLM.reasoning_content = reasoningContent\n if (ggufQuantizations)\n modelDataWithID_other.gguf_quantization = ggufQuantizations\n if (ggufModelPath) modelDataWithID_other.gguf_model_path = ggufModelPath\n if (lightningVersions)\n modelDataWithID_other.lightning_version = lightningVersions\n if (lightningModelPath)\n modelDataWithID_other.lightning_model_path = lightningModelPath\n if (['image', 'video'].includes(modelType))\n modelDataWithID_other.cpu_offload = cpuOffload\n if (['embedding', 'rerank'].includes(modelType)) {\n modelDataWithID_other.model_engine = modelEngine\n modelDataWithID_other.model_format = modelFormat\n modelDataWithID_other.quantization = quantization\n }\n\n const modelDataWithID =\n modelType === 'LLM' ? modelDataWithID_LLM : modelDataWithID_other\n\n if (\n loraListArr.length ||\n imageLoraLoadKwargsArr.length ||\n imageLoraFuseKwargsArr.length\n ) {\n const peft_model_config = {}\n if (imageLoraLoadKwargsArr.length) {\n const image_lora_load_kwargs = {}\n imageLoraLoadKwargsArr.forEach((item) => {\n image_lora_load_kwargs[item.key] = handleValueType(item.value)\n })\n peft_model_config['image_lora_load_kwargs'] = image_lora_load_kwargs\n }\n if (imageLoraFuseKwargsArr.length) {\n const image_lora_fuse_kwargs = {}\n imageLoraFuseKwargsArr.forEach((item) => {\n image_lora_fuse_kwargs[item.key] = handleValueType(item.value)\n })\n peft_model_config['image_lora_fuse_kwargs'] = image_lora_fuse_kwargs\n }\n if (loraListArr.length) {\n const lora_list = loraListArr\n lora_list.map((item) => {\n delete item.id\n })\n peft_model_config['lora_list'] = lora_list\n }\n modelDataWithID['peft_model_config'] = peft_model_config\n }\n\n if (customParametersArr.length) {\n customParametersArr.forEach((item) => {\n modelDataWithID[item.key] = handleValueType(item.value)\n })\n }\n\n if (quantizationParametersArr.length) {\n const quantizationConfig = {}\n quantizationParametersArr.forEach((item) => {\n quantizationConfig[item.key] = handleValueType(item.value)\n })\n modelDataWithID['quantization_config'] = quantizationConfig\n }\n\n if (enableVirtualEnv !== 'unset') {\n modelDataWithID['enable_virtual_env'] = handleValueType(enableVirtualEnv)\n }\n\n if (envsArr.length) {\n const arr = {}\n envsArr.forEach((item) => {\n arr[item.key] = item.value\n })\n modelDataWithID['envs'] = arr\n }\n\n if (virtualEnvPackagesArr.length) {\n const arr = []\n virtualEnvPackagesArr.forEach((item) => {\n arr.push(item.value)\n })\n modelDataWithID['virtual_env_packages'] = arr\n }\n\n return modelDataWithID\n }\n\n const launchModel = () => {\n if (isCallingApi || isUpdatingModel) {\n return\n }\n\n setIsCallingApi(true)\n setProgress(0)\n setIsShowProgress(true)\n setIsShowCancel(true)\n\n try {\n const modelDataWithID = handleModelData()\n // First fetcher request to initiate the model\n fetchWrapper\n .post('/v1/models', modelDataWithID)\n .then(() => {\n navigate(`/running_models/${modelType}`)\n sessionStorage.setItem(\n 'runningModelType',\n `/running_models/${modelType}`\n )\n let historyArr = JSON.parse(localStorage.getItem('historyArr')) || []\n const historyModelNameArr = historyArr.map((item) => item.model_name)\n if (historyModelNameArr.includes(modelDataWithID.model_name)) {\n historyArr = historyArr.map((item) => {\n if (item.model_name === modelDataWithID.model_name) {\n return modelDataWithID\n }\n return item\n })\n } else {\n historyArr.push(modelDataWithID)\n }\n localStorage.setItem('historyArr', JSON.stringify(historyArr))\n })\n .catch((error) => {\n console.error('Error:', error)\n if (error.response?.status === 499) {\n setSuccessMsg(t('launchModel.cancelledSuccessfully'))\n } else if (error.response?.status !== 403) {\n setErrorMsg(error.message)\n }\n })\n .finally(() => {\n setIsCallingApi(false)\n stopPolling()\n setIsShowProgress(false)\n setIsShowCancel(false)\n setIsLoading(false)\n })\n startPolling()\n } catch (error) {\n setErrorMsg(`${error}`)\n setIsCallingApi(false)\n }\n }\n\n const cancelModel = async () => {\n try {\n await fetchWrapper.post(`/v1/models/${modelData.model_name}/cancel`)\n setIsLoading(true)\n } catch (err) {\n console.log('err', err)\n } finally {\n stopPolling()\n setIsShowProgress(false)\n setIsShowCancel(false)\n }\n }\n\n const handleGPUIdx = (data) => {\n const arr = []\n data?.split(',').forEach((item) => {\n arr.push(Number(item))\n })\n return arr\n }\n\n const handeCustomDelete = (e) => {\n e.stopPropagation()\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 setCustomDeleted(true)\n onHandlecustomDelete(modelData.model_name)\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 judgeArr = (arr, keysArr) => {\n if (\n arr.length &&\n arr[arr.length - 1][keysArr[0]] !== '' &&\n arr[arr.length - 1][keysArr[1]] !== ''\n ) {\n return true\n } else if (arr.length === 0) {\n return true\n } else {\n return false\n }\n }\n\n const handleValueType = (str) => {\n str = String(str)\n if (str.toLowerCase() === 'none') {\n return null\n } else if (str.toLowerCase() === 'true') {\n return true\n } else if (str.toLowerCase() === 'false') {\n return false\n } else if (str.includes(',')) {\n return str.split(',')\n } else if (str.includes(',')) {\n return str.split(',')\n } else if (Number(str) || (str !== '' && Number(str) === 0)) {\n return Number(str)\n } else {\n return str\n }\n }\n\n const StyledTableRow = styled(TableRow)(({ theme }) => ({\n '&:nth-of-type(odd)': {\n backgroundColor: theme.palette.action.hover,\n },\n }))\n\n const emptyRows =\n page >= 0 ? Math.max(0, (1 + page) * 5 - cachedListArr.length) : 0\n\n const handleChangePage = (_, newPage) => {\n setPage(newPage)\n }\n\n const handleOpenCachedList = () => {\n setIsOpenCachedList(true)\n getCachedList()\n document.body.style.overflow = 'hidden'\n }\n\n const handleCloseCachedList = () => {\n document.body.style.overflow = 'auto'\n setHover(false)\n setIsOpenCachedList(false)\n if (cachedListArr.length === 0) {\n onHandleCompleteDelete(modelData.model_name)\n }\n }\n\n const getCachedList = () => {\n fetchWrapper\n .get(`/v1/cache/models?model_name=${modelData.model_name}`)\n .then((data) => setCachedListArr(data.list))\n .catch((error) => {\n console.error(error)\n if (error.response.status !== 403) {\n setErrorMsg(error.message)\n }\n })\n }\n\n const handleOpenDeleteCachedDialog = (real_path, model_version) => {\n setCachedRealPath(real_path)\n setCachedModelVersion(model_version)\n setIsDeleteCached(true)\n }\n\n const handleDeleteCached = () => {\n fetchWrapper\n .delete(`/v1/cache/models?model_version=${cachedModelVersion}`)\n .then(() => {\n const cachedArr = cachedListArr.filter(\n (item) => item.real_path !== cachedRealPath\n )\n setCachedListArr(cachedArr)\n setIsDeleteCached(false)\n if (cachedArr.length) {\n if (\n (page + 1) * 5 >= cachedListArr.length &&\n cachedArr.length % 5 === 0\n ) {\n setPage(cachedArr.length / 5 - 1)\n }\n }\n })\n .catch((error) => {\n console.error(error)\n if (error.response.status !== 403) {\n setErrorMsg(error.message)\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 handleGetHistory = () => {\n const historyArr = JSON.parse(localStorage.getItem('historyArr')) || []\n return (\n historyArr.find((item) => item.model_name === modelData.model_name) || {}\n )\n }\n\n const handleLlmHistory = (data) => {\n const {\n model_engine,\n model_format,\n model_size_in_billions,\n quantization,\n multimodal_projector,\n n_worker,\n n_gpu,\n n_gpu_layers,\n replica,\n model_uid,\n request_limits,\n worker_ip,\n gpu_idx,\n download_hub,\n model_path,\n enable_thinking,\n reasoning_content,\n peft_model_config,\n quantization_config,\n enable_virtual_env,\n virtual_env_packages,\n envs,\n } = data\n\n if (!engineOptions.includes(model_engine)) {\n setModelEngine('')\n } else {\n setModelEngine(model_engine || '')\n }\n setModelFormat(model_format || '')\n setModelSize(String(model_size_in_billions) || '')\n setQuantization(quantization || '')\n setMultimodalProjector(multimodal_projector || '')\n setNWorker(Number(n_worker) || 1)\n setNGPU(n_gpu || 'auto')\n if (n_gpu_layers >= 0) {\n setNGPULayers(n_gpu_layers)\n } else {\n setNGPULayers(-1)\n }\n setReplica(Number(replica) || 1)\n setModelUID(model_uid || '')\n setRequestLimits(request_limits || '')\n setWorkerIp(worker_ip || '')\n setGPUIdx(gpu_idx?.join(',') || '')\n setDownloadHub(download_hub || '')\n setModelPath(model_path || '')\n setEnableThinking(enable_thinking !== false)\n setReasoningContent(reasoning_content || false)\n setEnableVirtualEnv(enable_virtual_env ?? 'unset')\n setVirtualEnvPackagesHistoryArr(virtual_env_packages || [])\n\n let loraData = []\n peft_model_config?.lora_list?.forEach((item) => {\n loraData.push({\n lora_name: item.lora_name,\n local_path: item.local_path,\n })\n })\n setLoraArr(loraData)\n\n let envsData = []\n for (let key in envs) {\n envsData.push({\n key: key,\n value:\n envs[key] === null ? 'none' : envs[key] === false ? false : envs[key],\n })\n }\n setEnvsHistoryArr(envsData)\n\n let customData = []\n for (let key in data) {\n !llmAllDataKey.includes(key) &&\n customData.push({\n key: key,\n value:\n data[key] === null\n ? 'none'\n : data[key] === false\n ? false\n : data[key],\n })\n }\n setCustomArr(customData)\n\n let quantizationConfigData = []\n for (let key in quantization_config) {\n quantizationConfigData.push({\n key: key,\n value:\n quantization_config[key] === null\n ? 'none'\n : quantization_config[key] === false\n ? false\n : quantization_config[key],\n })\n }\n setQuantizationConfigArr(quantizationConfigData)\n\n if (\n model_uid ||\n request_limits ||\n worker_ip ||\n gpu_idx?.join(',') ||\n download_hub ||\n model_path\n )\n setIsOther(true)\n\n if (loraData.length) {\n setIsOther(true)\n setIsPeftModelConfig(true)\n }\n\n if (virtual_env_packages?.length || enable_virtual_env !== undefined) {\n setIsOther(true)\n setIsVirtualEnvConfig(true)\n }\n\n if (envsData.length) {\n setIsOther(true)\n setIsEnvsConfig(true)\n }\n }\n\n const handleOtherHistory = (data) => {\n const {\n model_engine,\n model_format,\n quantization,\n model_uid,\n replica,\n n_gpu,\n gpu_idx,\n worker_ip,\n download_hub,\n model_path,\n gguf_quantization,\n gguf_model_path,\n lightning_version,\n lightning_model_path,\n cpu_offload,\n model_type,\n peft_model_config,\n enable_virtual_env,\n virtual_env_packages,\n envs,\n } = data\n\n if (!engineOptions.includes(model_engine)) {\n setModelEngine('')\n } else {\n setModelEngine(model_engine || '')\n }\n setModelFormat(model_format || '')\n setQuantization(quantization || '')\n setModelUID(model_uid || '')\n setReplica(replica || 1)\n if (modelType === 'image') {\n setNGPU(n_gpu || 'auto')\n } else {\n setNGpu(n_gpu === 'auto' ? 'GPU' : 'CPU')\n }\n setGPUIdx(gpu_idx?.join(',') || '')\n setWorkerIp(worker_ip || '')\n setDownloadHub(download_hub || '')\n setModelPath(model_path || '')\n setGgufQuantizations(gguf_quantization || '')\n setGgufModelPath(gguf_model_path || '')\n setLightningVersions(lightning_version || '')\n setLightningModelPath(lightning_model_path || '')\n setCpuOffload(cpu_offload || false)\n setEnableVirtualEnv(enable_virtual_env ?? 'unset')\n setVirtualEnvPackagesHistoryArr(virtual_env_packages || [])\n\n let envsData = []\n for (let key in envs) {\n envsData.push({\n key: key,\n value:\n envs[key] === null ? 'none' : envs[key] === false ? false : envs[key],\n })\n }\n setEnvsHistoryArr(envsData)\n\n if (model_type === 'image') {\n let loraData = []\n peft_model_config?.lora_list?.forEach((item) => {\n loraData.push({\n lora_name: item.lora_name,\n local_path: item.local_path,\n })\n })\n setLoraArr(loraData)\n\n let ImageLoraLoadData = []\n for (let key in peft_model_config?.image_lora_load_kwargs) {\n ImageLoraLoadData.push({\n key: key,\n value: peft_model_config?.image_lora_load_kwargs[key] || 'none',\n })\n }\n setImageLoraLoadArr(ImageLoraLoadData)\n\n let ImageLoraFuseData = []\n for (let key in peft_model_config?.image_lora_fuse_kwargs) {\n ImageLoraFuseData.push({\n key: key,\n value: peft_model_config?.image_lora_fuse_kwargs[key] || 'none',\n })\n }\n setImageLoraFuseArr(ImageLoraFuseData)\n\n if (\n loraData.length ||\n ImageLoraLoadData.length ||\n ImageLoraFuseData.length\n ) {\n setIsPeftModelConfig(true)\n }\n }\n\n if (virtual_env_packages?.length || enable_virtual_env !== undefined) {\n setIsVirtualEnvConfig(true)\n }\n\n if (envsData.length) {\n setIsEnvsConfig(true)\n }\n\n let customData = []\n for (let key in data) {\n !llmAllDataKey.includes(key) &&\n customData.push({ key: key, value: data[key] || 'none' })\n }\n setCustomArr(customData)\n }\n\n const handleCollection = (bool) => {\n setHover(false)\n\n let collectionArr = JSON.parse(localStorage.getItem('collectionArr')) || []\n if (bool) {\n collectionArr.push(modelData.model_name)\n } else {\n collectionArr = collectionArr.filter(\n (item) => item !== modelData.model_name\n )\n }\n localStorage.setItem('collectionArr', JSON.stringify(collectionArr))\n\n onGetCollectionArr(collectionArr)\n }\n\n const handleDeleteChip = () => {\n const arr = JSON.parse(localStorage.getItem('historyArr'))\n const newArr = arr.filter(\n (item) => item.model_name !== modelData.model_name\n )\n localStorage.setItem('historyArr', JSON.stringify(newArr))\n setIsHistory(false)\n if (modelType === 'LLM') {\n setModelEngine('')\n setModelFormat('')\n setModelSize('')\n setQuantization('')\n setMultimodalProjector('')\n setNWorker(1)\n setNGPU('auto')\n setReplica(1)\n setModelUID('')\n setRequestLimits('')\n setWorkerIp('')\n setGPUIdx('')\n setDownloadHub('')\n setModelPath('')\n setEnableThinking(true)\n setReasoningContent(false)\n setLoraArr([])\n setCustomArr([])\n setQuantizationConfigArr([])\n setEnableVirtualEnv('unset')\n setVirtualEnvPackagesHistoryArr([])\n setEnvsHistoryArr([])\n setIsOther(false)\n setIsPeftModelConfig(false)\n setIsVirtualEnvConfig(false)\n setIsEnvsConfig(false)\n } else {\n setModelEngine('')\n setModelFormat('')\n setQuantization('')\n setModelUID('')\n setReplica(1)\n setNGPU('auto')\n setNGpu(gpuAvailable === 0 ? 'CPU' : 'GPU')\n setGPUIdx('')\n setWorkerIp('')\n setDownloadHub('')\n setModelPath('')\n setGgufQuantizations('')\n setGgufModelPath('')\n setCpuOffload(false)\n setLoraArr([])\n setImageLoraLoadArr([])\n setImageLoraFuseArr([])\n setCustomArr([])\n setEnableVirtualEnv('unset')\n setVirtualEnvPackagesHistoryArr([])\n setEnvsHistoryArr([])\n setIsPeftModelConfig(false)\n setIsVirtualEnvConfig(false)\n setIsEnvsConfig(false)\n }\n }\n\n const normalizeLanguage = (language) => {\n if (Array.isArray(language)) {\n return language.map((lang) => lang.toLowerCase())\n } else if (typeof language === 'string') {\n return [language.toLowerCase()]\n } else {\n return []\n }\n }\n\n const handleCommandLine = (data) => {\n if (data.model_name === modelData.model_name) {\n if (data.model_type === 'LLM') {\n handleLlmHistory(data)\n } else {\n handleOtherHistory(data)\n }\n } else {\n setErrorMsg(t('launchModel.commandLineTip'))\n }\n }\n\n const isModelStartable = () => {\n return !(\n (modelType === 'LLM' &&\n (isCallingApi ||\n isUpdatingModel ||\n !(\n modelFormat &&\n modelSize &&\n modelData &&\n (quantization ||\n (!modelData.is_builtin && modelFormat !== 'pytorch'))\n ) ||\n !judgeArr(loraListArr, ['lora_name', 'local_path']) ||\n !judgeArr(imageLoraLoadKwargsArr, ['key', 'value']) ||\n !judgeArr(imageLoraFuseKwargsArr, ['key', 'value']) ||\n requestLimitsAlert ||\n GPUIdxAlert) &&\n !isShowCancel) ||\n ((modelType === 'embedding' || modelType === 'rerank') && GPUIdxAlert) ||\n !judgeArr(customParametersArr, ['key', 'value']) ||\n !judgeArr(quantizationParametersArr, ['key', 'value'])\n )\n }\n\n const renderButtonContent = () => {\n if (isShowCancel) {\n return <StopCircle sx={{ fontSize: 26 }} />\n }\n if (isLoading) {\n return <CircularProgress size={26} />\n }\n\n return <RocketLaunchOutlined sx={{ fontSize: 26 }} />\n }\n\n const showAbilityParameter = () => {\n if (!modelData.model_ability) return\n if (Array.isArray(modelData.model_ability)) {\n return modelData.model_ability.map((v) => {\n return (\n <Chip\n key={v}\n label={v}\n size=\"small\"\n onClick={(e) => {\n e.stopPropagation()\n }}\n />\n )\n })\n } else {\n return (\n <Chip\n label={modelData.model_ability}\n size=\"small\"\n onClick={(e) => {\n e.stopPropagation()\n }}\n />\n )\n }\n }\n\n // Set two different states based on mouse hover\n return (\n <>\n <Paper\n id={modelData.model_name}\n className=\"container\"\n onMouseEnter={() => setHover(true)}\n onMouseLeave={() => setHover(false)}\n onClick={() => {\n if (!selected && !customDeleted) {\n const data = handleGetHistory()\n if (data?.model_name) setIsHistory(true)\n setSelected(true)\n if (['LLM', 'embedding', 'rerank'].includes(modelType)) {\n getModelEngine(modelData.model_name, modelType)\n } else if (data?.model_name) {\n handleOtherHistory(data)\n }\n }\n }}\n elevation={hover ? 24 : 4}\n >\n {modelType === 'LLM' ? (\n <Box className=\"descriptionCard\">\n <div className=\"cardTitle\">\n <TitleTypography value={modelData.model_name} />\n <div className=\"iconButtonBox\">\n {is_custom ? (\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 {JSON.parse(\n localStorage.getItem('collectionArr')\n )?.includes(modelData.model_name) ? (\n <Tooltip\n title={t('launchModel.unfavorite')}\n placement=\"top\"\n >\n <IconButton\n aria-label=\"collection\"\n onClick={(e) => {\n e.stopPropagation()\n handleCollection(false)\n }}\n >\n <Grade style={{ color: 'rgb(255, 206, 0)' }} />\n </IconButton>\n </Tooltip>\n ) : (\n <Tooltip\n title={t('launchModel.favorite')}\n placement=\"top\"\n >\n <IconButton\n aria-label=\"cancellation-of-collections\"\n onClick={(e) => {\n e.stopPropagation()\n handleCollection(true)\n }}\n >\n <StarBorder />\n </IconButton>\n </Tooltip>\n )}\n </>\n )}\n </div>\n </div>\n\n <Stack\n spacing={1}\n direction=\"row\"\n useFlexGap\n flexWrap=\"wrap\"\n sx={{ marginLeft: 1 }}\n >\n {showAbilityParameter()}\n {modelData.model_lang &&\n (() => {\n return modelData.model_lang.map((v) => {\n return (\n <Chip\n key={v}\n label={v}\n variant=\"outlined\"\n size=\"small\"\n onClick={(e) => {\n e.stopPropagation()\n }}\n />\n )\n })\n })()}\n {(() => {\n if (\n modelData.model_specs &&\n modelData.model_specs.some((spec) => isCached(spec))\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 {(() => {\n if (is_custom && customDeleted) {\n return (\n <Chip label=\"Deleted\" variant=\"outlined\" size=\"small\" />\n )\n }\n })()}\n </Stack>\n {modelData.model_description && (\n <p className=\"p\" title={modelData.model_description}>\n {modelData.model_description}\n </p>\n )}\n\n <div className=\"iconRow\">\n <div className=\"iconItem\">\n <span className=\"boldIconText\">\n {Math.floor(modelData.context_length / 1000)}K\n </span>\n <small className=\"smallText\">\n {t('launchModel.contextLength')}\n </small>\n </div>\n {(() => {\n if (\n modelData.model_ability &&\n modelData.model_ability.includes('chat')\n ) {\n return (\n <div className=\"iconItem\">\n <ChatOutlined className=\"muiIcon\" />\n <small className=\"smallText\">\n {t('launchModel.chatModel')}\n </small>\n </div>\n )\n } else if (\n modelData.model_ability &&\n modelData.model_ability.includes('generate')\n ) {\n return (\n <div className=\"iconItem\">\n <EditNoteOutlined className=\"muiIcon\" />\n <small className=\"smallText\">\n {t('launchModel.generateModel')}\n </small>\n </div>\n )\n } else {\n return (\n <div className=\"iconItem\">\n <HelpCenterOutlined className=\"muiIcon\" />\n <small className=\"smallText\">\n {t('launchModel.otherModel')}\n </small>\n </div>\n )\n }\n })()}\n </div>\n </Box>\n ) : (\n <Box className=\"descriptionCard\">\n <div className=\"titleContainer\">\n {is_custom && (\n <div className=\"cardTitle\">\n <TitleTypography value={modelData.model_name} />\n <div className=\"iconButtonBox\">\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 disabled={customDeleted}\n >\n <Delete />\n </IconButton>\n </Tooltip>\n </div>\n </div>\n )}\n {!is_custom && (\n <div className=\"cardTitle\">\n <TitleTypography value={modelData.model_name} />\n <div className=\"iconButtonBox\">\n {JSON.parse(\n localStorage.getItem('collectionArr')\n )?.includes(modelData.model_name) ? (\n <Tooltip\n title={t('launchModel.unfavorite')}\n placement=\"top\"\n >\n <IconButton\n aria-label=\"collection\"\n onClick={(e) => {\n e.stopPropagation()\n handleCollection(false)\n }}\n >\n <Grade style={{ color: 'rgb(255, 206, 0)' }} />\n </IconButton>\n </Tooltip>\n ) : (\n <Tooltip\n title={t('launchModel.favorite')}\n placement=\"top\"\n >\n <IconButton\n aria-label=\"cancellation-of-collections\"\n onClick={(e) => {\n e.stopPropagation()\n handleCollection(true)\n }}\n >\n <StarBorder />\n </IconButton>\n </Tooltip>\n )}\n </div>\n </div>\n )}\n\n <Stack\n spacing={1}\n direction=\"row\"\n useFlexGap\n flexWrap=\"wrap\"\n sx={{ marginLeft: 1 }}\n >\n {showAbilityParameter()}\n {(() => {\n if (modelData.language) {\n return normalizeLanguage(modelData.language).map((v) => {\n return (\n <Chip\n key={v}\n label={v}\n variant=\"outlined\"\n size=\"small\"\n onClick={(e) => {\n e.stopPropagation()\n }}\n />\n )\n })\n } else if (modelData.model_family) {\n return (\n <Chip\n label={modelData.model_family}\n variant=\"outlined\"\n size=\"small\"\n onClick={(e) => {\n e.stopPropagation()\n }}\n />\n )\n }\n })()}\n {(() => {\n if (\n (modelData.model_specs &&\n modelData.model_specs.some((spec) => isCached(spec))) ||\n modelData.cache_status\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 {(() => {\n if (is_custom && customDeleted) {\n return (\n <Chip label=\"Deleted\" variant=\"outlined\" size=\"small\" />\n )\n }\n })()}\n </Stack>\n {modelData.model_description && (\n <p className=\"p\" title={modelData.model_description}>\n {modelData.model_description}\n </p>\n )}\n </div>\n {(modelData.dimensions || modelData.max_tokens) && (\n <div className=\"iconRow\">\n <div className=\"iconItem\">\n {modelData.dimensions && (\n <>\n <span className=\"boldIconText\">\n {modelData.dimensions}\n </span>\n <small className=\"smallText\">\n {t('launchModel.dimensions')}\n </small>\n </>\n )}\n </div>\n <div className=\"iconItem\">\n {modelData.max_tokens && (\n <>\n <span className=\"boldIconText\">\n {modelData.max_tokens}\n </span>\n <small className=\"smallText\">\n {t('launchModel.maxTokens')}\n </small>\n </>\n )}\n </div>\n </div>\n )}\n {!selected && hover && (\n <p className=\"instructionText\">\n {t('launchModel.clickToLaunchModel')}\n </p>\n )}\n </Box>\n )}\n </Paper>\n\n <DeleteDialog\n text={t('launchModel.confirmDeleteCustomModel')}\n isDelete={isDeleteCustomModel}\n onHandleIsDelete={() => setIsDeleteCustomModel(false)}\n onHandleDelete={handeCustomDelete}\n />\n <Drawer\n isOpen={selected}\n onClose={() => {\n setSelected(false)\n setHover(false)\n }}\n >\n <div className=\"drawerCard\">\n <div\n style={{\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n }}\n >\n <div style={{ display: 'flex', alignItems: 'center' }}>\n <TitleTypography value={modelData.model_name} />\n {isHistory && (\n <Chip\n label={t('launchModel.lastConfig')}\n variant=\"outlined\"\n size=\"small\"\n color=\"primary\"\n onDelete={handleDeleteChip}\n />\n )}\n </div>\n <div style={{ display: 'flex', alignItems: 'center' }}>\n <Tooltip\n title={t('launchModel.commandLineParsing')}\n placement=\"top\"\n >\n <ContentPasteGo\n className=\"pasteText\"\n onClick={() => setIsOpenPasteDialog(true)}\n />\n </Tooltip>\n {isModelStartable() && (\n <CopyToCommandLine\n style={{ fontSize: '30px' }}\n modelData={selected && handleModelData()}\n predefinedKeys={llmAllDataKey}\n getData={handleModelData}\n />\n )}\n </div>\n </div>\n\n {modelType === 'LLM' ? (\n <Box\n ref={parentRef}\n className=\"formContainer\"\n display=\"flex\"\n flexDirection=\"column\"\n width=\"100%\"\n mx=\"auto\"\n >\n <Grid rowSpacing={0} columnSpacing={1}>\n <Grid item xs={12}>\n <FormControl variant=\"outlined\" margin=\"normal\" fullWidth>\n <InputLabel id=\"modelEngine-label\">\n {t('launchModel.modelEngine')}\n </InputLabel>\n <Select\n className=\"textHighlight\"\n labelId=\"modelEngine-label\"\n value={modelEngine}\n onChange={(e) => setModelEngine(e.target.value)}\n label={t('launchModel.modelEngine')}\n >\n {engineOptions.map((engine) => {\n const subArr = []\n enginesObj[engine].forEach((item) => {\n subArr.push(item.model_format)\n })\n const arr = [...new Set(subArr)]\n const specs = modelData.model_specs.filter((spec) =>\n arr.includes(spec.model_format)\n )\n\n const cached = specs.some((spec) => isCached(spec))\n\n const displayedEngine = cached\n ? engine + ' ' + t('launchModel.cached')\n : engine\n\n return (\n <MenuItem key={engine} value={engine}>\n {displayedEngine}\n </MenuItem>\n )\n })}\n </Select>\n </FormControl>\n </Grid>\n <Grid item xs={12}>\n <FormControl\n variant=\"outlined\"\n margin=\"normal\"\n fullWidth\n disabled={!modelEngine}\n >\n <InputLabel id=\"modelFormat-label\">\n {t('launchModel.modelFormat')}\n </InputLabel>\n <Select\n className=\"textHighlight\"\n labelId=\"modelFormat-label\"\n value={modelFormat}\n onChange={(e) => setModelFormat(e.target.value)}\n label={t('launchModel.modelFormat')}\n >\n {formatOptions.map((format) => {\n const specs = modelData.model_specs.filter(\n (spec) => spec.model_format === format\n )\n\n const cached = specs.some((spec) => isCached(spec))\n\n const displayedFormat = cached\n ? format + ' ' + t('launchModel.cached')\n : format\n\n return (\n <MenuItem key={format} value={format}>\n {displayedFormat}\n </MenuItem>\n )\n })}\n </Select>\n </FormControl>\n </Grid>\n <Grid item xs={12}>\n <FormControl\n variant=\"outlined\"\n margin=\"normal\"\n fullWidth\n disabled={!modelFormat}\n >\n <InputLabel id=\"modelSize-label\">\n {t('launchModel.modelSize')}\n </InputLabel>\n <Select\n className=\"textHighlight\"\n labelId=\"modelSize-label\"\n value={modelSize}\n onChange={(e) => setModelSize(e.target.value)}\n label={t('launchModel.modelSize')}\n >\n {sizeOptions.map((size) => {\n const specs = modelData.model_specs\n .filter((spec) => spec.model_format === modelFormat)\n .filter(\n (spec) => spec.model_size_in_billions === size\n )\n const cached = specs.some((spec) => isCached(spec))\n\n const displayedSize = cached\n ? size + ' ' + t('launchModel.cached')\n : size\n\n return (\n <MenuItem key={size} value={size}>\n {displayedSize}\n </MenuItem>\n )\n })}\n </Select>\n </FormControl>\n </Grid>\n <Grid item xs={12}>\n <FormControl\n variant=\"outlined\"\n margin=\"normal\"\n fullWidth\n disabled={!modelFormat || !modelSize}\n >\n <InputLabel id=\"quantization-label\">\n {t('launchModel.quantization')}\n </InputLabel>\n <Select\n className=\"textHighlight\"\n labelId=\"quantization-label\"\n value={quantization}\n onChange={(e) => setQuantization(e.target.value)}\n label={t('launchModel.quantization')}\n >\n {quantizationOptions.map((quant) => {\n const specs = modelData.model_specs\n .filter((spec) => spec.model_format === modelFormat)\n .filter(\n (spec) =>\n spec.model_size_in_billions ===\n convertModelSize(modelSize)\n )\n\n const spec = specs.find((s) => {\n return s.quantizations === quant\n })\n const cached = Array.isArray(spec?.cache_status)\n ? spec?.cache_status[\n spec?.quantizations.indexOf(quant)\n ]\n : spec?.cache_status\n\n const displayedQuant = cached\n ? quant + ' ' + t('launchModel.cached')\n : quant\n\n return (\n <MenuItem key={quant} value={quant}>\n {displayedQuant}\n </MenuItem>\n )\n })}\n </Select>\n </FormControl>\n </Grid>\n {multimodalProjectorOptions.length > 0 && (\n <Grid item xs={12}>\n <FormControl\n variant=\"outlined\"\n margin=\"normal\"\n fullWidth\n disabled={!modelFormat || !modelSize}\n >\n <InputLabel id=\"multimodelProjector-label\">\n {t('launchModel.multimodelProjector')}\n </InputLabel>\n <Select\n className=\"textHighlight\"\n labelId=\"multimodelProjector-label\"\n value={multimodalProjector}\n onChange={(e) => setMultimodalProjector(e.target.value)}\n label={t('launchModel.multimodelProjector')}\n >\n {multimodalProjectorOptions.map((projector) => {\n const specs = modelData.model_specs\n .filter((spec) => spec.model_format === modelFormat)\n .filter(\n (spec) =>\n spec.model_size_in_billions ===\n convertModelSize(modelSize)\n )\n\n const spec = specs.find((s) => {\n return s.multimodal_projectors.includes(projector)\n })\n const cached = Array.isArray(spec?.cache_status)\n ? spec?.cache_status[\n spec?.multimodal_projectors.indexOf(projector)\n ]\n : spec?.cache_status\n\n const displayedProjector = cached\n ? projector + ' ' + t('launchModel.cached')\n : projector\n\n return (\n <MenuItem key={projector} value={projector}>\n {displayedProjector}\n </MenuItem>\n )\n })}\n </Select>\n </FormControl>\n <FormControl\n variant=\"outlined\"\n margin=\"normal\"\n fullWidth\n disabled={!modelFormat || !modelSize}\n >\n <InputLabel id=\"quantization-label\">\n {t('launchModel.quantization')}\n </InputLabel>\n <Select\n className=\"textHighlight\"\n labelId=\"quantization-label\"\n value={quantization}\n onChange={(e) => setQuantization(e.target.value)}\n label={t('launchModel.quantization')}\n >\n {quantizationOptions.map((quant) => {\n const specs = modelData.model_specs\n .filter((spec) => spec.model_format === modelFormat)\n .filter(\n (spec) =>\n spec.model_size_in_billions ===\n convertModelSize(modelSize)\n )\n\n const spec = specs.find((s) => {\n return s.quantizations === quant\n })\n const cached = Array.isArray(spec?.cache_status)\n ? spec?.cache_status[\n spec?.quantizations.indexOf(quant)\n ]\n : spec?.cache_status\n\n const displayedQuant = cached\n ? quant + ' ' + t('launchModel.cached')\n : quant\n\n return (\n <MenuItem key={quant} value={quant}>\n {displayedQuant}\n </MenuItem>\n )\n })}\n </Select>\n </FormControl>\n </Grid>\n )}\n <Grid item xs={12}>\n <FormControl\n variant=\"outlined\"\n margin=\"normal\"\n fullWidth\n disabled={!modelFormat || !modelSize || !quantization}\n >\n <InputLabel id=\"n-gpu-label\">\n {t(\n enginesWithNWorker.includes(modelEngine)\n ? 'launchModel.nGPUPerWorker'\n : 'launchModel.nGPU'\n )}\n </InputLabel>\n <Select\n className=\"textHighlight\"\n labelId=\"n-gpu-label\"\n value={nGPU}\n onChange={(e) => setNGPU(e.target.value)}\n label={t(\n enginesWithNWorker.includes(modelEngine)\n ? 'launchModel.nGPUPerWorker'\n : 'launchModel.nGPU'\n )}\n >\n {getNGPURange().map((v) => {\n return (\n <MenuItem key={v} value={v}>\n {v}\n </MenuItem>\n )\n })}\n </Select>\n </FormControl>\n </Grid>\n <Grid item xs={12}>\n {(modelFormat === 'ggufv2' || modelFormat === 'ggmlv3') && (\n <FormControl variant=\"outlined\" margin=\"normal\" fullWidth>\n <TextField\n className=\"textHighlight\"\n disabled={!modelFormat || !modelSize || !quantization}\n type=\"number\"\n label={t('launchModel.nGpuLayers')}\n InputProps={{\n inputProps: {\n min: -1,\n },\n }}\n value={nGPULayers}\n onChange={(e) =>\n setNGPULayers(parseInt(e.target.value, 10))\n }\n />\n </FormControl>\n )}\n </Grid>\n <Grid item xs={12}>\n <FormControl variant=\"outlined\" margin=\"normal\" fullWidth>\n <TextField\n className=\"textHighlight\"\n disabled={!modelFormat || !modelSize || !quantization}\n type=\"number\"\n InputProps={{\n inputProps: {\n min: 1,\n },\n }}\n label={t('launchModel.replica')}\n value={replica}\n onChange={(e) => setReplica(parseInt(e.target.value, 10))}\n />\n </FormControl>\n </Grid>\n {modelData.model_ability?.includes('hybrid') && (\n <Grid item xs={12}>\n <FormControl variant=\"outlined\" margin=\"normal\" fullWidth>\n <div>\n <FormControlLabel\n label={t('launchModel.enableThinking')}\n labelPlacement=\"start\"\n control={<Switch checked={enableThinking} />}\n onChange={(e) => {\n setEnableThinking(e.target.checked)\n }}\n />\n </div>\n </FormControl>\n </Grid>\n )}\n {modelData.model_ability?.includes('reasoning') &&\n enableThinking && (\n <Grid item xs={12}>\n <FormControl variant=\"outlined\" margin=\"normal\" fullWidth>\n <div>\n <FormControlLabel\n label={t('launchModel.parsingReasoningContent')}\n labelPlacement=\"start\"\n control={<Switch checked={reasoningContent} />}\n onChange={(e) => {\n setReasoningContent(e.target.checked)\n }}\n />\n </div>\n </FormControl>\n </Grid>\n )}\n <ListItemButton onClick={() => setIsOther(!isOther)}>\n <div style={{ display: 'flex', alignItems: 'center' }}>\n <ListItemText\n primary={t('launchModel.optionalConfigurations')}\n style={{ marginRight: 10 }}\n />\n {isOther ? <ExpandLess /> : <ExpandMore />}\n </div>\n </ListItemButton>\n <Collapse in={isOther} timeout=\"auto\" unmountOnExit>\n <Grid item xs={12}>\n <FormControl variant=\"outlined\" margin=\"normal\" fullWidth>\n <TextField\n className=\"textHighlight\"\n variant=\"outlined\"\n value={modelUID}\n label={t('launchModel.modelUID.optional')}\n onChange={(e) => setModelUID(e.target.value)}\n />\n </FormControl>\n </Grid>\n <Grid item xs={12}>\n <FormControl variant=\"outlined\" margin=\"normal\" fullWidth>\n <TextField\n className=\"textHighlight\"\n value={requestLimits}\n label={t('launchModel.requestLimits.optional')}\n onChange={(e) => {\n setRequestLimitsAlert(false)\n setRequestLimits(e.target.value)\n if (\n e.target.value !== '' &&\n (!Number(e.target.value) ||\n Number(e.target.value) < 1 ||\n parseInt(e.target.value) !==\n parseFloat(e.target.value))\n ) {\n setRequestLimitsAlert(true)\n }\n }}\n />\n {requestLimitsAlert && (\n <Alert severity=\"error\">\n {t('launchModel.enterIntegerGreaterThanZero')}\n </Alert>\n )}\n </FormControl>\n </Grid>\n <Grid item xs={12}>\n {enginesWithNWorker.includes(modelEngine) && (\n <FormControl variant=\"outlined\" margin=\"normal\" fullWidth>\n <TextField\n className=\"textHighlight\"\n type=\"number\"\n InputProps={{\n inputProps: {\n min: 1,\n },\n }}\n label={t('launchModel.workerCount.optional')}\n value={nWorker}\n onChange={(e) =>\n setNWorker(parseInt(e.target.value, 10))\n }\n />\n </FormControl>\n )}\n </Grid>\n <Grid item xs={12}>\n <FormControl variant=\"outlined\" margin=\"normal\" fullWidth>\n <TextField\n className=\"textHighlight\"\n variant=\"outlined\"\n value={workerIp}\n label={t('launchModel.workerIp.optional')}\n onChange={(e) => setWorkerIp(e.target.value)}\n />\n </FormControl>\n </Grid>\n <Grid item xs={12}>\n <FormControl variant=\"outlined\" margin=\"normal\" fullWidth>\n <TextField\n className=\"textHighlight\"\n value={GPUIdx}\n label={t('launchModel.GPUIdx.optional')}\n onChange={(e) => {\n setGPUIdxAlert(false)\n setGPUIdx(e.target.value)\n const regular = /^\\d+(?:,\\d+)*$/\n if (\n e.target.value !== '' &&\n !regular.test(e.target.value)\n ) {\n setGPUIdxAlert(true)\n }\n }}\n />\n {GPUIdxAlert && (\n <Alert severity=\"error\">\n {t('launchModel.enterCommaSeparatedNumbers')}\n </Alert>\n )}\n </FormControl>\n </Grid>\n <Grid item xs={12}>\n <FormControl variant=\"outlined\" margin=\"normal\" fullWidth>\n <InputLabel id=\"quantization-label\">\n {t('launchModel.downloadHub.optional')}\n </InputLabel>\n <Select\n className=\"textHighlight\"\n labelId=\"download_hub-label\"\n value={downloadHub}\n onChange={(e) => {\n e.target.value === 'none'\n ? setDownloadHub('')\n : setDownloadHub(e.target.value)\n }}\n label={t('launchModel.downloadHub.optional')}\n >\n {(csghubArr.includes(modelData.model_name)\n ? [\n 'none',\n 'huggingface',\n 'modelscope',\n 'openmind_hub',\n 'csghub',\n ]\n : [\n 'none',\n 'huggingface',\n 'modelscope',\n 'openmind_hub',\n ]\n ).map((item) => {\n return (\n <MenuItem key={item} value={item}>\n {item}\n </MenuItem>\n )\n })}\n </Select>\n </FormControl>\n </Grid>\n <Grid item xs={12}>\n <FormControl variant=\"outlined\" margin=\"normal\" fullWidth>\n <TextField\n className=\"textHighlight\"\n variant=\"outlined\"\n value={modelPath}\n label={t('launchModel.modelPath.optional')}\n onChange={(e) => setModelPath(e.target.value)}\n />\n </FormControl>\n </Grid>\n <ListItemButton\n onClick={() => setIsPeftModelConfig(!isPeftModelConfig)}\n >\n <div style={{ display: 'flex', alignItems: 'center' }}>\n <ListItemText\n primary={t('launchModel.loraConfig')}\n style={{ marginRight: 10 }}\n />\n {isPeftModelConfig ? <ExpandLess /> : <ExpandMore />}\n </div>\n </ListItemButton>\n <Collapse\n in={isPeftModelConfig}\n timeout=\"auto\"\n unmountOnExit\n style={{ marginLeft: '30px' }}\n >\n <AddPair\n customData={{\n title: t('launchModel.loraModelConfig'),\n key: 'lora_name',\n value: 'local_path',\n }}\n onGetArr={(arr) => {\n setLoraListArr(arr)\n }}\n onJudgeArr={judgeArr}\n pairData={loraArr}\n />\n </Collapse>\n <ListItemButton\n onClick={() => setIsVirtualEnvConfig(!isVirtualEnvConfig)}\n >\n <div style={{ display: 'flex', alignItems: 'center' }}>\n <ListItemText\n primary={t('launchModel.virtualEnvConfig')}\n style={{ marginRight: 10 }}\n />\n {isVirtualEnvConfig ? <ExpandLess /> : <ExpandMore />}\n </div>\n </ListItemButton>\n <Collapse\n in={isVirtualEnvConfig}\n timeout=\"auto\"\n unmountOnExit\n style={{ marginLeft: '30px' }}\n >\n <FormControl variant=\"outlined\" margin=\"normal\" fullWidth>\n <div\n style={{\n display: 'flex',\n alignItems: 'center',\n gap: 10,\n marginLeft: 15,\n }}\n >\n <span>{t('launchModel.modelVirtualEnv')}</span>\n <RadioGroup\n row\n name=\"row-radio-buttons-group\"\n value={enableVirtualEnv}\n onChange={(e) => setEnableVirtualEnv(e.target.value)}\n >\n <FormControlLabel\n value=\"unset\"\n control={<Radio />}\n label=\"Unset\"\n />\n <FormControlLabel\n value={false}\n control={<Radio />}\n label=\"False\"\n />\n <FormControlLabel\n value={true}\n control={<Radio />}\n label=\"True\"\n />\n </RadioGroup>\n </div>\n <AddValue\n customData={{\n title: t('launchModel.virtualEnvPackage'),\n value: 'value',\n }}\n onGetArr={(arr) => {\n setVirtualEnvPackagesArr(arr)\n }}\n onJudgeArr={judgeArr}\n pairData={virtualEnvPackagesHistoryArr}\n />\n </FormControl>\n </Collapse>\n <ListItemButton\n onClick={() => setIsEnvsConfig(!isEnvsConfig)}\n >\n <div style={{ display: 'flex', alignItems: 'center' }}>\n <ListItemText\n primary={t('launchModel.envVariableConfig')}\n style={{ marginRight: 10 }}\n />\n {isEnvsConfig ? <ExpandLess /> : <ExpandMore />}\n </div>\n </ListItemButton>\n <Collapse\n in={isEnvsConfig}\n timeout=\"auto\"\n unmountOnExit\n style={{ marginLeft: '30px' }}\n >\n <AddPair\n customData={{\n title: t('launchModel.envVariable'),\n key: 'key',\n value: 'value',\n }}\n onGetArr={(arr) => {\n setEnvsArr(arr)\n }}\n onJudgeArr={judgeArr}\n pairData={envsHistoryArr}\n />\n </Collapse>\n </Collapse>\n {modelEngine === 'Transformers' && (\n <AddPair\n customData={{\n title: t(\n 'launchModel.additionalQuantizationParametersForInferenceEngine'\n ),\n key: 'key',\n value: 'value',\n }}\n onGetArr={(arr) => {\n setQuantizationParametersArr(arr)\n }}\n onJudgeArr={judgeArr}\n pairData={quantizationConfigArr}\n tipOptions={quantizationParametersTipList}\n />\n )}\n <AddPair\n customData={{\n title: `${t(\n 'launchModel.additionalParametersForInferenceEngine'\n )}${modelEngine ? ': ' + modelEngine : ''}`,\n key: 'key',\n value: 'value',\n }}\n onGetArr={(arr) => {\n setCustomParametersArr(arr)\n }}\n onJudgeArr={judgeArr}\n pairData={customArr}\n tipOptions={\n additionalParameterTipList[modelEngine?.toLocaleLowerCase()]\n }\n />\n </Grid>\n </Box>\n ) : (\n <Box\n ref={parentRef}\n className=\"formContainer\"\n display=\"flex\"\n flexDirection=\"column\"\n width=\"100%\"\n mx=\"auto\"\n >\n <FormControl variant=\"outlined\" margin=\"normal\" fullWidth>\n {['embedding', 'rerank'].includes(modelType) && (\n <>\n <FormControl variant=\"outlined\" margin=\"normal\" fullWidth>\n <InputLabel id=\"modelEngine-label\">\n {t('launchModel.modelEngine')}\n </InputLabel>\n <Select\n className=\"textHighlight\"\n labelId=\"modelEngine-label\"\n value={modelEngine}\n onChange={(e) => setModelEngine(e.target.value)}\n label={t('launchModel.modelEngine')}\n >\n {engineOptions.map((engine) => {\n const subArr = []\n enginesObj[engine].forEach((item) => {\n subArr.push(item.model_format)\n })\n const arr = [...new Set(subArr)]\n const specs = modelData.model_specs.filter((spec) =>\n arr.includes(spec.model_format)\n )\n\n const cached = specs.some((spec) => isCached(spec))\n\n const displayedEngine = cached\n ? engine + ' ' + t('launchModel.cached')\n : engine\n\n return (\n <MenuItem key={engine} value={engine}>\n {displayedEngine}\n </MenuItem>\n )\n })}\n </Select>\n </FormControl>\n <FormControl\n variant=\"outlined\"\n margin=\"normal\"\n fullWidth\n disabled={!modelEngine}\n >\n <InputLabel id=\"modelFormat-label\">\n {t('launchModel.modelFormat')}\n </InputLabel>\n <Select\n className=\"textHighlight\"\n labelId=\"modelFormat-label\"\n value={modelFormat}\n onChange={(e) => setModelFormat(e.target.value)}\n label={t('launchModel.modelFormat')}\n >\n {formatOptions.map((format) => {\n const specs = modelData.model_specs.filter(\n (spec) => spec.model_format === format\n )\n\n const cached = specs.some((spec) => isCached(spec))\n\n const displayedFormat = cached\n ? format + ' ' + t('launchModel.cached')\n : format\n\n return (\n <MenuItem key={format} value={format}>\n {displayedFormat}\n </MenuItem>\n )\n })}\n </Select>\n </FormControl>\n <FormControl\n variant=\"outlined\"\n margin=\"normal\"\n fullWidth\n disabled={!modelFormat}\n >\n <InputLabel id=\"quantization-label\">\n {t('launchModel.quantization')}\n </InputLabel>\n <Select\n className=\"textHighlight\"\n labelId=\"quantization-label\"\n value={quantization}\n onChange={(e) => setQuantization(e.target.value)}\n label={t('launchModel.quantization')}\n >\n {quantizationOptions.map((quant) => {\n const specs = modelData.model_specs.filter(\n (spec) => spec.model_format === modelFormat\n )\n\n const spec = specs.find((s) => {\n return s.quantization === quant\n })\n\n const cached = Array.isArray(spec?.cache_status)\n ? spec?.cache_status[\n spec?.quantizations.indexOf(quant)\n ]\n : spec?.cache_status\n\n const displayedQuant = cached\n ? quant + ' ' + t('launchModel.cached')\n : quant\n\n return (\n <MenuItem key={quant} value={quant}>\n {displayedQuant}\n </MenuItem>\n )\n })}\n </Select>\n </FormControl>\n </>\n )}\n <TextField\n className=\"textHighlight\"\n variant=\"outlined\"\n value={modelUID}\n label={t('launchModel.modelUID.optional')}\n onChange={(e) => setModelUID(e.target.value)}\n />\n <TextField\n className=\"textHighlight\"\n style={{ marginTop: '25px' }}\n type=\"number\"\n InputProps={{\n inputProps: {\n min: 1,\n },\n }}\n label={t('launchModel.replica')}\n value={replica}\n onChange={(e) => setReplica(parseInt(e.target.value, 10))}\n />\n {['image'].includes(modelType) ? (\n <FormControl variant=\"outlined\" margin=\"normal\" fullWidth>\n <InputLabel id=\"n-gpu-label\">\n {t('launchModel.nGPU')}\n </InputLabel>\n <Select\n className=\"textHighlight\"\n labelId=\"n-gpu-label\"\n value={nGPU}\n onChange={(e) => setNGPU(e.target.value)}\n label={t('launchModel.nGPU')}\n >\n {getNGPURange().map((v) => {\n return (\n <MenuItem key={v} value={v}>\n {v}\n </MenuItem>\n )\n })}\n </Select>\n </FormControl>\n ) : (\n <FormControl variant=\"outlined\" margin=\"normal\" fullWidth>\n <InputLabel id=\"device-label\">\n {t('launchModel.device')}\n </InputLabel>\n <Select\n className=\"textHighlight\"\n labelId=\"device-label\"\n value={nGpu}\n onChange={(e) => setNGpu(e.target.value)}\n label={t('launchModel.device')}\n >\n {getNewNGPURange().map((v) => {\n return (\n <MenuItem key={v} value={v}>\n {v}\n </MenuItem>\n )\n })}\n </Select>\n </FormControl>\n )}\n {(modelType === 'image' ? nGPU !== 'CPU' : nGpu === 'GPU') && (\n <FormControl variant=\"outlined\" margin=\"normal\" fullWidth>\n <TextField\n className=\"textHighlight\"\n value={GPUIdx}\n label={t('launchModel.GPUIdx')}\n onChange={(e) => {\n setGPUIdxAlert(false)\n setGPUIdx(e.target.value)\n const regular = /^\\d+(?:,\\d+)*$/\n if (\n e.target.value !== '' &&\n !regular.test(e.target.value)\n ) {\n setGPUIdxAlert(true)\n }\n }}\n />\n {GPUIdxAlert && (\n <Alert severity=\"error\">\n {t('launchModel.enterCommaSeparatedNumbers')}\n </Alert>\n )}\n </FormControl>\n )}\n <FormControl variant=\"outlined\" margin=\"normal\" fullWidth>\n <TextField\n className=\"textHighlight\"\n variant=\"outlined\"\n value={workerIp}\n label={t('launchModel.workerIp')}\n onChange={(e) => setWorkerIp(e.target.value)}\n />\n </FormControl>\n <FormControl variant=\"outlined\" margin=\"normal\" fullWidth>\n <InputLabel id=\"quantization-label\">\n {t('launchModel.downloadHub.optional')}\n </InputLabel>\n <Select\n className=\"textHighlight\"\n labelId=\"download_hub-label\"\n value={downloadHub}\n onChange={(e) => {\n e.target.value === 'none'\n ? setDownloadHub('')\n : setDownloadHub(e.target.value)\n }}\n label={t('launchModel.downloadHub.optional')}\n >\n {['none', 'huggingface', 'modelscope', 'openmind_hub'].map(\n (item) => {\n return (\n <MenuItem key={item} value={item}>\n {item}\n </MenuItem>\n )\n }\n )}\n </Select>\n </FormControl>\n <FormControl variant=\"outlined\" margin=\"normal\" fullWidth>\n <TextField\n className=\"textHighlight\"\n variant=\"outlined\"\n value={modelPath}\n label={t('launchModel.modelPath.optional')}\n onChange={(e) => setModelPath(e.target.value)}\n />\n </FormControl>\n {modelData.gguf_quantizations && (\n <FormControl variant=\"outlined\" margin=\"normal\" fullWidth>\n <InputLabel id=\"quantization-label\">\n {t('launchModel.GGUFQuantization.optional')}\n </InputLabel>\n <Select\n className=\"textHighlight\"\n labelId=\"gguf_quantizations-label\"\n value={ggufQuantizations}\n onChange={(e) => {\n e.target.value === 'none'\n ? setGgufQuantizations('')\n : setGgufQuantizations(e.target.value)\n }}\n label={t('launchModel.GGUFQuantization.optional')}\n >\n {['none', ...modelData.gguf_quantizations].map((item) => {\n return (\n <MenuItem key={item} value={item}>\n {item}\n </MenuItem>\n )\n })}\n </Select>\n </FormControl>\n )}\n {modelData.gguf_quantizations && (\n <FormControl variant=\"outlined\" margin=\"normal\" fullWidth>\n <TextField\n className=\"textHighlight\"\n variant=\"outlined\"\n value={ggufModelPath}\n label={t('launchModel.GGUFModelPath.optional')}\n onChange={(e) => setGgufModelPath(e.target.value)}\n />\n </FormControl>\n )}\n {modelData.lightning_versions && (\n <FormControl variant=\"outlined\" margin=\"normal\" fullWidth>\n <InputLabel id=\"quantization-label\">\n {t('launchModel.lightningVersions.optional')}\n </InputLabel>\n <Select\n className=\"textHighlight\"\n labelId=\"lightning-versions-label\"\n value={lightningVersions}\n onChange={(e) => {\n e.target.value === 'none'\n ? setLightningVersions('')\n : setLightningVersions(e.target.value)\n }}\n label={t('launchModel.lightningVersions.optional')}\n >\n {['none', ...modelData.lightning_versions].map((item) => {\n return (\n <MenuItem key={item} value={item}>\n {item}\n </MenuItem>\n )\n })}\n </Select>\n </FormControl>\n )}\n {modelData.lightning_versions && (\n <FormControl variant=\"outlined\" margin=\"normal\" fullWidth>\n <TextField\n className=\"textHighlight\"\n variant=\"outlined\"\n value={lightningModelPath}\n label={t('launchModel.lightningModelPath.optional')}\n onChange={(e) => setLightningModelPath(e.target.value)}\n />\n </FormControl>\n )}\n {['image', 'video'].includes(modelType) && (\n <>\n <div\n style={{\n marginBlock: '10px',\n }}\n >\n <FormControlLabel\n label={\n <div>\n <span>{t('launchModel.CPUOffload')}</span>\n <Tooltip\n title={t('launchModel.CPUOffload.tip')}\n placement=\"top\"\n >\n <IconButton>\n <HelpOutline />\n </IconButton>\n </Tooltip>\n </div>\n }\n labelPlacement=\"start\"\n control={<Switch checked={cpuOffload} />}\n onChange={(e) => {\n setCpuOffload(e.target.checked)\n }}\n />\n </div>\n <ListItemButton\n onClick={() => setIsPeftModelConfig(!isPeftModelConfig)}\n >\n <div style={{ display: 'flex', alignItems: 'center' }}>\n <ListItemText\n primary={t('launchModel.loraConfig')}\n style={{ marginRight: 10 }}\n />\n {isPeftModelConfig ? <ExpandLess /> : <ExpandMore />}\n </div>\n </ListItemButton>\n <Collapse\n in={isPeftModelConfig}\n timeout=\"auto\"\n unmountOnExit\n style={{ marginLeft: '30px' }}\n >\n <AddPair\n customData={{\n title: t('launchModel.loraModelConfig'),\n key: 'lora_name',\n value: 'local_path',\n }}\n onGetArr={(arr) => {\n setLoraListArr(arr)\n }}\n onJudgeArr={judgeArr}\n pairData={loraArr}\n />\n <AddPair\n customData={{\n title: t('launchModel.loraLoadKwargsForImageModel'),\n key: 'key',\n value: 'value',\n }}\n onGetArr={(arr) => {\n setImageLoraLoadKwargsArr(arr)\n }}\n onJudgeArr={judgeArr}\n pairData={imageLoraLoadArr}\n />\n <AddPair\n customData={{\n title: t('launchModel.loraFuseKwargsForImageModel'),\n key: 'key',\n value: 'value',\n }}\n onGetArr={(arr) => {\n setImageLoraFuseKwargsArr(arr)\n }}\n onJudgeArr={judgeArr}\n pairData={imageLoraFuseArr}\n />\n </Collapse>\n </>\n )}\n <ListItemButton\n onClick={() => setIsVirtualEnvConfig(!isVirtualEnvConfig)}\n >\n <div style={{ display: 'flex', alignItems: 'center' }}>\n <ListItemText\n primary={t('launchModel.virtualEnvConfig')}\n style={{ marginRight: 10 }}\n />\n {isVirtualEnvConfig ? <ExpandLess /> : <ExpandMore />}\n </div>\n </ListItemButton>\n <Collapse\n in={isVirtualEnvConfig}\n timeout=\"auto\"\n unmountOnExit\n style={{ marginLeft: '30px' }}\n >\n <FormControl variant=\"outlined\" margin=\"normal\" fullWidth>\n <div\n style={{\n display: 'flex',\n alignItems: 'center',\n gap: 10,\n marginLeft: 15,\n }}\n >\n <span>{t('launchModel.modelVirtualEnv')}</span>\n <RadioGroup\n row\n name=\"row-radio-buttons-group\"\n value={enableVirtualEnv}\n onChange={(e) => setEnableVirtualEnv(e.target.value)}\n >\n <FormControlLabel\n value=\"unset\"\n control={<Radio />}\n label=\"Unset\"\n />\n <FormControlLabel\n value={false}\n control={<Radio />}\n label=\"False\"\n />\n <FormControlLabel\n value={true}\n control={<Radio />}\n label=\"True\"\n />\n </RadioGroup>\n </div>\n <AddValue\n customData={{\n title: t('launchModel.virtualEnvPackage'),\n value: 'value',\n }}\n onGetArr={(arr) => {\n setVirtualEnvPackagesArr(arr)\n }}\n onJudgeArr={judgeArr}\n pairData={virtualEnvPackagesHistoryArr}\n />\n </FormControl>\n </Collapse>\n <ListItemButton onClick={() => setIsEnvsConfig(!isEnvsConfig)}>\n <div style={{ display: 'flex', alignItems: 'center' }}>\n <ListItemText\n primary={t('launchModel.envVariableConfig')}\n style={{ marginRight: 10 }}\n />\n {isEnvsConfig ? <ExpandLess /> : <ExpandMore />}\n </div>\n </ListItemButton>\n <Collapse\n in={isEnvsConfig}\n timeout=\"auto\"\n unmountOnExit\n style={{ marginLeft: '30px' }}\n >\n <AddPair\n customData={{\n title: t('launchModel.envVariable'),\n key: 'key',\n value: 'value',\n }}\n onGetArr={(arr) => {\n setEnvsArr(arr)\n }}\n onJudgeArr={judgeArr}\n pairData={envsHistoryArr}\n />\n </Collapse>\n <AddPair\n customData={{\n title: t(\n 'launchModel.additionalParametersForInferenceEngine'\n ),\n key: 'key',\n value: 'value',\n }}\n onGetArr={(arr) => {\n setCustomParametersArr(arr)\n }}\n onJudgeArr={judgeArr}\n pairData={customArr}\n />\n </FormControl>\n </Box>\n )}\n <Box className=\"buttonsContainer\">\n {isShowProgress && <Progress progress={progress} />}\n <div className=\"buttons\">\n <Button\n variant=\"outlined\"\n title={t(\n isShowCancel ? 'launchModel.cancel' : 'launchModel.launch'\n )}\n style={{ flex: 1 }}\n disabled={!isModelStartable() || isLoading}\n onClick={() => {\n if (isShowCancel) {\n cancelModel()\n } else {\n launchModel(url, modelData)\n }\n }}\n >\n {renderButtonContent()}\n </Button>\n <Button\n variant=\"outlined\"\n title={t('launchModel.goBack')}\n style={{ flex: 1 }}\n onClick={() => {\n setSelected(false)\n setHover(false)\n }}\n >\n <UndoOutlined sx={{ fontSize: 26 }} />\n </Button>\n </div>\n </Box>\n </div>\n </Drawer>\n <Backdrop\n sx={{ color: '#fff', zIndex: (theme) => theme.zIndex.drawer + 1 }}\n open={isJsonShow}\n >\n <div\n className=\"jsonDialog\"\n style={{\n backgroundColor: theme.palette.mode === 'dark' ? '#121212' : '#fff',\n color: theme.palette.mode === 'dark' ? '#fff' : '#000',\n }}\n >\n <div className=\"jsonDialog-title\">\n <div className=\"title-name\">{modelData.model_name}</div>\n <CopyComponent\n tip={t('launchModel.copyJson')}\n text={JSON.stringify(modelData, null, 4)}\n />\n </div>\n <div className=\"main-box\">\n <TextField\n multiline\n fullWidth\n rows={24}\n disabled\n defaultValue={JSON.stringify(modelData, null, 4)}\n />\n </div>\n <div className=\"but-box\">\n <Button\n onClick={() => {\n setIsJsonShow(false)\n }}\n style={{ marginRight: 30 }}\n >\n {t('launchModel.cancel')}\n </Button>\n <Button onClick={handleJsonDataPresentation}>\n {t('launchModel.edit')}\n </Button>\n </div>\n </div>\n </Backdrop>\n <Snackbar\n anchorOrigin={{ vertical: 'top', horizontal: 'center' }}\n open={openSnackbar}\n onClose={() => setOpenSnackbar(false)}\n message={t('launchModel.fillCompleteParametersBeforeAdding')}\n />\n\n <Backdrop\n sx={{ color: '#fff', zIndex: (theme) => theme.zIndex.drawer + 1 }}\n open={isOpenCachedList}\n >\n <div\n className=\"dialogBox\"\n style={{\n backgroundColor: theme.palette.mode === 'dark' ? '#121212' : '#fff',\n color: theme.palette.mode === 'dark' ? '#fff' : '#000',\n }}\n >\n <div className=\"dialogTitle\">\n <div className=\"dialogTitle-model_name\">{modelData.model_name}</div>\n <Close\n style={{ cursor: 'pointer' }}\n onClick={handleCloseCachedList}\n />\n </div>\n <TableContainer component={Paper}>\n <Table\n sx={{ minWidth: 500 }}\n style={{ height: '500px', width: '100%' }}\n stickyHeader\n aria-label=\"simple pagination table\"\n >\n <TableHead>\n <TableRow>\n {modelType === 'LLM' && (\n <>\n <TableCell align=\"left\">\n {t('launchModel.model_format')}\n </TableCell>\n <TableCell align=\"left\">\n {t('launchModel.model_size_in_billions')}\n </TableCell>\n <TableCell align=\"left\">\n {t('launchModel.quantizations')}\n </TableCell>\n </>\n )}\n <TableCell align=\"left\" style={{ width: 192 }}>\n {t('launchModel.real_path')}\n </TableCell>\n <TableCell align=\"left\" style={{ width: 46 }}></TableCell>\n <TableCell align=\"left\" style={{ width: 192 }}>\n {t('launchModel.path')}\n </TableCell>\n <TableCell align=\"left\" style={{ width: 46 }}></TableCell>\n <TableCell\n align=\"left\"\n style={{ whiteSpace: 'nowrap', minWidth: 116 }}\n >\n {t('launchModel.ipAddress')}\n </TableCell>\n <TableCell align=\"left\">\n {t('launchModel.operation')}\n </TableCell>\n </TableRow>\n </TableHead>\n <TableBody style={{ position: 'relative' }}>\n {cachedListArr.slice(page * 5, page * 5 + 5).map((row) => (\n <StyledTableRow\n style={{ maxHeight: 90 }}\n key={row.model_name}\n >\n {modelType === 'LLM' && (\n <>\n <TableCell component=\"th\" scope=\"row\">\n {row.model_format === null ? '—' : row.model_format}\n </TableCell>\n <TableCell>\n {row.model_size_in_billions === null\n ? '—'\n : row.model_size_in_billions}\n </TableCell>\n <TableCell>\n {row.quantization === null ? '—' : row.quantization}\n </TableCell>\n </>\n )}\n <TableCell>\n <Tooltip title={row.real_path}>\n <div\n className={\n modelType === 'LLM' ? 'pathBox' : 'pathBox pathBox2'\n }\n >\n {row.real_path}\n </div>\n </Tooltip>\n </TableCell>\n <TableCell>\n <CopyComponent\n tip={t('launchModel.copyRealPath')}\n text={row.real_path}\n />\n </TableCell>\n <TableCell>\n <Tooltip title={row.path}>\n <div\n className={\n modelType === 'LLM' ? 'pathBox' : 'pathBox pathBox2'\n }\n >\n {row.path}\n </div>\n </Tooltip>\n </TableCell>\n <TableCell>\n <CopyComponent\n tip={t('launchModel.copyPath')}\n text={row.path}\n />\n </TableCell>\n <TableCell>{row.actor_ip_address}</TableCell>\n <TableCell align={modelType === 'LLM' ? 'center' : 'left'}>\n <IconButton\n aria-label=\"delete\"\n size=\"large\"\n onClick={() =>\n handleOpenDeleteCachedDialog(\n row.real_path,\n row.model_version\n )\n }\n >\n <Delete />\n </IconButton>\n </TableCell>\n </StyledTableRow>\n ))}\n {emptyRows > 0 && (\n <TableRow style={{ height: 89.4 * emptyRows }}>\n <TableCell />\n </TableRow>\n )}\n {cachedListArr.length === 0 && (\n <div className=\"empty\">{t('launchModel.noCacheForNow')}</div>\n )}\n </TableBody>\n </Table>\n </TableContainer>\n <TablePagination\n style={{ float: 'right' }}\n rowsPerPageOptions={[5]}\n count={cachedListArr.length}\n rowsPerPage={5}\n page={page}\n onPageChange={handleChangePage}\n />\n </div>\n </Backdrop>\n <DeleteDialog\n text={t('launchModel.confirmDeleteCacheFiles')}\n isDelete={isDeleteCached}\n onHandleIsDelete={() => setIsDeleteCached(false)}\n onHandleDelete={handleDeleteCached}\n />\n <PasteDialog\n open={isOpenPasteDialog}\n onHandleClose={() => setIsOpenPasteDialog(false)}\n onHandleCommandLine={handleCommandLine}\n />\n </>\n )\n}\n\nexport default ModelCard\n"],"mappings":"wlBAAA,MAAO,6BAA6B,CAEpC,OACEA,YAAY,CACZC,KAAK,CACLC,cAAc,CACdC,MAAM,CACNC,QAAQ,CACRC,gBAAgB,CAChBC,UAAU,CACVC,UAAU,CACVC,KAAK,CACLC,kBAAkB,CAClBC,WAAW,CACXC,oBAAoB,CACpBC,UAAU,CACVC,UAAU,CACVC,YAAY,KACP,qBAAqB,CAC5B,OACEC,KAAK,CACLC,QAAQ,CACRC,GAAG,CACHC,MAAM,CACNC,IAAI,CACJC,gBAAgB,CAChBC,QAAQ,CACRC,WAAW,CACXC,gBAAgB,CAChBC,IAAI,CACJC,UAAU,CACVC,UAAU,CACVC,cAAc,CACdC,YAAY,CACZC,QAAQ,CACRC,KAAK,CACLC,KAAK,CACLC,UAAU,CACVC,MAAM,CACNC,QAAQ,CACRC,KAAK,CACLC,MAAM,CACNC,KAAK,CACLC,SAAS,CACTC,SAAS,CACTC,cAAc,CACdC,SAAS,CACTC,eAAe,CACfC,QAAQ,CACRC,SAAS,CACTC,OAAO,KACF,eAAe,CACtB,OAASC,QAAQ,KAAQ,eAAe,CACxC,OAASC,MAAM,KAAQ,sBAAsB,CAC7C,MAAO,CAAAC,KAAK,EAAIC,UAAU,CAAEC,SAAS,CAAEC,MAAM,CAAEC,QAAQ,KAAQ,OAAO,CACtE,OAASC,cAAc,KAAQ,eAAe,CAC9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