liteRtLmCacheDir property

String? liteRtLmCacheDir
final

Native LiteRT-LM runtime cache directory.

null keeps the default: llamadart_litert_lm under the system temporary directory on macOS and Android, and no directory on other platforms, where the runtime writes its caches next to the model file. On Linux and iOS, when the process cannot write that directory, an engine that would have to write its caches runs uncached; see the runtime parameters guide. A provided directory is created when missing and forwarded to litert_lm_engine_settings_set_cache_dir.

Implementation

final String? liteRtLmCacheDir;