【求助贴】llm接口高可用工程实践 安装oneapi 的时候报错 (autodl 平台上 使用无卡模式), #11248284577cs #203
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: HswOAuth/llm_course#203
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
(base) root@autodl-container-9b614dbe9b-c056e2f0:/home# cd ~/oneapi-compose
(base) root@autodl-container-9b614dbe9b-c056e2f0:~/oneapi-compose# docker compose up -d
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
2.无卡模式下,启动不了
(chinese_llama_alpaca_3) root@autodl-container-9b614dbe9b-c056e2f0:~/Chinese-LLaMA-Alpaca-3-3.0/scripts/oai_api_demo# python openai_api_server.py --only_cpu --port 19328 --base_model /root/autodl-fs/models/ChineseAlpacaGroup/llama-3-chinese-8b-instruct-v3
GPU 模式可以启动 但是CPU启动不了。是一位内内存不够吗
此实验最好在本机上下载GitBash,在GitBash上进行操作。
CPU启动不了可能是此任务对CPU的内存超过的这个配置。
从截图上看,安装oneapi报错的原因应该是没有修改docker-compose.yaml这个文件。
安装oneapi时需要先创建docker-compose.yaml这个文件(使用mkdir -p ~/oneapi-compose来创建文档)
然后cd ~/oneapi-compose
再输入touch docker-compose.yaml对该文档进行文本编辑
将以下代码粘贴到docker-compose.yaml这个文件中:
version: '3.8'
services:
oneapi:
image: m.daocloud.io/ghcr.io/songquanpeng/one-api:v0.6.7
container_name: oneapi
restart: always
ports:
networks:
environment:
volumes:
networks:
oneapi_llm_course:
将代码复制到文档中后,最后再使用docker compose up -d启动容器。