LiteRT-LM is Google's production-ready, high-performance, open-source inference framework for deploying Large Language Models on edge devices.
This report summarizes scanner evidence for google-ai-edge/LiteRT-LM, a C++ project with 6,639 GitHub stars. SynthScan examined 135,978 lines of code across 746 source files, recording 2352 pattern matches distributed across 18 syntactic categories. The legacy adjusted pattern signal is 23.6 (Elevated pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 1771 finding(s).
Are imports declared and package/API names verified? 75 finding(s).
Are wrappers, guards, and repeated structures necessary? 1007 finding(s).
Which changes need focused human review? 2352 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 2352 distinct pattern matches across 18 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| 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 | 44 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 46 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 79 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 81 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 101 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 103 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 147 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 149 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 173 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 175 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 197 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 199 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 221 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 223 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 244 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 246 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 262 | # ============================================================================== | COMMENT |
| MEDIUM | runtime/core/CMakeLists.txt | 264 | # ============================================================================== | 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 |
| 383 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 | …e/packages/litert/shims/CMakeLists_gated-delta-net.txt | 1 | # Copyright 2026 Google LLC. | 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/_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/model_info_test.py | 1 | # Copyright 2026 The ODML Authors. | COMMENT |
| LOW | python/litert_lm/model_info.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 |
| 1107 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | python/litert_lm/debug_artifacts_test.py | 62 | def test_get_debug_artifacts_with_warning_on_macro_disabled(self): | CODE |
| LOW | python/litert_lm/debug_artifacts_test.py | 86 | def test_get_debug_artifacts_invalid_session(self): | CODE |
| LOW | python/litert_lm/debug_artifacts_test.py | 100 | def test_get_debug_artifacts_raises_on_debug_info_error(self): | CODE |
| LOW | python/litert_lm/debug_artifacts_test.py | 115 | def test_get_debug_artifacts_raises_on_capture_dir_error(self): | CODE |
| LOW | python/litert_lm/debug_artifacts_test.py | 136 | def test_get_debug_artifacts_empty_session_dir(self): | CODE |
| LOW | python/litert_lm/debug_artifacts_test.py | 160 | def test_get_debug_artifacts_populated_session_dir_and_sorting(self): | CODE |
| LOW | python/litert_lm/debug_artifacts_test.py | 234 | def test_get_debug_artifacts_with_warning_on_macro_disabled(self): | CODE |
| LOW | python/litert_lm/debug_artifacts_test.py | 253 | def test_get_debug_artifacts_populated_dir(self): | CODE |
| LOW | python/litert_lm/messages_test.py | 79 | def test_tool_response_content(self): | CODE |
| LOW | python/litert_lm/messages_test.py | 116 | def test_contents_of_sequence(self): | CODE |
| LOW | python/litert_lm/messages_test.py | 183 | def test_message_with_tool_calls(self): | CODE |
| LOW | python/litert_lm/messages_test.py | 202 | def test_message_with_channels(self): | CODE |
| LOW | python/litert_lm/messages_test.py | 216 | def test_message_mapping_and_dict_compatibility(self): | CODE |
| LOW | python/litert_lm/messages_test.py | 296 | def test_message_from_json_tool_call_arguments_formats(self): | CODE |
| LOW | python/litert_lm/messages_test.py | 321 | def test_message_from_json_multimodal_and_tools(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 | 91 | def test_set_min_log_severity_invalid_raises(self): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 101 | def test_check_status_unknown_code(self): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 110 | def test_engine_init_setter_failure_raises_and_frees_settings(self): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 676 | def test_engine_abc_inheritance(self): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 680 | def test_engine_tokenization_api(self): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 690 | def test_engine_special_token_metadata(self): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 704 | def test_conversation_abc_inheritance(self): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 711 | def test_create_conversation_with_messages(self): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 719 | def test_create_conversation_with_message_objects(self): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 743 | def test_create_conversation_with_chat_template(self): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 751 | def test_create_conversation_with_filter_channel_content_from_kv_cache(self): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 760 | def test_create_conversation_with_enable_speculative_decoding(self): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 772 | def test_create_session_with_enable_speculative_decoding(self): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 780 | def test_create_conversation_with_max_output_tokens_async(self): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 790 | def test_conversation_send_message_object(self): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 799 | def test_conversation_send_contents_object(self): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 808 | def test_conversation_send_dict_message(self): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 817 | def test_conversation_with_thinking_config(self): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 1181 | def test_session_api_apply_prompt_template(self, apply_prompt_template): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 1188 | def test_response_format_validation(self): | CODE |
| LOW⚡ | python/litert_lm/engine_test.py | 1192 | def test_response_format_without_enabling(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 69 | def test_create_checked_raises_with_last_error_message(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 80 | def test_call_checked_raises_with_last_error_message(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 138 | def test_create_conversation_setter_failure_raises(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 156 | def test_backend_cpu_equality(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 172 | def test_engine_init_with_cpu_thread_counts(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 206 | def test_engine_init_with_use_ringbuffers_local_attention(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 228 | def test_engine_init_with_enable_ynnpack(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 272 | def test_engine_init_with_max_vision_tokens_per_image(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 303 | def test_create_conversation_with_visual_token_budget(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 353 | def test_engine_init_with_npu_backend(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 385 | def test_npu_backend_non_windows(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 394 | def test_npu_backend_windows_no_openvino(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 405 | def test_npu_backend_windows_openvino_no_npu(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 418 | def test_npu_backend_windows_openvino_with_npu(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 439 | def test_engine_init_with_legacy_backend_class(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 456 | def test_sampler_config_validation(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 475 | def test_conversation_with_sampler_config(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 490 | def test_session_with_sampler_config(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 503 | def test_conversation_send_message(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 520 | def test_conversation_render_message_to_string(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 531 | def test_conversation_send_message_async(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 544 | def test_conversation_send_message_async_cancel(self): | CODE |
| LOW | python/litert_lm/engine_test.py | 583 | def test_benchmark_reuses_engine_across_runs(self): | CODE |
| 432 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/_ffi.py | 1306 | Calls a C API constructor that returns its handle through an out-parameter. The C API constructors return a `LiteRtLm | STRING |
| HIGH | python/litert_lm/_ffi.py | 1335 | Like `create_checked`, but a NULL result on success means "absent". For C API functions whose result is legitimately | STRING |
| HIGH | python/litert_lm/_ffi.py | 1360 | Calls a C API accessor that returns its result through an out-parameter. The C API accessors return a `LiteRtLmStatus | STRING |
| HIGH | python/litert_lm/_ffi.py | 1390 | Like `get_checked`, but `kLiteRtLmStatusNotFound` means "absent". For C API accessors of optional values: they return | STRING |
| HIGH | python/litert_lm/engine.py | 493 | Creates a configured LiteRtLmSessionConfig owned by the caller. Args: apply_prompt_template: Whether to apply | STRING |
| HIGH | python/litert_lm/utils.py | 70 | Converts a ThinkingConfig to a LiteRtLmThinkingConfig opaque pointer. Args: lib: The loaded C library instance. | STRING |
| HIGH | python/litert_lm/model_info.py | 90 | Reads a two-pass `int32_t` array from a C API `*_selection` function. Args: lib: The loaded C library instance. | STRING |
| HIGH | python/litert_lm/embedding_engine.py | 140 | Creates a LiteRtLmEmbeddingOptions pointer from `options`. Args: lib: The loaded C library instance. options: | STRING |
| HIGH | python/litert_lm/embedding_engine.py | 197 | Copies the values of a LiteRtLmEmbeddingResponse into Python. Args: lib: The loaded C library instance. resp_ | 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 | 119 | Links the source file to dest using hard link, falling back to download if needed. If the source is a local file (equ | STRING |
| HIGH | python/litert_lm_cli/commands/serve/openai_common.py | 51 | 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/serve/openai_common.py | 326 | Translates an OpenAI message to a LiteRT-LM message format. This function takes a message dictionary, typically from | STRING |
| HIGH | python/litert_lm_cli/commands/serve/util.py | 119 | 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 | 242 | Retrieves the persistent server embedding engine or initializes it on first request. Args: server: The active cus | STRING |
| HIGH | python/litert_lm_builder/litertlm_builder_cli.py | 462 | 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 | 96 | 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 | 634 | 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 | 839 | 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 | 964 | 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 | 992 | 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 | 1097 | 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 | 1169 | 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 | 1264 | 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 | 1304 | 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 | 1375 | Sets or clears the backend_constraint metadata on matching sections. Useful after post-processing an unpacked packa | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | python/litert_lm/_ffi.py | 174 | except (ImportError, FileNotFoundError, TypeError): | CODE |
| HIGH | python/litert_lm/benchmark.py | 175 | except Exception: # pylint: disable=broad-exception-caught | CODE |
| HIGH | python/litert_lm/conversation.py | 93 | except Exception: # pylint: disable=broad-exception-caught | CODE |
| HIGH | python/litert_lm/session.py | 49 | except Exception: # pylint: disable=broad-exception-caught | CODE |
| HIGH | python/litert_lm/engine_test.py | 258 | except RuntimeError: | CODE |
| HIGH | python/litert_lm/engine_test.py | 379 | except RuntimeError: | CODE |
| HIGH | python/litert_lm/engine.py | 263 | except Exception: # pylint: disable=broad-exception-caught | CODE |
| HIGH | python/litert_lm/embedding_engine.py | 507 | except Exception: # pylint: disable=broad-exception-caught | CODE |
| HIGH | …tert_lm_eval/runners/lm_eval_runner/litert_lm_model.py | 78 | except Exception: # pylint: disable=broad-except | CODE |
| HIGH | python/litert_lm_cli/common.py | 314 | except OSError: | CODE |
| HIGH | python/litert_lm_cli/huggingface_download.py | 110 | except FileNotFoundError: | CODE |
| HIGH | python/litert_lm_cli/huggingface_download.py | 112 | except OSError: | CODE |
| HIGH | python/litert_lm_cli/huggingface_download.py | 71 | except OSError: | CODE |
| HIGH | python/litert_lm_cli/commands/import.py | 101 | except OSError: | CODE |
| HIGH | python/litert_lm_cli/commands/import.py | 158 | except OSError: | CODE |
| HIGH | python/litert_lm_cli/commands/serve/openai_common.py | 237 | except Exception: # pylint: disable=broad-exception-caught | CODE |
| HIGH | …/litert_lm_cli/commands/serve/openai_streaming_test.py | 77 | except Exception: # pylint: disable=broad-exception-caught | CODE |
| HIGH | python/litert_lm_cli/commands/serve/gemini_handler.py | 252 | except BrokenPipeError: | CODE |
| HIGH | python/litert_lm_cli/commands/serve/openai_models.py | 67 | except BrokenPipeError: | CODE |
| HIGH | python/litert_lm_cli/commands/serve/openai_handler.py | 327 | except BrokenPipeError: | CODE |
| HIGH | python/litert_lm_cli/commands/serve/openai_handler.py | 166 | except Exception: # pylint: disable=broad-exception-caught | CODE |
| HIGH | python/litert_lm_builder/litertlm_builder.py | 1580 | except message.DecodeError: | CODE |
| HIGH | python/litert_lm_builder/litertlm_builder.py | 1534 | except OSError: | CODE |
| 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 | 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/__init__.py | 58 | CODE | |
| LOW | python/litert_lm/__init__.py | 59 | CODE | |
| LOW | python/litert_lm/__init__.py | 60 | CODE | |
| LOW | python/litert_lm/__init__.py | 61 | CODE | |
| LOW | python/litert_lm/__init__.py | 62 | CODE | |
| LOW | python/litert_lm/_messages.py | 16 | CODE | |
| LOW | python/litert_lm/engine.py | 16 | CODE | |
| LOW | python/litert_lm/model_info.py | 67 | 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/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 | |
| 10 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | python/litert_lm/benchmark.py | 175 | except Exception: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm/conversation.py | 93 | except Exception: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm/conversation.py | 127 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm/conversation.py | 328 | except Exception as e: | CODE |
| LOW | python/litert_lm/conversation.py | 478 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm/session.py | 49 | except Exception: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm/session.py | 119 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm/engine.py | 263 | except Exception: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm/embedding_engine.py | 507 | 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 | 311 | 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 | 412 | except Exception: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm_cli/commands/run.py | 416 | 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/unpack.py | 168 | except Exception as e: # pylint: disable=broad-exception-caught | STRING |
| LOW | python/litert_lm_cli/commands/serve/openai_common.py | 237 | except Exception: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm_cli/commands/serve/openai_common.py | 450 | except Exception as e: | CODE |
| LOW | python/litert_lm_cli/commands/serve/openai_responses.py | 272 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | …/litert_lm_cli/commands/serve/openai_streaming_test.py | 77 | except Exception: # pylint: disable=broad-exception-caught | CODE |
| LOW | …/litert_lm_cli/commands/serve/openai_streaming_test.py | 189 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm_cli/commands/serve/gemini_handler.py | 227 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm_cli/commands/serve/gemini_handler.py | 366 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm_cli/commands/serve/gemini_handler.py | 429 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm_cli/commands/serve/openai_models.py | 57 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm_cli/commands/serve/openai_handler.py | 154 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm_cli/commands/serve/openai_handler.py | 166 | except Exception: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm_cli/commands/serve/openai_handler.py | 250 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | python/litert_lm_cli/commands/serve/openai_handler.py | 295 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | …itert_lm_cli/commands/serve/openai_chat_completions.py | 462 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | …thon/litert_lm_cli/commands/serve/openai_embeddings.py | 320 | 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 | 150 | CODE | |
| LOW | python/litert_lm/benchmark.py | 53 | CODE | |
| LOW | python/litert_lm/benchmark.py | 178 | CODE | |
| LOW | python/litert_lm/conversation.py | 163 | CODE | |
| LOW | python/litert_lm/conversation.py | 417 | CODE | |
| LOW | python/litert_lm/tools.py | 28 | CODE | |
| LOW | python/litert_lm/session.py | 172 | CODE | |
| LOW | python/litert_lm/engine_test.py | 353 | CODE | |
| LOW | python/litert_lm/_messages.py | 364 | CODE | |
| LOW | python/litert_lm/engine.py | 273 | CODE | |
| LOW | python/litert_lm/engine.py | 589 | CODE | |
| LOW | python/litert_lm/utils.py | 105 | CODE | |
| LOW | python/litert_lm/embedding_engine_test.py | 222 | CODE | |
| LOW | python/litert_lm/api_test.py | 225 | CODE | |
| LOW | python/litert_lm/embedding_engine.py | 85 | 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 | 47 | 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 | 271 | CODE | |
| LOW | python/litert_lm_cli/commands/import.py | 111 | CODE | |
| LOW | python/litert_lm_cli/commands/run.py | 79 | CODE | |
| LOW | python/litert_lm_cli/commands/run.py | 172 | CODE | |
| LOW | python/litert_lm_cli/commands/serve/openai_common.py | 322 | CODE | |
| LOW | …/litert_lm_cli/commands/serve/openai_streaming_test.py | 34 | CODE | |
| LOW | python/litert_lm_cli/commands/serve/openai_handler.py | 89 | CODE | |
| LOW | python/litert_lm_cli/commands/serve/module.py | 34 | CODE | |
| LOW | …thon/litert_lm_cli/commands/serve/openai_embeddings.py | 145 | CODE | |
| LOW | …thon/litert_lm_cli/commands/serve/openai_embeddings.py | 225 | CODE | |
| LOW | python/litert_lm_builder/litertlm_peek.py | 429 | CODE | |
| LOW | python/litert_lm_builder/litertlm_peek.py | 526 | CODE | |
| LOW | python/litert_lm_builder/litertlm_peek.py | 567 | CODE | |
| LOW | python/litert_lm_builder/litertlm_builder.py | 573 | CODE | |
| LOW | python/litert_lm_builder/litertlm_builder.py | 628 | CODE | |
| LOW | python/litert_lm_builder/litertlm_builder.py | 1210 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | runtime/components/prompt_template.h | 35 | // Example usage: | COMMENT |
| LOW | …/components/constrained_decoding/constrained_decoder.h | 40 | // Example usage: | COMMENT |
| LOW | runtime/engine/engine.h | 49 | // Example usage: | COMMENT |
| LOW | runtime/engine/engine.h | 282 | // Example usage: | COMMENT |
| LOW | runtime/engine/engine.h | 300 | // 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 | 609 | // 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 | 836 | # 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 | 152 | # 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 | 28 | """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 | 417 | # Since we are in an isolated filesystem, we'll just use simple names | COMMENT |
| LOW | python/litert_lm_cli/main_test.py | 422 | # or just use paths that will exist. | COMMENT |
| LOW | python/litert_lm_builder/litertlm_builder.py | 1581 | # This is expected if the file is in text format. We'll just pass and try | 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 | 442 | CODE | |
| LOW | python/litert_lm/interfaces.py | 609 | CODE | |
| LOW | python/litert_lm/conversation.py | 44 | CODE | |
| LOW | python/litert_lm/engine.py | 56 | CODE | |
| LOW | python/litert_lm/engine.py | 273 | CODE | |
| LOW | python/litert_lm_cli/commands/run.py | 172 | CODE | |
| LOW | python/litert_lm_cli/commands/run.py | 572 | 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 | 68 | [Bringing Gemma 4 12B to your Laptop: Unlocking Local, Agentic Workflows with Google AI Edge](https://developers.googleb | CODE |
| MEDIUM | README.md | 71 | [Bring state-of-the-art agentic skills to the edge with Gemma 4](https://developers.googleblog.com/bring-state-of-the-ar | 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 | 82 | # Check if wheels were pre-fetched by Kokoro via gfile_resources into KOKORO_GFILE_DIR | COMMENT |
| LOW | python/litert_lm_cli/main_test.py | 153 | # Check if expected keys are added. | COMMENT |
| LOW | python/litert_lm_cli/main_test.py | 155 | # 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 |