LiteRT-LM is Google's production-ready, high-performance, open-source inference framework for deploying Large Language Models on edge devices.
This report presents the forensic synthetic code analysis of google-ai-edge/LiteRT-LM, a C++ project with 6,311 GitHub stars. SynthScan v2.0 examined 108,203 lines of code across 604 source files, recording 1881 pattern matches distributed across 17 syntactic categories. The overall adjusted score of 24.1 places this repository in the Moderate AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 1881 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | python/litert_lm/debug_artifacts_test.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | js/CMakeLists.txt | 17 | # ============================================================================== | COMMENT |
| MEDIUM | js/CMakeLists.txt | 19 | # ============================================================================== | COMMENT |
| MEDIUM | js/packages/core/src/cpp/CMakeLists.txt | 15 | # ============================================================================== | COMMENT |
| MEDIUM | js/packages/core/src/cpp/CMakeLists.txt | 17 | # ============================================================================== | COMMENT |
| MEDIUM | js/packages/core/src/cpp/CMakeLists.txt | 33 | # ============================================================================== | COMMENT |
| MEDIUM | js/packages/core/src/cpp/CMakeLists.txt | 35 | # ============================================================================== | COMMENT |
| MEDIUM | js/packages/core/src/cpp/CMakeLists.txt | 51 | # ============================================================================== | COMMENT |
| MEDIUM | js/packages/core/src/cpp/CMakeLists.txt | 53 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/CMakeLists.txt | 23 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/CMakeLists.txt | 25 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 15 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 17 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 43 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 45 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 78 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 80 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 99 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 101 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 144 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 146 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 168 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 170 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 192 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 194 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 215 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 217 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 233 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 235 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/util/CMakeLists.txt | 17 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/util/CMakeLists.txt | 19 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/util/CMakeLists.txt | 34 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/util/CMakeLists.txt | 36 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/util/CMakeLists.txt | 57 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/util/CMakeLists.txt | 59 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/util/CMakeLists.txt | 77 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/util/CMakeLists.txt | 79 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/util/CMakeLists.txt | 90 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/util/CMakeLists.txt | 92 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/util/CMakeLists.txt | 109 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/util/CMakeLists.txt | 111 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/util/CMakeLists.txt | 132 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/util/CMakeLists.txt | 134 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/util/CMakeLists.txt | 154 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/util/CMakeLists.txt | 156 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/util/CMakeLists.txt | 177 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/util/CMakeLists.txt | 179 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/util/CMakeLists.txt | 199 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/util/CMakeLists.txt | 201 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/util/CMakeLists.txt | 221 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/util/CMakeLists.txt | 223 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/util/CMakeLists.txt | 240 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/util/CMakeLists.txt | 242 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/util/CMakeLists.txt | 259 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/util/CMakeLists.txt | 261 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/util/CMakeLists.txt | 278 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/util/CMakeLists.txt | 280 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/util/CMakeLists.txt | 297 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/util/CMakeLists.txt | 299 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/util/CMakeLists.txt | 318 | # ============================================================================== | COMMENT |
| 353 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | CMakeLists.txt | 1 | # Copyright 2026 Google LLC. | COMMENT |
| LOW | __init__.py | 1 | # Copyright 2025 The ODML Authors. | COMMENT |
| LOW | Package.swift | 1 | // swift-tools-version: 5.9 | COMMENT |
| LOW | tools/pytest/conftest.py | 1 | # Copyright 2026 Google LLC. | COMMENT |
| LOW | tools/pytest/utils.py | 1 | # Copyright 2026 Google LLC. | COMMENT |
| LOW | tools/pytest/test_e2e_sanity_checks.py | 1 | # Copyright 2026 Google LLC. | COMMENT |
| LOW | cmake/packages/litert_lm/CMakeLists.txt | 1 | # Copyright 2026 Google LLC. | COMMENT |
| LOW | cmake/packages/tflite/shims/CMakeLists-shim.txt | 1 | # | COMMENT |
| LOW | cmake/packages/litert/shims/CMakeLists-support-shim.txt | 1 | # Copyright 2026 Google LLC. | COMMENT |
| LOW | cmake/packages/litert/shims/CMakeLists-support-shim.txt | 161 | ) | COMMENT |
| LOW | cmake/packages/litert/shims/CMakeLists-shim.txt | 1 | # Copyright 2026 Google LLC. | COMMENT |
| LOW | cmake/packages/litert/shims/CMakeLists-shim.txt | 161 | endif() | COMMENT |
| LOW | python/litert_lm/interfaces.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm/debug_artifacts_test.py | 1 | # Copyright 2026 The Google AI Edge Debugger Authors. All Rights Reserved. | COMMENT |
| LOW | python/litert_lm/messages_test.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm/capabilities_test.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm/_ffi.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm/benchmark.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm/conversation.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm/tools.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm/session.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm/engine_test.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm/__init__.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm/tool_test.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm/_messages.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm/engine.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm/utils.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm/bundle_pypi_package.sh | 1 | #!/bin/bash | COMMENT |
| LOW | python/litert_lm/capabilities.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm/embedding_engine_test.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm/api_test.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm/embedding_engine.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm/examples/simple_main.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm/examples/multimodal_main.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm/examples/tool_main.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm_eval/utils_test.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm_eval/__init__.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm_eval/utils.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm_eval/litert_lm_eval_test.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm_eval/litert_lm_eval.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm_eval/runners/__init__.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | …lm_eval/runners/lm_eval_runner/litert_lm_model_test.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | …thon/litert_lm_eval/runners/lm_eval_runner/__init__.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | …tert_lm_eval/runners/lm_eval_runner/litert_lm_model.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm_cli/model_test.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm_cli/config.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm_cli/help_formatter.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm_cli/common_test.py | 1 | # Licensed under the Apache License, Version 2.0 (the "License"); | COMMENT |
| LOW | python/litert_lm_cli/venv_manager_test.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm_cli/cli_helpers.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm_cli/model.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm_cli/venv_manager.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm_cli/common.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm_cli/bundle_pypi_package.sh | 1 | #!/bin/bash | COMMENT |
| LOW | python/litert_lm_cli/cli_helpers_test.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm_cli/huggingface_download_test.py | 1 | # Licensed under the Apache License, Version 2.0 (the "License"); | COMMENT |
| LOW | python/litert_lm_cli/huggingface_download.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm_cli/main_test.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm_cli/cli_tests.sh | 1 | #!/bin/bash | COMMENT |
| LOW | python/litert_lm_cli/main.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| 833 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | python/litert_lm/debug_artifacts_test.py | 49 | def test_get_debug_artifacts_with_warning_on_macro_disabled(self): | CODE |
| LOW | python/litert_lm/debug_artifacts_test.py | 73 | def test_get_debug_artifacts_invalid_session(self): | CODE |
| LOW | python/litert_lm/debug_artifacts_test.py | 84 | def test_get_debug_artifacts_empty_session_dir(self): | CODE |
| LOW | python/litert_lm/debug_artifacts_test.py | 106 | def test_get_debug_artifacts_populated_session_dir_and_sorting(self): | CODE |
| LOW | python/litert_lm/debug_artifacts_test.py | 178 | def test_get_debug_artifacts_with_warning_on_macro_disabled(self): | CODE |
| LOW | python/litert_lm/debug_artifacts_test.py | 197 | def test_get_debug_artifacts_populated_dir(self): | CODE |
| LOW | python/litert_lm/messages_test.py | 77 | def test_tool_response_content(self): | CODE |
| LOW | python/litert_lm/messages_test.py | 112 | def test_contents_of_sequence(self): | CODE |
| LOW | python/litert_lm/messages_test.py | 176 | def test_message_with_tool_calls(self): | CODE |
| LOW | python/litert_lm/messages_test.py | 195 | def test_message_with_channels(self): | CODE |
| LOW | python/litert_lm/capabilities_test.py | 59 | def test_capabilities_non_existent_file(self): | CODE |
| LOW | python/litert_lm/capabilities_test.py | 67 | def test_capabilities_destructor_deletes_handle( | CODE |
| LOW | python/litert_lm/capabilities_test.py | 85 | def test_capabilities_creation_failure_raises_runtime_error( | CODE |
| LOW | python/litert_lm/capabilities_test.py | 100 | def test_capabilities_destructor_noop_when_handle_none( | CODE |
| LOW | python/litert_lm/capabilities_test.py | 117 | def test_capabilities_destructor_noop_when_handle_not_set( | CODE |
| LOW | python/litert_lm/capabilities_test.py | 131 | def test_capabilities_context_manager(self): | CODE |
| LOW | python/litert_lm/capabilities_test.py | 138 | def test_capabilities_close_explicit(self): | CODE |
| LOW | python/litert_lm/tools.py | 28 | def _parse_param_descriptions(docstring: str) -> dict[str, str]: | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 442 | def test_engine_abc_inheritance(self): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 446 | def test_engine_tokenization_api(self): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 456 | def test_engine_special_token_metadata(self): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 470 | def test_conversation_abc_inheritance(self): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 477 | def test_create_conversation_with_messages(self): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 485 | def test_create_conversation_with_message_objects(self): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 509 | def test_create_conversation_with_chat_template(self): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 517 | def test_create_conversation_with_filter_channel_content_from_kv_cache(self): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 526 | def test_create_conversation_with_max_output_tokens_async(self): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 536 | def test_conversation_send_message_object(self): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 545 | def test_conversation_send_contents_object(self): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 554 | def test_conversation_send_dict_message(self): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 563 | def test_conversation_with_thinking_config(self): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 856 | def test_session_api_apply_prompt_template(self, apply_prompt_template): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 863 | def test_response_format_validation(self): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 867 | def test_response_format_without_enabling(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 74 | def test_backend_cpu_equality(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 90 | def test_engine_init_with_cpu_thread_counts(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 124 | def test_engine_init_with_use_ringbuffers_local_attention(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 146 | def test_engine_init_with_enable_ynnpack(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 169 | def test_engine_init_with_npu_backend(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 201 | def test_npu_backend_non_windows(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 210 | def test_npu_backend_windows_no_openvino(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 221 | def test_npu_backend_windows_openvino_no_npu(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 234 | def test_npu_backend_windows_openvino_with_npu(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 255 | def test_engine_init_with_legacy_backend_class(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 272 | def test_sampler_config_validation(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 291 | def test_conversation_with_sampler_config(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 306 | def test_session_with_sampler_config(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 319 | def test_conversation_send_message(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 334 | def test_conversation_render_message_to_string(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 345 | def test_conversation_send_message_async(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 358 | def test_conversation_send_message_async_cancel(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 399 | def test_benchmark_class_with_thread_count(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 419 | def test_benchmark_class_with_enable_speculative_decoding(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 496 | def test_create_conversation_with_max_output_tokens(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 594 | def test_conversation_token_count(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 604 | def test_conversation_get_benchmark_info(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 617 | def test_create_conversation_with_extra_context(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 625 | def test_tool_event_handler_storage(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 642 | def test_session_api_run_decode(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 656 | def test_session_api_run_text_scoring_with_token_lengths(self): | CODE |
| 306 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tools/pytest/utils.py | 25 | Loads test data from a JSON file. Dynamically loads test data from a JSON file matching the caller's filename. Arg | STRING |
| HIGH | python/litert_lm/utils.py | 51 | Converts a ThinkingConfig to a LiteRtLmThinkingConfig opaque pointer. Args: lib: The loaded C library instance. | STRING |
| HIGH | python/litert_lm_cli/cli_helpers.py | 35 | Prompts the user to select an option from a list. Args: choices: The list of choices to present. message: The | STRING |
| HIGH | python/litert_lm_cli/cli_helpers.py | 70 | Resolves the model file when it is missing, prompting the user. Args: from_huggingface_repo: The HuggingFace repo | STRING |
| HIGH | python/litert_lm_cli/model.py | 45 | Returns the attachment type (audio or image) from the file path. Args: path: Path to the attachment. Returns: | STRING |
| HIGH | python/litert_lm_cli/common.py | 96 | Returns the cache directory value for the given cache mode. Args: cache: The cache mode. Valid values are "disk", | STRING |
| HIGH | python/litert_lm_cli/huggingface_download.py | 85 | Downloads a file from HuggingFace Hub. Args: repo_id: The HuggingFace repository ID. filename: The filename t | STRING |
| HIGH | python/litert_lm_cli/huggingface_download.py | 162 | Lists .litertlm files in a HuggingFace repository. Args: repo_id: The HuggingFace repository ID. token: The H | STRING |
| HIGH | python/litert_lm_cli/commands/import.py | 41 | Downloads an experimental model. Args: model_id: The unique ID of the experimental model to download. user_ag | STRING |
| HIGH | python/litert_lm_cli/commands/import.py | 92 | Copies the source file to dest, falling back to download if needed. If the source is a local file (equal to model_fil | STRING |
| HIGH | python/litert_lm_cli/commands/serve_util.py | 107 | Retrieves the persistent server engine or initializes it on first request. Lifetime Management: The LiteRT-LM Engin | STRING |
| HIGH | python/litert_lm_cli/commands/serve_util.py | 230 | Retrieves the persistent server embedding engine or initializes it on first request. Args: server: The active cus | STRING |
| HIGH | python/litert_lm_cli/commands/openai_handler.py | 163 | Parses a model parameter string into (model_id, backend, max_num_tokens). Format: "<model-id>[,<backend>[,<max-token> | STRING |
| HIGH | python/litert_lm_cli/commands/openai_handler.py | 651 | Translates an OpenAI message to a LiteRT-LM message format. This function takes a message dictionary, typically from | STRING |
| HIGH | python/litert_lm_builder/litertlm_builder_cli.py | 383 | Parses the command-line arguments. Args: parser: The argument parser to use. Returns: A list of parsed arg | STRING |
| HIGH | python/litert_lm_builder/litertlm_peek.py | 93 | Reads the header of a LiteRT-LM file and returns the metadata. Args: file_path: The path to the LiteRT-LM file. | STRING |
| HIGH | python/litert_lm_builder/litertlm_builder.py | 322 | Initializes a LitertLmFileBuilder from a loaded TOML string. Args: toml_str: The TOML string to parse. | STRING |
| HIGH | python/litert_lm_builder/litertlm_builder.py | 502 | Adds llm metadata to the litertlm file. Args: llm_metadata_path: The path to the llm metadata file. Can be bi | STRING |
| HIGH | python/litert_lm_builder/litertlm_builder.py | 572 | Adds executor metadata to the litertlm file. Args: executor_metadata_path: The path to the executor metadata | STRING |
| HIGH | python/litert_lm_builder/litertlm_builder.py | 622 | Adds embedding metadata to the litertlm file. Args: embedding_metadata_path: The path to the embedding metada | STRING |
| HIGH | python/litert_lm_builder/litertlm_builder.py | 676 | Adds a tflite model to the litertlm file. Args: tflite_model_path: The path to the tflite model file. m | STRING |
| HIGH | python/litert_lm_builder/litertlm_builder.py | 747 | Adds tflite weights to the litertlm file. Args: tflite_weights_path: The path to the tflite weights file. | STRING |
| HIGH | python/litert_lm_builder/litertlm_builder.py | 792 | Adds a sentencepiece tokenizer to the litertlm file. Args: sp_tokenizer_path: The path to the sentencepiece t | STRING |
| HIGH | python/litert_lm_builder/litertlm_builder.py | 829 | Adds a hf tokenizer to the litertlm file. Args: hf_tokenizer_path: The path to the hf tokenizer `tokenizer.js | STRING |
| HIGH | python/litert_lm_builder/litertlm_builder.py | 875 | Adds generic binary data to the litertlm file. Args: generic_binary_data_path: The path to the generic binary | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | python/litert_lm/interfaces.py | 17 | CODE | |
| LOW | python/litert_lm/_ffi.py | 16 | CODE | |
| LOW | python/litert_lm/conversation.py | 16 | CODE | |
| LOW | python/litert_lm/tools.py | 17 | CODE | |
| LOW | python/litert_lm/__init__.py | 19 | CODE | |
| LOW | python/litert_lm/__init__.py | 20 | CODE | |
| LOW | python/litert_lm/__init__.py | 21 | CODE | |
| LOW | python/litert_lm/__init__.py | 22 | CODE | |
| LOW | python/litert_lm/__init__.py | 23 | CODE | |
| LOW | python/litert_lm/__init__.py | 24 | CODE | |
| LOW | python/litert_lm/__init__.py | 25 | CODE | |
| LOW | python/litert_lm/__init__.py | 26 | CODE | |
| LOW | python/litert_lm/__init__.py | 27 | CODE | |
| LOW | python/litert_lm/__init__.py | 28 | CODE | |
| LOW | python/litert_lm/__init__.py | 29 | CODE | |
| LOW | python/litert_lm/__init__.py | 30 | CODE | |
| LOW | python/litert_lm/__init__.py | 31 | CODE | |
| LOW | python/litert_lm/__init__.py | 32 | CODE | |
| LOW | python/litert_lm/__init__.py | 33 | CODE | |
| LOW | python/litert_lm/__init__.py | 34 | CODE | |
| LOW | python/litert_lm/__init__.py | 35 | CODE | |
| LOW | python/litert_lm/__init__.py | 36 | CODE | |
| LOW | python/litert_lm/__init__.py | 37 | CODE | |
| LOW | python/litert_lm/__init__.py | 38 | CODE | |
| LOW | python/litert_lm/__init__.py | 39 | CODE | |
| LOW | python/litert_lm/__init__.py | 40 | CODE | |
| LOW | python/litert_lm/__init__.py | 41 | CODE | |
| LOW | python/litert_lm/__init__.py | 42 | CODE | |
| LOW | python/litert_lm/__init__.py | 43 | CODE | |
| LOW | python/litert_lm/__init__.py | 44 | CODE | |
| LOW | python/litert_lm/__init__.py | 45 | CODE | |
| LOW | python/litert_lm/__init__.py | 46 | CODE | |
| LOW | python/litert_lm/__init__.py | 47 | CODE | |
| LOW | python/litert_lm/__init__.py | 48 | CODE | |
| LOW | python/litert_lm/__init__.py | 49 | CODE | |
| LOW | python/litert_lm/__init__.py | 50 | CODE | |
| LOW | python/litert_lm/__init__.py | 51 | CODE | |
| LOW | python/litert_lm/__init__.py | 52 | CODE | |
| LOW | python/litert_lm/__init__.py | 53 | CODE | |
| LOW | python/litert_lm/__init__.py | 54 | CODE | |
| LOW | python/litert_lm/__init__.py | 55 | CODE | |
| LOW | python/litert_lm/__init__.py | 56 | CODE | |
| LOW | python/litert_lm/__init__.py | 57 | CODE | |
| LOW | python/litert_lm/_messages.py | 16 | CODE | |
| LOW | python/litert_lm/engine.py | 16 | CODE | |
| LOW | python/litert_lm/capabilities.py | 35 | CODE | |
| LOW | python/litert_lm/embedding_engine.py | 16 | CODE | |
| LOW | python/litert_lm_eval/litert_lm_eval.py | 43 | CODE | |
| LOW | python/litert_lm_eval/litert_lm_eval.py | 49 | CODE | |
| LOW | python/litert_lm_cli/config.py | 16 | CODE | |
| LOW | python/litert_lm_cli/model.py | 17 | CODE | |
| LOW | python/litert_lm_cli/main.py | 18 | CODE | |
| LOW | python/litert_lm_cli/commands/run.py | 33 | CODE | |
| LOW | python/litert_lm_cli/commands/convert.py | 17 | CODE | |
| LOW | python/litert_lm_cli/commands/convert.py | 18 | CODE | |
| LOW | python/litert_lm_cli/commands/convert.py | 22 | CODE | |
| LOW | python/litert_lm_cli/commands/convert.py | 23 | CODE | |
| LOW | python/litert_lm_cli/commands/convert.py | 24 | CODE | |
| LOW | python/litert_lm_cli/commands/serve.py | 20 | CODE | |
| LOW | python/litert_lm_cli/commands/serve_util.py | 15 | CODE | |
| 2 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | python/litert_lm/conversation.py | 84 | except Exception: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm/conversation.py | 118 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm/conversation.py | 264 | except Exception as e: | CODE |
| LOW | python/litert_lm/session.py | 43 | except Exception: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm/engine.py | 211 | except Exception: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm/embedding_engine.py | 418 | except Exception: # pylint: disable=broad-exception-caught | CODE |
| LOW | …tert_lm_eval/runners/lm_eval_runner/litert_lm_model.py | 78 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | …tert_lm_eval/runners/lm_eval_runner/litert_lm_model.py | 120 | except Exception as e: | CODE |
| LOW | …tert_lm_eval/runners/lm_eval_runner/litert_lm_model.py | 135 | except Exception as e: | CODE |
| LOW | python/litert_lm_cli/config.py | 152 | except Exception as e: | CODE |
| LOW | python/litert_lm_cli/config.py | 326 | except Exception as e: | CODE |
| LOW | python/litert_lm_cli/model.py | 166 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm_cli/common.py | 308 | except Exception: | CODE |
| LOW | python/litert_lm_cli/huggingface_download.py | 67 | except Exception as e: | CODE |
| LOW | python/litert_lm_cli/commands/pack.py | 181 | except Exception as e: # pylint: disable=broad-exception-caught | STRING |
| LOW | python/litert_lm_cli/commands/run.py | 416 | except Exception: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm_cli/commands/run.py | 420 | except Exception: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm_cli/commands/benchmark.py | 189 | except Exception: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm_cli/commands/gemini_handler.py | 228 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm_cli/commands/gemini_handler.py | 367 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm_cli/commands/gemini_handler.py | 430 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm_cli/commands/openai_handler.py | 371 | except Exception: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm_cli/commands/openai_handler.py | 775 | except Exception as e: | CODE |
| LOW | python/litert_lm_cli/commands/openai_handler.py | 917 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm_cli/commands/openai_handler.py | 929 | except Exception: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm_cli/commands/openai_handler.py | 1149 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm_cli/commands/openai_handler.py | 1210 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm_cli/commands/openai_handler.py | 1384 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm_cli/commands/openai_handler.py | 1474 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm_cli/commands/openai_handler.py | 1501 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm_cli/commands/openai_handler.py | 1601 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm_cli/commands/unpack.py | 168 | except Exception as e: # pylint: disable=broad-exception-caught | STRING |
| LOW | …/litert_lm_cli/commands/serve_openai_streaming_test.py | 76 | except Exception: # pylint: disable=broad-exception-caught | CODE |
| LOW | …/litert_lm_cli/commands/serve_openai_streaming_test.py | 188 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| MEDIUM | python/litert_lm_builder/litertlm_peek_main.py | 59 | print(f"Error processing file: {e}", file=sys.stderr) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/pytest/conftest.py | 139 | CODE | |
| LOW | python/litert_lm/conversation.py | 154 | CODE | |
| LOW | python/litert_lm/conversation.py | 349 | CODE | |
| LOW | python/litert_lm/tools.py | 28 | CODE | |
| LOW | python/litert_lm/session.py | 131 | CODE | |
| LOW | python/litert_lm/engine_test.py | 169 | CODE | |
| LOW | python/litert_lm/engine_test.py | 358 | CODE | |
| LOW | python/litert_lm/engine.py | 221 | CODE | |
| LOW | python/litert_lm/engine.py | 457 | CODE | |
| LOW | python/litert_lm/utils.py | 78 | CODE | |
| LOW | python/litert_lm/api_test.py | 222 | CODE | |
| LOW | python/litert_lm/embedding_engine.py | 82 | CODE | |
| LOW | python/litert_lm/embedding_engine.py | 306 | CODE | |
| LOW | python/litert_lm/examples/tool_main.py | 42 | CODE | |
| LOW | python/litert_lm_eval/utils.py | 20 | CODE | |
| LOW | …tert_lm_eval/runners/lm_eval_runner/litert_lm_model.py | 143 | CODE | |
| LOW | …tert_lm_eval/runners/lm_eval_runner/litert_lm_model.py | 207 | CODE | |
| LOW | python/litert_lm_cli/model_test.py | 46 | CODE | |
| LOW | python/litert_lm_cli/config.py | 199 | CODE | |
| LOW | python/litert_lm_cli/model.py | 115 | CODE | |
| LOW | python/litert_lm_cli/model.py | 196 | CODE | |
| LOW | python/litert_lm_cli/common.py | 268 | CODE | |
| LOW | python/litert_lm_cli/commands/import.py | 84 | CODE | |
| LOW | python/litert_lm_cli/commands/run.py | 80 | CODE | |
| LOW | python/litert_lm_cli/commands/run.py | 175 | CODE | |
| LOW | python/litert_lm_cli/commands/serve.py | 34 | CODE | |
| LOW | python/litert_lm_cli/commands/openai_handler.py | 68 | CODE | |
| LOW | python/litert_lm_cli/commands/openai_handler.py | 647 | CODE | |
| LOW | python/litert_lm_cli/commands/openai_handler.py | 851 | CODE | |
| LOW | python/litert_lm_cli/commands/openai_handler.py | 932 | CODE | |
| LOW | python/litert_lm_cli/commands/openai_handler.py | 1505 | CODE | |
| LOW | …/litert_lm_cli/commands/serve_openai_streaming_test.py | 33 | CODE | |
| LOW | python/litert_lm_builder/litertlm_peek.py | 390 | CODE | |
| LOW | python/litert_lm_builder/litertlm_peek.py | 487 | CODE | |
| LOW | python/litert_lm_builder/litertlm_peek.py | 528 | CODE | |
| LOW | python/litert_lm_builder/litertlm_builder.py | 316 | CODE | |
| LOW | python/litert_lm_builder/litertlm_builder.py | 496 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | runtime/components/prompt_template.h | 35 | // Example usage: | COMMENT |
| LOW | …/components/constrained_decoding/constrained_decoder.h | 39 | // Example usage: | COMMENT |
| LOW | runtime/engine/engine.h | 46 | // Example usage: | COMMENT |
| LOW | runtime/engine/engine.h | 279 | // Example usage: | COMMENT |
| LOW | runtime/engine/engine.h | 297 | // Example usage: | COMMENT |
| LOW | runtime/engine/engine_factory.h | 44 | // Example usage: | COMMENT |
| LOW | runtime/conversation/conversation.h | 135 | // Example usage: | COMMENT |
| LOW | runtime/conversation/conversation.h | 481 | // Example usage: | COMMENT |
| LOW | runtime/conversation/conversation.h | 599 | // Example usage: | COMMENT |
| LOW | swift/Conversation.swift | 41 | /// Example usage: | COMMENT |
| LOW | swift/EmbeddingEngine.swift | 22 | /// Example usage: | COMMENT |
| LOW | swift/Engine.swift | 22 | /// Example usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …tert_lm_eval/runners/lm_eval_runner/litert_lm_model.py | 33 | # Define the placeholder used by the evaluation harness. | COMMENT |
| MEDIUM | python/litert_lm_cli/main_test.py | 814 | # Create a dummy source file to simulate unpacking a local .litertlm file | COMMENT |
| MEDIUM | python/litert_lm_builder/litertlm_peek_test.py | 110 | # Create a temporary directory for dumping files. | COMMENT |
| MEDIUM | python/litert_lm_builder/litertlm_peek_test.py | 194 | # Create a temporary directory for dumping files. | COMMENT |
| MEDIUM | .github/workflows/ml-ci-build-win.yml | 149 | # Create a dedicated directory on the big drive for the B: mount | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | python/litert_lm/api_test.py | 27 | """Executes master comprehensive E2E tests covering multi-turn reasoning, streaming, tools, and telemetry.""" | STRING |
| MEDIUM | …tert_lm_eval/runners/lm_eval_runner/litert_lm_model.py | 33 | # Define the placeholder used by the evaluation harness. | COMMENT |
| LOW | python/litert_lm_cli/main_test.py | 395 | # Since we are in an isolated filesystem, we'll just use simple names | COMMENT |
| LOW | python/litert_lm_cli/main_test.py | 400 | # or just use paths that will exist. | COMMENT |
| LOW | python/litert_lm_builder/litertlm_builder.py | 1056 | # This is expected if the file is in text format. We'll just pass and try | COMMENT |
| MEDIUM | runtime/util/litert_lm_loader.h | 92 | // A simple hash combine. For more robust hashing, consider | COMMENT |
| MEDIUM | …ntime/framework/resource_management/resource_manager.h | 45 | // as the LlmExecutor, enabling multiple sessions to utilize it concurrently. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | python/litert_lm/interfaces.py | 430 | CODE | |
| LOW | python/litert_lm/interfaces.py | 580 | CODE | |
| LOW | python/litert_lm/conversation.py | 40 | CODE | |
| LOW | python/litert_lm/engine.py | 52 | CODE | |
| LOW | python/litert_lm/engine.py | 221 | CODE | |
| LOW | python/litert_lm_cli/commands/run.py | 175 | CODE | |
| LOW | python/litert_lm_cli/commands/run.py | 576 | CODE | |
| LOW | python/litert_lm_cli/commands/benchmark.py | 37 | CODE | |
| LOW | python/litert_lm_cli/commands/benchmark.py | 244 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | README.md | 66 | [Bringing Gemma 4 12B to your Laptop: Unlocking Local, Agentic Workflows with Google AI Edge](https://developers.googleb | CODE |
| MEDIUM | README.md | 69 | [Bring state-of-the-art agentic skills to the edge with Gemma 4](https://developers.googleblog.com/bring-state-of-the-ar | CODE |
| MEDIUM | README.md | 148 | ([blog](https://developers.googleblog.com/bring-state-of-the-art-agentic-skills-to-the-edge-with-gemma-4/)) | CODE |
| MEDIUM | docs/getting-started/cmake.md | 44 | ├── sentencepiece.cmake # Primary orchestration module (ExternalProject_Add) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | python/litert_lm_cli/bundle_pypi_package.sh | 79 | # Check if wheels were pre-fetched by Kokoro via gfile_resources into KOKORO_GFILE_DIR | COMMENT |
| LOW | python/litert_lm_cli/main_test.py | 131 | # Check if expected keys are added. | COMMENT |
| LOW | python/litert_lm_cli/main_test.py | 133 | # Check if enter (ControlM), c-j (ControlJ), esc+enter, c-c (ControlC). | COMMENT |
| LOW | python/litert_lm_builder/litertlm_peek_test.py | 132 | # Check if files were dumped in the specified directory. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | python/litert_lm_cli/huggingface_download_test.py | 80 | repo_id=repo_id, filename=filename, token="fake-token" | CODE |
| LOW | python/litert_lm_cli/huggingface_download_test.py | 96 | self.assertEqual(req.get_header("Authorization"), "Bearer fake-token") | CODE |
| LOW⚡ | python/litert_lm_cli/huggingface_download_test.py | 179 | repo_id=repo_id, token="fake-token" | CODE |
| LOW⚡ | python/litert_lm_cli/huggingface_download_test.py | 185 | self.assertEqual(req.get_header("Authorization"), "Bearer fake-token") | CODE |
| LOW | python/litert_lm_cli/huggingface_download_test.py | 204 | repo_id=repo_id, token="fake-token" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | python/litert_lm_builder/litertlm_builder_cli.py | 50 | # Section 1: SP_Tokenizer (you can also use HF_Tokenizer) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | python/litert_lm_cli/config.py | 120 | def set_config_path(config_path: str | None) -> None: | CODE |
| LOW | python/litert_lm_builder/__init__.py | 31 | __all__ = [ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | cmake/packages/tflite/shims/CMakeLists-shim.txt | 19 | # WARNING: This is an experimental that is subject to change. | COMMENT |