Developer technologies | .NET | .NET Multi-platform App UI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am using .net iOS (iOS application) not .net MAUI and I want to ask that how to use all-MiniLM-L6-v2 or flan-t5-small in it?
I want to feed a txt to it and ask questions about the txt ?
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
first you need to convert the model for use in CoreML
https://github.com/Abhishek6353/AllMiniLML6V2-coreml
Then add the AllMiniLML6V2.mlmodel to your Maui project. Then:
#if IOS
using CoreML;
using Foundation;
public class CoreMlService
{
public void RunModel(NSUrl modelUrl)
{
var error = out NSError err;
var model = MLModel.Create(modelUrl, out err);
// Create input features and make predictions
}
}
#endif