fix(llm): preserve decoder cache on rewind

#4
by bhanc - opened
Software Mansion AI Labs org
•
edited about 10 hours ago

Re-export the validated LFM 2.5 350M text and VL 450M and 1.6B artifacts for the v1.0.0 release. All nine artifacts were exported and run with ExecuTorch 1.6. Short convolution now reads the retained prefix by absolute token position, so both nonzero rewind and restart at zero reproduce the reference logits.

Validation

  • XNNPACK passed both public reset methods on the iPhone simulator. The VL 1.6B image prompt generated 37 before advancing and after both resets. The unpatched 1.6 build matched the fixed 1.6B logits and vision embeddings bit-for-bit on the matched-toolchain control.
  • VL 450M scored closer to eager PyTorch at every tested checkpoint. VL 1.6B scored closer on average, with one slightly lower checkpoint in both matched-toolchain builds.
  • Four MLX artifacts passed on the 1.6 Apple Silicon Mac runtime and matched the published uninterrupted traces bit-for-bit.
  • Both VL Vulkan exports passed on the Galaxy S20+ with the 1.6.0 runtime. Vulkan reference binaries

The declared context sizes are preserved. Published-to-fixed simulator peak app footprint was approximately 1,157 to 1,868 MiB for 350M text, 1,486 to 1,518 MiB for VL 450M, and 3,397 to 3,446 MiB for VL 1.6B.

Export recipe changes and regression checks

bhanc changed pull request status to merged

Sign up or log in to comment