【作业贴】2025-01-21,17-Chinese LLaMA Alpaca系列模型OpenAI API调用实现 #66

Open
opened 2025-02-12 11:20:03 +08:00 by xiaodunh · 0 comments

具体实现步骤及结果:
1、下载开源项目
cd ~/ && wget https://file.huishiwei.top/Chinese-LLaMA-Alpaca-3-3.0.tar.gz
tar -xvf Chinese-LLaMA-Alpaca-3-3.0.tar.gz
2、下载依赖库
pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple
image
3、下载大模型
image
4、启动项目
python openai_api_server.py --gpus 0 --base_model /root/.cache/modelscope/hub/ChineseAlpacaGroup/llama-3-chinese-8b-instruct-v3
image
5、开启远程隧道
image
6、客户端配置
image
7、客户端访问
image
8、修改源码BUG
image
9、验证修改后的效果:
image

具体实现步骤及结果: 1、下载开源项目 cd ~/ && wget https://file.huishiwei.top/Chinese-LLaMA-Alpaca-3-3.0.tar.gz tar -xvf Chinese-LLaMA-Alpaca-3-3.0.tar.gz 2、下载依赖库 pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple ![image](/attachments/a3d94d35-bdf9-485e-87d7-e1a335e35440) 3、下载大模型 ![image](/attachments/d969e9a6-64dd-4f8d-8fa5-413ef5a0b1d8) 4、启动项目 python openai_api_server.py --gpus 0 --base_model /root/.cache/modelscope/hub/ChineseAlpacaGroup/llama-3-chinese-8b-instruct-v3 ![image](/attachments/fdf4fc38-c0be-4ab8-a290-9975a0ab7d89) 5、开启远程隧道 ![image](/attachments/64c3d3ba-7981-473d-994e-78fa89d725a1) 6、客户端配置 ![image](/attachments/ec01c120-f3aa-41a2-a526-042668dcca75) 7、客户端访问 ![image](/attachments/e155b946-fb98-413c-aebf-30df94baf642) 8、修改源码BUG ![image](/attachments/d60e4010-1cb2-42b4-9805-b16f7328c0b3) 9、验证修改后的效果: ![image](/attachments/19c8aa2f-7181-4c57-989f-1143fd8accc9)
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: HswOAuth/llm_share#66
No description provided.