Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
fixed the script issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhenzhong1 committed Mar 25, 2024
1 parent fdb9211 commit 47cd81f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/python_api_example_for_gguf.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def main(args_in: Optional[List[str]] = None) -> None:

gguf_path = args.model.as_posix()

prompt = "Once upon a time"
prompt = args.prompt
tokenizer = AutoTokenizer.from_pretrained(args.model_path, trust_remote_code=True)
inputs = tokenizer(prompt, return_tensors="pt").input_ids
streamer = TextStreamer(tokenizer)
Expand Down

0 comments on commit 47cd81f

Please sign in to comment.