From 798fe529eb9d2c3a20beb3de5afeeea9fa53229a Mon Sep 17 00:00:00 2001 From: p38654902 Date: Thu, 31 Oct 2024 18:26:37 +0800 Subject: [PATCH] ADD file via upload --- My_project/推理说明.txt | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 My_project/推理说明.txt diff --git a/My_project/推理说明.txt b/My_project/推理说明.txt new file mode 100644 index 0000000..a05ae5d --- /dev/null +++ b/My_project/推理说明.txt @@ -0,0 +1,30 @@ +构建端口为7860的容器,设置端口和name +docker run -p 7860:7860 \ + --name new_9g_finetuning \ + --env PATH=/usr/local/corex-4.0.0/bin:/usr/local/corex-4.0.0/lib64/python3/dist-packages/bin:/usr/local/openmpi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \ + --env DEBIAN_FRONTEND=noninteractive \ + --env COREX_VERSION=4.0.0 \ + --env LD_LIBRARY_PATH=/usr/local/corex-4.0.0/lib64:/usr/local/openmpi/lib:/usr/local/lib: \ + --env LANG=en_US.utf8 \ + --env LC_ALL=en_US.utf8 \ + --env PYTHONPATH=/usr/local/corex-4.0.0/lib64/python3/dist-packages \ + --env RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static \ + --env RUSTUP_UPDATE_ROOT=https://mirrors.ustc.edu.cn/rust-static/rustup \ + -v /data:/workspace \ + --cap-add ALL \ + --cgroupns host \ + --pid host \ + --privileged \ + --security-opt label=disable \ + 9g_finetuning/lora:v3 \ + sleep infinity + +安装相关依赖 +pip install gradio_client + +可能报错,解决方法 +pip install importlib-metadata==4.13.0 +pip install --upgrade pip setuptools wheel + + +