File size: 1,918 Bytes
c0cf63b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# 如何使用其他大语言模型

## ChatGLM

- 安装依赖 `pip install -r request_llm/requirements_chatglm.txt`
- 修改配置,在config.py中将LLM_MODEL的值改为"chatglm"

``` sh
LLM_MODEL = "chatglm"
```
- 运行!
``` sh
`python main.py`
``` 

## Claude-Stack

- 请参考此教程获取  https://zhuanlan.zhihu.com/p/627485689
    - 1、SLACK_CLAUDE_BOT_ID 
    - 2、SLACK_CLAUDE_USER_TOKEN

- 把token加入config.py

## Newbing

- 使用cookie editor获取cookie(json)
- 把cookie(json)加入config.py (NEWBING_COOKIES)

## Moss
- 使用docker-compose

## RWKV
- 使用docker-compose

## LLAMA
- 使用docker-compose

## 盘古
- 使用docker-compose


---
## Text-Generation-UI (TGUI,调试中,暂不可用)

### 1. 部署TGUI
``` sh
# 1 下载模型
git clone https://github.com/oobabooga/text-generation-webui.git
# 2 这个仓库的最新代码有问题,回滚到几周之前
git reset --hard fcda3f87767e642d1c0411776e549e1d3894843d
# 3 切换路径
cd text-generation-webui
# 4 安装text-generation的额外依赖
pip install accelerate bitsandbytes flexgen gradio llamacpp markdown numpy peft requests rwkv safetensors sentencepiece tqdm datasets git+https://github.com/huggingface/transformers
# 5 下载模型
python download-model.py facebook/galactica-1.3b
# 其他可选如 facebook/opt-1.3b
#           facebook/galactica-1.3b
#           facebook/galactica-6.7b
#           facebook/galactica-120b
#           facebook/pygmalion-1.3b 等
# 详情见 https://github.com/oobabooga/text-generation-webui

# 6 启动text-generation
python server.py --cpu --listen --listen-port 7865 --model facebook_galactica-1.3b
```

### 2. 修改config.py

``` sh
# LLM_MODEL格式:   tgui:[模型]@[ws地址]:[ws端口] ,   端口要和上面给定的端口一致
LLM_MODEL = "tgui:galactica-1.3b@localhost:7860"
```

### 3. 运行!
``` sh
cd chatgpt-academic
python main.py
```