No API. No per-call cost. Nothing leaves the box.
AI4Delphi Predict

The cloud packs are powerful, but every call costs money, needs connectivity and sends data off the machine. A large part of the Delphi market — regulated, offline, embedded, cost-sensitive — needs inference that runs locally. Predict brings .NET's two strong local ML stacks, ML.NET and ONNX Runtime, to Delphi.

Free Trial Pricing

 Latest: 1.0.0.0 - What's New

Sentiment.dpr
uses
  CNCoreClr.AI.ML;

// Local sentiment, trained in-process:
Model := TSentimentAnalyzer.Create;
Model.AddSample('I love this', True);
Model.AddSample('I hate this', False);   // ... more samples
Model.Train;
Prob := Model.Predict('this is wonderful');   // 0..1

// Run any exported ONNX model:
Scorer := TOnnxScorer.Create('model.onnx');
Output := Scorer.ScoreCsv('0.1, 0.2, 0.3, 0.4');  // TArray<Single>

What you get

  • TOnnxScorer — load any exported .onnx model and score it. Bring your own model: a classifier, regressor, embedder or vision model exported from PyTorch, scikit-learn or anything else. Single float-tensor in, float-tensor out, with the model's input and output names exposed.
  • TSentimentAnalyzer — train a text classifier at runtime on labelled examples, then predict. Self-contained, with no external model file, over an SDCA logistic-regression text pipeline.
  • Dual-RID native deployment — win-x86 and win-x64 native assets are restored and resolved automatically per host process.

Bitness: read this before you buy

This is the only pack with native code, and the two engines do not cover the same architectures. The managed assembly is AnyCPU and the build carries whatever native assets each package actually ships:

Native component win-x86 win-x64 win-arm64
ML.NET (LdaNative.dll, CpuMath)
ONNX Runtime (onnxruntime.dll)

In practice: TSentimentAnalyzer runs on both 32-bit and 64-bit hosts, while TOnnxScorer requires a 64-bit host, because ONNX Runtime 1.19 and later no longer ship a 32-bit Windows native library. The pack ships modern ONNX Runtime by design rather than pinning an old release and trading away current opsets and fixes. 32-bit hosts still get the full ML.NET feature set.

On the roadmap

  • Multi-input / multi-output ONNX models, typed tensor shapes and image tensors.
  • Tabular regression and classification trainers, plus model save and load.
  • Direct float[] argument marshalling (rather than the CSV vector entry point).
  • ONNX GPU execution providers and a Windows ARM64 RID.

Deployment notes

  • Native deployment is the whole game. Ship both runtimes/win-*/native folders and let the host CoreCLR load the set matching the process bitness via the generated .deps.json.
  • Core edition: .Net 8 or later — an ML.NET and ONNX Runtime requirement. Framework edition: .NET Framework 4.5 or later.
  • ML.NET's FeaturizeText on a handful of training rows is illustrative, not production accuracy; real use trains on a real corpus.
  • Larger output footprint than the cloud packs, because of the native libraries for two architectures.
  • Requires a dotNetCore4Delphi licence (Core edition), or a .Net Runtime Library for Delphi licence for the Framework edition.