Views
No views yet
model-q4_k_m.gguf - Quantized model (Q4_K_M, ~637 MB)1from llama_cpp import Llama
2
3llm = Llama(
4 model_path="model-q4_k_m.gguf",
5 n_ctx=512,
6 n_threads=8
7)
8
9prompt = """### Instruction:
10Generate a Twitch chat message reaction.
11
12### Input:
13Streamer is playing a hard game and just died.
14
15### Response:
16"""
17
18output = llm(prompt, max_tokens=50, stop=["###", "\n\n"])
19print(output["choices"][0]["text"])