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
This commit is contained in:
Nat Kershaw (MSFT) 2024-04-17 09:22:39 -07:00 committed by GitHub
parent 92cbb4249d
commit d3551b0069
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 <ORTHOME>\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 <ORT_HOME>/include
cp build/Linux/Release/libonnxruntime*.so* <ORT_HOME>/lib
```
On Mac
```bash
./build.sh --build_shared_lib --skip_tests --parallel --config Release
cp include/onnxruntime/core/session/onnxruntime_c_api.h <ORT_HOME>/include
cp build/MacOS/Release/libonnxruntime*.dylib* <ORT_HOME>/lib
```
## Build onnxruntime-genai
### Build for CPU