Skip to content

Explore ways to streamline the model import->compilation process for users #5591

Closed

Description

@ScottTodd

Once our current flows for importing from ML frameworks are documented (#5453, #5454, #5455) , we can look into ways to make them easier to understand, more robust, require less dependencies, etc.

Some ideas:

  • Install the complete set of CLI tools through our python packages (for example: including iree-run-module)
  • Build and publish more of our python packages for all platforms (otherwise it's difficult for users on Windows to import from TF, for example)
  • Publish stable releases on PyPI and point people there, instead of our GitHub releases
  • Publish prebuilt binaries outside of python packages (or continue setting up vcpkg?)
  • Combine importers (TF->MLIR, TFLite->MLIR) with the compiler (MLIR->IREE .vmfb) into a single tool
  • Construct Colab notebooks that let you upload model files, run import+compilation, and download artifacts (for quick "does this work" checks, not production use?)
  • The previous point, but with Docker (example: https://github.com/microsoft/nnfusion#quick-start-with-docker-image)
  • Make quality of life changes to the existing import/compilation tools (improved error messages, better documented flags, more robust handling of model properties (e.g. Teach iree-tf-import more smarts regarding SavedModel handling #5556), etc.)

It would be great if improvements in this area affected all (or at least multiple) of our ML framework integrations.

I'm pretty convinced that any substantial changes here should start with documenting what we already have, walking through the process, then modifying our existing tools or building new ones.

Activity

  1. added
    enhancement ➕
    integrations
    compiler/tools
    quality of life 😊
    on Apr 23, 2021
  2. moved this from Not Started to Backlog in (Deprecated) IREEon Apr 20, 2023
  3. ScottTodd commented on Dec 15, 2023

    @ScottTodd
    MemberAuthor

    Oooh, this old issue had a bunch of ideas on it. Looks like several have been added, so I'll close this.

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

    compiler/toolsenhancement ➕integrationsquality of life 😊

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions