docs: document helion.precompile for standalone kernels - #3185
Closed
AmesingFlank wants to merge 1 commit into
Closed
docs: document helion.precompile for standalone kernels#3185AmesingFlank wants to merge 1 commit into
helion.precompile for standalone kernels#3185AmesingFlank wants to merge 1 commit into
Conversation
AmesingFlank
force-pushed
the
AmesingFlank/stack/98
branch
from
July 28, 2026 16:02
e2f682b to
ab11374
Compare
AmesingFlank
force-pushed
the
AmesingFlank/stack/99
branch
from
July 28, 2026 16:02
0f726c4 to
676d880
Compare
This was referenced Jul 28, 2026
AmesingFlank
force-pushed
the
AmesingFlank/stack/99
branch
from
July 28, 2026 20:09
676d880 to
024f99a
Compare
AmesingFlank
force-pushed
the
AmesingFlank/stack/99
branch
from
July 28, 2026 21:14
024f99a to
89a7469
Compare
AmesingFlank
added a commit
that referenced
this pull request
Jul 28, 2026
Add a "Precompilation" section to the deployment guide covering `helion.precompile` / `PrecompilationInput`: what it produces (a standalone `.py` that runs with only torch + the backend DSL, no helion at runtime), how it differs from `helion.aot_kernel` (pre-tuning vs pre-compiling), a worked `add` example (export + import + call), the `PrecompilationInput` fields, and how it works (inlining the dependency-free backend launcher). stack-info: PR: #3185, branch: AmesingFlank/stack/99
AmesingFlank
force-pushed
the
AmesingFlank/stack/99
branch
from
July 28, 2026 22:27
89a7469 to
290372e
Compare
AmesingFlank
force-pushed
the
AmesingFlank/stack/99
branch
from
July 29, 2026 05:05
290372e to
24ff612
Compare
Add a "Precompilation" section to the deployment guide covering `helion.precompile` / `PrecompilationInput`: what it produces (a standalone `.py` that runs with only torch + the backend DSL, no helion at runtime), how it differs from `helion.aot_kernel` (pre-tuning vs pre-compiling), a worked `add` example (export + import + call), the `PrecompilationInput` fields, and how it works (inlining the dependency-free backend launcher). stack-info: PR: #3185, branch: AmesingFlank/stack/99
AmesingFlank
force-pushed
the
AmesingFlank/stack/99
branch
from
July 29, 2026 20:37
24ff612 to
5a4ce20
Compare
Contributor
Author
|
Dropping from the precompile stack for now — not needed at the moment. May revisit later. |
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.
Stacked PRs:
pretuned_kernel,jax_fn, helper embedding #3189aot_kerneltopretuned_kernel#3188OutputCodeOptions(jax_fn=True)for Pallas (JAX-array entrypoints) #3186helion.precompilefor standalone kernels #3185OutputCodeOptions(allow_helion_deps=False)for the Pallas backend (TorchTPU) #3184helion/runtime/pallas/launcher.py#3182OutputCodeOptions(allow_helion_deps=False)toBoundKernel.to_codefor standalone Triton kernels #3181get_num_xcdinto the dependency-free Triton launcher #3180docs: document
helion.precompilefor standalone kernelsAdd a "Precompilation" section to the deployment guide covering
helion.precompile/PrecompilationInput: what it produces (a standalone.pythat runs with only torch + the backend DSL, no helion at runtime), how itdiffers from
helion.aot_kernel(pre-tuning vs pre-compiling), a workedaddexample (export + import + call), the
PrecompilationInputfields, and how itworks (inlining the dependency-free backend launcher).