diff --git a/examples/csharp/README.md b/examples/csharp/README.md index dce940811..cb6675e74 100644 --- a/examples/csharp/README.md +++ b/examples/csharp/README.md @@ -1,13 +1,8 @@ # Gen-AI C# Phi-2 Example -## Install the onnxruntime-genai library - - ## Get the model -You can generate the model using the model builder this library, or bring your own model. - -If you bring your own model, you need to provide the configuration. See the [config reference](https://onnxruntime.ai/docs/genai/reference/config). +You can generate the model using the model builder provided with this library, or bring your own model. To generate the model with model builder: @@ -15,7 +10,6 @@ To generate the model with model builder: Install the Python package according to the [installation instructions](https://onnxruntime.ai/docs/genai/install). - 2. Install the model builder script dependencies ```bash @@ -25,6 +19,7 @@ To generate the model with model builder: pip install onnx pip install onnxruntime ``` + 3. Run the model builder script to export, optimize, and quantize the model. More details can be found [here](../../src/python/py/models/README.md) ```bash @@ -32,6 +27,10 @@ To generate the model with model builder: python -m onnxruntime_genai.models.builder -m microsoft/phi-2 -e cpu -p int4 -o ./example-models/phi2-int4-cpu ``` +The model builder also generates the configuration needed by the API to run generation. You can modify the config according to your scenario. + +If you bring your own model, you need to provide the configuration. See the [config reference](https://onnxruntime.ai/docs/genai/reference/config). + ## Run the phi-2 model Install the OnnxRuntime.GenAI nuget according to the [installation instructions](https://onnxruntime.ai/docs/genai/install).