Skip to content

Support for Shared Weights between multiple entry points in PTE export #12804

@pkmandke

Description

@pkmandke

Is there (ideally, backend agnostic) support for sharing weights in a multiple entry point PTE exported file? #11738 seems to track this for XNNPack. However, it doesn't seem to be supported based on the last update on the thread (?)


On similar lines, alternatively, is it possible to serialize and export just the (FX) graph/s and load the weights separately (say from a flat_tensor)?

A wishful API would be something like this:

ep = export(model, inputs)
ep = _export_forward_backward(ep)

ep = to_edge(ep)
# Optionally ep.to_backend()
ep = ep.to_executorch()

# Now a wishful workflow would look something like:
ep.save_graph_only(path)
ep.save_weights_only(path)

cc @JacobSzwejbka @angelayi

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: exirIssues related to Export IR and the code under exir/

    Type

    No type

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions