title: 搭建自己的GPT之vicuna tags: [] id: '2710' categories:
Vicuna是基于Meta的LLaMa开发的chatbot。模型参数点此,模型框架点此。
FROM continuumio/miniconda3:latest
RUN /bin/bash -c "\
conda create -n llama -c conda-forge python=3.8 -y\
&& conda install -n llama compilers make -c conda-forge -y\
&& conda run -n llama pip install llama-cpp-python[server] -i https://pypi.tuna.tsinghua.edu.cn/simple"
ENV MODEL=/llama/model.bin
ENV HOST=0.0.0.0
ENV PORT=1234
CMD ["/opt/conda/envs/llama/bin/python3.8", "-m", "llama_cpp.server"]
version: '3.3'
services:
llama:
ports:
- '1234:1234'
restart: always
volumes:
- '/home/gene/upload/zl_liu/vicuna/ggml-vicuna-13b-1.1-q4_3.bin:/llama/model.bin'
image: limour/llama
command: ["/opt/conda/envs/llama/bin/python3.8", "-m", "llama_cpp.server"]