From 489720527d8a240b3bc21f48ccb64dcddfbb9c8b Mon Sep 17 00:00:00 2001 From: fwcore <47165210+fwcore@users.noreply.github.com> Date: Mon, 30 Sep 2024 15:43:39 +0800 Subject: [PATCH 1/2] fix linux path typos in onnxruntime-genai/examples/c/README.md --- examples/c/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/c/README.md b/examples/c/README.md index 0fd01018d..574b5190f 100644 --- a/examples/c/README.md +++ b/examples/c/README.md @@ -225,10 +225,10 @@ Change into the onnxruntime-genai directory. ```bash # This should be run from the root of the onnxruntime-genai folder - python build.py --config Release --ort_home examples\c + python build.py --config Release --ort_home examples/c cp src/ort_genai.h examples/c/include cp src/ort_genai_c.h examples/c/include - cp build/Linux/release/onnxruntime-genai.so examples/c/lib + cp build/Linux/Release/onnxruntime-genai.so examples/c/lib cd examples/c ``` @@ -246,15 +246,15 @@ cmake --build . --config Release Build for CPU: ```bash -cmake . -DPHI3=ON +mkdir build cd build +cmake .. -DPHI3=ON cmake --build . --config Release ``` #### Run the sample ```bash -cd Release ./phi3 path_to_model ``` @@ -337,10 +337,10 @@ Change into the onnxruntime-genai directory. ```bash # This should be run from the root of the onnxruntime-genai folder - python build.py --config Release --ort_home examples\c + python build.py --config Release --ort_home examples/c cp src/ort_genai.h examples/c/include cp src/ort_genai_c.h examples/c/include - cp build/Linux/release/onnxruntime-genai.so examples/c/lib + cp build/Linux/Release/onnxruntime-genai.so examples/c/lib cd examples/c ``` From 6dff68a94e7a7c4760932ae3759df3b9822a0722 Mon Sep 17 00:00:00 2001 From: fwcore <47165210+fwcore@users.noreply.github.com> Date: Mon, 30 Sep 2024 16:06:30 +0800 Subject: [PATCH 2/2] fix another linux path typo in onnxruntime-genai/examples/c/README.md --- examples/c/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/c/README.md b/examples/c/README.md index 574b5190f..a0889b541 100644 --- a/examples/c/README.md +++ b/examples/c/README.md @@ -228,7 +228,7 @@ Change into the onnxruntime-genai directory. python build.py --config Release --ort_home examples/c cp src/ort_genai.h examples/c/include cp src/ort_genai_c.h examples/c/include - cp build/Linux/Release/onnxruntime-genai.so examples/c/lib + cp build/Linux/Release/libonnxruntime-genai.so examples/c/lib cd examples/c ``` @@ -340,7 +340,7 @@ Change into the onnxruntime-genai directory. python build.py --config Release --ort_home examples/c cp src/ort_genai.h examples/c/include cp src/ort_genai_c.h examples/c/include - cp build/Linux/Release/onnxruntime-genai.so examples/c/lib + cp build/Linux/Release/libonnxruntime-genai.so examples/c/lib cd examples/c ```