Skip to content

[Reliability] Expand Export Cache Invalidation to Track Torch/ORT Versions #47

@DsThakurRawat

Description

@DsThakurRawat

Description

The current _reflex_meta.json cache marker tracks reflex_version, but it does not track the versions of torch or onnxruntime used during the export.

Rationale

An ONNX model exported with one version of Torch may fail or exhibit numerical drift when loaded with a significantly different version of ORT. We should include these library versions in the metadata and trigger a rebuild if they change.

Tasks

  • Add torch_version and ort_version to the _reflex_meta.json schema.
  • Update the go command logic to invalidate the cache if these versions differ from the current environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    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