Skip to content

Add minimal samples for a variety of runtime features #5222

Closed

Description

@ScottTodd

A large part of our test coverage currently comes from integration tests exercising specific ML models through a single compiler backend to a single runtime target. These models are complex and may happen to exercise a specific set of features, but they don't clearly demonstrate any specific feature.

We should have easy to follow samples showcasing each of the features IREE supports, such as those advertised in https://github.com/google/iree#architecture-and-goals ("Dynamic shapes, dynamic flow control, dynamic multi-model dispatch, streaming models, tree-based search algorithms").

Specifically, I'd like to see minimal samples showing:

  • State, variables
  • Dynamic shapes
  • Exported functions, sync vs async calling (separate from the vulkan samples)
  • Multiple compiler targets / runtime backends (separate from the simple_embedding sample)
  • External weights (hot-swapping model parameters)

Some features would be easiest to demonstrate as Python unit tests or Colab notebooks, while others make more sense via the C API (and ideally also through any language bindings we add).

Activity

  1. added
    documentation
    runtime
    discussion
    on Mar 24, 2021
  2. ScottTodd commented on Mar 31, 2021

    @ScottTodd
    MemberAuthor

    We have simple_stateful_test.py and control_flow_test.py, which meet my bar for "minimal samples", though I still wonder if Colab notebooks or C/C++ samples would also be useful for showing those concepts in use.

  3. self-assigned this
    on Jun 4, 2021
  4. ScottTodd commented on Jun 28, 2022

    @ScottTodd
    MemberAuthor

    I'm going to close this as fixed for now. We should keep adding more minimal samples though.

    https://github.com/iree-org/iree-samples/ could use some organization IMO. I recently created a "cpp" directory there, and some index pages with information on the types of samples and how to run them would be useful.

  5. moved this to Done in IREEon Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

discussiondocumentationruntime

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions