i4never commited on
Commit
6b804ee
1 Parent(s): 3008314

Update README.md

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