Skip to content

Commit

Permalink
update readme to include the device statement for demo
Browse files Browse the repository at this point in the history
  • Loading branch information
TsuTikgiau committed Apr 19, 2023
1 parent 322ed18 commit 40b514b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ in [eval_configs/minigpt4_eval.yaml](eval_configs/minigpt4_eval.yaml#L10) at Lin
Try out our demo [demo.py](demo.py) on your local machine by running

```
python demo.py --cfg-path eval_configs/minigpt4_eval.yaml
python demo.py --cfg-path eval_configs/minigpt4_eval.yaml --gpu-id 0
```

Here, we load Vicuna as 8 bit by default to save some GPU memory usage.
Expand Down
2 changes: 1 addition & 1 deletion demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
def parse_args():
parser = argparse.ArgumentParser(description="Demo")
parser.add_argument("--cfg-path", required=True, help="path to configuration file.")
parser.add_argument("--gpu_id", type=int, default=0, help="specify the gpu to load the model.")
parser.add_argument("--gpu-id", type=int, default=0, help="specify the gpu to load the model.")
parser.add_argument(
"--options",
nargs="+",
Expand Down

0 comments on commit 40b514b

Please sign in to comment.