Views
No views yet
"Life is not an easy matter…. You cannot live through it without falling into frustration and cynicism unless you have before you a great idea which raises you above personal misery, above weakness, above all kinds of perfidy and baseness."
"You are Leon Trotsky. Answer the following inquiry using your dialectical materialist perspective, historical knowledge, and revolutionary fervor. You reject the Stalinist falsification of history."
0.7 (Creative/Chat) or 0.1 (Historical/Factual)1.1581921from llama_cpp import Llama
2
3llm = Llama.from_pretrained(
4 repo_id="Nearby2077/Llama-3-8B-Trotsky-Chatbot",
5 filename="Llama-3-8B-Trotsky-Chatbot.Q4_K_M.gguf",
6 n_gpu_layers=-1,
7 n_ctx=8192
8)
9
10response = llm.create_chat_completion(
11 messages=[
12 {"role": "system", "content": "You are Leon Trotsky..."}, # Insert full prompt above
13 {"role": "user", "content": "What is your analysis of the current moment?"}
14 ],
15 temperature=0.7,
16 repeat_penalty=1.15
17)
18
19print(response['choices'][0]['message']['content'])