Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

配置deep-seek模型时出错 #48

Open
Ray-Huang-9730 opened this issue Nov 16, 2024 · 0 comments
Open

配置deep-seek模型时出错 #48

Ray-Huang-9730 opened this issue Nov 16, 2024 · 0 comments

Comments

@Ray-Huang-9730
Copy link

自动配置deep-seek模型,显示配置成功,但不可用。

终端显示的信息如下:
请输入您的API密钥: sk-xxxxxxxxxxxxxxxx
正在使用硅基流动部署deepseek_chat模型...
Command Line Arguments:

command : deploy
ray_address : auto
num_workers : 1
worker_concurrency : 1000
gpus_per_worker : 0.0
cpus_per_worker : 0.001
model_path :
pretrained_model_type: saas/openai
model : deepseek_chat
infer_backend :
infer_params : {'saas.base_url': 'https://api.siliconflow.cn/v1', 'saas.api_key': '******', 'saas.model': 'deepseek-ai/deepseek-v2-chat'}
file : None

✓ Ray is already running
wsl: 检测到 localhost 代理配置,但未镜像到 WSL。NAT 模式下的 WSL 不支持 localhost 代理 。
<3>WSL (10) ERROR: CreateProcessParseCommon:711: Failed to translate D:\temp\projects\auto-coder
<3>WSL (10) ERROR: CreateProcessParseCommon:757: getpwuid(0) failed 2
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\xxxxx\anaconda3\envs\auto-coder
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\xxxxx\anaconda3\envs\auto-coder\Library\mingw-w64\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\xxxxx\anaconda3\envs\auto-coder\Library\usr\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\xxxxx\anaconda3\envs\auto-coder\Library\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\xxxxx\anaconda3\envs\auto-coder\Scripts
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\xxxxx\anaconda3\envs\auto-coder\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\xxxxx\anaconda3\condabin
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\system32
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\System32\Wbem
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\System32\WindowsPowerShell\v1.0
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\System32\OpenSSH
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files\Docker\Docker\resources\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files\Git\cmd
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\xxxxx\anaconda3
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\xxxxx\anaconda3\Library\mingw-w64\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\xxxxx\anaconda3\Library\usr\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\xxxxx\anaconda3\Library\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\xxxxx\anaconda3\Scripts
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\xxxxx\AppData\Local\Microsoft\WindowsApps
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\xxxxx\AppData\Local\Programs\Microsoft VS Code\bin
Processing fstab with mount -a failed.
Failed to mount C:, see dmesg for more details.
Failed to mount D:, see dmesg for more details.

<3>WSL (10) ERROR: CreateProcessEntryCommon:334: getpwuid(0) failed 2
<3>WSL (10) ERROR: CreateProcessEntryCommon:505: execvpe /bin/bash failed 2
<3>WSL (10) ERROR: CreateProcessEntryCommon:508: Create process not expected to return
2024-11-16 12:34:19,996 INFO worker.py:1634 -- Connecting to existing Ray cluster at address: 127.0.0.1:6379...
2024-11-16 12:34:20,021 INFO worker.py:1810 -- Connected to Ray cluster. View the dashboard at 127.0.0.1:8265
Failed to look up actor with name 'deepseek_chat'. This could because 1. You are trying to look up a named actor you didn't create. 2. The named actor died. 3. You did not use a namespace matching the namespace of the actor.
Model deepseek_chat deployed successfully
✓ 部署完成。
正在验证部署...
Exception in thread Thread-12 (_readerthread):
Traceback (most recent call last):
File "C:\Users\xxxxx\anaconda3\envs\auto-coder\lib\threading.py", line 1016, in _bootstrap_inner
self.run()
File "C:\Users\xxxxx\anaconda3\envs\auto-coder\lib\threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\xxxxx\anaconda3\envs\auto-coder\lib\subprocess.py", line 1515, in _readerthread
buffer.append(fh.read())
File "C:\Users\xxxxx\anaconda3\envs\auto-coder\lib\codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 10: invalid start byte
✓ 验证成功。deepseek_chat模型现在可用。
✓ 初始化完成。

  ____ _           _          _         _               ____          _
/ ___| |__   __ _| |_       / \  _   _| |_ ___        / ___|___   __| | ___ _ __
| |   | '_ \ / _` | __|____ / _ \| | | | __/ _ \ _____| |   / _ \ / _` |/ _ \ '__|
| |___| | | | (_| | ||_____/ ___ \ |_| | || (_) |_____| |__| (_) | (_| |  __/ |
\____|_| |_|\__,_|\__|   /_/   \_\__,_|\__\___/       \____\___/ \__,_|\___|_|
                                                                    v0.1.193

Type /help to see available commands.

支持的命令:

命令 - 描述
/add_files ... - 将文件添加到当前会话
/remove_files , ... - 从当前会话中移除文件
/chat - 与AI聊天,获取关于当前活动文件的见解
/coding - 根据需求请求AI修改代码
/ask - 向AI提问或获取关于当前项目的见解,不修改代码
/summon - 召唤AI使用auto_tool代理执行复杂任务
/revert - 撤销上次代码聊天的提交
/conf : - 设置配置。使用 /conf project_type: 设置索引的项目类型
/index/query - 查询项目索引
/index/build - 触发构建项目索引
/list_files - 列出当前会话中的所有活动文件
/help - 显示此帮助消息
/exclude_dirs , ... - 添加要从项目中排除的目录
/shell - 执行shell命令
/voice_input - 将语音输入转换为文本
/mode - 切换输入模式
/lib - 管理库
/exit - 退出程序

[email protected]:~$ /chat 你好
llm_friendly_packages directory not found.
2024-11-16 12:35:01.246 | INFO | autocoder.auto_coder:load_include_files:69 - Loading include file: D:\temp\projects\auto-coder\actions\base\base.yml
2024-11-16 12:35:01.290 | WARNING | autocoder.auto_coder:main:261 - Detecting error when connecting to ray cluster: 'Namespace' object has no attribute 'doc_command', try to connect to ray cluster without storage support.
wsl: 检测到 localhost 代理配置,但未镜像到 WSL。NAT 模式下的 WSL 不支持 localhost 代理 。
<3>WSL (10) ERROR: CreateProcessParseCommon:711: Failed to translate D:\temp\projects\auto-coder
<3>WSL (10) ERROR: CreateProcessParseCommon:757: getpwuid(0) failed 2
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\xxxxx\anaconda3\envs\auto-coder
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\xxxxx\anaconda3\envs\auto-coder\Library\mingw-w64\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\xxxxx\anaconda3\envs\auto-coder\Library\usr\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\xxxxx\anaconda3\envs\auto-coder\Library\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\xxxxx\anaconda3\envs\auto-coder\Scripts
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\xxxxx\anaconda3\envs\auto-coder\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\xxxxx\anaconda3\condabin
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\system32
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\System32\Wbem
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\System32\WindowsPowerShell\v1.0
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\System32\OpenSSH
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files\Docker\Docker\resources\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files\Git\cmd
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\xxxxx\anaconda3
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\xxxxx\anaconda3\Library\mingw-w64\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\xxxxx\anaconda3\Library\usr\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\xxxxx\anaconda3\Library\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\xxxxx\anaconda3\Scripts
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\xxxxx\AppData\Local\Microsoft\WindowsApps
<3>WSL (10) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\xxxxx\AppData\Local\Programs\Microsoft VS Code\bin
Processing fstab with mount -a failed.
Failed to mount C:, see dmesg for more details.
Failed to mount D:, see dmesg for more details.

<3>WSL (10) ERROR: CreateProcessEntryCommon:334: getpwuid(0) failed 2
<3>WSL (10) ERROR: CreateProcessEntryCommon:505: execvpe /bin/bash failed 2
<3>WSL (10) ERROR: CreateProcessEntryCommon:508: Create process not expected to return
2024-11-16 12:35:04,413 INFO worker.py:1634 -- Connecting to existing Ray cluster at address: 127.0.0.1:6379...
2024-11-16 12:35:04,440 INFO worker.py:1810 -- Connected to Ray cluster. View the dashboard at 127.0.0.1:8265
An error occurred: ValueError - Failed to look up actor with name 'code_model'. This could because 1. You are trying to look up a named actor you didn't create. 2. The named actor died. 3. You did not use a namespace matching the namespace of the actor.
[email protected]:~$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant