Skip to content

support for aot (ahead of time) to deal with ml.net models #6942

Closed as not planned

Description

@NofAssiri

is there api to load ml.net model and predict with no dynamic code generation (reflection)?

Describe the solution you'd like
ml.net api that is compatible with aot principles.

Activity

  1. ghost added
    untriagedNew issue has not been triaged
    on Jan 6, 2024
  2. changed the title [-]support from aot (ahead of time) api[/-] [+]support for aot (ahead of time) to deal with mi.net models[/+] on Jan 6, 2024
  3. changed the title [-]support for aot (ahead of time) to deal with mi.net models[/-] [+]support for aot (ahead of time) to deal with ml.net models[/+] on Jan 6, 2024
  4. michaelgsharp commented on Jan 10, 2024

    @michaelgsharp
    Contributor

    Currently we are not AOT compatible, though this is something we have talked about looking into.

    @luisquintanilla is this something we are thinking about doing still? Or is it further back in our backlog?

  5. luisquintanilla commented on Jan 10, 2024

    @luisquintanilla
    Contributor

    Thanks for this suggestion @NofAssiri. Could you please provide additional details about your use case.

    is this something we are thinking about doing still? Or is it further back in our backlog?

    I think we still need to understand what the cost / benefits of this are and get more feedback around scenarios. At this time, there are no immediate plans for this work and is further back in our backlog.

  6. FrancescoCarraro commented on May 8, 2024

    @FrancescoCarraro

    my 2 cents. It seems to me benefits of AOT are clear: computational time is very different and this is extremely important in some scenarios. I'm currently working on a couple of apps (a console app and a MAUI app) for being used in scientific analysis and having ML.NET compatible with AOT compilation would be really great to have shorter waitings for results. I really hope you would implement AOT support!

  7. vpenades commented on Feb 16, 2026

    @vpenades

    Just hit this issue, as of 2026 it seems ML is not AOT ready.

    We need AOT for cross platform support.

    This is not optional.

  8. added
    area-CoreCore ML.NET APIs and shared functionality
    on Sep 8, 2026
  9. rosebyte commented on Oct 22, 2026

    @rosebyte
    Member

    Triage: there are no plans to support AOT right now, if we will have resources and funding to implement it in future, we will create a new issue for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-CoreCore ML.NET APIs and shared functionalityenhancementNew feature or requestgreendevelopment

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions