netease-youdao / QAnything

Question and Answer based on Anything.
https://qanything.ai
GNU Affero General Public License v3.0
11.52k stars 1.12k forks source link

bash run.sh报错:qanything-container-local | /bin/bash: line 1: /workspace/qanything_local/scripts/run_for_local_option.sh: No such file or directory #204

Open xixia03 opened 6 months ago

xixia03 commented 6 months ago

启动过程中打印的信息如下: (base) root@cg:/home/jovyan/work/QAnything/QAnything# bash run.sh From https://github.com/netease-youdao/QAnything

查看容器确实没有这个文件: image

各位大佬们,请问下可能是哪里出的问题 image

xixia03 commented 6 months ago

看到有个issue中是因为Windows下换行符导致的报错,但这个是在ubantu环境跑的,报错提示信息中也没有换行符相关的报错

gggdroa commented 5 months ago

看到有个issue中是因为Windows下换行符导致的报错,但这个是在ubantu环境跑的,报错提示信息中也没有换行符相关的报错

是在容器里这个路径:/workspace/qanything_local/scripts/下 ,或者你重新部一下

Warit314 commented 5 months ago

`qanything_local: container_name: qanything-container-local image: freeren/qanything:v1.2.2

runtime: nvidia

deploy:
  resources:
    reservations:
      devices:
        - driver: nvidia
          count: "all"
          capabilities: ["gpu"]

command: /bin/bash -c 'if [ "${LLM_API}" = "local" ]; then /workspace/qanything_local/scripts/run_for_local_option.sh -c $LLM_API -i $DEVICE_ID -b $RUNTIME_BACKEND -m $MODEL_NAME -t $CONV_TEMPLATE -p >

privileged: true
shm_size: '8gb'
volumes:
  - ${DOCKER_VOLUME_DIRECTORY:-.}/assets/custom_models:/model_repos/CustomLLM
  - ${DOCKER_VOLUME_DIRECTORY:-.}/:/workspace/qanything_local/
ports:
  - "8777:8777"
environment:
  - NCCL_LAUNCH_MODE=PARALLEL
  - GPUID1=${GPUID1:-0}
  - GPUID2=${GPUID2:-0}
  - MODEL_SIZE=${MODEL_SIZE:-0B}
  - USER_IP=${USER_IP:-localhost}
depends_on:
  - "standalone"
  - "mysql"
  - "elasticsearch"
tty: true
stdin_open: true

` i dont found any wrong space in the docker compose file though.