From 36a77d3318d4b8e185461a5ba34471e3395b235a Mon Sep 17 00:00:00 2001 From: xiezhongtao Date: Fri, 23 Jan 2026 16:47:14 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=B7=BB=E5=8A=A0=E5=AE=B9=E5=99=A8?= =?UTF-8?q?=E8=BF=90=E8=A1=8C=E8=AF=B4=E6=98=8E=E5=8F=8A=E6=B3=A8=E6=84=8F?= =?UTF-8?q?=E4=BA=8B=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加运行容器的命令示例,并强调必须使用 `--no-mmap` 参数以避免错误 --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c51168e..814991c 100644 --- a/README.md +++ b/README.md @@ -8,4 +8,15 @@ docker build -t enginex-iluvatar/iluvatar-llama.cpp:b7516-bi150 . ``` -最新镜像:git.modelhub.org.cn:9443/enginex-iluvatar/iluvatar-llama.cpp:b7516-bi150 \ No newline at end of file +最新镜像:git.modelhub.org.cn:9443/enginex-iluvatar/iluvatar-llama.cpp:b7516-bi150 + +运行容器 +**注意**:必须使用 `--no-mmap` 参数关闭内存映射,否则会报错 +```bash +docker run -it --rm \ +-v :/app/models \ +--privileged \ +-e CUDA_VISIBLE_DEVICES=0 \ +git.modelhub.org.cn:9443/enginex-iluvatar/iluvatar-llama.cpp:b7516-bi150 +/app/llama-cli -m /app/models/xxx.gguf --no-mmap -p "你好" +``` \ No newline at end of file