https://github.com/yeyupiaoling/chinese-llm-chat
大语言模型微调的项目,包含了使用QLora微调ChatGLM和LLama
https://github.com/yeyupiaoling/chinese-llm-chat
alpaca chatglm-6b chatgpt llama vicuna
Last synced: 5 months ago
JSON representation
大语言模型微调的项目,包含了使用QLora微调ChatGLM和LLama
- Host: GitHub
- URL: https://github.com/yeyupiaoling/chinese-llm-chat
- Owner: yeyupiaoling
- License: apache-2.0
- Created: 2023-05-10T15:14:42.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-06-26T06:49:52.000Z (over 2 years ago)
- Last Synced: 2025-04-30T03:02:37.352Z (6 months ago)
- Topics: alpaca, chatglm-6b, chatgpt, llama, vicuna
- Language: Python
- Homepage:
- Size: 131 KB
- Stars: 27
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Chinese-LLM-Chat
大语言模型微调的项目,为了能够在消费显卡上面使用项目,全部使用的都是QLora技术。
# 目录结构
- `Guanaco`:使用QLora微调LLama模型。
- `ChatGLM`:使用QLora微调ChatGLM-6B模型。
- `LangChina`:使用langchain实现本地知识库聊天。## 安装环境
要使用这些项目之前要先按照以下方式安装环境。
- 首先安装的是Pytorch的GPU版本,如果已经安装过了,请跳过。
```shell
conda install pytorch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 pytorch-cuda=11.6 -c pytorch -c nvidia
```- 安装所需的依赖库。
```shell
python -m pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
```# 参考资料
1. https://github.com/Facico/Chinese-Vicuna
2. https://github.com/yuanzhoulvpi2017/zero_nlp
3. https://github.com/imClumsyPanda/langchain-ChatGLM
4. https://github.com/tatsu-lab/stanford_alpaca