{"id":26698,"library":"ai-edge-litert-nightly","title":"AI Edge LiteRT Nightly","description":"Nightly build of the LiteRT runtime for on-device machine learning, targeting TensorFlow Lite models on mobile and edge devices. Currently at version 2.2.0.dev20260430.","status":"active","version":"2.2.0.dev20260430","language":"python","source_language":"en","source_url":"https://github.com/ai-edge-litert/ai-edge-litert","tags":["litert","tensorflow-lite","on-device","mobile","nightly"],"install":[{"cmd":"pip install ai-edge-litert-nightly","lang":"bash","label":"Install nightly build"}],"dependencies":[],"imports":[{"note":"Primary API for configuring LiteRT runtime. Import path may differ from predecessor tflite_runtime.","symbol":"LiteRTOptions","correct":"from ai_edge_litert import LiteRTOptions"},{"note":"Old tflite_runtime import path; ai-edge-litert uses ai_edge_litert prefix.","wrong":"from tflite_runtime.interpreter import Interpreter","symbol":"LiteRTModel","correct":"from ai_edge_litert import LiteRTModel"}],"quickstart":{"code":"from ai_edge_litert import LiteRTOptions, LiteRTModel\n\n# Load a TFLite model from file\nmodel_path = \"model.tflite\"\noptions = LiteRTOptions()\nmodel = LiteRTModel(model_path, options)\n\n# Run inference (simplified for illustration)\n# input_data = ...\n# output = model.run(input_data)\nprint(\"LiteRT model loaded successfully\")","lang":"python","description":"Basic model loading using LiteRT API. Replace model.tflite with your model file."},"warnings":[{"fix":"Use a stable release like ai-edge-litert (non-nightly) for production.","message":"This is a nightly build; API may change without notice. Pin to a specific version for stability.","severity":"gotcha","affected_versions":"all"},{"fix":"Migrate to ai_edge_litert imports, e.g., from ai_edge_litert import LiteRTModel.","message":"The old tflite_runtime package is superseded; direct imports from tflite_runtime will not work with ai-edge-litert-nightly.","severity":"deprecated","affected_versions":">=2.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install ai-edge-litert-nightly and change imports to from ai_edge_litert import ...","cause":"tflite_runtime is not the correct package; ai-edge-litert-nightly uses ai_edge_litert module name.","error":"ModuleNotFoundError: No module named 'tflite_runtime'"},{"fix":"Use LiteRTModel instead: from ai_edge_litert import LiteRTModel","cause":"The API has changed; Interpreter class is renamed or replaced.","error":"ImportError: cannot import name 'Interpreter' from 'ai_edge_litert'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}