Rename inference example

This commit is contained in:
Andrei Betlen 2023-04-01 13:01:45 -04:00
parent 318eae237e
commit 5f2e822b59

View file

@ -4,14 +4,14 @@ import argparse
from llama_cpp import Llama
parser = argparse.ArgumentParser()
parser.add_argument("-m", "--model", type=str, default=".//models/...")
parser.add_argument("-m", "--model", type=str, default="./models/...")
args = parser.parse_args()
llm = Llama(model_path=args.model)
output = llm(
"Question: What are the names of the planets in the solar system? Answer: ",
max_tokens=48,
max_tokens=1,
stop=["Q:", "\n"],
echo=True,
)