Skip to content

❓ [Question] How to save the compiled while using torch.compile #3525

Description

@klin2024

For the example below, how do I save the compiled model?

backend = "torch_tensorrt"
tp_model = torch.compile(
tp_model,
backend=backend,
options={
"truncate_long_and_double": True,
"enabled_precisions": {torch.float32, torch.float16},
"use_python_runtime": True,
"min_block_size": 1,
},
dynamic=False,
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requestedstory: Documentation & ExamplesBroken or outdated examples, missing guides, user questions about usage patterns, and documentation

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions