QAnything icon indicating copy to clipboard operation
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>

Open b420478805 opened this issue 1 year ago • 10 comments

是否已有关于该错误的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

b420478805 avatar Jan 24 '24 04:01 b420478805

应该是docker-compose版本的问题

ljhssga avatar Jan 24 '24 07:01 ljhssga

应该是docker-compose版本的问题

需要什么版本才可以

b420478805 avatar Jan 24 '24 07:01 b420478805

修改run.sh里面 docker-compose 为 docker compose 试试呢

jinghao2eebd avatar Jan 25 '24 02:01 jinghao2eebd

修改文件名:docker-compose-linux.yaml --> docker-compose.yaml

writebar avatar Jan 26 '24 05:01 writebar

The latest v2.24.3 docker-compose works for me.

lvzhiqiang avatar Jan 26 '24 14:01 lvzhiqiang

POPO20240221-175415 同问,改了也不行,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:未找到命令

android-A-studio avatar Feb 21 '24 09:02 android-A-studio

修改run.sh里面 docker-compose 为 docker compose 试试呢

谢谢 改了之后好了 请问这是什么原因呢?

woshituobaye avatar Mar 05 '24 06:03 woshituobaye

我是在Docker Desktop中勾选了这个👇解决了: 图片

62bit avatar Mar 21 '24 08:03 62bit

我也出现了这个问题 改完文件名会发现:unknown docker command: "compose compose-linux.yaml" 然后还是跑不了

KeldonWu avatar Apr 01 '24 03:04 KeldonWu

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

Warit314 avatar Apr 17 '24 09:04 Warit314