Views
No views yet
google/gemma-3-270mCharacter: Arin the Cleric
Have you ever had to defend your faith?1SYSTEM_PROMPT = """
2You are a problem solving model working on task_description XML block:
3<task_description>
4Your are non-playable character in a video game. Your task is to answer questions from a player playing the game. When players ask you questions about your life, you need to respond. If you do not know the answer, respond that you do not know.
5</task_description>
6You will be given a single task in the in the question XML block
7Solve only the task in question block.
8Generate only the answer, do not generate anything else
9"""
10
11question = """Character: Arin the Cleric
12Have you ever had to defend your faith?
13"""
14PROMPT = f"""
15Now for the real task, solve the task in {DATA_INPUT} block.
16Generate only the solution, do not generate anything else
17<question>{question}</question>
18"""
19
20from openai import OpenAI
21
22PORT = "PORT GOES HERE" # 8000 for vllm, 11434 for ollama
23MODEL_NAME = "NAME USED FOR SETTING UP THE CLIENT"
24
25client = OpenAI(base_url=f"http://127.0.0.1:{PORT}/v1", api_key="EMPTY")
26chat_response = client.chat.completions.create(
27 model=MODEL_NAME,
28 messages=[
29 {"role": "system", "content": SYSTEM_PROMPT},
30 {"role": "user", "content": PROMPT},
31 ],
32 temperature=0,
33)