xinference 1.6.1__py3-none-any.whl → 1.7.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/_version.py +3 -3
- xinference/api/restful_api.py +79 -2
- xinference/client/restful/restful_client.py +64 -2
- xinference/core/media_interface.py +123 -0
- xinference/core/model.py +31 -0
- xinference/core/supervisor.py +8 -17
- xinference/core/worker.py +5 -17
- xinference/deploy/cmdline.py +6 -2
- xinference/model/audio/chattts.py +24 -39
- xinference/model/audio/cosyvoice.py +18 -30
- xinference/model/audio/funasr.py +42 -0
- xinference/model/audio/model_spec.json +18 -0
- xinference/model/audio/model_spec_modelscope.json +19 -1
- xinference/model/audio/utils.py +75 -0
- xinference/model/core.py +1 -0
- xinference/model/embedding/__init__.py +74 -18
- xinference/model/embedding/core.py +98 -597
- xinference/model/embedding/embed_family.py +133 -0
- xinference/model/embedding/flag/__init__.py +13 -0
- xinference/model/embedding/flag/core.py +282 -0
- xinference/model/embedding/model_spec.json +24 -0
- xinference/model/embedding/model_spec_modelscope.json +24 -0
- xinference/model/embedding/sentence_transformers/__init__.py +13 -0
- xinference/model/embedding/sentence_transformers/core.py +399 -0
- xinference/model/embedding/vllm/__init__.py +0 -0
- xinference/model/embedding/vllm/core.py +95 -0
- xinference/model/image/model_spec.json +20 -2
- xinference/model/image/model_spec_modelscope.json +21 -2
- xinference/model/image/stable_diffusion/core.py +144 -53
- xinference/model/llm/llama_cpp/memory.py +4 -2
- xinference/model/llm/llm_family.json +57 -0
- xinference/model/llm/llm_family_modelscope.json +61 -0
- xinference/model/llm/sglang/core.py +4 -0
- xinference/model/llm/utils.py +11 -0
- xinference/model/llm/vllm/core.py +3 -0
- xinference/model/rerank/core.py +86 -4
- xinference/model/rerank/model_spec.json +24 -0
- xinference/model/rerank/model_spec_modelscope.json +24 -0
- xinference/model/rerank/utils.py +4 -3
- xinference/model/utils.py +38 -1
- xinference/model/video/diffusers.py +65 -3
- xinference/model/video/model_spec.json +31 -4
- xinference/model/video/model_spec_modelscope.json +32 -4
- xinference/web/ui/build/asset-manifest.json +6 -6
- xinference/web/ui/build/index.html +1 -1
- xinference/web/ui/build/static/css/main.013f296b.css +2 -0
- xinference/web/ui/build/static/css/main.013f296b.css.map +1 -0
- xinference/web/ui/build/static/js/main.8a9e3ba0.js +3 -0
- xinference/web/ui/build/static/js/main.8a9e3ba0.js.map +1 -0
- xinference/web/ui/node_modules/.cache/babel-loader/34cfbfb7836e136ba3261cfd411cc554bf99ba24b35dcceebeaa4f008cb3c9dc.json +1 -0
- xinference/web/ui/node_modules/.cache/babel-loader/55b9fb40b57fa926e8f05f31c2f96467e76e5ad62f033dca97c03f9e8c4eb4fe.json +1 -0
- xinference/web/ui/node_modules/.cache/babel-loader/6595880facebca7ceace6f17cf21c3a5a9219a2f52fb0ba9f3cf1131eddbcf6b.json +1 -0
- xinference/web/ui/node_modules/.cache/babel-loader/aa998bc2d9c11853add6b8a2e08f50327f56d8824ccaaec92d6dde1b305f0d85.json +1 -0
- xinference/web/ui/node_modules/.cache/babel-loader/c748246b1d7bcebc16153be69f37e955bb2145526c47dd425aeeff70d3004dbc.json +1 -0
- xinference/web/ui/node_modules/.cache/babel-loader/e31234e95d60a5a7883fbcd70de2475dc1c88c90705df1a530abb68f86f80a51.json +1 -0
- xinference/web/ui/src/locales/en.json +18 -7
- xinference/web/ui/src/locales/ja.json +224 -0
- xinference/web/ui/src/locales/ko.json +224 -0
- xinference/web/ui/src/locales/zh.json +18 -7
- {xinference-1.6.1.dist-info → xinference-1.7.0.dist-info}/METADATA +9 -8
- {xinference-1.6.1.dist-info → xinference-1.7.0.dist-info}/RECORD +66 -57
- xinference/web/ui/build/static/css/main.337afe76.css +0 -2
- xinference/web/ui/build/static/css/main.337afe76.css.map +0 -1
- xinference/web/ui/build/static/js/main.ddf9eaee.js +0 -3
- xinference/web/ui/build/static/js/main.ddf9eaee.js.map +0 -1
- xinference/web/ui/node_modules/.cache/babel-loader/12e02ee790dbf57ead09a241a93bb5f893393aa36628ca741d44390e836a103f.json +0 -1
- xinference/web/ui/node_modules/.cache/babel-loader/12e637ed5fa9ca6491b03892b6949c03afd4960fe36ac25744488e7e1982aa19.json +0 -1
- xinference/web/ui/node_modules/.cache/babel-loader/77ac2665a784e99501ae95d32ef5937837a0439a47e965d291b38e99cb619f5b.json +0 -1
- xinference/web/ui/node_modules/.cache/babel-loader/d4ed4e82bfe69915999ec83f5feaa4301c75ecc6bdf1c78f2d03e4671ecbefc8.json +0 -1
- xinference/web/ui/node_modules/.cache/babel-loader/dc249829767b8abcbc3677e0b07b6d3ecbfdfe6d08cfe23a665eb33373a9aa9d.json +0 -1
- xinference/web/ui/node_modules/.cache/babel-loader/f91af913d7f91c410719ab13136aaed3aaf0f8dda06652f25c42cb5231587398.json +0 -1
- /xinference/web/ui/build/static/js/{main.ddf9eaee.js.LICENSE.txt → main.8a9e3ba0.js.LICENSE.txt} +0 -0
- {xinference-1.6.1.dist-info → xinference-1.7.0.dist-info}/WHEEL +0 -0
- {xinference-1.6.1.dist-info → xinference-1.7.0.dist-info}/entry_points.txt +0 -0
- {xinference-1.6.1.dist-info → xinference-1.7.0.dist-info}/licenses/LICENSE +0 -0
- {xinference-1.6.1.dist-info → xinference-1.7.0.dist-info}/top_level.txt +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import Translate from'@mui/icons-material/Translate';import{Box,IconButton,List,ListItem,ListItemButton,ListItemText,Tooltip}from'@mui/material';import React from'react';import{useTranslation}from'react-i18next';import{jsx as _jsx}from\"react/jsx-runtime\";var TranslateButton=function TranslateButton(_ref){var sx=_ref.sx;var _useTranslation=useTranslation(),i18n=_useTranslation.i18n;var languages=[{language:'中文',code:'zh'},{language:'English',code:'en'}];var changeLanguage=function changeLanguage(lng){i18n.changeLanguage(lng);};return/*#__PURE__*/_jsx(Tooltip,{title:/*#__PURE__*/_jsx(List,{sx:{pt:0},children:languages.map(function(item,index){return/*#__PURE__*/_jsx(ListItem,{disablePadding:true,onClick:function onClick(){return changeLanguage(item.code);},children:/*#__PURE__*/_jsx(ListItemButton,{sx:{'&':{paddingY:0,marginY:'2px'},'&:hover, &:focus':{bgcolor:'#bbb',color:'#333'}},children:/*#__PURE__*/_jsx(ListItemText,{primary:item.language})})},index);})}),placement:\"top\",disableFocusListener:true,disableTouchListener:true,children:/*#__PURE__*/_jsx(Box,{sx:sx,children:/*#__PURE__*/_jsx(IconButton,{size:\"large\",children:/*#__PURE__*/_jsx(Translate,{})})})});};export default TranslateButton;","map":{"version":3,"names":["Translate","Box","IconButton","List","ListItem","ListItemButton","ListItemText","Tooltip","React","useTranslation","jsx","_jsx","TranslateButton","_ref","sx","_useTranslation","i18n","languages","language","code","changeLanguage","lng","title","pt","children","map","item","index","disablePadding","onClick","paddingY","marginY","bgcolor","color","primary","placement","disableFocusListener","disableTouchListener","size"],"sources":["/home/runner/work/inference/inference/xinference/web/ui/src/components/translateButton.js"],"sourcesContent":["import Translate from '@mui/icons-material/Translate'\nimport {\n Box,\n IconButton,\n List,\n ListItem,\n ListItemButton,\n ListItemText,\n Tooltip,\n} from '@mui/material'\nimport React from 'react'\nimport { useTranslation } from 'react-i18next'\n\nconst TranslateButton = ({ sx }) => {\n const { i18n } = useTranslation()\n const languages = [\n {\n language: '中文',\n code: 'zh',\n },\n {\n language: 'English',\n code: 'en',\n },\n ]\n\n const changeLanguage = (lng) => {\n i18n.changeLanguage(lng)\n }\n\n return (\n <Tooltip\n title={\n <List sx={{ pt: 0 }}>\n {languages.map((item, index) => {\n return (\n <ListItem\n key={index}\n disablePadding\n onClick={() => changeLanguage(item.code)}\n >\n <ListItemButton\n sx={{\n '&': {\n paddingY: 0,\n marginY: '2px',\n },\n '&:hover, &:focus': {\n bgcolor: '#bbb',\n color: '#333',\n },\n }}\n >\n <ListItemText primary={item.language} />\n </ListItemButton>\n </ListItem>\n )\n })}\n </List>\n }\n placement=\"top\"\n disableFocusListener\n disableTouchListener\n >\n <Box sx={sx}>\n <IconButton size=\"large\">\n <Translate />\n </IconButton>\n </Box>\n </Tooltip>\n )\n}\n\nexport default TranslateButton\n"],"mappings":"AAAA,MAAO,CAAAA,SAAS,KAAM,+BAA+B,CACrD,OACEC,GAAG,CACHC,UAAU,CACVC,IAAI,CACJC,QAAQ,CACRC,cAAc,CACdC,YAAY,CACZC,OAAO,KACF,eAAe,CACtB,MAAO,CAAAC,KAAK,KAAM,OAAO,CACzB,OAASC,cAAc,KAAQ,eAAe,QAAAC,GAAA,IAAAC,IAAA,yBAE9C,GAAM,CAAAC,eAAe,CAAG,QAAlB,CAAAA,eAAeA,CAAAC,IAAA,CAAe,IAAT,CAAAC,EAAE,CAAAD,IAAA,CAAFC,EAAE,CAC3B,IAAAC,eAAA,CAAiBN,cAAc,CAAC,CAAC,CAAzBO,IAAI,CAAAD,eAAA,CAAJC,IAAI,CACZ,GAAM,CAAAC,SAAS,CAAG,CAChB,CACEC,QAAQ,CAAE,IAAI,CACdC,IAAI,CAAE,IACR,CAAC,CACD,CACED,QAAQ,CAAE,SAAS,CACnBC,IAAI,CAAE,IACR,CAAC,CACF,CAED,GAAM,CAAAC,cAAc,CAAG,QAAjB,CAAAA,cAAcA,CAAIC,GAAG,CAAK,CAC9BL,IAAI,CAACI,cAAc,CAACC,GAAG,CAAC,CAC1B,CAAC,CAED,mBACEV,IAAA,CAACJ,OAAO,EACNe,KAAK,cACHX,IAAA,CAACR,IAAI,EAACW,EAAE,CAAE,CAAES,EAAE,CAAE,CAAE,CAAE,CAAAC,QAAA,CACjBP,SAAS,CAACQ,GAAG,CAAC,SAACC,IAAI,CAAEC,KAAK,CAAK,CAC9B,mBACEhB,IAAA,CAACP,QAAQ,EAEPwB,cAAc,MACdC,OAAO,CAAE,SAAAA,QAAA,QAAM,CAAAT,cAAc,CAACM,IAAI,CAACP,IAAI,CAAC,EAAC,CAAAK,QAAA,cAEzCb,IAAA,CAACN,cAAc,EACbS,EAAE,CAAE,CACF,GAAG,CAAE,CACHgB,QAAQ,CAAE,CAAC,CACXC,OAAO,CAAE,KACX,CAAC,CACD,kBAAkB,CAAE,CAClBC,OAAO,CAAE,MAAM,CACfC,KAAK,CAAE,MACT,CACF,CAAE,CAAAT,QAAA,cAEFb,IAAA,CAACL,YAAY,EAAC4B,OAAO,CAAER,IAAI,CAACR,QAAS,CAAE,CAAC,CAC1B,CAAC,EAjBZS,KAkBG,CAAC,CAEf,CAAC,CAAC,CACE,CACP,CACDQ,SAAS,CAAC,KAAK,CACfC,oBAAoB,MACpBC,oBAAoB,MAAAb,QAAA,cAEpBb,IAAA,CAACV,GAAG,EAACa,EAAE,CAAEA,EAAG,CAAAU,QAAA,cACVb,IAAA,CAACT,UAAU,EAACoC,IAAI,CAAC,OAAO,CAAAd,QAAA,cACtBb,IAAA,CAACX,SAAS,GAAE,CAAC,CACH,CAAC,CACV,CAAC,CACC,CAAC,CAEd,CAAC,CAED,cAAe,CAAAY,eAAe","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import i18n from'i18next';import{initReactI18next}from'react-i18next';import en from'./locales/en.json';import zh from'./locales/zh.json';i18n.use(initReactI18next).init({fallbackLng:'en',lng:localStorage.getItem('language')||'en',debug:true,interpolation:{escapeValue:false},resources:{en:{translation:en},zh:{translation:zh}}});i18n.on('languageChanged',function(lng){localStorage.setItem('language',lng);});export default i18n;","map":{"version":3,"names":["i18n","initReactI18next","en","zh","use","init","fallbackLng","lng","localStorage","getItem","debug","interpolation","escapeValue","resources","translation","on","setItem"],"sources":["/home/runner/work/inference/inference/xinference/web/ui/src/i18n.js"],"sourcesContent":["import i18n from 'i18next'\nimport { initReactI18next } from 'react-i18next'\n\nimport en from './locales/en.json'\nimport zh from './locales/zh.json'\n\ni18n.use(initReactI18next).init({\n fallbackLng: 'en',\n lng: localStorage.getItem('language') || 'en',\n debug: true,\n interpolation: {\n escapeValue: false,\n },\n resources: {\n en: { translation: en },\n zh: { translation: zh },\n },\n})\n\ni18n.on('languageChanged', (lng) => {\n localStorage.setItem('language', lng)\n})\n\nexport default i18n\n"],"mappings":"AAAA,MAAO,CAAAA,IAAI,KAAM,SAAS,CAC1B,OAASC,gBAAgB,KAAQ,eAAe,CAEhD,MAAO,CAAAC,EAAE,KAAM,mBAAmB,CAClC,MAAO,CAAAC,EAAE,KAAM,mBAAmB,CAElCH,IAAI,CAACI,GAAG,CAACH,gBAAgB,CAAC,CAACI,IAAI,CAAC,CAC9BC,WAAW,CAAE,IAAI,CACjBC,GAAG,CAAEC,YAAY,CAACC,OAAO,CAAC,UAAU,CAAC,EAAI,IAAI,CAC7CC,KAAK,CAAE,IAAI,CACXC,aAAa,CAAE,CACbC,WAAW,CAAE,KACf,CAAC,CACDC,SAAS,CAAE,CACTX,EAAE,CAAE,CAAEY,WAAW,CAAEZ,EAAG,CAAC,CACvBC,EAAE,CAAE,CAAEW,WAAW,CAAEX,EAAG,CACxB,CACF,CAAC,CAAC,CAEFH,IAAI,CAACe,EAAE,CAAC,iBAAiB,CAAE,SAACR,GAAG,CAAK,CAClCC,YAAY,CAACQ,OAAO,CAAC,UAAU,CAAET,GAAG,CAAC,CACvC,CAAC,CAAC,CAEF,cAAe,CAAAP,IAAI","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
|
/xinference/web/ui/build/static/js/{main.ddf9eaee.js.LICENSE.txt → main.8a9e3ba0.js.LICENSE.txt}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|