mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-16 18:31:27 +00:00
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:
parent
92cbb4249d
commit
d3551b0069
1 changed files with 11 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue