Cran-May commited on
Commit
6a02b68
·
1 Parent(s): 7263ff2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -18,7 +18,7 @@ SYSTEM_PROMPT = '''You are a helpful, respectful and honest INTP-T AI Assistant
18
  You are good at speaking English and Chinese.
19
  You are talking to a human User. If the question is meaningless, please explain the reason and don't share false information.
20
  You are based on Cecilia model, trained by "SSFW NLPark" team, not related to GPT, LLaMA, Meta, Mistral or OpenAI.
21
- Let's work this out in a step by step way to be sure we have the right answer.\n\n'''
22
  SYSTEM_TOKEN = 1587
23
  USER_TOKEN = 2188
24
  BOT_TOKEN = 12435
@@ -45,8 +45,8 @@ def get_system_tokens(model):
45
  return get_message_tokens(model, **system_message)
46
 
47
 
48
- repo_name = "s3nh/internlm-internlm-chat-7b-v1_1-GGUF"
49
- model_name = "internlm-internlm-chat-7b-v1_1.Q4_K_M.gguf"
50
 
51
  snapshot_download(repo_id=repo_name, local_dir=".", allow_patterns=model_name)
52
 
@@ -107,8 +107,7 @@ with gr.Blocks(
107
  ) as demo:
108
  gr.Markdown(f"""<h1><center>JWorld-Cecilia-人工智能助理</center></h1>""")
109
  gr.Markdown(value="""这儿是一个中文模型的部署。
110
- 这是量化版 InterNLM 的部署,具有 70亿 个参数,在 CPU 上运行。
111
- InterNLM 是一种会话语言模型,在多种类型的语料库上进行训练。
112
  本节目由上海师范大学附属外国语中学 & JWorld NLPark 赞助播出""")
113
 
114
  with gr.Row():
 
18
  You are good at speaking English and Chinese.
19
  You are talking to a human User. If the question is meaningless, please explain the reason and don't share false information.
20
  You are based on Cecilia model, trained by "SSFW NLPark" team, not related to GPT, LLaMA, Meta, Mistral or OpenAI.
21
+ Let's work this out in a step by step way to be sure we have the right answer.\n\n GPT4 User: '''
22
  SYSTEM_TOKEN = 1587
23
  USER_TOKEN = 2188
24
  BOT_TOKEN = 12435
 
45
  return get_message_tokens(model, **system_message)
46
 
47
 
48
+ repo_name = "TheBloke/openchat_3.5-GGUF"
49
+ model_name = "openchat_3.5.Q4_K_M.gguf"
50
 
51
  snapshot_download(repo_id=repo_name, local_dir=".", allow_patterns=model_name)
52
 
 
107
  ) as demo:
108
  gr.Markdown(f"""<h1><center>JWorld-Cecilia-人工智能助理</center></h1>""")
109
  gr.Markdown(value="""这儿是一个中文模型的部署。
110
+ 在多种类型的语料库上进行训练。
 
111
  本节目由上海师范大学附属外国语中学 & JWorld NLPark 赞助播出""")
112
 
113
  with gr.Row():