i4never commited on
Commit
2df5ed7
1 Parent(s): 2ec4f4e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +75 -12
README.md CHANGED
@@ -4,25 +4,88 @@ language:
4
  - zh
5
  - en
6
  ---
7
- <div style="width: 100%;">
8
- <img src="http://x-pai.algolet.com/bot/img/logo_core.png" alt="TigerBot" style="width: 20%; display: block; margin: auto;">
9
- </div>
10
  <p align="center">
11
  <font face="黑体" size=5"> A cutting-edge foundation for your very own LLM. </font>
12
  </p>
13
  <p align="center">
14
- 🌐 <a href="https://tigerbot.com/" target="_blank">TigerBot</a> • 🤗 <a href="https://huggingface.co/TigerResearch" target="_blank">Hugging Face</a>
15
  </p>
16
 
17
- ## Github
18
- https://github.com/TigerResearch/TigerBot
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
- ## Usage
21
 
22
- ```python
23
- from transformers import AutoTokenizer, AutoModelForCausalLM
 
 
 
24
 
25
- tokenizer = AutoTokenizer.from_pretrained("TigerResearch/tigerbot-13b-base")
26
 
27
- model = AutoModelForCausalLM.from_pretrained("TigerResearch/tigerbot-13b-base")
28
- ```
 
 
4
  - zh
5
  - en
6
  ---
7
+
 
 
8
  <p align="center">
9
  <font face="黑体" size=5"> A cutting-edge foundation for your very own LLM. </font>
10
  </p>
11
  <p align="center">
12
+ 💻<a href="https://github.com/TigerResearch/TigerBot" target="_blank">Github</a> • 🌐 <a href="https://tigerbot.com/" target="_blank">TigerBot</a> • 🤗 <a href="https://huggingface.co/TigerResearch" target="_blank">Hugging Face</a>
13
  </p>
14
 
15
+ # 快速开始
16
+
17
+ - 方法1,通过transformers使用
18
+
19
+ - 下载 TigerBot Repo
20
+
21
+ ```shell
22
+ git clone https://github.com/TigerResearch/TigerBot.git
23
+ ```
24
+
25
+ - 启动infer代码
26
+
27
+ ```shell
28
+ python infer.py --model_path TigerResearch/tigerbot-13b-base
29
+ ```
30
+
31
+ - 方法2:
32
+
33
+ - 下载 TigerBot Repo
34
+
35
+ ```shell
36
+ git clone https://github.com/TigerResearch/TigerBot.git
37
+ ```
38
+
39
+ - 安装git lfs: `git lfs install`
40
+
41
+ - 通过huggingface或modelscope平台下载权重
42
+ ```shell
43
+ git clone https://huggingface.co/TigerResearch/tigerbot-13b-base
44
+ git clone https://www.modelscope.cn/TigerResearch/tigerbot-13b-base-v2.git
45
+ ```
46
+
47
+ - 启动infer代码
48
+
49
+ ```shell
50
+ python infer.py --model_path tigerbot-13b-base(-v2) --model_type base --max_generate_length 64
51
+ ```
52
+
53
+ ------
54
+
55
+ # Quick Start
56
+
57
+ - Method 1, use through transformers
58
+
59
+ - Clone TigerBot Repo
60
+
61
+ ```shell
62
+ git clone https://github.com/TigerResearch/TigerBot.git
63
+ ```
64
+
65
+ - Run infer script
66
+
67
+ ```shell
68
+ python infer.py --model_path TigerResearch/tigerbot-13b-base
69
+ ```
70
+
71
+ - Method 2:
72
+
73
+ - Clone TigerBot Repo
74
+
75
+ ```shell
76
+ git clone https://github.com/TigerResearch/TigerBot.git
77
+ ```
78
 
79
+ - install git lfs: `git lfs install`
80
 
81
+ - Download weights from huggingface or modelscope
82
+ ```shell
83
+ git clone https://huggingface.co/TigerResearch/tigerbot-13b-base
84
+ git clone https://www.modelscope.cn/TigerResearch/tigerbot-13b-base-v2.git
85
+ ```
86
 
87
+ - Run infer script
88
 
89
+ ```shell
90
+ python infer.py --model_path tigerbot-13b-base(-v2) --model_type base --max_generate_length 64
91
+ ```