Repository navigation
Conversation
devtbi
requested review from
AGindinson,
Manewing,
jschuhmacher,
kuhar and
schuermans-roofline
as code owners
November 25, 2026 15:53
AlexDenisov
approved these changes
Nov 26, 2026
Add `iree.core.config`, the configuration that is recorded with an imported or compiled model: * `CompileConfig` describes how a model is compiled (target device, flags, flag templates, conditional flags) and what running the compiled artifact requires (drivers, lead allocator, runtime flags). It loads from and saves to JSON. Loading rejects unknown keys, so that a misspelled key does not go unnoticed. * `ImportConfig` is the importer-side configuration. An importer subclasses it to record its own settings and the files it needs at runtime, and registers the subclass for its framework with `register_import_config`, so that the right class can be rebuilt when saved metadata is loaded. A framework has exactly one class: registering a second one is an error instead of depending on import order. Nothing uses these classes yet: the compiler and runtime layers built on them follow. The classes are loaded with dacite, which becomes the first third-party dependency of the iree-base-core wheel. `pyproject.toml` declares it as a version range; builds and CI install it pinned to an exact version with hashes (`requirements.txt`). The requirements of the Bazel pip hub become a generated lock with hashes as well. It pins the dependencies of the wheel and the other packages that Bazel targets use, which `build_tools/bazel/requirements.in` lists: so far only numpy, which the hub already had without a pin. The pkgci unit test job now runs every test of the package against the installed wheel. Assisted-by: Claude Code Signed-off-by: Tobias Fuchs <fuchs@roofline.ai>
devtbi
force-pushed
the
core-config-objects
branch
from
November 26, 2026 13:33
a6ef9e1 to
9cdff5f
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Importing, compiling and running a model requires matched settings/arguments. It is currently a responsibility of the user to pass the correctly matched arguments between the steps. The configuration enables a compiler/runtime "driver"/tooling to exchange the information in a structured format.
Change
CompileConfig: any settings relevant to compile & runtime, e.g. device, driver, additional flagsImportConfig: base class for an importer's settings and the files it needs at runtimeThe classes are loaded with dacite, which becomes a third-party dependency of the iree-base-core wheel.
Assisted-by: Claude Code