Rename inference example
This commit is contained in:
parent
318eae237e
commit
5f2e822b59
1 changed files with 2 additions and 2 deletions
|
@ -4,14 +4,14 @@ 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)
|
||||||
|
|
||||||
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=48,
|
max_tokens=1,
|
||||||
stop=["Q:", "\n"],
|
stop=["Q:", "\n"],
|
||||||
echo=True,
|
echo=True,
|
||||||
)
|
)
|
Loading…
Reference in a new issue