-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ONNX Runtime GenAI C# API #72
Conversation
07430ca
to
0acf678
Compare
0acf678
to
8ae06ce
Compare
…into baijumeswani/csharp-api
…into baijumeswani/csharp-api
…into baijumeswani/csharp-api
The summary example features nested using blocks. It would be better to use |
Updated the sample example to avoid using the nested using statements. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the review @yuslepukhin @RyanUnderhill @snnn :) |
This pull-request introduces the C# API for
ONNX Runtime GenAI
. The C# API follows the C API closely and leverages the C API as the interface with the ONNX Runtime GenAI core.The API 📚
The C# API primarily revolves around three classes:
Model
- Entry point for running GenAI with the library. Used for loading the model and the config.GeneratorParams
- Used to set the configurable parameters for search.Generator
- Main computation engine. Used for computing the logits and retrieving the generated tokens.Sample usage 👨💻
What does this Pull-Request Include? 🤔
Microsoft.ML.OnnxRuntimeGenAI.dll
forx64
usingnet8.0
.What's next? 🔄