mirror of https://github.com/THUDM/ChatGLM2-6B
				
				
				
			Update README
							parent
							
								
									9d50b01310
								
							
						
					
					
						commit
						6c6a93d0c6
					
				
							
								
								
									
										17
									
								
								README.md
								
								
								
								
							
							
						
						
									
										17
									
								
								README.md
								
								
								
								
							|  | @ -194,6 +194,11 @@ GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/THUDM/chatglm2-6b | |||
| 模型的实现仍然处在变动中。如果希望固定使用的模型实现以保证兼容性,可以在 `from_pretrained` 的调用中增加 `revision="v1.0"` 参数。`v1.0` 是当前最新的版本号,完整的版本列表参见 [Change Log](https://huggingface.co/THUDM/chatglm2-6b#change-log)。 | ||||
| 
 | ||||
| ### 网页版 Demo | ||||
|  | ||||
| 可以通过以下命令启动基于 Gradio 的网页版 demo: | ||||
| ```shell | ||||
| python web_demo.py | ||||
| ``` | ||||
| 
 | ||||
|  | ||||
| 
 | ||||
|  | @ -202,17 +207,7 @@ GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/THUDM/chatglm2-6b | |||
| streamlit run web_demo2.py | ||||
| ``` | ||||
| 
 | ||||
| 程序会运行一个 Web Server,并输出地址。在浏览器中打开输出的地址即可使用。 | ||||
| 
 | ||||
| 
 | ||||
| [web_demo.py](./web_demo.py) 中提供了旧版基于 Gradio 的 web demo,可以通过如下命令运行: | ||||
| ```shell | ||||
| python web_demo.py | ||||
| ``` | ||||
| 运行效果如下: | ||||
|  | ||||
| 
 | ||||
| 经测试,如果输入的 prompt 较长的话,使用基于 Streamlit 的网页版 Demo 会更流畅。 | ||||
| 网页版 demo 会运行一个 Web Server,并输出地址。在浏览器中打开输出的地址即可使用。 经测试,基于 Streamlit 的网页版 Demo 会更流畅。 | ||||
| 
 | ||||
| ### 命令行 Demo | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 duzx16
						duzx16