QAnything
QAnything copied to clipboard
ERROR: The Compose file './docker-compose-linux.yaml' is invalid because: services.qanything_local.deploy.resources.reservations value Additional properties are not allowed ('devices' was unexpected)[BUG] <title>
是否已有关于该错误的issue或讨论? | Is there an existing issue / discussion for this?
- [X] 我已经搜索过已有的issues和讨论 | I have searched the existing issues / discussions
该问题是否在FAQ中有解答? | Is there an existing answer for this in FAQ?
- [X] 我已经搜索过FAQ | I have searched FAQ
当前行为 | Current Behavior
ERROR: The Compose file './docker-compose-linux.yaml' is invalid because: services.qanything_local.deploy.resources.reservations value Additional properties are not allowed ('devices' was unexpected)[BUG] 请问需要在哪里配置显卡编号,怎么操作
期望行为 | Expected Behavior
No response
运行环境 | Environment
- OS:
- NVIDIA Driver:
- CUDA:
- Docker Compose:
- NVIDIA GPU Memory:
QAnything日志 | QAnything logs
No response
复现方法 | Steps To Reproduce
No response
备注 | Anything else?
No response
应该是docker-compose版本的问题
应该是docker-compose版本的问题
需要什么版本才可以
修改run.sh里面 docker-compose 为 docker compose 试试呢
修改文件名:docker-compose-linux.yaml --> docker-compose.yaml
The latest v2.24.3 docker-compose works for me.
同问,改了也不行,run.sh报错The Compose file './docker-compose-linux.yaml' is invalid because: services.qanything_local.deploy.resources.reservations value Additional properties are not allowed ('devices' was unexpected)
(venv) lll@GIH-D-20833:~/ai_dir/QAnything$ ./run.sh 来自 https://gitee.com/netease-youdao/QAnything
- branch master -> FETCH_HEAD 当前master分支已是最新,无需更新。 model_size=7B GPUID1=0, GPUID2=0, device_id=0 ./run.sh: 行 150: nvidia-smi:未找到命令 GPU1 Model: Compute Capability: null OCR_USE_GPU=False because null >= 7.5 ./run.sh: 行 180: nvidia-smi:未找到命令
修改run.sh里面 docker-compose 为 docker compose 试试呢
谢谢 改了之后好了 请问这是什么原因呢?
我是在Docker Desktop中勾选了这个👇解决了:
我也出现了这个问题 改完文件名会发现:unknown docker command: "compose compose-linux.yaml" 然后还是跑不了
Guys, if anyone stuck on this. There is a chance that docker-compose version is too old. try pip install --upgrade docker-compose, or update it I had been stuck at this problem for hours. hope this helps