-
Notifications
You must be signed in to change notification settings - Fork 779
Closed
Milestone
Description
System Info / 系統信息
虽然我个人认为这个问题和系统无关
- ubuntu25.04
- 内核:6.14.0-1006-intel
- 系统配置:4U服务器,双卡B60蓝戟
Running Xinference with Docker? / 是否使用 Docker 运行 Xinfernece?
- docker / docker
- pip install / 通过 pip install 安装
- installation from source / 从源码安装
Version info / 版本信息
主要是这些会影响这个问题我的python版本是3.10
xinference, version 1.13.0
gradio 6.0.1
gradio-client 2.0.0
The command used to start Xinference / 用以启动 xinference 的命令
这是我的具体过程
环境配置
- 基础环境安装
conda create -n xinference python=3.10 -y
conda activate xinference
pip install torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 --index-url https://download.pytorch.org/whl/xpu
pip install intel-extension-for-pytorch==2.8.10+xpu --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/
pip install oneccl_bind_pt==2.8.0+xpu --index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/- 检查torch安装
(xinference) root@b60:~# python
Python 3.10.19 (main, Oct 21 2025, 16:43:05) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> print(torch.version.xpu)
20250101
>>> print(torch.xpu.is_available())
True
>>> print(torch.xpu.get_device_name(0))
Intel(R) Graphics [0xe211
>>>- 确认安装完成后,安装xinference的相关依赖
pip install xinference启动项目
xinference-local --host 0.0.0.0 --port 9997
直接调用接口是可以对话的
Reproduction / 复现过程
当你启动一个模型后,你选择点击对话,会显示如下报错
2025-11-27 15:16:57,084 xinference.api.restful_api 3749066 ERROR BlockContext.__init__() got an unexpected keyword argument 'css'
Traceback (most recent call last):
File "/root/anaconda3/envs/xinference/lib/python3.10/site-packages/xinference/api/restful_api.py", line 1410, in build_gradio_interface
).build()
File "/root/anaconda3/envs/xinference/lib/python3.10/site-packages/xinference/ui/gradio/chat_interface.py", line 72, in build
interface = self.build_chat_interface()
File "/root/anaconda3/envs/xinference/lib/python3.10/site-packages/xinference/ui/gradio/chat_interface.py", line 209, in build_chat_interface
with gr.Blocks(
File "/root/anaconda3/envs/xinference/lib/python3.10/site-packages/gradio/blocks.py", line 1071, in __init__
super().__init__(render=False, **kwargs)
TypeError: BlockContext.__init__() got an unexpected keyword argument 'css'Expected behavior / 期待表现
- 期待您能复现我的情况我认为您的复现主要是以下几步,启动模型并直接点击对话选项进行对话即可复现
conda create -n xinference python=3.10 -y
conda activate xinference
pip install xinference
xinference-local --host 0.0.0.0 --port 9997- 您能更改一下相关接口调用解决这个bug
Metadata
Metadata
Assignees
Labels
No labels