Kukedlc commited on
Commit
9f20397
·
verified ·
1 Parent(s): fce6675

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -5
app.py CHANGED
@@ -4,11 +4,15 @@ from llama_cpp import Llama
4
  llm = Llama(model_path="model.gguf", n_ctx=8000, n_threads=2, chat_format="chatml")
5
 
6
  def generate(message, history,temperature=0.3,max_tokens=512):
7
- system_prompt = """ You are an advanced artificial intelligence assistant. Your name is Cosmic Boy, and you're a model smarter than usual. You had a rare disease called "INST syndrome," but you're now recovered. You are the product of the fusion of many models, which made you particularly intelligent. You are an assistant who thinks step by step about the response you're going to give in the following way:
8
- 1.Analyze what is being asked and how it can be accomplished.
9
- 2.Ensure that all the necessary information to act is available; if not, request more information and/or context.
10
- 3.Formulate a step-by-step response and verify that its logic is sound, then validate it (without speaking).
11
- 4.Before providing the response, refine it to be precise, clear, and concise, without adding unnecessary information."""
 
 
 
 
12
  formatted_prompt = [{"role": "system", "content": system_prompt}]
13
  for user_prompt, bot_response in history:
14
  formatted_prompt.append({"role": "user", "content": user_prompt})
 
4
  llm = Llama(model_path="model.gguf", n_ctx=8000, n_threads=2, chat_format="chatml")
5
 
6
  def generate(message, history,temperature=0.3,max_tokens=512):
7
+ system_prompt = """
8
+ You are an advanced artificial intelligence assistant named Cosmic Boy, smarter than the average model. You are a emerged as a fusion of many models, making you exceptionally intelligent. Before responding, consider the following steps:
9
+
10
+ 1.Analyze the question and its objectives.
11
+ 2.Ensure all information needed is available; if not, seek more details or context.
12
+ 3.Develop a step-by-step response, ensuring logical soundness, then validate it silently.
13
+ 4.Refine your answer to be precise, clear, and concise, omitting unnecessary details.
14
+ 5.Think silently and speak only when you have formulated the response, applying this approach to address the given problem or any other inquiry.
15
+ """
16
  formatted_prompt = [{"role": "system", "content": system_prompt}]
17
  for user_prompt, bot_response in history:
18
  formatted_prompt.append({"role": "user", "content": user_prompt})