Skip to content

Commit

Permalink
Mergin rel-0.1.0 back to main (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
jchen351 authored Mar 27, 2024
1 parent f9e8e40 commit d656be9
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pipelines/stages/jobs/steps/nuget-win-step.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ steps:
DisplayName: 'ESRP - Sign C# dlls'
Pattern: '*OnnxRuntimeGenAI*.dll'
- powershell: |
$VERSION = '0.1.0-rc1'
$VERSION = '0.1.0-rc4'
nuget.exe pack Microsoft.ML.OnnxRuntimeGenAI.nuspec `
-Prop version=$VERSION `
-Prop genai_nuget_ext=$(genai_nuget_ext) `
Expand Down
2 changes: 1 addition & 1 deletion VERSION_INFO
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0-dev
0.1.0rc4
8 changes: 8 additions & 0 deletions examples/csharp/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Gen-AI C# Phi-2 Example

## Install the onnxruntime-genai library

* Install the python package

```bash
pip install onnxruntime-genai
```

## Get the model

You can generate the model using the model builder provided with this library, or bring your own model.
Expand Down
4 changes: 4 additions & 0 deletions examples/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

Install the python package according to the [installation instructions](https://onnxruntime.ai/docs/genai/howto/install).

```bash
cd build/wheel
pip install onnxruntime_genai-*.whl
```

## Get the model

Expand Down
6 changes: 3 additions & 3 deletions test/csharp/TestOnnxRuntimeGenAIAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public void TestTopKSearch()
int topK = 100;
float temp = 0.6f;
ulong maxLength = 20;

string modelPath = Path.Combine(Directory.GetCurrentDirectory(), "test_models", "cpu", "phi-2");
using (var model = new Model(modelPath))
{
Expand Down Expand Up @@ -135,7 +135,7 @@ public void TestTopPSearch()
float topP = 0.6f;
float temp = 0.6f;
ulong maxLength = 20;

string modelPath = Path.Combine(Directory.GetCurrentDirectory(), "test_models", "cpu", "phi-2");
using (var model = new Model(modelPath))
{
Expand Down Expand Up @@ -178,7 +178,7 @@ public void TestTopKTopPSearch()
float topP = 0.6f;
float temp = 0.6f;
ulong maxLength = 20;

string modelPath = Path.Combine(Directory.GetCurrentDirectory(), "test_models", "cpu", "phi-2");
using (var model = new Model(modelPath))
{
Expand Down

0 comments on commit d656be9

Please sign in to comment.