Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
conacts committed Jul 25, 2023
1 parent 27b5530 commit 36b50f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run_localGPT.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def load_model(device_type, model_id, model_basename=None):
@click.command()
@click.option(
"--device_type",
default="cuda",
default="cuda" if torch.cuda.is_available() else "cpu",
type=click.Choice(
[
"cpu",
Expand Down Expand Up @@ -219,7 +219,7 @@ def main(device_type, show_sources):
# model_id = "TheBloke/orca_mini_3B-GGML"
# model_basename = "orca-mini-3b.ggmlv3.q4_0.bin"

model_id="TheBloke/Llama-2-7B-Chat-GGML"
model_id = "TheBloke/Llama-2-7B-Chat-GGML"
model_basename = "llama-2-7b-chat.ggmlv3.q4_0.bin"

llm = load_model(device_type, model_id=model_id, model_basename=model_basename)
Expand Down

0 comments on commit 36b50f3

Please sign in to comment.