搭建自己的GPT之vicuna
Vicuna是基于Meta的LLaMa开发的chatbot。模型参数点此,模型框架点此。
下载模型
- mkdir -p ~/model && cd ~/model
- wget https://huggingface.co/eachadea/ggml-vicuna-13b-1.1/resolve/main/ggml-vicuna-13b-1.1-q4\_3.bin
基于conda
- conda create -n llama -c conda-forge python=3.8
- conda activate llama
- pip install llama-cpp-python[server] -i https://pypi.tuna.tsinghua.edu.cn/simple
- export MODEL=./ggml-vicuna-13b-1.1-q4_3.bin
- export PORT=1234
- export HOST=0.0.0.0
- python -m llama_cpp.server
构建Docker镜像
1 |
|
- mkdir -p ~/app/llama && cd ~/app/llama && nano Dockerfile && nano docker-compose.yml
- docker build -t limour/llama .
- docker run –rm -it limour/llama /bin/bash
部署Docker镜像
1 |
|
- nano docker-compose.yml
- sudo docker-compose up -d
- sudo docker-compose logs
查看文档
搭建自己的GPT之vicuna
https://occdn.limour.top/2710.html