Skip to content
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

[Training] More Documentation on HOW to do ONNXRuntime training using c# [CSharp] #17984

Closed
GeorgeS2019 opened this issue Oct 17, 2023 · 9 comments
Labels
api:CSharp issues related to the C# API documentation improvements or additions to documentation; typically submitted using template stale issues that have not been addressed in a while; categorized by a bot training issues related to ONNX Runtime training; typically submitted using template

Comments

@GeorgeS2019
Copy link

GeorgeS2019 commented Oct 17, 2023

Describe the issue

Please add Csharp topic and see the impact to c# users

Summary

I would like to take an Onnx model exported to e.g. HuggingPlace and do further training on it using OnnxRuntime using C# for all the workflow without needing PyTorch.

============================
With the new release, there are more information on

  • OnDevice training
  • Large Model training

Since these topics are listed as separates from e.g. C#
I wonder where I could learn more on using c# to do training using ONNXRuntime.

image

To reproduce

Onnxruntime using c# lacks information on training

See the picture above and information listed under the c#

Urgency

We are currently working out a workflow where we would like to do deep reinforcement training and save the model for inference ALL in C# in Godot 3D engine environment.

We could do inference using ONNXRUntime.

However, we would really like to START doing real time training using the ONNXRuntime framework within Godot 3D engine (.NET6 csharp)

ONNX Runtime Installation

Released Package

ONNX Runtime Version or Commit ID

1.16.0

PyTorch Version

Compatible

Execution Provider

CUDA

Execution Provider Library Version

No response

@GeorgeS2019 GeorgeS2019 added the training issues related to ONNX Runtime training; typically submitted using template label Oct 17, 2023
@github-actions github-actions bot added the ep:CUDA issues related to the CUDA execution provider label Oct 17, 2023
@GeorgeS2019
Copy link
Author

GeorgeS2019 commented Oct 17, 2023

Please add Csharp topic and see the impact to c# users

Possible example doing OnDevice training using c#

Even the latest Bing's ChatGPT4 fails to answer this simple question if it is possible to do ONNXRuntime training using c#

Perhaps we need a restructuring of the documentation structure => to not just assisting c# users but also ChatGPT4

@GeorgeS2019
Copy link
Author

ONNX Runtime Training Examples

It seems there is possibly ONE example.

This does not help me to see the overview what is the decision to support Onnxruntime training using c#

@GeorgeS2019
Copy link
Author

GeorgeS2019 commented Oct 17, 2023

@baijumeswani
@peratrepic

Before I go further, kindly summarize if Onnxruntime training using csharp is working at all??

When will this be fixed?

We definitely need documentation on this issue!

==> is the following example working and relevant to this discussion?
Possible example doing OnDevice training using c#

@GeorgeS2019
Copy link
Author

I wonder if this is possible or relevant to csharp users?
https://github.com/microsoft/onnxruntime/wiki/Model-Training-Domain-Knowledge

@faxu faxu added documentation improvements or additions to documentation; typically submitted using template and removed ep:CUDA issues related to the CUDA execution provider labels Oct 17, 2023
@baijumeswani baijumeswani added the api:CSharp issues related to the C# API label Oct 17, 2023
@baijumeswani
Copy link
Contributor

@GeorgeS2019 please look at the API docs https://onnxruntime.ai/docs/api/csharp/api/Microsoft.ML.OnnxRuntime.TrainingSession.html

The overview can be found here: https://onnxruntime.ai/docs/get-started/training-on-device.html

Let me know if there are more questions.

@GeorgeS2019
Copy link
Author

@baijumeswani

Thanks! I will create more separate issues that I hope will cover the different implications of having this training now feasible using c#

Please kindly support me by labelling them to
image

Copy link
Contributor

This issue has been automatically marked as stale due to inactivity and will be closed in 7 days if no further activity occurs. If further support is needed, please provide an update and/or more details.

@github-actions github-actions bot added the stale issues that have not been addressed in a while; categorized by a bot label Nov 17, 2023
@baijumeswani
Copy link
Contributor

Marking as complete and closing the issue. Please reopen in case needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api:CSharp issues related to the C# API documentation improvements or additions to documentation; typically submitted using template stale issues that have not been addressed in a while; categorized by a bot training issues related to ONNX Runtime training; typically submitted using template
Projects
None yet
Development

No branches or pull requests

3 participants