Skip to content

[graph_trainer] Add precompile end-to-end integration test - #2812

Closed
SherlockNoMad wants to merge 1 commit into
gh/SherlockNoMad/17/basefrom
gh/SherlockNoMad/17/head
Closed

SherlockNoMad wants to merge 1 commit into
gh/SherlockNoMad/17/basefrom
gh/SherlockNoMad/17/head

Conversation

@SherlockNoMad

@SherlockNoMad SherlockNoMad commented Apr 3, 2026 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

Precompile has unit tests for its components (DiskStorageAdapter,
PrecompiledArtifact, fingerprinting) but no integration test exercised
the full compile-save-reload-train loop.

Add a two-step AOT Llama3 test:

  1. First run compiles with inductor_decomposition + full_inductor_compilation
    and saves the precompile artifact to disk
  2. Second run detects the existing artifact and loads it, skipping
    compilation entirely, then trains from step 10 to 20

This validates the full precompile lifecycle including artifact
serialization, fingerprint matching, and correct training resumption.

Precompile has unit tests for its components (DiskStorageAdapter,
PrecompiledArtifact, fingerprinting) but no integration test exercised
the full compile-save-reload-train loop.

Add a two-step AOT Llama3 test:
1. First run compiles with inductor_decomposition + full_inductor_compilation
   and saves the precompile artifact to disk
2. Second run detects the existing artifact and loads it, skipping
   compilation entirely, then trains from step 10 to 20

This validates the full precompile lifecycle including artifact
serialization, fingerprint matching, and correct training resumption.

[ghstack-poisoned]
[
"--module graph_trainer.llama3",
"--config graph_trainer_llama3_debugmodel",
"--compile.mode aot",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do this for aot_fx_trace, we are deprecating aot mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/8gpu CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant