Baseline compile-model binary - #1680
Closed
elliottslaughter wants to merge 5 commits into
Closed
Conversation
elliottslaughter
force-pushed
the
bin-compile-model
branch
from
September 8, 2026 21:41
740eb0e to
3c53e28
Compare
lockshaw
added a commit
that referenced
this pull request
Sep 9, 2026
This PR provides a basic compile-model binary that enables users to compile models. Currently, the only switch is the compilation method (passthrough, data_parallel, unity, or mcmc) and the actual compiler parameters are hard-coded. Passthrough means that the compiler is not invoked and the binary constructs a mapping of the CG for one device without introducing any parallelism. A machine specification can be provided through using the --machine-spec-json flag. To allow passing a value (in this case the path) to the --machine-spec-json flag, we add new a new CLINamedArgumentSpec type to utils/cli along with corresponding parsing logic and tests. We also update proj so that proj run no longer outputs build output to stderr, allowing redirecting stdout to a file to work (important for, e.g., export-model-arch). The intention is that bin/compile-model will be extended to take more compiler parameters in the future. Co-authored-by: Colin Unger <lockshaw@lockshaw.net>
Collaborator
|
Merged in |
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.
This PR provides a basic
compile-modelbinary that enables users to compile models. Currently, the only switch is the compilation method (passthrough, data_parallel, unity, or mcmc) and the actual compiler parameters are hard-coded. Passthrough means that the compiler is not invoked and the binary constructs a mapping of the CG for one device without introducing any parallelism.The intention is that this will be subsequently extended to take more compiler parameters in the future.
This change is