LiteRT — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited LiteRT (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
LiteRT (Lite Runtime) is Google's framework for deploying ML and generative AI on edge devices. It's the successor to TensorFlow Lite with advanced GPU/NPU acceleration delivering up to 100x faster inference than CPU.
| Platform | CPU | GPU | NPU |
|---|---|---|---|
| Android | Yes | OpenCL, OpenGL | Qualcomm, MediaTek |
| iOS | Yes | Metal | ANE (coming) |
| macOS | Yes | Metal, WebGPU | ANE (coming) |
| Windows | Yes | WebGPU | Intel (coming) |
| Linux | Yes | WebGPU | - |
| Web | Yes | WebGPU | Coming |
// Add dependency: implementation 'com.google.ai.edge.litert:litert:2.1.0'
val model = CompiledModel.create(
context.assets,
"model.tflite",
CompiledModel.Options(Accelerator.GPU) // or NPU, CPU
)
val inputBuffers = model.createInputBuffers()
val outputBuffers = model.createOutputBuffers()
inputBuffers[0].writeFloat(inputData)
model.run(inputBuffers, outputBuffers)
val result = outputBuffers[0].readFloat()#include "litert/cc/litert_compiled_model.h"
#include "litert/cc/litert_environment.h"
LITERT_ASSIGN_OR_RETURN(auto env, Environment::Create({}));
LITERT_ASSIGN_OR_RETURN(auto compiled_model,
CompiledModel::Create(env, "model.tflite", kLiteRtHwAcceleratorGpu));
LITERT_ASSIGN_OR_RETURN(auto inputs, compiled_model.CreateInputBuffers());
LITERT_ASSIGN_OR_RETURN(auto outputs, compiled_model.CreateOutputBuffers());
compiled_model.Run(inputs, outputs);from ai_edge_litert.interpreter import Interpreter
interpreter = Interpreter(model_path='model.tflite')
interpreter.allocate_tensors()
interpreter.set_tensor(input_index, input_data)
interpreter.invoke()
output = interpreter.get_tensor(output_index)Running inference on device?
Deploying LLMs (Gemma, Phi, Qwen)?
Converting models to .tflite?
litert-torch packagetf.lite.TFLiteConverterMigrating from TensorFlow Lite?
CompilerCacheDir environment optionimplementation 'com.google.ai.edge.litert:litert:2.1.0'pip install ai-edge-litert # Runtime
pip install litert-torch # PyTorch conversion
pip install ai-edge-quantizer # Quantization~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.