From d3551b0069e9c97875b0dd8abde00bc2201f5aed Mon Sep 17 00:00:00 2001 From: "Nat Kershaw (MSFT)" Date: Wed, 17 Apr 2024 09:22:39 -0700 Subject: [PATCH] Add instructions to build generate() API from source on Mac (#20342) Staged here: https://natke.github.io/onnxruntime/docs/genai/howto/build-from-source.html#option-3-build-from-source --- docs/genai/howto/build-from-source.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/docs/genai/howto/build-from-source.md b/docs/genai/howto/build-from-source.md index 73c82b2936814..a8b2b9e559741 100644 --- a/docs/genai/howto/build-from-source.md +++ b/docs/genai/howto/build-from-source.md @@ -1,6 +1,6 @@ --- title: Build from source -description: How to build ONNX Runtime GenAI from source +description: How to build the ONNX Runtime generate() API from source has_children: false parent: How to grand_parent: Generative AI (Preview) @@ -95,12 +95,21 @@ copy build\Windows\Release\Release\onnxruntime.lib \lib On Linux -```cmd +```bash ./build.sh --build_shared_lib --skip_tests --parallel [--use_cuda] --config Release cp include/onnxruntime/core/session/onnxruntime_c_api.h /include cp build/Linux/Release/libonnxruntime*.so* /lib ``` +On Mac + +```bash +./build.sh --build_shared_lib --skip_tests --parallel --config Release +cp include/onnxruntime/core/session/onnxruntime_c_api.h /include +cp build/MacOS/Release/libonnxruntime*.dylib* /lib +``` + + ## Build onnxruntime-genai ### Build for CPU