Skip to content

v0.20.0

Latest

Choose a tag to compare

@dbcp1 dbcp1 released this 23 Nov 23:31

🔥 What's New: v0.20.0

  • NPU Executor Metadata & Default Behavior Change:
    • Added LlmNpuExecutorMetadata to ExecutorMetadata proto and updated the runtime to resolve unset NPU execution flags (enable_neon_for_npu_greedy_sampling, use_hw_masking_for_npu, use_hw_cache_update_for_npu, use_hw_ple_for_npu) from .litertlm bundle metadata.
    • Behavior Change: Handwritten NPU components now default to disabled unless enabled in bundle metadata or runtime flags (except KV-cache updates on ring-buffer models).
  • Python 3.10 support is deprecated. Python 3.10 reached upstream end-of-life on 2026-10-01 (PEP 619). Importing litert_lm on Python 3.10 now emits a FutureWarning. 0.20.0 is the last release that supports Python 3.10. The next release (0.21.0) will require Python ≥ 3.11 and will no longer publish cp310 wheels. If you are on Python 3.10, upgrade to 3.11 or newer, or pin litert-lm==0.20.*.
  • Benchmark init time: No longer counts engine creation twice in the C, Kotlin, Swift and Python APIs and litert-lm benchmark.
  • litert_lm_main: Now stops each reply after --max_output_tokens tokens when the flag is above 0.
  • Reproducible .litertlm builds: With SOURCE_DATE_EPOCH set, litert-lm-builder now writes byte-identical files from the same inputs and uuid.