Small fixes for examples
This commit is contained in:
parent
caf3c0362b
commit
05eb2087d8
2 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ llm = Llama(model_path=args.model)
|
||||||
|
|
||||||
output = llm(
|
output = llm(
|
||||||
"Question: What are the names of the planets in the solar system? Answer: ",
|
"Question: What are the names of the planets in the solar system? Answer: ",
|
||||||
max_tokens=1,
|
max_tokens=48,
|
||||||
stop=["Q:", "\n"],
|
stop=["Q:", "\n"],
|
||||||
echo=True,
|
echo=True,
|
||||||
)
|
)
|
||||||
|
|
|
@ -4,7 +4,7 @@ import argparse
|
||||||
from llama_cpp import Llama
|
from llama_cpp import Llama
|
||||||
|
|
||||||
parser = argparse.ArgumentParser()
|
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()
|
args = parser.parse_args()
|
||||||
|
|
||||||
llm = Llama(model_path=args.model)
|
llm = Llama(model_path=args.model)
|
||||||
|
|
Loading…
Reference in a new issue