Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix model path in Phi-3 QA example #1165

Merged
merged 3 commits into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/python/phi-3-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Are you on a Windows machine with GPU?

```bash
curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/phi3-qa.py -o phi3-qa.py
python phi3-qa.py -m directml\directml-int4-awq-block-128
python phi3-qa.py -m directml\directml-int4-awq-block-128 -e dml
```

Once the script has loaded the model, it will ask you for input in a loop, streaming the output as it is produced the model. For example:
Expand Down Expand Up @@ -109,7 +109,7 @@ Are you on a Windows machine with GPU?

```bash
curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/phi3-qa.py -o phi3-qa.py
python phi3-qa.py -m cuda/cuda-int4-rtn-block-32
python phi3-qa.py -m cuda/cuda-int4-rtn-block-32 -e cuda
```

Once the script has loaded the model, it will ask you for input in a loop, streaming the output as it is produced the model. For example:
Expand Down Expand Up @@ -142,7 +142,7 @@ Are you on a Windows machine with GPU?

```bash
curl https://raw.githubusercontent.com/microsoft/onnxruntime-genai/main/examples/python/phi3-qa.py -o phi3-qa.py
python phi3-qa.py -m cpu_and_mobile/cpu-int4-rtn-block-32-acc-level-4
python phi3-qa.py -m cpu_and_mobile/cpu-int4-rtn-block-32-acc-level-4 -e cpu
```

Once the script has loaded the model, it will ask you for input in a loop, streaming the output as it is produced the model. For example:
Expand Down
2 changes: 1 addition & 1 deletion examples/python/phi3-qa.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def main(args):
started_timestamp = 0
first_token_timestamp = 0

config = og.Config(args.model)
config = og.Config(args.model_path)
config.clear_providers()
if args.execution_provider != "cpu":
if args.verbose: print(f"Setting model to {args.execution_provider}")
Expand Down
Loading