From cbddff5066176fb00692e56a56756ece40c119f1 Mon Sep 17 00:00:00 2001 From: Carol-gutianle <2311601671@qq.com> Date: Fri, 28 Jul 2023 19:12:52 +0800 Subject: [PATCH 1/2] fix: local paths --- README.md | 14 +- README_EN.md | 1 + examples/alpaca/train.py | 9 +- examples/finetune_chatglm2_for_summary.py | 2 +- examples/finetune_chatglm_for_translation.py | 9 +- examples/finetune_llama_for_classification.py | 24 +-- examples/finetune_llama_for_summary.py | 5 +- examples/finetune_llama_for_translation.py | 11 +- examples/finetune_moss_for_training.py | 10 +- .../further_pretrain_llama/expand_vocab.py | 9 +- .../3d_parallelism.py | 10 +- examples/peft/finetune_llama_ptuning.py | 150 ++++++++++++++++++ examples/server.py | 10 +- 13 files changed, 191 insertions(+), 73 deletions(-) create mode 100644 examples/peft/finetune_llama_ptuning.py diff --git a/README.md b/README.md index e35d1105..577ed7b0 100644 --- a/README.md +++ b/README.md @@ -113,9 +113,21 @@ CoLLiE 基于 *DeepSpeed* 和 *PyTorch*,为大型语言模型提供协作式 注:在使用Adam优化器的情况下,各个模型需要的最少的GPU(A100)数量 ## 安装 +在安装前,你需要确保: +* PyTorch >= 1.13 +* CUDA >= 11.6 +* Linux OS +### PyPI安装 +你可以简单地通过PyPI安装,命令如下: ```bash -pip install git+https://github.com/OpenLMLab/collie.git +pip install collie-lm ``` +### 源码安装 +```bash +git clone https://github.com/OpenLMLab/collie +python setup.py install +``` + ## Docker安装 ## 使用 diff --git a/README_EN.md b/README_EN.md index 3f3a3f7f..57d15ff6 100644 --- a/README_EN.md +++ b/README_EN.md @@ -19,6 +19,7 @@ CoLLiE (Collaborative Tuning of Large Language Models in an Efficient Way) is a ## Latest News +* [2023/07/18] Release python package collie-lm(1.0.2). You can find more detials in this [link](https://pypi.org/project/collie-lm/#history). ## Table of Contents