Skip to content

Commit 4753316

Browse files
author
Chris Warren-Smith
committed
added sample
1 parent 3ae5e04 commit 4753316

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

llama/samples/chat.bas

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
const llama = llm.llama("qwen.gguf", 1024)
3+
4+
print llama.generate("Write a BASIC program", 256, 0.2)
5+
6+
print llama.chat("Hello")
7+
print llama.chat("Write a BASIC program to draw a cat")
8+
print llama.chat("Now add color")
9+
10+
llama.reset()
11+
12+
print llama.chat("Who are you?")

0 commit comments

Comments
 (0)