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
Description
The current
_reflex_meta.jsoncache marker tracksreflex_version, but it does not track the versions oftorchoronnxruntimeused 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
torch_versionandort_versionto the_reflex_meta.jsonschema.gocommand logic to invalidate the cache if these versions differ from the current environment.