LiteRT v2.3.0

v2.3.0
Added 3
  • New type-safe Swift APIs to run LiteRT models with hardware acceleration for iOS and macOS via a Swift Package
  • Standalone open source LiteRT ML Drift GPU accelerator
  • Samsung NPU (Exynos AI LiteCore) support with LiteRT
Changed 10
  • Migrated the Support Library from TensorFlow Lite Support to LiteRT Support
  • Android minSdk raised to 24 requirement raised · inferred, marked in the notes below
  • GPU (litert-gpu) and vendor-specific NPU libraries now ship as separate Maven packages configuration changed · inferred, marked in the notes below
  • Weight sharing on Intel NPU/GPU roughly halves the size of AOT-compiled LLMs
  • MediaTek NPU support expanded to all Android S+ versions
  • FlashAttention on Metal provides up to 38% faster decode, up to 2.98x faster prefill, and more than 4 GB less peak RAM at 32K context

1 change to check, marked in the notes below

From LiteRT

LiteRT Release Notes: Version 2.3.0
Summary

The LiteRT 2.3.0 release represents a leap in on-device AI efficiency, particularly for Large Language Models (LLMs) and cross-platform GPU/NPU utilization.

API and Platform updates
  • Swift Package for iOS & macOS - New type-safe Swift APIs to run LiteRT models with hardware acceleration (developer guide).
  • Support Library - Migrated from TensorFlow Lite Support to LiteRT Support (migration guide).
  • Android - minSdk raised to 24; GPU (litert-gpu) and vendor-specific NPU libraries now ship as separate Maven packages (NPU sample). requirement raised · inferred configuration changed · inferred
Hardware acceleration
Performance and Memory optimizations
  • FlashAttention on Metal - Up to 38% faster decode, up to 2.98x faster prefill, and >4 GB less peak RAM at 32K context.
  • Fused LLM kernels - New QKV-RMSNorm-RoPE and SwiGLU GPU kernels for ~12% faster decode.
  • GPU memory - Metal memory residency on iOS/macOS avoids swap paging; zero-copy mmap for the program cache lowers peak RAM.
Validation / Testing Infrastructure
  • ATS - Coverage expanded to all core single ops and to macOS (Metal and WebGPU).
View original

Upgraded? How did it go?

Discussion