8000 Small fixes for examples · lapnd/llama-cpp-python@05eb208 · GitHub
[go: up one dir, main page]

Skip to content

Commit 05eb208

Browse files
committed
Small fixes for examples
1 parent caf3c03 commit 05eb208

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/high_level_api_inference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
output = llm(
1313
"Question: What are the names of the planets in the solar system? Answer: ",
14-
max_tokens=1,
14+
max_tokens=48,
1515
stop=["Q:", "\n"],
1616
echo=True,
1717
)

examples/high_level_api_streaming.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from llama_cpp import Llama
55

66
parser = argparse.ArgumentParser()
7-
parser.add_argument("-m", "--model", type=str, default=".//models/...")
7+
parser.add_argument("-m", "--model", type=str, default="./models/...")
88
args = parser.parse_args()
99

1010
llm = Llama(model_path=args.model)

0 commit comments

Comments
 (0)
0