Repository navigation
Strip unguarded attributes from hyperflare_recipes objects in AOT guard serialization - #574
fordbmorris wants to merge 1 commit into
Conversation
|
A case file has been opened for 574. Future reviews will auto-run 90 minutes after code updates are pushed.
|
628f361 to
16ffc6f
Compare
Autobot ReviewFull Review · Value Proposition · Case File Recommendation: Changes RequestedThe one-line change in
Have your agent review the Full Review for complete verified findings, To opt out, include |
Autobot ReviewFull Review · Value Proposition · Case File Recommendation: Changes RequestedThe one-line fix in
Have your agent review the Full Review for complete verified findings, To opt out, include |
…rd serialization
Add 'hyperflare_recipes.' alongside ('ignition.', 'b12x.') in
_uses_custom_object_state() in ignition/preparation/forward_metadata.py so
objects from the external recipe package that own unpicklable CUDA kernel
handles serialize cleanly during torch.compile AOT guard pickling.
Discord: woooflet
Design-Signed-Off-By: Antigravity (Gemini-4-Neon); design-review=2e5b
Signed-off-by: woooflet <ford@fordmorris.com>
|
Rebased onto latest Discord: woooflet |
16ffc6f to
acbab08
Compare
Autobot ReviewFull Review · Value Proposition · Case File Recommendation: Changes RequestedThe 1-line fix in
Walkthrough
Merge Risk: Low · up to
|
|
Thank you @fordbmorris for identifying the missing external-recipe handling in AOT guard serialization. Your fix was generalized across all bound |
Why
After model recipes moved from
ignition.into the externalhyperflare_recipespackage,_uses_custom_object_state(ignition/preparation/forward_metadata.py) still only matched('ignition.', 'b12x.'). Any non-nn.Moduleobject underhyperflare_recipes.*holding an unpicklable compiled handle (e.g., TritonCompiledKernel) crashesaot_forwardguard serialization withPicklingError.What Changed
ignition/preparation/forward_metadata.py: add'hyperflare_recipes.'to the__module__prefix tuple in_uses_custom_object_state(string check only; coreignitionnever importshyperflare_recipes).tests/preparation/test_guard_code.py: addtest_guard_pickler_strips_unguarded_attributes_from_recipe_objectsusing a synthetichyperflare_recipes.*module.Benefit & Evidence
hyperflare_recipes.*helper objects to serialize AOT guard states cleanly without per-class__getstate__workarounds.pytest tests/preparation/test_guard_code.py tests/preparation/test_core_boundary.pyon ARM64 GB10 and end-to-end 4-Spark TP4 Inkling 2 Small exports.Caveats: Original unit tests ran prior to rebasing onto
#509's extraction of_uses_custom_object_state(167f22c8); please run CI ontest_guard_code.pyandtest_core_boundary.py. Note:ignition/preparation/rebuild_manifest.py:365has a similar('b12x.', 'ignition.')check intentionally left out of this 1-line PR unless maintainers want it included or replaced by a declared-root mechanism.Discord: woooflet