Skip to content
This repository was archived by the owner on Oct 19, 2024. It is now read-only.

Commit 06cb62f

Browse files
AetherPriorAbhinav Rao
andauthored
Add path argument (#888)
Co-authored-by: Abhinav Rao <[email protected]>
1 parent f76fe8d commit 06cb62f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/llm_serving/textgen.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def main(args):
2626

2727
# Load the model
2828
model = get_model(model_name=args.model,
29-
path="~/opt_weights",
29+
path=args.path,
3030
batch_size=args.n_prompts,
3131
**generate_params)
3232

@@ -53,7 +53,8 @@ def main(args):
5353

5454
if __name__ == "__main__":
5555
parser = argparse.ArgumentParser()
56-
parser.add_argument("--model", type=str, default="alpa/opt-1.3b")
56+
parser.add_argument('--model', type=str, default='alpa/opt-1.3b')
57+
parser.add_argument('--path', type=str, default='~/opt_weights')
5758
parser.add_argument('--do-sample', action='store_true')
5859
parser.add_argument('--num-beams', type=int, default=1)
5960
parser.add_argument('--num-return-sequences', type=int, default=1)

0 commit comments

Comments
 (0)