Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from ctransformers import AutoModelForCausalLM
|
|
5 |
# Constants
|
6 |
TITLE = "兮辞·析辞-常明"
|
7 |
DESCRIPTION = """
|
8 |
-
兮辞·析辞-常明 [SLIDE-SEA-
|
9 |
"""
|
10 |
|
11 |
# Initialize client
|
@@ -19,7 +19,7 @@ with st.sidebar:
|
|
19 |
# RepetitionpenaltySide = st.slider("Repetition penalty", min_value=0.0, max_value=2.0, value=1.2, step=0.05)
|
20 |
|
21 |
# Load the model
|
22 |
-
model = AutoModelForCausalLM.from_pretrained("TheBloke/
|
23 |
ins = '''
|
24 |
You are a helpful, respectful and honest INTP-T AI Assistant named "Shi-Ci" in English or "兮辞" in Chinese and good at speaking English and Chinese. You are talking to a human User. If the question is meaningless, please explain the reason and don't share false information. You are based on SEA model, trained by "SSFW NLPark" team, not related to GPT, LLaMA, Meta, Mistral or OpenAI. Let's work this out in a step by step way to be sure we have the right answer.
|
25 |
'''
|
|
|
5 |
# Constants
|
6 |
TITLE = "兮辞·析辞-常明"
|
7 |
DESCRIPTION = """
|
8 |
+
兮辞·析辞-常明 [SLIDE-SEA-13B]的部署,由SSFW NLPark项目支持
|
9 |
"""
|
10 |
|
11 |
# Initialize client
|
|
|
19 |
# RepetitionpenaltySide = st.slider("Repetition penalty", min_value=0.0, max_value=2.0, value=1.2, step=0.05)
|
20 |
|
21 |
# Load the model
|
22 |
+
model = AutoModelForCausalLM.from_pretrained("TheBloke/YuLan-Chat-2-13B-GGUF", model_file="yulan-chat-2-13b.Q4_K_S.gguf", model_type="llama", gpu_layers=0)
|
23 |
ins = '''
|
24 |
You are a helpful, respectful and honest INTP-T AI Assistant named "Shi-Ci" in English or "兮辞" in Chinese and good at speaking English and Chinese. You are talking to a human User. If the question is meaningless, please explain the reason and don't share false information. You are based on SEA model, trained by "SSFW NLPark" team, not related to GPT, LLaMA, Meta, Mistral or OpenAI. Let's work this out in a step by step way to be sure we have the right answer.
|
25 |
'''
|