xinference 0.14.4.post1__py3-none-any.whl → 0.15.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.
- xinference/_compat.py +51 -0
- xinference/_version.py +3 -3
- xinference/api/restful_api.py +5 -39
- xinference/client/restful/restful_client.py +3 -24
- xinference/conftest.py +1 -1
- xinference/constants.py +5 -0
- xinference/core/cache_tracker.py +1 -1
- xinference/core/chat_interface.py +8 -14
- xinference/core/event.py +1 -1
- xinference/core/model.py +82 -31
- xinference/core/scheduler.py +37 -37
- xinference/core/status_guard.py +1 -1
- xinference/core/supervisor.py +11 -10
- xinference/core/utils.py +80 -22
- xinference/core/worker.py +17 -16
- xinference/deploy/cmdline.py +8 -16
- xinference/deploy/local.py +1 -1
- xinference/deploy/supervisor.py +1 -1
- xinference/deploy/utils.py +1 -1
- xinference/deploy/worker.py +1 -1
- xinference/model/audio/cosyvoice.py +86 -41
- xinference/model/embedding/core.py +52 -31
- xinference/model/image/stable_diffusion/core.py +18 -1
- xinference/model/llm/__init__.py +21 -11
- xinference/model/llm/llama_cpp/core.py +16 -33
- xinference/model/llm/llm_family.json +619 -1297
- xinference/model/llm/llm_family.py +31 -52
- xinference/model/llm/llm_family_csghub.json +18 -35
- xinference/model/llm/llm_family_modelscope.json +573 -1119
- xinference/model/llm/lmdeploy/core.py +56 -88
- xinference/model/llm/mlx/core.py +46 -69
- xinference/model/llm/sglang/core.py +33 -18
- xinference/model/llm/transformers/chatglm.py +167 -305
- xinference/model/llm/transformers/cogvlm2.py +36 -63
- xinference/model/llm/transformers/cogvlm2_video.py +33 -223
- xinference/model/llm/transformers/core.py +49 -50
- xinference/model/llm/transformers/deepseek_vl.py +53 -96
- xinference/model/llm/transformers/glm4v.py +55 -111
- xinference/model/llm/transformers/intern_vl.py +39 -70
- xinference/model/llm/transformers/internlm2.py +32 -54
- xinference/model/llm/transformers/minicpmv25.py +22 -55
- xinference/model/llm/transformers/minicpmv26.py +158 -68
- xinference/model/llm/transformers/omnilmm.py +5 -28
- xinference/model/llm/transformers/qwen2_vl.py +208 -0
- xinference/model/llm/transformers/qwen_vl.py +34 -86
- xinference/model/llm/transformers/utils.py +32 -38
- xinference/model/llm/transformers/yi_vl.py +32 -72
- xinference/model/llm/utils.py +195 -489
- xinference/model/llm/vllm/core.py +153 -100
- xinference/model/rerank/core.py +41 -8
- xinference/model/rerank/model_spec.json +7 -0
- xinference/model/rerank/model_spec_modelscope.json +7 -1
- xinference/model/utils.py +1 -31
- xinference/thirdparty/cosyvoice/bin/export_jit.py +64 -0
- xinference/thirdparty/cosyvoice/bin/export_trt.py +8 -0
- xinference/thirdparty/cosyvoice/bin/inference.py +5 -2
- xinference/thirdparty/cosyvoice/cli/cosyvoice.py +38 -22
- xinference/thirdparty/cosyvoice/cli/model.py +139 -26
- xinference/thirdparty/cosyvoice/flow/flow.py +15 -9
- xinference/thirdparty/cosyvoice/flow/length_regulator.py +20 -1
- xinference/thirdparty/cosyvoice/hifigan/generator.py +8 -4
- xinference/thirdparty/cosyvoice/llm/llm.py +14 -13
- xinference/thirdparty/cosyvoice/transformer/attention.py +7 -3
- xinference/thirdparty/cosyvoice/transformer/decoder.py +1 -1
- xinference/thirdparty/cosyvoice/transformer/embedding.py +4 -3
- xinference/thirdparty/cosyvoice/transformer/encoder.py +4 -2
- xinference/thirdparty/cosyvoice/utils/common.py +36 -0
- xinference/thirdparty/cosyvoice/utils/file_utils.py +16 -0
- xinference/thirdparty/deepseek_vl/serve/assets/Kelpy-Codos.js +100 -0
- xinference/thirdparty/deepseek_vl/serve/assets/avatar.png +0 -0
- xinference/thirdparty/deepseek_vl/serve/assets/custom.css +355 -0
- xinference/thirdparty/deepseek_vl/serve/assets/custom.js +22 -0
- xinference/thirdparty/deepseek_vl/serve/assets/favicon.ico +0 -0
- xinference/thirdparty/deepseek_vl/serve/examples/app.png +0 -0
- xinference/thirdparty/deepseek_vl/serve/examples/chart.png +0 -0
- xinference/thirdparty/deepseek_vl/serve/examples/mirror.png +0 -0
- xinference/thirdparty/deepseek_vl/serve/examples/pipeline.png +0 -0
- xinference/thirdparty/deepseek_vl/serve/examples/puzzle.png +0 -0
- xinference/thirdparty/deepseek_vl/serve/examples/rap.jpeg +0 -0
- xinference/thirdparty/fish_speech/fish_speech/configs/base.yaml +87 -0
- xinference/thirdparty/fish_speech/fish_speech/configs/firefly_gan_vq.yaml +34 -0
- xinference/thirdparty/fish_speech/fish_speech/configs/lora/r_8_alpha_16.yaml +4 -0
- xinference/thirdparty/fish_speech/fish_speech/configs/text2semantic_finetune.yaml +83 -0
- xinference/thirdparty/fish_speech/fish_speech/datasets/protos/text-data.proto +24 -0
- xinference/thirdparty/fish_speech/fish_speech/i18n/README.md +27 -0
- xinference/thirdparty/fish_speech/fish_speech/text/chn_text_norm/.gitignore +114 -0
- xinference/thirdparty/fish_speech/fish_speech/text/chn_text_norm/README.md +36 -0
- xinference/thirdparty/fish_speech/fish_speech/webui/css/style.css +161 -0
- xinference/thirdparty/fish_speech/fish_speech/webui/html/footer.html +11 -0
- xinference/thirdparty/fish_speech/fish_speech/webui/js/animate.js +69 -0
- xinference/thirdparty/fish_speech/tools/sensevoice/README.md +59 -0
- xinference/thirdparty/matcha/VERSION +1 -0
- xinference/thirdparty/matcha/hifigan/LICENSE +21 -0
- xinference/thirdparty/matcha/hifigan/README.md +101 -0
- xinference/thirdparty/omnilmm/LICENSE +201 -0
- xinference/thirdparty/whisper/__init__.py +156 -0
- xinference/thirdparty/whisper/__main__.py +3 -0
- xinference/thirdparty/whisper/assets/gpt2.tiktoken +50256 -0
- xinference/thirdparty/whisper/assets/mel_filters.npz +0 -0
- xinference/thirdparty/whisper/assets/multilingual.tiktoken +50257 -0
- xinference/thirdparty/whisper/audio.py +157 -0
- xinference/thirdparty/whisper/decoding.py +826 -0
- xinference/thirdparty/whisper/model.py +314 -0
- xinference/thirdparty/whisper/normalizers/__init__.py +2 -0
- xinference/thirdparty/whisper/normalizers/basic.py +76 -0
- xinference/thirdparty/whisper/normalizers/english.json +1741 -0
- xinference/thirdparty/whisper/normalizers/english.py +550 -0
- xinference/thirdparty/whisper/timing.py +386 -0
- xinference/thirdparty/whisper/tokenizer.py +395 -0
- xinference/thirdparty/whisper/transcribe.py +605 -0
- xinference/thirdparty/whisper/triton_ops.py +109 -0
- xinference/thirdparty/whisper/utils.py +316 -0
- xinference/thirdparty/whisper/version.py +1 -0
- xinference/types.py +7 -49
- xinference/web/ui/build/asset-manifest.json +6 -6
- xinference/web/ui/build/index.html +1 -1
- xinference/web/ui/build/static/css/{main.4bafd904.css → main.632e9148.css} +2 -2
- xinference/web/ui/build/static/css/main.632e9148.css.map +1 -0
- xinference/web/ui/build/static/js/main.9cfafbd6.js +3 -0
- xinference/web/ui/build/static/js/{main.eb13fe95.js.LICENSE.txt → main.9cfafbd6.js.LICENSE.txt} +2 -0
- xinference/web/ui/build/static/js/main.9cfafbd6.js.map +1 -0
- xinference/web/ui/node_modules/.cache/babel-loader/01d6d198156bacbd436c51435edbd4b2cacd47a79db929105eba30f74b67d48d.json +1 -0
- xinference/web/ui/node_modules/.cache/babel-loader/10c69dc7a296779fcffedeff9393d832dfcb0013c36824adf623d3c518b801ff.json +1 -0
- xinference/web/ui/node_modules/.cache/babel-loader/59eb25f514afcc4fefd1b309d192b2455f1e0aec68a9de598ca4b2333fe2c774.json +1 -0
- xinference/web/ui/node_modules/.cache/babel-loader/68bede6d95bb5ef0b35bbb3ec5b8c937eaf6862c6cdbddb5ef222a7776aaf336.json +1 -0
- xinference/web/ui/node_modules/.cache/babel-loader/77d50223f3e734d4485cca538cb098a8c3a7a0a1a9f01f58cdda3af42fe1adf5.json +1 -0
- xinference/web/ui/node_modules/.cache/babel-loader/a56d5a642409a84988891089c98ca28ad0546432dfbae8aaa51bc5a280e1cdd2.json +1 -0
- xinference/web/ui/node_modules/.cache/babel-loader/d9ff696a3e3471f01b46c63d18af32e491eb5dc0e43cb30202c96871466df57f.json +1 -0
- xinference/web/ui/node_modules/.cache/babel-loader/f5039ddbeb815c51491a1989532006b96fc3ae49c6c60e3c097f875b4ae915ae.json +1 -0
- xinference/web/ui/node_modules/.package-lock.json +37 -0
- xinference/web/ui/node_modules/a-sync-waterfall/package.json +21 -0
- xinference/web/ui/node_modules/nunjucks/node_modules/commander/package.json +48 -0
- xinference/web/ui/node_modules/nunjucks/package.json +112 -0
- xinference/web/ui/package-lock.json +38 -0
- xinference/web/ui/package.json +1 -0
- {xinference-0.14.4.post1.dist-info → xinference-0.15.0.dist-info}/METADATA +8 -8
- {xinference-0.14.4.post1.dist-info → xinference-0.15.0.dist-info}/RECORD +141 -87
- xinference/model/llm/transformers/llama_2.py +0 -108
- xinference/web/ui/build/static/css/main.4bafd904.css.map +0 -1
- xinference/web/ui/build/static/js/main.eb13fe95.js +0 -3
- xinference/web/ui/build/static/js/main.eb13fe95.js.map +0 -1
- xinference/web/ui/node_modules/.cache/babel-loader/0b11a5339468c13b2d31ac085e7effe4303259b2071abd46a0a8eb8529233a5e.json +0 -1
- xinference/web/ui/node_modules/.cache/babel-loader/213b5913e164773c2b0567455377765715f5f07225fbac77ad8e1e9dc9648a47.json +0 -1
- xinference/web/ui/node_modules/.cache/babel-loader/5c26a23b5eacf5b752a08531577ae3840bb247745ef9a39583dc2d05ba93a82a.json +0 -1
- xinference/web/ui/node_modules/.cache/babel-loader/978b57d1a04a701bc3fcfebc511f5f274eed6ed7eade67f6fb76c27d5fd9ecc8.json +0 -1
- {xinference-0.14.4.post1.dist-info → xinference-0.15.0.dist-info}/LICENSE +0 -0
- {xinference-0.14.4.post1.dist-info → xinference-0.15.0.dist-info}/WHEEL +0 -0
- {xinference-0.14.4.post1.dist-info → xinference-0.15.0.dist-info}/entry_points.txt +0 -0
- {xinference-0.14.4.post1.dist-info → xinference-0.15.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"ast":null,"code":"\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z\"\n}), 'CheckCircle');\nexports.default = _default;","map":{"version":3,"names":["_interopRequireDefault","require","Object","defineProperty","exports","value","default","_createSvgIcon","_jsxRuntime","_default","jsx","d"],"sources":["/home/runner/work/inference/inference/xinference/web/ui/node_modules/@mui/icons-material/CheckCircle.js"],"sourcesContent":["\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z\"\n}), 'CheckCircle');\nexports.default = _default;"],"mappings":"AAAA,YAAY;AACZ,YAAY;;AAEZ,IAAIA,sBAAsB,GAAGC,OAAO,CAAC,8CAA8C,CAAC;AACpFC,MAAM,CAACC,cAAc,CAACC,OAAO,EAAE,YAAY,EAAE;EAC3CC,KAAK,EAAE;AACT,CAAC,CAAC;AACFD,OAAO,CAACE,OAAO,GAAG,KAAK,CAAC;AACxB,IAAIC,cAAc,GAAGP,sBAAsB,CAACC,OAAO,CAAC,uBAAuB,CAAC,CAAC;AAC7E,IAAIO,WAAW,GAAGP,OAAO,CAAC,mBAAmB,CAAC;AAC9C,IAAIQ,QAAQ,GAAG,CAAC,CAAC,EAAEF,cAAc,CAACD,OAAO,GAAG,aAAa,CAAC,CAAC,EAAEE,WAAW,CAACE,GAAG,EAAE,MAAM,EAAE;EACpFC,CAAC,EAAE;AACL,CAAC,CAAC,EAAE,aAAa,CAAC;AAClBP,OAAO,CAACE,OAAO,GAAGG,QAAQ","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"ast":null,"code":"\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M21 11V3h-8l3.29 3.29-10 10L3 13v8h8l-3.29-3.29 10-10z\"\n}), 'OpenInFull');\nexports.default = _default;","map":{"version":3,"names":["_interopRequireDefault","require","Object","defineProperty","exports","value","default","_createSvgIcon","_jsxRuntime","_default","jsx","d"],"sources":["/home/runner/work/inference/inference/xinference/web/ui/node_modules/@mui/icons-material/OpenInFull.js"],"sourcesContent":["\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M21 11V3h-8l3.29 3.29-10 10L3 13v8h8l-3.29-3.29 10-10z\"\n}), 'OpenInFull');\nexports.default = _default;"],"mappings":"AAAA,YAAY;AACZ,YAAY;;AAEZ,IAAIA,sBAAsB,GAAGC,OAAO,CAAC,8CAA8C,CAAC;AACpFC,MAAM,CAACC,cAAc,CAACC,OAAO,EAAE,YAAY,EAAE;EAC3CC,KAAK,EAAE;AACT,CAAC,CAAC;AACFD,OAAO,CAACE,OAAO,GAAG,KAAK,CAAC;AACxB,IAAIC,cAAc,GAAGP,sBAAsB,CAACC,OAAO,CAAC,uBAAuB,CAAC,CAAC;AAC7E,IAAIO,WAAW,GAAGP,OAAO,CAAC,mBAAmB,CAAC;AAC9C,IAAIQ,QAAQ,GAAG,CAAC,CAAC,EAAEF,cAAc,CAACD,OAAO,GAAG,aAAa,CAAC,CAAC,EAAEE,WAAW,CAACE,GAAG,EAAE,MAAM,EAAE;EACpFC,CAAC,EAAE;AACL,CAAC,CAAC,EAAE,YAAY,CAAC;AACjBP,OAAO,CAACE,OAAO,GAAGG,QAAQ","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"ast":null,"code":"import _slicedToArray from\"/home/runner/work/inference/inference/xinference/web/ui/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";import{TabContext,TabList,TabPanel}from'@mui/lab';import{Box,Tab}from'@mui/material';import React,{useEffect}from'react';import{useCookies}from'react-cookie';import{useNavigate}from'react-router-dom';import ErrorMessageSnackBar from'../../components/errorMessageSnackBar';import Title from'../../components/Title';import{isValidBearerToken}from'../../components/utils';import RegisterModelComponent from'./registerModel';import{jsx as _jsx}from\"react/jsx-runtime\";import{jsxs as _jsxs}from\"react/jsx-runtime\";var RegisterModel=function RegisterModel(){var _React$useState=React.useState(sessionStorage.getItem('registerModelType')?sessionStorage.getItem('registerModelType'):'/register_model/llm'),_React$useState2=_slicedToArray(_React$useState,2),tabValue=_React$useState2[0],setTabValue=_React$useState2[1];var _useCookies=useCookies(['token']),_useCookies2=_slicedToArray(_useCookies,1),cookie=_useCookies2[0];var navigate=useNavigate();useEffect(function(){if(sessionStorage.getItem('auth')==='true'&&!isValidBearerToken(sessionStorage.getItem('token'))&&!isValidBearerToken(cookie.token)){navigate('/login',{replace:true});}},[cookie.token]);var handleTabChange=function handleTabChange(_,newValue){setTabValue(newValue);navigate(newValue);sessionStorage.setItem('registerModelType',newValue);};return/*#__PURE__*/_jsxs(Box,{m:\"20px\",style:{overflow:'hidden'},children:[/*#__PURE__*/_jsx(Title,{title:\"Register Model\"}),/*#__PURE__*/_jsx(ErrorMessageSnackBar,{}),/*#__PURE__*/_jsxs(TabContext,{value:tabValue,children:[/*#__PURE__*/_jsx(Box,{sx:{borderBottom:1,borderColor:'divider'},children:/*#__PURE__*/_jsxs(TabList,{value:tabValue,onChange:handleTabChange,\"aria-label\":\"tabs\",children:[/*#__PURE__*/_jsx(Tab,{label:\"Language Model\",value:\"/register_model/llm\"}),/*#__PURE__*/_jsx(Tab,{label:\"Embedding Model\",value:\"/register_model/embedding\"}),/*#__PURE__*/_jsx(Tab,{label:\"Rerank Model\",value:\"/register_model/rerank\"}),/*#__PURE__*/_jsx(Tab,{label:\"Image Model\",value:\"/register_model/image\"}),/*#__PURE__*/_jsx(Tab,{label:\"Audio Model\",value:\"/register_model/audio\"}),/*#__PURE__*/_jsx(Tab,{label:\"Flexible Model\",value:\"/register_model/flexible\"})]})}),/*#__PURE__*/_jsx(TabPanel,{value:\"/register_model/llm\",sx:{padding:0},children:/*#__PURE__*/_jsx(RegisterModelComponent,{modelType:\"LLM\",customData:{version:1,model_name:'custom-llm',model_description:'This is a custom model description.',context_length:2048,model_lang:['en'],model_ability:['generate'],model_specs:[{model_uri:'/path/to/llama-1',model_size_in_billions:7,model_format:'pytorch',quantizations:['none']}],model_family:'your_custom_model'}})}),/*#__PURE__*/_jsx(TabPanel,{value:\"/register_model/embedding\",sx:{padding:0},children:/*#__PURE__*/_jsx(RegisterModelComponent,{modelType:\"embedding\",customData:{model_name:'custom-embedding',dimensions:768,max_tokens:512,model_uri:'/path/to/embedding-model',language:['en']}})}),/*#__PURE__*/_jsx(TabPanel,{value:\"/register_model/rerank\",sx:{padding:0},children:/*#__PURE__*/_jsx(RegisterModelComponent,{modelType:\"rerank\",customData:{model_name:'custom-rerank',model_uri:'/path/to/rerank-model',language:['en']}})}),/*#__PURE__*/_jsx(TabPanel,{value:\"/register_model/image\",sx:{padding:0},children:/*#__PURE__*/_jsx(RegisterModelComponent,{modelType:\"image\",customData:{model_name:'custom-image',model_uri:'/path/to/image-model',model_family:'stable_diffusion',controlnet:[]}})}),/*#__PURE__*/_jsx(TabPanel,{value:\"/register_model/audio\",sx:{padding:0},children:/*#__PURE__*/_jsx(RegisterModelComponent,{modelType:\"audio\",customData:{model_name:'custom-audio',model_uri:'/path/to/audio-model',multilingual:false,model_family:'whisper'}})}),/*#__PURE__*/_jsx(TabPanel,{value:\"/register_model/flexible\",sx:{padding:0},children:/*#__PURE__*/_jsx(RegisterModelComponent,{modelType:\"flexible\",customData:{model_name:'flexible-model',model_description:'This is a model description.',model_uri:'/path/to/model',launcher:'xinference.model.flexible.launchers.transformers',launcher_args:'{}'}})})]})]});};export default RegisterModel;","map":{"version":3,"names":["TabContext","TabList","TabPanel","Box","Tab","React","useEffect","useCookies","useNavigate","ErrorMessageSnackBar","Title","isValidBearerToken","RegisterModelComponent","jsx","_jsx","jsxs","_jsxs","RegisterModel","_React$useState","useState","sessionStorage","getItem","_React$useState2","_slicedToArray","tabValue","setTabValue","_useCookies","_useCookies2","cookie","navigate","token","replace","handleTabChange","_","newValue","setItem","m","style","overflow","children","title","value","sx","borderBottom","borderColor","onChange","label","padding","modelType","customData","version","model_name","model_description","context_length","model_lang","model_ability","model_specs","model_uri","model_size_in_billions","model_format","quantizations","model_family","dimensions","max_tokens","language","controlnet","multilingual","launcher","launcher_args"],"sources":["/home/runner/work/inference/inference/xinference/web/ui/src/scenes/register_model/index.js"],"sourcesContent":["import { TabContext, TabList, TabPanel } from '@mui/lab'\nimport { Box, Tab } from '@mui/material'\nimport React, { useEffect } from 'react'\nimport { useCookies } from 'react-cookie'\nimport { useNavigate } from 'react-router-dom'\n\nimport ErrorMessageSnackBar from '../../components/errorMessageSnackBar'\nimport Title from '../../components/Title'\nimport { isValidBearerToken } from '../../components/utils'\nimport RegisterModelComponent from './registerModel'\n\nconst RegisterModel = () => {\n const [tabValue, setTabValue] = React.useState(\n sessionStorage.getItem('registerModelType')\n ? sessionStorage.getItem('registerModelType')\n : '/register_model/llm'\n )\n const [cookie] = useCookies(['token'])\n const navigate = useNavigate()\n\n useEffect(() => {\n if (\n sessionStorage.getItem('auth') === 'true' &&\n !isValidBearerToken(sessionStorage.getItem('token')) &&\n !isValidBearerToken(cookie.token)\n ) {\n navigate('/login', { replace: true })\n }\n }, [cookie.token])\n\n const handleTabChange = (_, newValue) => {\n setTabValue(newValue)\n navigate(newValue)\n sessionStorage.setItem('registerModelType', newValue)\n }\n\n return (\n <Box m=\"20px\" style={{ overflow: 'hidden' }}>\n <Title title=\"Register Model\" />\n <ErrorMessageSnackBar />\n <TabContext value={tabValue}>\n <Box sx={{ borderBottom: 1, borderColor: 'divider' }}>\n <TabList\n value={tabValue}\n onChange={handleTabChange}\n aria-label=\"tabs\"\n >\n <Tab label=\"Language Model\" value=\"/register_model/llm\" />\n <Tab label=\"Embedding Model\" value=\"/register_model/embedding\" />\n <Tab label=\"Rerank Model\" value=\"/register_model/rerank\" />\n <Tab label=\"Image Model\" value=\"/register_model/image\" />\n <Tab label=\"Audio Model\" value=\"/register_model/audio\" />\n <Tab label=\"Flexible Model\" value=\"/register_model/flexible\" />\n </TabList>\n </Box>\n <TabPanel value=\"/register_model/llm\" sx={{ padding: 0 }}>\n <RegisterModelComponent\n modelType=\"LLM\"\n customData={{\n version: 1,\n model_name: 'custom-llm',\n model_description: 'This is a custom model description.',\n context_length: 2048,\n model_lang: ['en'],\n model_ability: ['generate'],\n model_specs: [\n {\n model_uri: '/path/to/llama-1',\n model_size_in_billions: 7,\n model_format: 'pytorch',\n quantizations: ['none'],\n },\n ],\n model_family: 'your_custom_model',\n }}\n />\n </TabPanel>\n <TabPanel value=\"/register_model/embedding\" sx={{ padding: 0 }}>\n <RegisterModelComponent\n modelType=\"embedding\"\n customData={{\n model_name: 'custom-embedding',\n dimensions: 768,\n max_tokens: 512,\n model_uri: '/path/to/embedding-model',\n language: ['en'],\n }}\n />\n </TabPanel>\n <TabPanel value=\"/register_model/rerank\" sx={{ padding: 0 }}>\n <RegisterModelComponent\n modelType=\"rerank\"\n customData={{\n model_name: 'custom-rerank',\n model_uri: '/path/to/rerank-model',\n language: ['en'],\n }}\n />\n </TabPanel>\n <TabPanel value=\"/register_model/image\" sx={{ padding: 0 }}>\n <RegisterModelComponent\n modelType=\"image\"\n customData={{\n model_name: 'custom-image',\n model_uri: '/path/to/image-model',\n model_family: 'stable_diffusion',\n controlnet: [],\n }}\n />\n </TabPanel>\n <TabPanel value=\"/register_model/audio\" sx={{ padding: 0 }}>\n <RegisterModelComponent\n modelType=\"audio\"\n customData={{\n model_name: 'custom-audio',\n model_uri: '/path/to/audio-model',\n multilingual: false,\n model_family: 'whisper',\n }}\n />\n </TabPanel>\n <TabPanel value=\"/register_model/flexible\" sx={{ padding: 0 }}>\n <RegisterModelComponent\n modelType=\"flexible\"\n customData={{\n model_name: 'flexible-model',\n model_description: 'This is a model description.',\n model_uri: '/path/to/model',\n launcher: 'xinference.model.flexible.launchers.transformers',\n launcher_args: '{}',\n }}\n />\n </TabPanel>\n </TabContext>\n </Box>\n )\n}\n\nexport default RegisterModel\n"],"mappings":"6IAAA,OAASA,UAAU,CAAEC,OAAO,CAAEC,QAAQ,KAAQ,UAAU,CACxD,OAASC,GAAG,CAAEC,GAAG,KAAQ,eAAe,CACxC,MAAO,CAAAC,KAAK,EAAIC,SAAS,KAAQ,OAAO,CACxC,OAASC,UAAU,KAAQ,cAAc,CACzC,OAASC,WAAW,KAAQ,kBAAkB,CAE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K,CAAC,uBAAuB,CAACC,EAAE,CAAE,CAAEK,OAAO,CAAE,CAAE,CAAE,CAAAR,QAAA,cACzDzB,IAAA,CAACF,sBAAsB,EACrBoC,SAAS,CAAC,OAAO,CACjBC,UAAU,CAAE,CACVE,UAAU,CAAE,cAAc,CAC1BM,SAAS,CAAE,sBAAsB,CACjCI,YAAY,CAAE,kBAAkB,CAChCI,UAAU,CAAE,EACd,CAAE,CACH,CAAC,CACM,CAAC,cACXnD,IAAA,CAACZ,QAAQ,EAACuC,KAAK,CAAC,uBAAuB,CAACC,EAAE,CAAE,CAAEK,OAAO,CAAE,CAAE,CAAE,CAAAR,QAAA,cACzDzB,IAAA,CAACF,sBAAsB,EACrBoC,SAAS,CAAC,OAAO,CACjBC,UAAU,CAAE,CACVE,UAAU,CAAE,cAAc,CAC1BM,SAAS,CAAE,sBAAsB,CACjCS,YAAY,CAAE,KAAK,CACnBL,YAAY,CAAE,SAChB,CAAE,CACH,CAAC,CACM,CAAC,cACX/C,IAAA,CAACZ,QAAQ,EAACuC,KAAK,CAAC,0BAA0B,CAACC,EAAE,CAAE,CAAEK,OAAO,CAAE,CAAE,CAAE,CAAAR,QAAA,cAC5DzB,IAAA,CAACF,sBAAsB,EACrBoC,SAAS,CAAC,UAAU,CACpBC,UAAU,CAAE,CACVE,UAAU,CAAE,gBAAgB,CAC5BC,iBAAiB,CAAE,8BAA8B,CACjDK,SAAS,CAAE,gBAAgB,CAC3BU,QAAQ,CAAE,kDAAkD,CAC5DC,aAAa,CAAE,IACjB,CAAE,CACH,CAAC,CACM,CAAC,EACD,CAAC,EACV,CAAC,CAEV,CAAC,CAED,cAAe,CAAAnD,aAAa","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -5752,6 +5752,11 @@
|
|
|
5752
5752
|
"resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz",
|
|
5753
5753
|
"integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ=="
|
|
5754
5754
|
},
|
|
5755
|
+
"node_modules/a-sync-waterfall": {
|
|
5756
|
+
"version": "1.0.1",
|
|
5757
|
+
"resolved": "https://registry.npmmirror.com/a-sync-waterfall/-/a-sync-waterfall-1.0.1.tgz",
|
|
5758
|
+
"integrity": "sha512-RYTOHHdWipFUliRFMCS4X2Yn2X8M87V/OpSqWzKKOGhzqyUxzyVmhHDH9sAvG+ZuQf/TAOFsLCpMw09I1ufUnA=="
|
|
5759
|
+
},
|
|
5755
5760
|
"node_modules/abab": {
|
|
5756
5761
|
"version": "2.0.6",
|
|
5757
5762
|
"resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz",
|
|
@@ -13690,6 +13695,38 @@
|
|
|
13690
13695
|
"url": "https://github.com/fb55/nth-check?sponsor=1"
|
|
13691
13696
|
}
|
|
13692
13697
|
},
|
|
13698
|
+
"node_modules/nunjucks": {
|
|
13699
|
+
"version": "3.2.4",
|
|
13700
|
+
"resolved": "https://registry.npmmirror.com/nunjucks/-/nunjucks-3.2.4.tgz",
|
|
13701
|
+
"integrity": "sha512-26XRV6BhkgK0VOxfbU5cQI+ICFUtMLixv1noZn1tGU38kQH5A5nmmbk/O45xdyBhD1esk47nKrY0mvQpZIhRjQ==",
|
|
13702
|
+
"dependencies": {
|
|
13703
|
+
"a-sync-waterfall": "^1.0.0",
|
|
13704
|
+
"asap": "^2.0.3",
|
|
13705
|
+
"commander": "^5.1.0"
|
|
13706
|
+
},
|
|
13707
|
+
"bin": {
|
|
13708
|
+
"nunjucks-precompile": "bin/precompile"
|
|
13709
|
+
},
|
|
13710
|
+
"engines": {
|
|
13711
|
+
"node": ">= 6.9.0"
|
|
13712
|
+
},
|
|
13713
|
+
"peerDependencies": {
|
|
13714
|
+
"chokidar": "^3.3.0"
|
|
13715
|
+
},
|
|
13716
|
+
"peerDependenciesMeta": {
|
|
13717
|
+
"chokidar": {
|
|
13718
|
+
"optional": true
|
|
13719
|
+
}
|
|
13720
|
+
}
|
|
13721
|
+
},
|
|
13722
|
+
"node_modules/nunjucks/node_modules/commander": {
|
|
13723
|
+
"version": "5.1.0",
|
|
13724
|
+
"resolved": "https://registry.npmmirror.com/commander/-/commander-5.1.0.tgz",
|
|
13725
|
+
"integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==",
|
|
13726
|
+
"engines": {
|
|
13727
|
+
"node": ">= 6"
|
|
13728
|
+
}
|
|
13729
|
+
},
|
|
13693
13730
|
"node_modules/nwsapi": {
|
|
13694
13731
|
"version": "2.2.7",
|
|
13695
13732
|
"resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.7.tgz",
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "a-sync-waterfall",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Runs a list of async tasks, passing the results of each into the next one",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Gleb Khudyakov",
|
|
7
|
+
"url": "https://github.com/hydiak/a-sync-waterfall"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"homepage": "https://github.com/hydiak/a-sync-waterfall",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git@github.com:hydiak/a-sync-waterfall.git"
|
|
14
|
+
},
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/hydiak/a-sync-waterfall/issues"
|
|
17
|
+
},
|
|
18
|
+
"main": "./index",
|
|
19
|
+
"keywords": ["async", "sync", "waterfall", "tasks", "control", "flow"],
|
|
20
|
+
"dependencies": {}
|
|
21
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "commander",
|
|
3
|
+
"version": "5.1.0",
|
|
4
|
+
"description": "the complete solution for node.js command-line programs",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"commander",
|
|
7
|
+
"command",
|
|
8
|
+
"option",
|
|
9
|
+
"parser",
|
|
10
|
+
"cli",
|
|
11
|
+
"argument",
|
|
12
|
+
"args",
|
|
13
|
+
"argv"
|
|
14
|
+
],
|
|
15
|
+
"author": "TJ Holowaychuk <tj@vision-media.ca>",
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/tj/commander.js.git"
|
|
20
|
+
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"lint": "eslint index.js \"tests/**/*.js\"",
|
|
23
|
+
"typescript-lint": "eslint typings/*.ts",
|
|
24
|
+
"test": "jest && npm run test-typings",
|
|
25
|
+
"test-typings": "tsc -p tsconfig.json"
|
|
26
|
+
},
|
|
27
|
+
"main": "index",
|
|
28
|
+
"files": [
|
|
29
|
+
"index.js",
|
|
30
|
+
"typings/index.d.ts"
|
|
31
|
+
],
|
|
32
|
+
"dependencies": {},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@types/jest": "^25.2.1",
|
|
35
|
+
"@types/node": "^12.12.36",
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^2.29.0",
|
|
37
|
+
"eslint": "^6.8.0",
|
|
38
|
+
"eslint-config-standard-with-typescript": "^15.0.1",
|
|
39
|
+
"eslint-plugin-jest": "^23.8.2",
|
|
40
|
+
"jest": "^25.4.0",
|
|
41
|
+
"standard": "^14.3.3",
|
|
42
|
+
"typescript": "^3.7.5"
|
|
43
|
+
},
|
|
44
|
+
"typings": "typings/index.d.ts",
|
|
45
|
+
"engines": {
|
|
46
|
+
"node": ">= 6"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "nunjucks",
|
|
3
|
+
"description": "A powerful templating engine with inheritance, asynchronous control, and more (jinja2 inspired)",
|
|
4
|
+
"version": "3.2.4",
|
|
5
|
+
"author": "James Long <longster@gmail.com>",
|
|
6
|
+
"dependencies": {
|
|
7
|
+
"a-sync-waterfall": "^1.0.0",
|
|
8
|
+
"asap": "^2.0.3",
|
|
9
|
+
"commander": "^5.1.0"
|
|
10
|
+
},
|
|
11
|
+
"browser": "./browser/nunjucks.js",
|
|
12
|
+
"devDependencies": {
|
|
13
|
+
"@babel/cli": "^7.0.0-beta.38",
|
|
14
|
+
"@babel/core": "^7.0.0-beta.38",
|
|
15
|
+
"@babel/preset-env": "^7.0.0-beta.38",
|
|
16
|
+
"@babel/register": "^7.0.0-beta.38",
|
|
17
|
+
"babel-loader": "^8.0.0-beta.0",
|
|
18
|
+
"babel-plugin-istanbul": "^4.1.5",
|
|
19
|
+
"babel-plugin-module-resolver": "3.0.0-beta.5",
|
|
20
|
+
"connect": "^3.6.5",
|
|
21
|
+
"core-js": "^2.5.3",
|
|
22
|
+
"cross-env": "^5.1.3",
|
|
23
|
+
"eslint": "^4.13.0",
|
|
24
|
+
"eslint-config-airbnb-base": "^12.1.0",
|
|
25
|
+
"eslint-plugin-import": "^2.8.0",
|
|
26
|
+
"expect.js": "*",
|
|
27
|
+
"express": "4.x",
|
|
28
|
+
"fs-extra": "^5.0.0",
|
|
29
|
+
"get-port": "^3.2.0",
|
|
30
|
+
"mocha": "< 8.x",
|
|
31
|
+
"mocha-phantomjs-core": "^2.1.2",
|
|
32
|
+
"mocha-phantomjs-istanbul": "0.0.2",
|
|
33
|
+
"module-alias": "^2.0.3",
|
|
34
|
+
"node-libs-browser": "^0.7.0",
|
|
35
|
+
"nyc": "^11.4.1",
|
|
36
|
+
"phantomjs-prebuilt": "^2.1.16",
|
|
37
|
+
"serve-static": "^1.13.1",
|
|
38
|
+
"supertest": "*",
|
|
39
|
+
"uglify-js": "^2.8.29",
|
|
40
|
+
"uglifyjs-webpack-plugin": "^1.1.6",
|
|
41
|
+
"webpack": "^3.10.0"
|
|
42
|
+
},
|
|
43
|
+
"buildDependencies": {
|
|
44
|
+
"@babel/cli": "^7.0.0-beta.38",
|
|
45
|
+
"@babel/core": "^7.0.0-beta.38",
|
|
46
|
+
"@babel/preset-env": "^7.0.0-beta.38",
|
|
47
|
+
"@babel/register": "^7.0.0-beta.38",
|
|
48
|
+
"babel-loader": "^8.0.0-beta.0",
|
|
49
|
+
"babel-plugin-istanbul": "^4.1.5",
|
|
50
|
+
"babel-plugin-module-resolver": "3.0.0-beta.5",
|
|
51
|
+
"core-js": "^2.5.3",
|
|
52
|
+
"module-alias": "^2.0.3",
|
|
53
|
+
"node-libs-browser": "^0.7.0",
|
|
54
|
+
"uglify-js": "^2.8.29",
|
|
55
|
+
"uglifyjs-webpack-plugin": "^1.1.6",
|
|
56
|
+
"webpack": "^3.10.0"
|
|
57
|
+
},
|
|
58
|
+
"peerDependencies": {
|
|
59
|
+
"chokidar": "^3.3.0"
|
|
60
|
+
},
|
|
61
|
+
"peerDependenciesMeta": {
|
|
62
|
+
"chokidar": {
|
|
63
|
+
"optional": true
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"_moduleAliases": {
|
|
67
|
+
"babel-register": "@babel/register"
|
|
68
|
+
},
|
|
69
|
+
"engines": {
|
|
70
|
+
"node": ">= 6.9.0"
|
|
71
|
+
},
|
|
72
|
+
"scripts": {
|
|
73
|
+
"build:transpile": "babel nunjucks --out-dir .",
|
|
74
|
+
"build:bundle": "node scripts/bundle.js",
|
|
75
|
+
"build": "npm run build:transpile && npm run build:bundle",
|
|
76
|
+
"codecov": "codecov",
|
|
77
|
+
"mocha": "mocha -R spec tests",
|
|
78
|
+
"lint": "eslint nunjucks scripts tests",
|
|
79
|
+
"prepare": "npm run build",
|
|
80
|
+
"test:instrument": "cross-env NODE_ENV=test scripts/bundle.js",
|
|
81
|
+
"test:runner": "cross-env NODE_ENV=test NODE_PATH=tests/test-node-pkgs scripts/testrunner.js",
|
|
82
|
+
"test": "npm run lint && npm run test:instrument && npm run test:runner"
|
|
83
|
+
},
|
|
84
|
+
"bin": {
|
|
85
|
+
"nunjucks-precompile": "./bin/precompile"
|
|
86
|
+
},
|
|
87
|
+
"main": "index.js",
|
|
88
|
+
"files": [
|
|
89
|
+
"bin/**",
|
|
90
|
+
"browser/**",
|
|
91
|
+
"src/**"
|
|
92
|
+
],
|
|
93
|
+
"nyc": {
|
|
94
|
+
"require": [
|
|
95
|
+
"babel-register"
|
|
96
|
+
],
|
|
97
|
+
"sourceMap": false,
|
|
98
|
+
"instrument": false
|
|
99
|
+
},
|
|
100
|
+
"repository": {
|
|
101
|
+
"type": "git",
|
|
102
|
+
"url": "https://github.com/mozilla/nunjucks.git"
|
|
103
|
+
},
|
|
104
|
+
"keywords": [
|
|
105
|
+
"template",
|
|
106
|
+
"templating"
|
|
107
|
+
],
|
|
108
|
+
"license": "BSD-2-Clause",
|
|
109
|
+
"bugs": {
|
|
110
|
+
"url": "https://github.com/mozilla/nunjucks/issues"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"@testing-library/user-event": "^13.5.0",
|
|
30
30
|
"clipboard": "^2.0.11",
|
|
31
31
|
"formik": "^2.4.2",
|
|
32
|
+
"nunjucks": "^3.2.4",
|
|
32
33
|
"prop-types": "^15.8.1",
|
|
33
34
|
"react": "^18.2.0",
|
|
34
35
|
"react-cookie": "^6.1.1",
|
|
@@ -5799,6 +5800,11 @@
|
|
|
5799
5800
|
"resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz",
|
|
5800
5801
|
"integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ=="
|
|
5801
5802
|
},
|
|
5803
|
+
"node_modules/a-sync-waterfall": {
|
|
5804
|
+
"version": "1.0.1",
|
|
5805
|
+
"resolved": "https://registry.npmmirror.com/a-sync-waterfall/-/a-sync-waterfall-1.0.1.tgz",
|
|
5806
|
+
"integrity": "sha512-RYTOHHdWipFUliRFMCS4X2Yn2X8M87V/OpSqWzKKOGhzqyUxzyVmhHDH9sAvG+ZuQf/TAOFsLCpMw09I1ufUnA=="
|
|
5807
|
+
},
|
|
5802
5808
|
"node_modules/abab": {
|
|
5803
5809
|
"version": "2.0.6",
|
|
5804
5810
|
"resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz",
|
|
@@ -13750,6 +13756,38 @@
|
|
|
13750
13756
|
"url": "https://github.com/fb55/nth-check?sponsor=1"
|
|
13751
13757
|
}
|
|
13752
13758
|
},
|
|
13759
|
+
"node_modules/nunjucks": {
|
|
13760
|
+
"version": "3.2.4",
|
|
13761
|
+
"resolved": "https://registry.npmmirror.com/nunjucks/-/nunjucks-3.2.4.tgz",
|
|
13762
|
+
"integrity": "sha512-26XRV6BhkgK0VOxfbU5cQI+ICFUtMLixv1noZn1tGU38kQH5A5nmmbk/O45xdyBhD1esk47nKrY0mvQpZIhRjQ==",
|
|
13763
|
+
"dependencies": {
|
|
13764
|
+
"a-sync-waterfall": "^1.0.0",
|
|
13765
|
+
"asap": "^2.0.3",
|
|
13766
|
+
"commander": "^5.1.0"
|
|
13767
|
+
},
|
|
13768
|
+
"bin": {
|
|
13769
|
+
"nunjucks-precompile": "bin/precompile"
|
|
13770
|
+
},
|
|
13771
|
+
"engines": {
|
|
13772
|
+
"node": ">= 6.9.0"
|
|
13773
|
+
},
|
|
13774
|
+
"peerDependencies": {
|
|
13775
|
+
"chokidar": "^3.3.0"
|
|
13776
|
+
},
|
|
13777
|
+
"peerDependenciesMeta": {
|
|
13778
|
+
"chokidar": {
|
|
13779
|
+
"optional": true
|
|
13780
|
+
}
|
|
13781
|
+
}
|
|
13782
|
+
},
|
|
13783
|
+
"node_modules/nunjucks/node_modules/commander": {
|
|
13784
|
+
"version": "5.1.0",
|
|
13785
|
+
"resolved": "https://registry.npmmirror.com/commander/-/commander-5.1.0.tgz",
|
|
13786
|
+
"integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==",
|
|
13787
|
+
"engines": {
|
|
13788
|
+
"node": ">= 6"
|
|
13789
|
+
}
|
|
13790
|
+
},
|
|
13753
13791
|
"node_modules/nwsapi": {
|
|
13754
13792
|
"version": "2.2.7",
|
|
13755
13793
|
"resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.7.tgz",
|
xinference/web/ui/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: xinference
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.15.0
|
|
4
4
|
Summary: Model Serving Made Easy
|
|
5
5
|
Home-page: https://github.com/xorbitsai/inference
|
|
6
6
|
Author: Qin Xuye
|
|
@@ -21,8 +21,7 @@ Description-Content-Type: text/markdown
|
|
|
21
21
|
License-File: LICENSE
|
|
22
22
|
Requires-Dist: xoscar>=0.3.0
|
|
23
23
|
Requires-Dist: torch
|
|
24
|
-
Requires-Dist: gradio
|
|
25
|
-
Requires-Dist: typer[all]<0.12.0
|
|
24
|
+
Requires-Dist: gradio
|
|
26
25
|
Requires-Dist: pillow
|
|
27
26
|
Requires-Dist: click
|
|
28
27
|
Requires-Dist: tqdm>=4.27
|
|
@@ -35,11 +34,11 @@ Requires-Dist: huggingface-hub>=0.19.4
|
|
|
35
34
|
Requires-Dist: typing-extensions
|
|
36
35
|
Requires-Dist: modelscope>=1.10.0
|
|
37
36
|
Requires-Dist: sse-starlette>=1.6.5
|
|
38
|
-
Requires-Dist: openai
|
|
37
|
+
Requires-Dist: openai>1
|
|
39
38
|
Requires-Dist: python-jose[cryptography]
|
|
40
39
|
Requires-Dist: passlib[bcrypt]
|
|
41
40
|
Requires-Dist: aioprometheus[starlette]>=23.12.0
|
|
42
|
-
Requires-Dist:
|
|
41
|
+
Requires-Dist: nvidia-ml-py
|
|
43
42
|
Requires-Dist: async-timeout
|
|
44
43
|
Requires-Dist: peft
|
|
45
44
|
Requires-Dist: timm
|
|
@@ -81,7 +80,6 @@ Requires-Dist: gdown; extra == "all"
|
|
|
81
80
|
Requires-Dist: pyarrow; extra == "all"
|
|
82
81
|
Requires-Dist: HyperPyYAML; extra == "all"
|
|
83
82
|
Requires-Dist: onnxruntime==1.16.0; extra == "all"
|
|
84
|
-
Requires-Dist: openai-whisper; extra == "all"
|
|
85
83
|
Requires-Dist: boto3<1.28.65,>=1.28.55; extra == "all"
|
|
86
84
|
Requires-Dist: tensorizer~=2.9.0; extra == "all"
|
|
87
85
|
Requires-Dist: eva-decord; extra == "all"
|
|
@@ -89,6 +87,7 @@ Requires-Dist: jj-pytorchvideo; extra == "all"
|
|
|
89
87
|
Requires-Dist: loguru; extra == "all"
|
|
90
88
|
Requires-Dist: natsort; extra == "all"
|
|
91
89
|
Requires-Dist: loralib; extra == "all"
|
|
90
|
+
Requires-Dist: qwen-vl-utils; extra == "all"
|
|
92
91
|
Requires-Dist: auto-gptq; sys_platform != "darwin" and extra == "all"
|
|
93
92
|
Requires-Dist: autoawq<0.2.6; sys_platform != "darwin" and extra == "all"
|
|
94
93
|
Requires-Dist: mlx-lm; (sys_platform == "darwin" and platform_machine == "arm64") and extra == "all"
|
|
@@ -103,6 +102,7 @@ Requires-Dist: librosa; extra == "audio"
|
|
|
103
102
|
Requires-Dist: xxhash; extra == "audio"
|
|
104
103
|
Requires-Dist: torchaudio; extra == "audio"
|
|
105
104
|
Requires-Dist: ChatTTS>0.1; extra == "audio"
|
|
105
|
+
Requires-Dist: tiktoken; extra == "audio"
|
|
106
106
|
Requires-Dist: torch>=2.0.0; extra == "audio"
|
|
107
107
|
Requires-Dist: lightning>=2.0.0; extra == "audio"
|
|
108
108
|
Requires-Dist: hydra-core>=1.3.2; extra == "audio"
|
|
@@ -113,7 +113,6 @@ Requires-Dist: gdown; extra == "audio"
|
|
|
113
113
|
Requires-Dist: pyarrow; extra == "audio"
|
|
114
114
|
Requires-Dist: HyperPyYAML; extra == "audio"
|
|
115
115
|
Requires-Dist: onnxruntime==1.16.0; extra == "audio"
|
|
116
|
-
Requires-Dist: openai-whisper; extra == "audio"
|
|
117
116
|
Requires-Dist: loguru; extra == "audio"
|
|
118
117
|
Requires-Dist: natsort; extra == "audio"
|
|
119
118
|
Requires-Dist: loralib; extra == "audio"
|
|
@@ -134,7 +133,7 @@ Requires-Dist: sphinx-intl>=0.9.9; extra == "dev"
|
|
|
134
133
|
Requires-Dist: jieba>=0.42.0; extra == "dev"
|
|
135
134
|
Requires-Dist: flake8>=3.8.0; extra == "dev"
|
|
136
135
|
Requires-Dist: black; extra == "dev"
|
|
137
|
-
Requires-Dist: openai
|
|
136
|
+
Requires-Dist: openai>1; extra == "dev"
|
|
138
137
|
Requires-Dist: langchain; extra == "dev"
|
|
139
138
|
Requires-Dist: langchain-community; extra == "dev"
|
|
140
139
|
Requires-Dist: orjson; extra == "dev"
|
|
@@ -184,6 +183,7 @@ Requires-Dist: torchvision; extra == "transformers"
|
|
|
184
183
|
Requires-Dist: peft; extra == "transformers"
|
|
185
184
|
Requires-Dist: eva-decord; extra == "transformers"
|
|
186
185
|
Requires-Dist: jj-pytorchvideo; extra == "transformers"
|
|
186
|
+
Requires-Dist: qwen-vl-utils; extra == "transformers"
|
|
187
187
|
Requires-Dist: auto-gptq; sys_platform != "darwin" and extra == "transformers"
|
|
188
188
|
Requires-Dist: autoawq<0.2.6; sys_platform != "darwin" and extra == "transformers"
|
|
189
189
|
Provides-Extra: video
|