Skip to content

Commit

Permalink
Add instructions to build generate() API from source on Mac (#20342)
Browse files Browse the repository at this point in the history
  • Loading branch information
natke authored Apr 17, 2024
1 parent 92cbb42 commit d3551b0
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions docs/genai/howto/build-from-source.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d3551b0

Please sign in to comment.