如何使用其他大语言模型(v3.0分支测试中)
	
	
		
	
	
		ChatGLM
	
- 安装依赖 
pip install -r request_llm/requirements_chatglm.txt 
- 修改配置,在config.py中将LLM_MODEL的值改为"chatglm"
 
LLM_MODEL = "chatglm"
`python main.py`
	
		
	
	
		Text-Generation-UI (TGUI)
	
	
		
	
	
		1. 部署TGUI
	
git clone https://github.com/oobabooga/text-generation-webui.git
git reset --hard fcda3f87767e642d1c0411776e549e1d3894843d
cd text-generation-webui
pip install accelerate bitsandbytes flexgen gradio llamacpp markdown numpy peft requests rwkv safetensors sentencepiece tqdm datasets git+https://github.com/huggingface/transformers
python download-model.py facebook/galactica-1.3b
python server.py --cpu --listen --listen-port 7865 --model facebook_galactica-1.3b
	
		
	
	
		2. 修改config.py
	
LLM_MODEL = "tgui:galactica-1.3b@localhost:7860"
	
		
	
	
		3. 运行!
	
cd chatgpt-academic
python main.py