build: 添加 Dockerfile 并更新 README 文档
添加 Dockerfile 用于构建 MUSA 架构的镜像,并更新 README 文档说明构建方法
This commit is contained in:
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
FROM mthreads/musa:rc4.3.0-devel-ubuntu22.04-amd64 as builder
|
||||||
|
ADD . /src
|
||||||
|
WORKDIR /src
|
||||||
|
RUN cmake -B build \
|
||||||
|
-DGGML_MUSA=ON -DLLAMA_OPENSSL=OFF -DGGML_SCHED_NO_REALLOC=ON -DMUSA_ARCHITECTURES=${MUSA_ARCH:-22} \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release &&\
|
||||||
|
cmake --build build -j
|
||||||
|
|
||||||
|
FROM mthreads/musa:rc4.3.0-runtime-ubuntu22.04-amd64
|
||||||
|
COPY --from=builder /src/build/bin /app
|
||||||
|
WORKDIR /app
|
||||||
|
ENTRYPOINT [ "/app/llama-cli" ]
|
||||||
10
README.md
10
README.md
@@ -1,6 +1,14 @@
|
|||||||
# llama.cpp
|
# llama.cpp
|
||||||
|
|
||||||
> Sync from upstream `llama.cpp` repository
|
> Sync with upstream `ggml-org/llama.cpp` tag `b7751`
|
||||||
|
|
||||||
|
Last version: git.modelhub.org.cn:9443/enginex-mthreads/mthreads-llama.cpp:b7751
|
||||||
|
|
||||||
|
## Build Docker Image
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker build -t enginex-mthreads/mthreads-llama.cpp:b7751 .
|
||||||
|
```
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user