TorchSharp icon indicating copy to clipboard operation
TorchSharp copied to clipboard

Thoughts after the.NET AI presentation

Open whuanle opened this issue 8 months ago • 7 comments

On March 22, 2025, I gave a talk on.NET AI in Shenzhen, China, where I explained a bit about TorchSharp and ML.NET.
Event information:
https://globalai.community/bootcamp/china-shenzhen/
Since PPT can only hold a little content, I created a separate Github warehouse to demonstrate cases and explain the detailed process. https://github.com/whuanle/20250322


I have a lot of readers in China who are also interested, in the Internet of Things and various fields, many developers also want to be able to achieve AI model training and reasoning through the.NET platform.
I think there are a couple of things that need to happen right now to really be able to train and deploy AI through the .NET platform.
  • TorchSharp continues to synchronize some of Pytorch's network structures, for example.
  • ML.NET is combined with TorchSharp, and the AI models trained by TorchSharp can be directly converted to.onnx format.

Image

If I can do these two things, I can quickly implement more cases, use them in enterprise projects, and publicize and demonstrate them to readers.

whuanle avatar Mar 28 '25 01:03 whuanle

Promote directly at the Torchsharp discussion...tell people what U have learned and what are needed next

GeorgeS2019 avatar Mar 28 '25 01:03 GeorgeS2019

@GeorgeS2019 I think the dotnet/TorchSharp project is at a standstill...

whuanle avatar Mar 28 '25 01:03 whuanle

There are 3 Microsoft engineers dedicated to keep it going...strategic to ML.net and agent Ai for Dotnet.

Please keep pushing and ask for feedback...perhaps the 3 engineers can coordinate with what U hope to achieve

GeorgeS2019 avatar Mar 28 '25 01:03 GeorgeS2019

Currently, it is unclear if the existing implementation of TorchVision requires the c++ part of the PyTorch Vision. Anyone know this answer?

#Suggestion

perhaps this is the c++ file needed for TorchVision <============= https://github.com/dotnet/TorchSharp/blob/main/src/Native/LibTorchSharp/THSVision.cpp

TorchSharp TorchVision status

Image

PyTorch Vision

Image

GeorgeS2019 avatar Mar 31 '25 08:03 GeorgeS2019

Hello @whuanle ,

I'm trying to clarify the the issue/question you're having.

  • If you're looking for the examples, I suggest you to visit: https://github.com/dotnet/TorchSharpExamples

  • If you're having an issue regarding the missing implementation, could you please create an issue by specifying that functionality?

e.g. pytorch has x functionality but TorchSharp doesn't have this yet

ghost avatar Apr 07 '25 08:04 ghost

Hi @ozanMSFT

part1

If you're looking for the examples, I suggest you to visit: https://github.com/dotnet/TorchSharpExamples

@whuanle is not looking for example...in contrary..he is addressing important missing part of the Torchsharp ecosystem.

Microsoft learn offers fundamental python with pytorch lessons as one of AI modules.

@whuanle is attempting to port the pytorch lessons to Torchsharp...so in future, students could choose to learn AI through pytorch or TorchSharp.

part 2

If you're having an issue regarding the missing implementation, could you please create an issue by specifying that functionality?

He noticed that the current implementation of the model part of torchvision c# is only 10% of what is available in Pytorch vision. https://github.com/dotnet/TorchSharp/issues/1467#issuecomment-2765495736

This prevents him from completing the part 1: the Microsoft learn AI through TorchSharp https://github.com/dotnet/TorchSharp/discussions/1430#discussioncomment-12037183

GeorgeS2019 avatar Apr 08 '25 10:04 GeorgeS2019

@ozanMSFT

Perhaps start introducing label: TorchVision, TorchAudio

GeorgeS2019 avatar Apr 09 '25 05:04 GeorgeS2019