LLM inference server with continuous batching & SSD caching for Apple Silicon — managed from the macOS menu bar
This report summarizes scanner evidence for jundot/omlx, a Python project with 23,227 GitHub stars. SynthScan examined 797,532 lines of code across 1388 source files, recording 17814 pattern matches distributed across 23 syntactic categories. The legacy adjusted pattern signal is 26.3 (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.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 13337 finding(s).
Are imports declared and package/API names verified? 1175 finding(s).
Are wrappers, guards, and repeated structures necessary? 15599 finding(s).
Which changes need focused human review? 17814 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 17814 distinct pattern matches across 23 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 |
|---|---|---|---|---|
| LOW | setup.py | 19 | def _custom_kernel_build_kwargs() -> dict: | CODE |
| LOW | packaging/build.py | 450 | def _read_pyproject_requirements() -> dict[str, list[str]]: | CODE |
| LOW | packaging/build.py | 468 | def _generate_venvstacks_toml() -> Path: | CODE |
| LOW | packaging/build.py | 1050 | def _compute_donor_fingerprint() -> str: | CODE |
| LOW | packaging/build.py | 1071 | def _write_export_fingerprint(): | CODE |
| LOW | tests/test_deepseek_v41_ssd.py | 51 | def test_delta_growth_is_linear_and_terminal_partial_preserves_state(): | CODE |
| LOW | tests/test_deepseek_v41_ssd.py | 68 | def test_missing_or_reordered_blocks_are_rejected(indices): | CODE |
| LOW | tests/test_deepseek_v41_ssd.py | 74 | def test_legacy_anchor_and_invalid_metadata(): | CODE |
| LOW | tests/test_deepseek_v41_ssd.py | 90 | def test_real_ssd_reopen_full_and_partial_prefix( | CODE |
| LOW | tests/test_deepseek_v41_ssd.py | 235 | def test_in_memory_boundary_compacts_and_rejects_corrupt_record(): | CODE |
| LOW | tests/test_deepseek_v41_ssd.py | 253 | def test_cache_size_single_row_and_unaligned_batch(): | CODE |
| LOW⚡ | tests/test_store_cache_gate.py | 21 | def test_note_submitted_increments(self): | CODE |
| LOW⚡ | tests/test_store_cache_gate.py | 27 | def test_note_done_decrements(self): | CODE |
| LOW⚡ | tests/test_store_cache_gate.py | 34 | def test_note_done_does_not_underflow(self): | CODE |
| LOW⚡ | tests/test_store_cache_gate.py | 40 | def test_note_submitted_never_blocks_past_cap(self): | CODE |
| LOW | tests/test_store_cache_gate.py | 76 | def test_recovers_after_note_done(self): | CODE |
| LOW | tests/test_store_cache_gate.py | 83 | def test_shrinking_cap_below_in_flight_blocks_admission(self): | CODE |
| LOW | tests/test_store_cache_gate.py | 96 | def test_clamps_to_minimum_one(self): | CODE |
| LOW | tests/test_store_cache_gate.py | 103 | def test_set_cap_updates_value(self): | CODE |
| LOW | tests/test_store_cache_gate.py | 128 | def test_ok_clamps_to_max_num_seqs(self): | CODE |
| LOW | tests/test_store_cache_gate.py | 148 | def test_no_op_when_gate_missing(self): | CODE |
| LOW | tests/test_store_cache_gate.py | 161 | def test_counter_consistent_under_contention(self): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 89 | def test_dflash_draft_via_architecture(self): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 94 | def test_dflash_draft_via_config_block(self): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 98 | def test_assistant_via_model_type(self): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 161 | def test_detect_mimo_without_complete_sidecar_as_llm(self, tmp_path, model_type): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 168 | def test_detect_embedding_model_by_type(self, tmp_path): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 177 | def test_detect_embedding_model_by_architecture(self, tmp_path): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 186 | def test_detect_modernbert_embedding(self, tmp_path): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 195 | def test_detect_reranker_model(self, tmp_path): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 204 | def test_detect_xlm_roberta_reranker(self, tmp_path): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 213 | def test_detect_jina_reranker_without_name_heuristic(self, tmp_path): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 347 | def test_missing_config_defaults_to_llm(self, tmp_path): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 351 | def test_invalid_json_defaults_to_llm(self, tmp_path): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 356 | def test_empty_config_defaults_to_llm(self, tmp_path): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 361 | def test_detect_vlm_by_model_type(self, tmp_path): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 371 | def test_detect_diffusion_gemma_as_vlm(self, tmp_path): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 836 | def test_detect_vlm_fastvlm_via_mm_vision_tower(self, tmp_path): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 846 | def test_detect_text_only_quant_with_empty_mm_vision_tower_as_llm(self, tmp_path): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 856 | def test_detect_text_only_quant_no_vision_evidence_as_llm(self, tmp_path): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 924 | def test_detect_lfm_audio_architecture_as_sts(self, tmp_path): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 933 | def test_detect_lfm_audio_model_type_as_sts(self, tmp_path): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 942 | def test_detect_unknown_lfm_prefix_without_causal_lm_as_sts(self, tmp_path): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 955 | def test_estimate_from_safetensors(self, tmp_path): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 965 | def test_estimate_from_single_safetensors(self, tmp_path): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 972 | def test_estimate_from_bin_files(self, tmp_path): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 981 | def test_skip_optimizer_files(self, tmp_path): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 1493 | def test_nonexistent_directory_raises_error(self, tmp_path): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 1498 | def test_file_instead_of_directory_raises_error(self, tmp_path): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 1505 | def test_unreadable_directory_is_skipped(self, tmp_path, monkeypatch): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 1605 | def test_adapter_dir_detected(self, tmp_path): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 1610 | def test_normal_model_not_adapter(self, tmp_path): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 1616 | def test_discover_skips_lora_adapter(self, tmp_path): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 1711 | def test_top_level_takes_precedence_over_nested(self, tmp_path): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 1718 | def test_text_config_fallback(self, tmp_path): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 1723 | def test_language_config_fallback(self, tmp_path): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 1728 | def test_tokenizer_max_length_fallback(self, tmp_path): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 1733 | def test_tokenizer_sentinel_rejected(self, tmp_path): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 1742 | def test_no_config_returns_none(self, tmp_path): | CODE |
| LOW⚡ | tests/test_model_discovery.py | 1745 | def test_invalid_types_rejected(self, tmp_path): | CODE |
| 12177 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/test_openai_adapter.py | 32 | # ========================================================================= | COMMENT |
| MEDIUM⚡ | tests/test_openai_adapter.py | 34 | # ========================================================================= | COMMENT |
| MEDIUM⚡ | tests/test_openai_adapter.py | 67 | # ========================================================================= | COMMENT |
| MEDIUM⚡ | tests/test_openai_adapter.py | 69 | # ========================================================================= | COMMENT |
| MEDIUM⚡ | tests/test_openai_adapter.py | 128 | # ========================================================================= | COMMENT |
| MEDIUM⚡ | tests/test_openai_adapter.py | 130 | # ========================================================================= | COMMENT |
| MEDIUM⚡ | tests/test_openai_adapter.py | 166 | # ========================================================================= | COMMENT |
| MEDIUM⚡ | tests/test_openai_adapter.py | 168 | # ========================================================================= | COMMENT |
| MEDIUM⚡ | tests/test_openai_adapter.py | 222 | # ========================================================================= | COMMENT |
| MEDIUM⚡ | tests/test_openai_adapter.py | 224 | # ========================================================================= | COMMENT |
| MEDIUM⚡ | tests/test_openai_adapter.py | 234 | # ========================================================================= | COMMENT |
| MEDIUM⚡ | tests/test_openai_adapter.py | 236 | # ========================================================================= | COMMENT |
| MEDIUM⚡ | tests/test_openai_adapter.py | 502 | # ========================================================================= | COMMENT |
| MEDIUM⚡ | tests/test_openai_adapter.py | 504 | # ========================================================================= | COMMENT |
| MEDIUM⚡ | tests/test_openai_adapter.py | 605 | # ========================================================================= | COMMENT |
| MEDIUM⚡ | tests/test_openai_adapter.py | 607 | # ========================================================================= | COMMENT |
| MEDIUM⚡ | tests/test_openai_adapter.py | 699 | # ========================================================================= | COMMENT |
| MEDIUM⚡ | tests/test_openai_adapter.py | 701 | # ========================================================================= | COMMENT |
| MEDIUM | tests/test_openai_adapter.py | 684 | # ========================================================================= | COMMENT |
| MEDIUM | tests/test_openai_adapter.py | 686 | # ========================================================================= | COMMENT |
| MEDIUM | tests/test_vlm_cached_vision_inputs.py | 91 | # ── cache-layer grid plumbing ───────────────────────────────────────── | COMMENT |
| MEDIUM | tests/test_vlm_cached_vision_inputs.py | 114 | # ── fast path: token rebuild with all images cached ─────────────────── | COMMENT |
| MEDIUM | tests/test_vlm_cached_vision_inputs.py | 156 | # ── fast path: partial miss ──────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/test_vlm_cached_vision_inputs.py | 196 | # ── guards: every failure must fall back to the full path ───────────── | COMMENT |
| MEDIUM⚡ | tests/test_audio_realtime.py | 265 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_audio_realtime.py | 267 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_audio_realtime.py | 425 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_audio_realtime.py | 427 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_audio_realtime.py | 1260 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_audio_realtime.py | 1262 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_audio_realtime.py | 785 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_audio_realtime.py | 787 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_paged_ssd_cache.py | 2258 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_paged_ssd_cache.py | 2260 | # ============================================================================= | COMMENT |
| MEDIUM | tests/test_m5_gather_qmm_nax.py | 113 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_m5_gather_qmm_nax.py | 115 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_m5_gather_qmm_nax.py | 160 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_m5_gather_qmm_nax.py | 162 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_m5_gather_qmm_nax.py | 407 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_m5_gather_qmm_nax.py | 409 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_m5_gather_qmm_nax.py | 504 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_m5_gather_qmm_nax.py | 506 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_m5_gather_qmm_nax.py | 830 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_m5_gather_qmm_nax.py | 832 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_m5_gather_qmm_nax.py | 996 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/test_m5_gather_qmm_nax.py | 998 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/e2e_vision_cache.py | 67 | # ── Step 1: Load model ────────────────────────────────────── | COMMENT |
| MEDIUM | tests/e2e_vision_cache.py | 81 | # ── Step 2: Prepare inputs ────────────────────────────────── | COMMENT |
| MEDIUM | tests/e2e_vision_cache.py | 129 | # ── Step 3: Test _compute_vision_features ──────────────────── | COMMENT |
| MEDIUM | tests/e2e_vision_cache.py | 161 | # ── Step 4: Test cached_image_features support ─────────────── | COMMENT |
| MEDIUM | tests/e2e_vision_cache.py | 194 | # ── Step 5: Test VisionFeatureSSDCache roundtrip ───────────── | COMMENT |
| MEDIUM | tests/e2e_vision_cache.py | 230 | # ── Step 6: Cache hit performance ──────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/test_qwen35_oq_a8.py | 132 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_qwen35_oq_a8.py | 134 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_qwen35_oq_a8.py | 204 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_qwen35_oq_a8.py | 206 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_qwen35_oq_a8.py | 263 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_qwen35_oq_a8.py | 265 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_qwen35_oq_a8.py | 375 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_qwen35_oq_a8.py | 377 | # -------------------------------------------------------------------------- | COMMENT |
| 1328 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/test_audio_realtime.py | 1511 | parts.append(stream.push([codes[:, i] for i in range(start, start + size)])) | CODE |
| HIGH⚡ | tests/test_tool_calling.py | 2357 | "\"Qwen3.6-35B-A3B-ConfigI-MLX\" --timeout 180 && echo " | CODE |
| HIGH⚡ | tests/test_tool_calling.py | 2360 | "--timeout 300 && echo \"v2 dynamic completed\"', timeout=400)]" | CODE |
| HIGH | tests/test_tool_calling.py | 2058 | "\t\tif len(ce.Args) > 1 && isSubcommand(ce.Args[1]) {" | CODE |
| HIGH | tests/test_tool_calling.py | 2760 | result = _gemma4_args_to_json_robust("{data: null}") | CODE |
| HIGH | tests/test_tool_calling.py | 3248 | 'call:f(a=1, b=<|"|>two<|"|>, c=true, d=null, e=3.5)' | CODE |
| HIGH | tests/test_tool_calling.py | 5827 | "[true, null]", | CODE |
| HIGH | tests/test_tool_calling.py | 5879 | '{"enabled":true,"missing":null}', | CODE |
| HIGH | tests/test_tool_calling.py | 5882 | (["array", "null"], "[true,null]", [True, None]), | CODE |
| HIGH | tests/test_tool_calling.py | 5931 | "[true, null]", | CODE |
| HIGH | tests/test_tool_calling.py | 378 | response_format={"type": "json_schema", "json_schema": null}; the | STRING |
| HIGH⚡ | tests/test_mlx_vlm_glm5_next_compat.py | 1618 | pipe.push(h) | CODE |
| HIGH⚡ | tests/test_mlx_vlm_glm5_next_compat.py | 1633 | pipe.push(a) | CODE |
| HIGH⚡ | tests/test_cluster_rdma_evidence.py | 128 | '{"schema_version": 1, "links": [null]}', | CODE |
| HIGH | tests/test_cluster_enrollment_ssh.py | 55 | "omlxworker@cuda-worker-1 && id", | CODE |
| HIGH | tests/test_qwen4_hc_fused.py | 1144 | _NDN_INV + " if (t == 0 && g == 0) tots[(size_t)row * HC + s] = tot;\n", | CODE |
| HIGH⚡ | tests/test_responses.py | 821 | # Other optional fields keep serializing as null, as before. | COMMENT |
| HIGH⚡ | tests/test_admin_profiles_api.py | 1475 | "omlx-recipe:1:" + _b64url(zlib.compress(b'{"a": null}'))[:-4] + "AAAA", | CODE |
| HIGH⚡ | tests/test_model_loading.py | 72 | '{"auto_map": {"AutoTokenizer": ["tokenization_x.X", null]}}' | CODE |
| HIGH | tests/test_distributed_engine.py | 1151 | 'data: {"choices": [{"delta": {"content": "ok"}, "finish_reason": null}]}', | CODE |
| HIGH | tests/test_deepseek_v41_fused_attention.py | 35 | const bool ok = row >= 0 && row < (compressed ? NC : NW); | CODE |
| HIGH | tests/test_deepseek_v41_fused_attention.py | 54 | if (tid < 8 && first_head + tid < H) { | CODE |
| HIGH | tests/test_deepseek_v41_fused_attention.py | 66 | if (tid < 8 && first_head + tid < H) | CODE |
| HIGH | tests/test_deepseek_v41_fused_attention.py | 99 | const bool ok = row >= 0 && row < (compressed ? NC : NW); | CODE |
| HIGH | tests/test_deepseek_v41_fused_attention.py | 109 | const float p = head < H && valid[r] ? exp(scores[((size_t(query) * H + head) * NS * 16) + slot] - maxim | CODE |
| HIGH | tests/test_deepseek_v41_fused_attention.py | 136 | if (tid < 8 && first_head + tid < H) { | CODE |
| HIGH⚡ | omlx/server.py | 2794 | '"finish_reason":null}]}\n\n' | CODE |
| HIGH⚡ | omlx/server.py | 2799 | '"choices":[{"index":0,"text":"","logprobs":null,"finish_reason":null}]}\n\n' | CODE |
| HIGH⚡ | omlx/server.py | 2812 | '"choices":[{"index":0,"text":"","logprobs":null,"finish_reason":null}]}\n\n' | CODE |
| HIGH | omlx/server.py | 2905 | '"finish_reason":null}]}\n\n' | CODE |
| HIGH | omlx/oq.py | 6618 | if (denom > 0.0f && fabs(new_s) > tiny) { | CODE |
| HIGH⚡ | omlx/affine4.py | 280 | float positive = (sg == 0 && lane < SimdGroups) ? extrema[lane] : 0.0f; | CODE |
| HIGH⚡ | omlx/affine4.py | 282 | (sg == 0 && lane < SimdGroups) ? extrema[SimdGroups + lane] : 0.0f; | CODE |
| HIGH⚡ | omlx/affine4.py | 285 | if (sg == 0 && lane == 0) | CODE |
| HIGH | omlx/affine4.py | 475 | (!HasMask || mask[(row / QueryLength) * mask_head_stride + | CODE |
| HIGH | omlx/custom_kernels/nax_tiles.py | 810 | if constexpr (TN == 1 && TM % 2 == 0) { | CODE |
| HIGH | omlx/custom_kernels/attention/gated_delta.py | 124 | if (j < i && i < tt) | CODE |
| HIGH | omlx/custom_kernels/attention/gated_delta.py | 182 | if (j <= i && i < tt) | CODE |
| HIGH⚡ | omlx/cluster/launch.py | 504 | f"kill -TERM {pid} 2>/dev/null; sleep {max(0.0, grace):.1f}; " | CODE |
| HIGH⚡ | omlx/cluster/launch.py | 505 | f"kill -KILL {pid} 2>/dev/null; sleep 0.5; " | CODE |
| HIGH⚡ | omlx/cluster/launch.py | 506 | f"if kill -0 {pid} 2>/dev/null; then echo alive; else echo gone; fi" | CODE |
| HIGH | omlx/patches/glm53_kda_prework.py | 65 | if (is_q || is_k) { | CODE |
| HIGH | omlx/patches/glm53_kda_prework.py | 71 | if (is_q || is_k) { | CODE |
| HIGH | omlx/patches/qwen35_verify_sdpa_split.py | 257 | bool ok = r < L && key >= base && key < t_end && key <= T - L + r; | CODE |
| HIGH | omlx/patches/qwen35_verify_sdpa_split.py | 482 | bool ok = r < L && key >= t0 && key < t_end && key <= T - L + r; | CODE |
| HIGH | omlx/patches/qwen35_verify_sdpa_split.py | 499 | float a = (nmax == -INFINITY || nmax == pmax) ? 1.0f : exp(pmax - nmax); | CODE |
| HIGH | omlx/patches/glm53_kda_recurrence.py | 396 | if (ln == 0 && active) y_row[(size_t)(t0 + {t}) * v_row] = static_cast<InT>(yv); | CODE |
| HIGH | omlx/patches/glm53_kda_recurrence.py | 410 | if ((ln & 1) == 0 && active) | CODE |
| HIGH | omlx/patches/glm53_kda_recurrence.py | 545 | if (s < nh && r < ttn) {{ \\ | CODE |
| HIGH | omlx/patches/glm53_kda_recurrence.py | 558 | if (tid < nh * TB && tid % TB < ttn) \\ | CODE |
| HIGH | omlx/patches/glm53_kda_recurrence.py | 566 | if (s < nh && r < (TTN)) {{ \\ | CODE |
| HIGH | omlx/patches/glm53_kda_recurrence.py | 577 | if (tid < nh * TB && tid % TB < (TTN)) b_s[tid / TB][tid % TB] = static_cast<float>(pb); \\ | CODE |
| HIGH | omlx/patches/qwen35_moe_routed_decode.py | 325 | if (simd_gid == 0 && int(simd_lid) < RPS) { | CODE |
| HIGH | omlx/patches/qwen35_moe_routed_decode.py | 423 | if (b == 0 && simd_gid == 1) { | CODE |
| HIGH | omlx/patches/fp4_expert_rows.py | 101 | for (uint q = pid; q < NPAIRS && count < MAXDUP; ++q) { | CODE |
| HIGH | omlx/patches/qwen35_verify_qmm.py | 387 | if (part == 0 && lane < {n_acc}) {{ | CODE |
| HIGH | omlx/patches/qwen35_verify_qmm.py | 1405 | if ((lid & 15) == 0 && base < D) | CODE |
| HIGH | omlx/patches/qwen35_gdn_prework.py | 101 | bool is_k = logical_head >= k_head_base && logical_head < v_head_base; | CODE |
| HIGH | omlx/patches/qwen35_gdn_prework.py | 132 | if (is_q || is_k) { | CODE |
| HIGH | omlx/patches/qwen35_gdn_prework.py | 179 | if (S < NKEEP && row == 0) { | CODE |
| 303 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | packaging/build.py | 621 | except (subprocess.CalledProcessError, FileNotFoundError): | CODE |
| HIGH | tests/test_mlx_lm_mtp_patch.py | 2496 | except Exception: | CODE |
| HIGH | tests/test_qwen4_ple_load_resources_cpu.py | 154 | except ValueError: | CODE |
| HIGH | tests/test_qwen4_ple_load_resources_cpu.py | 172 | except ValueError: | CODE |
| HIGH | tests/test_qwen4_ple_load_resources_cpu.py | 149 | except ValueError: | CODE |
| HIGH | tests/test_mtp_prompt_priming.py | 567 | except Exception: | CODE |
| HIGH | tests/test_cluster_tensor_parallel.py | 295 | except PlanningError: | CODE |
| HIGH | tests/test_grammar_live.py | 375 | except Exception as e: | CODE |
| HIGH | tests/test_audio_tts.py | 1133 | except RuntimeError: | CODE |
| HIGH | tests/test_audio_tts.py | 1027 | except RuntimeError: | CODE |
| HIGH | tests/test_audio_tts.py | 1221 | except RuntimeError: | CODE |
| HIGH | tests/test_audio_tts.py | 1520 | except RuntimeError: | CODE |
| HIGH | tests/test_qwen35_moe_weighted_sum.py | 44 | except Exception: | CODE |
| HIGH | tests/integration/test_e2e_streaming.py | 227 | except json.JSONDecodeError: | CODE |
| HIGH | tests/integration/test_e2e_streaming.py | 1211 | except json.JSONDecodeError: | CODE |
| HIGH | omlx/reasoning_effort.py | 123 | except Exception: | CODE |
| HIGH | omlx/server.py | 839 | except ImportError: | CODE |
| HIGH | omlx/server.py | 781 | except asyncio.CancelledError: | CODE |
| HIGH | omlx/server.py | 4887 | except (TypeError, ValueError): | CODE |
| HIGH | omlx/server.py | 7874 | except (TypeError, ValueError): | CODE |
| HIGH | omlx/server.py | 3193 | except asyncio.CancelledError: | CODE |
| HIGH | omlx/server.py | 1557 | except Exception: | CODE |
| HIGH | omlx/server.py | 3164 | except (asyncio.CancelledError, StopAsyncIteration): | CODE |
| HIGH | omlx/server.py | 3252 | except Exception: | CODE |
| HIGH | omlx/server.py | 3288 | except (asyncio.CancelledError, StopAsyncIteration): | CODE |
| HIGH | omlx/server.py | 7132 | except (json.JSONDecodeError, AttributeError): | CODE |
| HIGH | omlx/server.py | 7683 | except (json.JSONDecodeError, AttributeError): | CODE |
| HIGH | omlx/server.py | 9605 | except (json.JSONDecodeError, AttributeError): | CODE |
| HIGH | omlx/server.py | 3123 | except (asyncio.CancelledError, StopAsyncIteration): | CODE |
| HIGH | omlx/server.py | 3249 | except (asyncio.CancelledError, StopAsyncIteration): | CODE |
| HIGH | omlx/server.py | 5438 | except (json.JSONDecodeError, AttributeError): | CODE |
| HIGH | omlx/server.py | 8228 | except (json.JSONDecodeError, AttributeError): | CODE |
| HIGH | omlx/server.py | 8987 | except (json.JSONDecodeError, AttributeError): | CODE |
| HIGH | omlx/config.py | 35 | except ValueError: | CODE |
| HIGH | omlx/process_memory_enforcer.py | 1170 | except Exception: | CODE |
| HIGH | omlx/engine_core.py | 1467 | except Exception: | CODE |
| HIGH | omlx/cli.py | 562 | except Exception: | CODE |
| HIGH | omlx/cli.py | 456 | except KeyboardInterrupt: | CODE |
| HIGH | omlx/model_discovery.py | 1768 | except Exception: | CODE |
| HIGH | omlx/settings.py | 90 | except (AttributeError, ValueError, OSError): | CODE |
| HIGH | omlx/settings.py | 152 | except FileNotFoundError: | CODE |
| HIGH | omlx/oq.py | 6060 | except Exception: | CODE |
| HIGH | omlx/oq.py | 6071 | except Exception: | CODE |
| HIGH | omlx/oq.py | 6083 | except Exception: | CODE |
| HIGH | omlx/oq.py | 8215 | except Exception: | CODE |
| HIGH | omlx/scheduler.py | 942 | except ImportError: | CODE |
| HIGH | omlx/scheduler.py | 1294 | except ImportError: | CODE |
| HIGH | omlx/scheduler.py | 8367 | except (AttributeError, KeyError, TypeError, ValueError): | CODE |
| HIGH | omlx/scheduler.py | 8433 | except Exception: | CODE |
| HIGH | omlx/scheduler.py | 8441 | except (AttributeError, KeyError, TypeError): | CODE |
| HIGH | omlx/scheduler.py | 9092 | except Exception: | CODE |
| HIGH | omlx/scheduler.py | 3935 | except Exception: | CODE |
| HIGH | omlx/scheduler.py | 3989 | except Exception: | CODE |
| HIGH | omlx/scheduler.py | 8395 | except (KeyError, TypeError, ValueError): | CODE |
| HIGH | omlx/scheduler.py | 8503 | except Exception: | CODE |
| HIGH | omlx/scheduler.py | 8510 | except Exception: | CODE |
| HIGH | omlx/scheduler.py | 8534 | except Exception: | CODE |
| HIGH | omlx/scheduler.py | 10057 | except Exception: | CODE |
| HIGH | omlx/scheduler.py | 12053 | except ValueError: | CODE |
| HIGH | omlx/scheduler.py | 3628 | except Exception: | CODE |
| 194 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packaging/build.py | 823 | except Exception: # pragma: no cover — build runs may not have omlx on path yet | CODE |
| MEDIUM | tests/test_paged_ssd_cache.py | 3327 | def do_preload(): | CODE |
| MEDIUM | tests/test_paged_ssd_cache.py | 3333 | def do_loads(): | CODE |
| LOW | tests/test_paged_ssd_cache.py | 3330 | except Exception as e: | CODE |
| LOW | tests/test_paged_ssd_cache.py | 3338 | except Exception as e: | CODE |
| LOW | tests/test_m5_gather_qmm_nax.py | 35 | except Exception: # noqa: BLE001 | CODE |
| LOW | tests/test_cluster_control_plane.py | 47 | except Exception as exc: # pragma: no cover - relayed to main thread | CODE |
| LOW | tests/test_cluster_control_plane.py | 106 | except Exception as exc: # pragma: no cover - relayed below | CODE |
| LOW | tests/test_cluster_control_plane.py | 155 | except Exception as exc: # pragma: no cover - relayed below | CODE |
| LOW | tests/test_cluster_control_plane.py | 296 | except Exception as exc: | CODE |
| MEDIUM | tests/test_cluster_control_plane.py | 34 | def coordinator(): | CODE |
| MEDIUM | tests/test_cluster_control_plane.py | 80 | def participant(rank): | CODE |
| MEDIUM | tests/test_cluster_control_plane.py | 143 | def coordinator(): | CODE |
| MEDIUM | tests/test_cluster_control_plane.py | 284 | def coordinator(): | CODE |
| LOW | tests/e2e_vision_cache.py | 98 | except Exception: | CODE |
| LOW | tests/e2e_vision_cache.py | 104 | except Exception: | CODE |
| LOW | tests/test_qwen35_oq_a8.py | 33 | except Exception: | CODE |
| LOW | tests/test_ms_downloader.py | 336 | except Exception: # The SDK retries on any Exception. | CODE |
| LOW | tests/test_deepseek_v4_sparse_attention_nax.py | 27 | except Exception: # noqa: BLE001 | CODE |
| MEDIUM | tests/test_deepseek_v4_sparse_attention_nax.py | 22 | def _nax_hardware() -> bool: | CODE |
| MEDIUM | tests/test_mlx_lm_mtp_patch.py | 330 | def _apply(self): | CODE |
| MEDIUM | tests/test_mlx_lm_mtp_patch.py | 6124 | def _nax_available() -> bool: | CODE |
| LOW | tests/test_mlx_lm_mtp_patch.py | 2496 | except Exception: | CODE |
| LOW | tests/test_mlx_lm_mtp_patch.py | 6129 | except Exception: | CODE |
| LOW | tests/test_audio_stt.py | 1609 | except Exception as e: | CODE |
| LOW | tests/test_glm_moe_dsa_patch.py | 345 | except Exception as exc: # pragma: no cover - depends on local native build | CODE |
| LOW | tests/test_glm_moe_dsa_patch.py | 649 | except Exception as exc: # pragma: no cover - depends on local native build | CODE |
| LOW | tests/test_glm_moe_dsa_patch.py | 792 | except Exception as exc: # pragma: no cover - depends on local native build | CODE |
| LOW | tests/test_glm_moe_dsa_patch.py | 856 | except Exception as exc: # pragma: no cover - depends on local native build | CODE |
| MEDIUM | tests/test_cluster_pairing_session.py | 502 | def forget(): | CODE |
| LOW | tests/test_cluster_pairing_session.py | 505 | except Exception as exc: | CODE |
| LOW⚡ | tests/test_mtp_prompt_priming.py | 567 | except Exception: | CODE |
| LOW | tests/test_turboquant_batch_memory.py | 33 | except Exception: | CODE |
| MEDIUM | tests/test_turboquant_batch_memory.py | 28 | def _model_path(): | CODE |
| LOW | tests/test_turboquant_ssd.py | 27 | except Exception: | CODE |
| MEDIUM | tests/test_turboquant_ssd.py | 22 | def _model_path(): | CODE |
| LOW | tests/test_m5_gather_qmm_a8.py | 29 | except Exception: | CODE |
| MEDIUM | tests/test_m5_gather_qmm_a8.py | 24 | def _a8_ready() -> bool: | CODE |
| LOW | tests/test_prefill_progress.py | 146 | except Exception as e: | CODE |
| MEDIUM | tests/test_prefill_progress.py | 139 | def updater(model_id, start): | CODE |
| LOW | tests/test_admin_unload.py | 31 | except Exception as e: | CODE |
| MEDIUM | tests/test_torch_stub.py | 423 | def worker(): | CODE |
| LOW | tests/test_torch_stub.py | 430 | except Exception as e: | CODE |
| LOW⚡ | tests/test_grammar_live.py | 151 | except Exception: | CODE |
| LOW | tests/test_grammar_live.py | 375 | except Exception as e: | CODE |
| MEDIUM | tests/test_grammar_live.py | 147 | def _server_available(): | CODE |
| MEDIUM | tests/test_cluster_pairing.py | 521 | def approve(): | CODE |
| LOW | tests/test_cluster_pairing.py | 524 | except Exception as exc: # pragma: no cover - asserted below | CODE |
| MEDIUM | tests/test_mlx_vlm_qwen4_exp_compat.py | 2229 | def close(): | CODE |
| LOW | tests/test_mlx_vlm_qwen4_exp_compat.py | 2232 | except Exception as exc: | CODE |
| LOW | tests/test_embedding.py | 1405 | except Exception as e: | CODE |
| MEDIUM | tests/test_glm5_next_mtp.py | 1464 | def _native_indexer_available() -> bool: | CODE |
| LOW⚡ | tests/test_glm5_next_mtp.py | 1472 | except Exception: # noqa: BLE001 | CODE |
| LOW | tests/test_audio_tts.py | 1603 | except Exception as e: | CODE |
| LOW | tests/test_cache_observability.py | 219 | except Exception as e: | CODE |
| LOW | tests/test_cache_observability.py | 227 | except Exception as e: | CODE |
| MEDIUM | tests/test_model_settings.py | 784 | def worker(model_id): | CODE |
| LOW | tests/test_model_settings.py | 789 | except Exception as e: | CODE |
| LOW | tests/test_audio_sts.py | 473 | except Exception as e: | CODE |
| LOW | tests/test_audio_sts.py | 499 | except Exception as e: | CODE |
| 1182 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_cluster_settings_toggle.py | 4 | CODE | |
| LOW | tests/test_nccl_fabric_worker.py | 4 | CODE | |
| LOW | tests/test_qwen35_q4_mlp.py | 1 | CODE | |
| LOW | tests/test_openai_adapter.py | 20 | CODE | |
| LOW | tests/test_minimax_m3_pipeline.py | 10 | CODE | |
| LOW | tests/test_paged_ssd_cache.py | 44 | CODE | |
| LOW | tests/test_hybrid_cache.py | 9 | CODE | |
| LOW | tests/test_hybrid_cache.py | 10 | CODE | |
| LOW | tests/test_hybrid_cache.py | 11 | CODE | |
| LOW | tests/test_hybrid_cache.py | 11 | CODE | |
| LOW | tests/test_hybrid_cache.py | 11 | CODE | |
| LOW | tests/test_hybrid_cache.py | 11 | CODE | |
| LOW | tests/test_hybrid_cache.py | 12 | CODE | |
| LOW | tests/test_hybrid_cache.py | 12 | CODE | |
| LOW | tests/test_hybrid_cache.py | 24 | CODE | |
| LOW | tests/test_hybrid_cache.py | 29 | CODE | |
| LOW | tests/test_hybrid_cache.py | 35 | CODE | |
| LOW | tests/test_hybrid_cache.py | 935 | CODE | |
| LOW | tests/test_cluster_ssh_policy.py | 4 | CODE | |
| LOW | tests/test_cluster_rdma_mailbox.py | 4 | CODE | |
| LOW | tests/test_web_search.py | 11 | CODE | |
| LOW | tests/test_flint_decode.py | 4 | CODE | |
| LOW | tests/test_m5_gather_qmm.py | 4 | CODE | |
| LOW | tests/test_cluster_rdma_pipeline.py | 4 | CODE | |
| LOW | tests/test_cluster_rdma_probe.py | 4 | CODE | |
| LOW | tests/test_utils_hardware.py | 8 | CODE | |
| LOW | tests/test_m5_gather_qmm_nax.py | 11 | CODE | |
| LOW | tests/test_cache_ntuple_state.py | 18 | CODE | |
| LOW | tests/test_cache_ntuple_state.py | 282 | CODE | |
| LOW | tests/test_jaccl_side_channel.py | 4 | CODE | |
| LOW | tests/test_dflash_batched.py | 3 | CODE | |
| LOW | tests/e2e_vision_cache.py | 21 | CODE | |
| LOW | tests/test_stream_usage.py | 6 | CODE | |
| LOW | tests/test_v1_models_visibility.py | 4 | CODE | |
| LOW | tests/test_qwen35_oq_a8.py | 17 | CODE | |
| LOW | tests/test_deepseek_v4_patch.py | 287 | CODE | |
| LOW | tests/test_ms_downloader.py | 6 | CODE | |
| LOW | tests/test_cluster_link_bandwidth.py | 4 | CODE | |
| LOW | tests/test_mcp_config.py | 9 | CODE | |
| LOW | tests/test_prefix_cache_cachelist_mixed.py | 28 | CODE | |
| LOW | tests/test_cluster_runtime_version_source.py | 11 | CODE | |
| LOW | tests/test_shared_models.py | 5 | CODE | |
| LOW | tests/test_cluster_rdma_stage_transport.py | 4 | CODE | |
| LOW | tests/test_cluster_rdma_routes.py | 4 | CODE | |
| LOW | tests/test_prefix_cache_rotating_tip_strip.py | 34 | CODE | |
| LOW | tests/test_deepseek_v4_sparse_attention_nax.py | 8 | CODE | |
| LOW | tests/test_mbpp_extract_code.py | 9 | CODE | |
| LOW | tests/test_admin_restart.py | 10 | CODE | |
| LOW | tests/test_admin_reload.py | 8 | CODE | |
| LOW | tests/test_utils_formatting.py | 4 | CODE | |
| LOW | tests/test_cluster_prefill_guard.py | 4 | CODE | |
| LOW | tests/test_gemma4_rendering.py | 7 | CODE | |
| LOW | tests/test_qwen4_qsa_incremental_cache.py | 5 | CODE | |
| LOW | tests/test_clone_mlx_model_fp16.py | 2 | CODE | |
| LOW | tests/test_nested_nstate_serialization.py | 24 | CODE | |
| LOW | tests/test_admin_hot_cache_clear.py | 17 | CODE | |
| LOW | tests/test_qwen4_qsa_native_indexer.py | 5 | CODE | |
| LOW | tests/test_model_registry.py | 10 | CODE | |
| LOW | tests/test_admin_api_key.py | 15 | CODE | |
| LOW | tests/test_mlx_lm_mtp_patch.py | 4 | CODE | |
| 743 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_qwen35_q4_mlp.py | 244 | CODE | |
| LOW | tests/test_qwen35_q4_mlp.py | 523 | CODE | |
| LOW | tests/test_qwen35_q4_mlp.py | 610 | CODE | |
| LOW | tests/test_mimo_v2_patch.py | 1155 | CODE | |
| LOW | tests/test_paged_ssd_cache.py | 836 | CODE | |
| LOW | tests/test_paged_ssd_cache.py | 1887 | CODE | |
| LOW | tests/test_paged_ssd_cache.py | 1987 | CODE | |
| LOW | tests/test_k2_tool_grammar.py | 50 | CODE | |
| LOW | tests/test_dflash_batched.py | 801 | CODE | |
| LOW | tests/test_moe_offload_compat.py | 14 | CODE | |
| LOW | tests/test_mlx_lm_mtp_patch.py | 3336 | CODE | |
| LOW | tests/test_mlx_lm_mtp_patch.py | 4897 | CODE | |
| LOW | tests/test_mlx_lm_mtp_patch.py | 5585 | CODE | |
| LOW | tests/test_mlx_lm_mtp_patch.py | 5709 | CODE | |
| LOW | tests/test_mlx_lm_mtp_patch.py | 5817 | CODE | |
| LOW | tests/test_mlx_lm_mtp_patch.py | 5960 | CODE | |
| LOW | tests/test_qwen4_ple_load_resources_cpu.py | 136 | CODE | |
| LOW | tests/test_mlx_vlm_glm5_next_compat.py | 1108 | CODE | |
| LOW | tests/test_mlx_vlm_glm5_next_compat.py | 2109 | CODE | |
| LOW | tests/test_mlx_vlm_glm5_next_compat.py | 1119 | CODE | |
| LOW | tests/test_engine_core.py | 224 | CODE | |
| LOW | tests/test_engine_core.py | 264 | CODE | |
| LOW | tests/test_engine_core.py | 851 | CODE | |
| LOW | tests/test_engine_core.py | 1008 | CODE | |
| LOW | tests/test_engine_core.py | 1219 | CODE | |
| LOW | tests/test_prefill_fairness_budget.py | 350 | CODE | |
| LOW | tests/test_qwen35_fp16_decode.py | 203 | CODE | |
| LOW | tests/test_m5_gather_qmm_a8.py | 38 | CODE | |
| LOW | tests/test_deepseek_v4_wsdpa.py | 18 | CODE | |
| LOW | tests/test_scheduler_boundary_completion.py | 50 | CODE | |
| LOW | tests/test_scheduler_boundary_completion.py | 335 | CODE | |
| LOW | tests/test_scheduler_chunked_prefill.py | 951 | CODE | |
| LOW | tests/test_vlm_engine.py | 2076 | CODE | |
| LOW | tests/test_mlx_vlm_qwen4_exp_compat.py | 1511 | CODE | |
| LOW | tests/test_glm_mtp_patch.py | 80 | CODE | |
| LOW | tests/test_affine4.py | 145 | CODE | |
| LOW | tests/test_oq.py | 3254 | CODE | |
| LOW | tests/test_glm5_next_mtp.py | 699 | CODE | |
| LOW | tests/test_glm5_next_mtp.py | 964 | CODE | |
| LOW | tests/test_glm5_next_mtp.py | 1310 | CODE | |
| LOW | tests/rdma_pipeline_worker.py | 45 | CODE | |
| LOW | tests/test_thinking_budget.py | 519 | CODE | |
| LOW | tests/test_minimax_m3_sparse_attention_patch.py | 28 | CODE | |
| LOW | tests/test_minimax_m3_sparse_attention_patch.py | 472 | CODE | |
| LOW | tests/test_ane_tuning.py | 1075 | CODE | |
| LOW | tests/test_glm_moe_dsa_offload.py | 57 | CODE | |
| LOW | tests/test_bailing_hybrid_patch.py | 853 | CODE | |
| LOW | tests/test_mlx_vlm_muse_glimmer_compat.py | 422 | CODE | |
| LOW | tests/test_mlx_vlm_muse_glimmer_compat.py | 631 | CODE | |
| LOW | tests/test_deepseek_v41_moe_offload.py | 467 | CODE | |
| LOW | tests/test_deepseek_v41_moe_offload.py | 575 | CODE | |
| LOW | tests/test_vlm_batch_kv_capacity.py | 94 | CODE | |
| LOW | tests/test_k2_acceleration.py | 225 | CODE | |
| LOW | tests/test_cli.py | 1791 | CODE | |
| LOW | tests/test_boundary_snapshot_store.py | 122 | CODE | |
| LOW | tests/test_boundary_snapshot_store.py | 766 | CODE | |
| LOW | tests/test_moe_expert_offload.py | 1136 | CODE | |
| LOW | tests/test_reranker_causal_lm.py | 489 | CODE | |
| LOW | tests/test_qwen35_moe_verify_window.py | 229 | CODE | |
| LOW | tests/integration/test_vlm_mrope_integration.py | 153 | CODE | |
| 571 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/mocks.py | 110 | def set_responses(self, responses: List[List[MockResponse]]) -> None: | CODE |
| LOW | tests/mocks.py | 193 | def set_paged_ssd_cache_manager(self, manager: Any) -> None: | CODE |
| LOW⚡ | tests/mocks.py | 278 | def set_cold_restore_callback(self, callback: Callable) -> None: | CODE |
| LOW⚡ | tests/mocks.py | 286 | def set_paged_ssd_cache_manager(self, manager: Any) -> None: | CODE |
| LOW | omlx/reasoning_effort.py | 10 | logger = logging.getLogger(__name__) | CODE |
| LOW | omlx/model_settings.py | 32 | logger = logging.getLogger(__name__) | CODE |
| LOW | omlx/model_settings.py | 986 | def set_settings(self, model_id: str, settings: ModelSettings) -> None: | CODE |
| LOW | omlx/gguf.py | 38 | logger = logging.getLogger(__name__) | CODE |
| LOW⚡ | omlx/server.py | 254 | logger = logging.getLogger(__name__) | CODE |
| LOW | omlx/logging_config.py | 83 | def set_request_id(request_id: Optional[str]) -> None: | CODE |
| LOW | omlx/usage_history.py | 13 | logger = logging.getLogger(__name__) | CODE |
| LOW | omlx/usage_history.py | 227 | def set_enabled(self, enabled: bool) -> None: | STRING |
| LOW | omlx/prefill_transient_tracker.py | 18 | logger = logging.getLogger(__name__) | CODE |
| LOW | omlx/turboquant_kv.py | 45 | logger = logging.getLogger(__name__) | CODE |
| LOW | omlx/turboquant_kv.py | 65 | __all__ = [ | CODE |
| LOW | omlx/request.py | 311 | def set_finished(self, status: RequestStatus, reason: Optional[str] = None) -> None: | CODE |
| LOW | omlx/__init__.py | 58 | __all__ = [ | CODE |
| LOW | omlx/server_metrics.py | 20 | logger = logging.getLogger(__name__) | CODE |
| LOW | omlx/process_memory_enforcer.py | 57 | logger = logging.getLogger(__name__) | CODE |
| LOW | omlx/optimizations.py | 34 | logger = logging.getLogger(__name__) | CODE |
| LOW | omlx/optimizations.py | 36 | __all__ = [ | CODE |
| LOW | omlx/engine_core.py | 60 | logger = logging.getLogger(__name__) | CODE |
| LOW | omlx/websearch.py | 37 | logger = logging.getLogger(__name__) | CODE |
| LOW | omlx/model_discovery.py | 29 | logger = logging.getLogger(__name__) | CODE |
| LOW | omlx/settings.py | 38 | logger = logging.getLogger(__name__) | CODE |
| LOW | omlx/settings.py | 421 | def set_gdn_snapshot_storage(self, mode: str) -> None: | CODE |
| LOW | omlx/oq.py | 66 | logger = logging.getLogger(__name__) | CODE |
| LOW | omlx/affine4.py | 24 | logger = logging.getLogger(__name__) | CODE |
| LOW | omlx/affine4.py | 29 | __all__ = [ | CODE |
| LOW⚡ | omlx/scheduler.py | 16073 | def _set_model_info_for_monitor(self) -> None: | CODE |
| LOW | omlx/scheduler.py | 475 | def set_cap(self, cap: int) -> None: | CODE |
| LOW | omlx/scheduler.py | 554 | logger = logging.getLogger(__name__) | CODE |
| LOW | omlx/_torch_stub.py | 31 | logger = logging.getLogger(__name__) | CODE |
| LOW | omlx/engine_pool.py | 97 | logger = logging.getLogger(__name__) | CODE |
| LOW | omlx/engine_pool.py | 322 | def _set_concurrency_limits(config: object, value: int) -> None: | CODE |
| LOW | omlx/engine_pool.py | 327 | def _set_decode_cap(scheduler: object, value: int) -> None: | CODE |
| LOW | omlx/model_registry.py | 22 | logger = logging.getLogger(__name__) | CODE |
| LOW⚡ | omlx/memory_monitor.py | 481 | def set_ane_prefill_transient_bytes(self, value: int) -> None: | CODE |
| LOW⚡ | omlx/memory_monitor.py | 2125 | def set_model_info_from_model(monitor: "MemoryMonitor", model: Any) -> None: | CODE |
| LOW | omlx/memory_monitor.py | 30 | logger = logging.getLogger(__name__) | CODE |
| LOW | omlx/memory_monitor.py | 351 | def set_baseline_memory(self) -> None: | CODE |
| LOW | omlx/memory_monitor.py | 375 | def set_request_stats(self, running: int, waiting: int) -> None: | CODE |
| LOW | omlx/memory_monitor.py | 604 | def set_fixed_state_bytes(self, n: int) -> None: | CODE |
| LOW | omlx/custom_kernels/_loader.py | 13 | logger = logging.getLogger(__name__) | CODE |
| LOW | omlx/custom_kernels/nax.py | 11 | __all__ = ["is_nax_available"] | CODE |
| LOW | omlx/custom_kernels/moe_staging/__init__.py | 13 | logger = logging.getLogger(__name__) | CODE |
| LOW | omlx/custom_kernels/attention/__init__.py | 6 | __all__ = ["fast"] | CODE |
| LOW | omlx/custom_kernels/sparse_index/__init__.py | 6 | __all__ = ["fast"] | CODE |
| LOW | omlx/custom_kernels/quant_matmul/__init__.py | 6 | __all__ = ["ane", "fast"] | CODE |
| LOW | omlx/custom_kernels/quant_matmul/fast.py | 16 | logger = logging.getLogger(__name__) | CODE |
| LOW | omlx/custom_kernels/lowbit/__init__.py | 9 | __all__ = ["fast"] | CODE |
| LOW | omlx/cluster/worker_shim.py | 30 | logger = logging.getLogger(__name__) | CODE |
| LOW | omlx/cluster/liveness.py | 41 | logger = logging.getLogger(__name__) | CODE |
| LOW⚡ | omlx/cluster/discovery.py | 2078 | def update_service(self, zc: Any, type_: str, name: str) -> None: | CODE |
| LOW⚡ | omlx/cluster/discovery.py | 2085 | def update_service_callback(self, *args: Any, **kwargs: Any) -> None: | CODE |
| LOW | omlx/cluster/discovery.py | 531 | logger = logging.getLogger(__name__) # noqa: E402 | CODE |
| LOW | omlx/cluster/prefill_guard.py | 30 | logger = logging.getLogger(__name__) | CODE |
| LOW | omlx/cluster/tensor_strategies.py | 910 | __all__ = [ | CODE |
| LOW | omlx/cluster/progressive_loading.py | 311 | __all__ = [ | CODE |
| LOW | omlx/cluster/model_inventory.py | 213 | __all__ = [ | CODE |
| 324 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pyproject.toml | 41 | # Vanilla MLX v0.32.4; optional custom kernels live under | COMMENT |
| LOW | pyproject.toml | 81 | "protobuf", | COMMENT |
| LOW | pyproject.toml | 161 | # ParoQuant runtime loader for paroquant-quantized models. Installed | COMMENT |
| LOW | packaging/build.py | 701 | # produced fresh each build from pyproject.toml + venvstacks.toml. | COMMENT |
| LOW | packaging/venvstacks.toml | 1 | # oMLX venvstacks layer template | COMMENT |
| LOW | tests/test_tool_calling.py | 4941 | assert cleaned == "" | COMMENT |
| LOW | tests/test_cluster_inference_worker.py | 681 | assert written["phase"] == "ready" | COMMENT |
| LOW | tests/test_hf_downloader.py | 5061 | assert call_kwargs["etag_timeout"] == 30 | COMMENT |
| LOW | omlx/model_settings.py | 481 | dflash_draft_quant_enabled: Optional[bool] = None | COMMENT |
| LOW | omlx/model_settings.py | 521 | is_default: bool = False # Only one model can be default | COMMENT |
| LOW | omlx/server.py | 7461 | COMMENT | |
| LOW | omlx/prefill_transient_tracker.py | 41 | _EWMA_ALPHA = 0.3 # weight on the most recent chunk | COMMENT |
| LOW | omlx/request.py | 161 | # Ordinary prefix reuse awaiting scheduling validation; None once recorded. | COMMENT |
| LOW | omlx/request.py | 361 | prompt_tokens: int = 0 | COMMENT |
| LOW | omlx/process_memory_enforcer.py | 481 | # Most recently observed pressure level, consumed by scheduler / | COMMENT |
| LOW | omlx/engine_core.py | 321 | stream_interval: int = 1 # Tokens to batch before streaming (1=every token) | COMMENT |
| LOW | omlx/engine_core.py | 821 | # accumulates one collector + one stream_state + one | COMMENT |
| LOW | omlx/model_discovery.py | 301 | # handled as audio types (audio_stt / audio_tts) — see AUDIO_* sets below. | COMMENT |
| LOW | omlx/oq.py | 4861 | ) | COMMENT |
| LOW | omlx/oq.py | 4881 | # that omlx could not load. | COMMENT |
| LOW | omlx/oq.py | 7521 | if text_only: | COMMENT |
| LOW | omlx/oq.py | 9841 | return _oq_imatrix_entries(collector.entries, config), metadata | COMMENT |
| LOW | omlx/exceptions.py | 601 | COMMENT | |
| LOW | omlx/scheduler.py | 701 | # about to become the model input anyway — see _omlx_advance_grammar_rows. | COMMENT |
| LOW | omlx/scheduler.py | 1781 | # ~1/3 of wall time) is the measured sweet spot on M3 Ultra: contended | COMMENT |
| LOW | omlx/scheduler.py | 1921 | # Per-forward embedding input chunk size | COMMENT |
| LOW | omlx/scheduler.py | 2221 | # Load additional EOS tokens from generation_config.json. | COMMENT |
| LOW | omlx/scheduler.py | 2321 | self._generation_overflow_recovery_ids: set[str] = set() | COMMENT |
| LOW | omlx/scheduler.py | 2341 | # Set by ProcessMemoryEnforcer.request_pressure_reclaim() when memory | COMMENT |
| LOW | omlx/scheduler.py | 2361 | self._memory_limit_bytes: int = 0 # soft limit (dynamic, jittery) | COMMENT |
| LOW | omlx/scheduler.py | 2381 | # binding and suggest the right remedy (close apps / raise tier / | COMMENT |
| LOW | omlx/scheduler.py | 2521 | # Async store_cache executor (G2-async). Offloads the post-finish | COMMENT |
| LOW | omlx/scheduler.py | 2561 | self.paged_cache_manager: PagedCacheManager | None = None | COMMENT |
| LOW | omlx/scheduler.py | 2721 | self.moe_offload_release: Callable[[], int] | None = None | COMMENT |
| LOW | omlx/scheduler.py | 3221 | ) | COMMENT |
| LOW | omlx/scheduler.py | 4461 | # Prepare VLM embeddings for prefill | COMMENT |
| LOW | omlx/scheduler.py | 4641 | # slices, and the advance views for the next chunk) stay inside | COMMENT |
| LOW | omlx/scheduler.py | 4921 | _materialize_cache_storage(prompt_cache) | COMMENT |
| LOW | omlx/scheduler.py | 9001 | # function. A recursive closure holds itself through its own | COMMENT |
| LOW | omlx/scheduler.py | 10281 | layer_cache, | COMMENT |
| LOW | omlx/scheduler.py | 11221 | if drafter is None or request.sampling_params.logprobs: | COMMENT |
| LOW | omlx/scheduler.py | 12381 | # local in _schedule_waiting. If _do_external_prefill raises, the | COMMENT |
| LOW | omlx/scheduler.py | 12401 | if req is not None: | COMMENT |
| LOW | omlx/scheduler.py | 13241 | estimated_bytes=preflight_rejection.estimated_bytes, | COMMENT |
| LOW | omlx/scheduler.py | 14241 | # Store cache for future reuse (G2-async): submit to background | COMMENT |
| LOW | omlx/scheduler.py | 14421 | # FULL eval (not async_eval) on the owner | COMMENT |
| LOW | omlx/scheduler.py | 15581 | # omlx ships its own non-compiled sampler | COMMENT |
| LOW | omlx/scheduler.py | 15601 | # Refresh the executor-owned MLX active-memory sample. | COMMENT |
| LOW | omlx/scheduler.py | 16101 | # encoder*, not the LM, and accepting it silently miscalibrates | COMMENT |
| LOW | omlx/scheduler.py | 16521 | # from the memory monitor. | COMMENT |
| LOW | omlx/_torch_stub.py | 41 | # path), but the symbol is re-exported from ``xgrammar.__init__``. | COMMENT |
| LOW | omlx/_torch_stub.py | 341 | COMMENT | |
| LOW | omlx/engine_pool.py | 2801 | # Pre-load admission against the memory ceiling from the | COMMENT |
| LOW | omlx/engine_pool.py | 3341 | await self._reclaim_pooled_buffers_for_prefill( | COMMENT |
| LOW | omlx/engine_pool.py | 3821 | return | COMMENT |
| LOW | omlx/engine_pool.py | 4601 | raise | COMMENT |
| LOW | omlx/memory_monitor.py | 101 | # ``set_model_info(compute_dtype_size=...)``; this default covers the rare | COMMENT |
| LOW | omlx/custom_kernels/attention/gated_delta.py | 601 | # fp32 summation order of the two 128-wide dots differs: | COMMENT |
| LOW | omlx/custom_kernels/attention/csrc/sparse_mla.cpp | 1 | #include "sparse_mla.h" | COMMENT |
| LOW | omlx/custom_kernels/attention/csrc/sparse_mla.cpp | 161 | // ~= BK*(DC+pad)*2B). At BK=256 the 32-head variant uses ~24KB -> only ONE | COMMENT |
| 196 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | omlx/server.py | 1462 | Get engine for the specified model and type. This is the unified engine getter that handles LLM, embedding, re | STRING |
| HIGH | omlx/server.py | 1757 | Get LLM engine for the specified model (or default). This is a convenience wrapper around get_engine() for LLM | STRING |
| HIGH | omlx/server.py | 1795 | Get embedding engine for the specified model. This is a convenience wrapper around get_engine() for embedding | STRING |
| HIGH | omlx/server.py | 1813 | Get reranker engine for the specified model. This is a convenience wrapper around get_engine() for reranker mo | STRING |
| HIGH | omlx/scheduler.py | 4361 | Run prefill externally (outside BatchGenerator) for a single request. Processes tokens[0:N-1] through the model | STRING |
| HIGH | omlx/engine_pool.py | 2680 | Get or load engine for the specified model. This method implements pre-load memory checking: 1 | STRING |
| HIGH | omlx/model_registry.py | 62 | Attempt to acquire ownership of a model. Args: model: The MLX model engine: Th | STRING |
| HIGH | omlx/cache/paged_cache.py | 270 | Pop n blocks from the front. Args: n: Number of blocks to allocate Returns: | STRING |
| HIGH | omlx/cache/paged_cache.py | 682 | Allocate multiple blocks at once (vLLM style). Args: num_blocks: Number of blocks to alloc | STRING |
| HIGH | omlx/admin/auth.py | 387 | FastAPI dependency to require admin authentication. This dependency can be used in route definitions to protect | STRING |
| HIGH | omlx/admin/ms_downloader.py | 726 | Start downloading a model from ModelScope. Args: model_id: ModelScope model ID (e.g., "qwen/Qwen2.5 | STRING |
| HIGH | omlx/admin/ms_downloader.py | 839 | Retry a failed or cancelled download, resuming from existing files. Args: task_id: The task ID of t | STRING |
| HIGH | omlx/admin/hf_downloader.py | 1787 | Start downloading a model from HuggingFace. Args: repo_id: HuggingFace repository ID (e.g., "mlx-co | STRING |
| HIGH | omlx/admin/hf_downloader.py | 1916 | Retry a failed or cancelled download, resuming from existing files. Finalized shards are preserved on disk so s | STRING |
| HIGH | omlx/admin/hf_uploader.py | 414 | Validate a HuggingFace token and return user info. Args: token: HuggingFace write-access token. | STRING |
| HIGH | omlx/admin/hf_uploader.py | 550 | Queue a model upload to HuggingFace Hub. Args: model_path: Local path to the oQ model directory. | STRING |
| HIGH | omlx/admin/oq_manager.py | 323 | Start a quantization job. Args: model_path: Path to source model directory. oq_level: o | STRING |
| HIGH | omlx/admin/routes.py | 1892 | Authenticate with API key and create session. Requires an API key to be configured on the server. If no API ke | STRING |
| HIGH | omlx/admin/routes.py | 1949 | Set up the initial API key when none is configured. This endpoint is only available when no API key is current | STRING |
| HIGH | omlx/admin/routes.py | 2101 | Create a new sub API key. Sub keys can only be used for API authentication, not admin login. Args: req | STRING |
| HIGH | omlx/admin/routes.py | 2157 | Delete a sub API key. Args: request: DeleteSubKeyRequest with the key to delete. Returns: JSON | STRING |
| HIGH | omlx/admin/routes.py | 2812 | Update settings for a specific model. Updates are persisted to the settings file and applied immediately t | STRING |
| HIGH | omlx/admin/routes.py | 4359 | Read model config files and return recommended defaults. Returns the sampling settings a new model starts with | STRING |
| HIGH | omlx/admin/routes.py | 4803 | Update global server settings. Updates are persisted to the global settings file. Some settings, including | STRING |
| HIGH | omlx/admin/routes.py | 6201 | Get server logs. Returns the last N lines of the specified log file (or current log). Supports viewing his | STRING |
| HIGH | omlx/utils/image.py | 217 | Load an image from a base64 data URI. Supports: - Data URIs: "data:image/jpeg;base64,..." format Deco | STRING |
| HIGH | omlx/mcp/config.py | 30 | Load MCP configuration from file. Search order: 1. Explicit path argument 2. OMLX_MCP_CONFIG environme | STRING |
| HIGH | omlx/mcp/config.py | 101 | Validate and parse configuration dictionary. Args: data: Raw configuration dictionary Returns: | STRING |
| HIGH | omlx/mcp/tools.py | 50 | Parse OpenAI tool call back to MCP format. Args: tool_call: OpenAI tool call from model response | STRING |
| HIGH | omlx/api/embedding_utils.py | 133 | Normalize the request ``input`` field into engine-ready items. Supported shapes: - A single string -> one | STRING |
| HIGH | omlx/engine/sts.py | 342 | Process an audio file through the STS model. For speech enhancement models (DeepFilterNet, MossFormer2 | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/test_admin_api_key.py | 0 | create a mock globalsettings with the given api key. | STRING |
| HIGH | tests/test_admin_auth.py | 0 | create a mock globalsettings with the given api key. | STRING |
| HIGH | apps/omlx-web/tests/test_admin_auth_ui.py | 0 | create a mock globalsettings with the given api key. | STRING |
| HIGH | tests/test_admin_api_key.py | 0 | replace the module-level _get_global_settings with a lambda returning mock. | STRING |
| HIGH | tests/test_admin_auth.py | 0 | replace the module-level _get_global_settings with a lambda returning mock. | STRING |
| HIGH | apps/omlx-web/tests/test_admin_auth_ui.py | 0 | replace the module-level _get_global_settings with a lambda returning mock. | STRING |
| HIGH | tests/test_audio_stt.py | 0 | register audio routes if not already present (e.g., mlx-audio not installed). | STRING |
| HIGH | tests/test_audio_tts.py | 0 | register audio routes if not already present (e.g., mlx-audio not installed). | STRING |
| HIGH | tests/test_audio_sts.py | 0 | register audio routes if not already present (e.g., mlx-audio not installed). | STRING |
| HIGH | tests/test_audio_stt.py | 0 | testclient using the full omlx server app with mocked sts pool. | STRING |
| HIGH | tests/test_audio_tts.py | 0 | testclient using the full omlx server app with mocked sts pool. | STRING |
| HIGH | tests/test_audio_sts.py | 0 | testclient using the full omlx server app with mocked sts pool. | STRING |
| HIGH | tests/test_audio_stt.py | 0 | enginepool.get_engine() is called with the model id. | STRING |
| HIGH | tests/test_audio_sts.py | 0 | enginepool.get_engine() is called with the model id. | STRING |
| HIGH | tests/test_audio_tts.py | 0 | enginepool.get_engine() is called with the model id. | STRING |
| HIGH | omlx/patches/qwen35_verify_sdpa_split.py | 0 | #include <metalperformanceprimitives/metalperformanceprimitives.h> using namespace mpp::tensor_ops; | STRING |
| HIGH | omlx/patches/qwen35_packed_linear.py | 0 | #include <metalperformanceprimitives/metalperformanceprimitives.h> using namespace mpp::tensor_ops; | STRING |
| HIGH | omlx/patches/deepseek_v4/sparse_attention_nax.py | 0 | #include <metalperformanceprimitives/metalperformanceprimitives.h> using namespace mpp::tensor_ops; | STRING |
| HIGH | omlx/patches/glm_moe_dsa/sparse_mla_nax.py | 0 | #include <metalperformanceprimitives/metalperformanceprimitives.h> using namespace mpp::tensor_ops; | STRING |
| HIGH | omlx/patches/glm_moe_dsa/indexer_nax.py | 0 | #include <metalperformanceprimitives/metalperformanceprimitives.h> using namespace mpp::tensor_ops; | STRING |
| HIGH | omlx/patches/mlx_vlm_glm5_next_compat/decode_kernels.py | 0 | #include <metalperformanceprimitives/metalperformanceprimitives.h> using namespace mpp::tensor_ops; | STRING |
| HIGH | omlx/admin/ms_downloader.py | 0 | remove a completed, failed, or cancelled task from the list. args: task_id: the task id to remove. returns: true if the | STRING |
| HIGH | omlx/admin/hf_downloader.py | 0 | remove a completed, failed, or cancelled task from the list. args: task_id: the task id to remove. returns: true if the | STRING |
| HIGH | omlx/admin/hf_uploader.py | 0 | remove a completed, failed, or cancelled task from the list. args: task_id: the task id to remove. returns: true if the | STRING |
| HIGH | omlx/admin/ms_downloader.py | 0 | return all tasks as serializable dicts, ordered by creation time. | STRING |
| HIGH | omlx/admin/hf_downloader.py | 0 | return all tasks as serializable dicts, ordered by creation time. | STRING |
| HIGH | omlx/admin/hf_uploader.py | 0 | return all tasks as serializable dicts, ordered by creation time. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/test_model_discovery.py | 1960 | # Create a normal LLM model | COMMENT |
| MEDIUM⚡ | tests/test_model_discovery.py | 1968 | # Create a whisper ASR model | COMMENT |
| MEDIUM | tests/test_model_discovery.py | 1481 | # Create a file at top level | COMMENT |
| MEDIUM | tests/test_model_discovery.py | 1852 | # Create a small safetensors file | COMMENT |
| MEDIUM | tests/test_model_discovery.py | 1981 | # Create a TTS model | COMMENT |
| MEDIUM | tests/test_paged_ssd_cache.py | 3410 | # Create a BlockTable | COMMENT |
| MEDIUM | tests/test_deepseek_v4_patch.py | 1713 | # Create a fake model dir with a non-deepseek config. | COMMENT |
| MEDIUM | tests/test_engine_core.py | 757 | # Create a task that calls generate - it will block on event.wait() | COMMENT |
| MEDIUM | tests/test_hf_downloader.py | 297 | # Create a fake model directory to simulate download | COMMENT |
| MEDIUM | tests/test_hf_downloader.py | 1344 | # Create a mock global settings | COMMENT |
| MEDIUM | tests/test_hf_downloader.py | 3082 | # Create a fake README file with YAML front matter | COMMENT |
| MEDIUM | tests/test_scheduler.py | 5046 | # Create a mock CacheList object | COMMENT |
| MEDIUM⚡ | tests/test_embedding.py | 235 | # Create a unit vector [0.6, 0.8, 0.0] (norm = 1.0) | COMMENT |
| MEDIUM | tests/test_embedding.py | 254 | # Create a vector [1, 1, 1] / sqrt(3) = [0.577, 0.577, 0.577] | COMMENT |
| MEDIUM⚡ | tests/test_batched_engine.py | 661 | # Create a mock model where config is a dict | COMMENT |
| MEDIUM | tests/test_audio_tts.py | 1364 | # Create a base64 string just over the limit | COMMENT |
| MEDIUM | tests/test_mcp_manager.py | 294 | # Create a user tool with same name as MCP tool | COMMENT |
| MEDIUM | tests/test_hot_cache.py | 548 | # Create a fake hot cache entry with raw bytes | COMMENT |
| MEDIUM | tests/test_hf_uploader.py | 361 | # Create a fake safetensors file | COMMENT |
| MEDIUM | tests/test_index_cache.py | 107 | # Create a mock model with 4 layers | COMMENT |
| MEDIUM⚡ | tests/test_admin_auth.py | 237 | # Create a token with the new serializer | COMMENT |
| MEDIUM | omlx/_torch_stub.py | 34 | # This module is the *single source of truth* — packaging/build.py imports | COMMENT |
| MEDIUM | omlx/admin/routes.py | 6340 | # This file is at omlx/admin/routes.py → package dir is omlx/ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | omlx/model_settings.py | 538 | # Longest audio item, in seconds, an embedding model reads before cutting | COMMENT |
| MEDIUM | omlx/server.py | 1228 | # on the failure mode. Without it, "context window too small" | COMMENT |
| MEDIUM | omlx/server.py | 4133 | # as null-filled arrays inside a 200, and a RAG pipeline stores the | COMMENT |
| MEDIUM | omlx/server.py | 4608 | # Validate context window for each prompt | COMMENT |
| MEDIUM | omlx/server.py | 5148 | # Validate context window before sending to model | COMMENT |
| MEDIUM | omlx/server.py | 8089 | # Validate context window before sending to model | COMMENT |
| MEDIUM | omlx/server.py | 8742 | # Validate context window | COMMENT |
| MEDIUM | omlx/model_profiles.py | 120 | # Memory residency of an embedding model's audio tower; explicit per model. | COMMENT |
| MEDIUM | omlx/model_discovery.py | 215 | # Known embedding model types from mlx-embeddings | COMMENT |
| MEDIUM | omlx/cache/paged_ssd_cache.py | 375 | # mlx-lm Qwen3.5-family modules whose ``YarnRoPE`` comes from a context window | COMMENT |
| MEDIUM | omlx/admin/routes.py | 2537 | # Native context window from the model's config.json — used by | COMMENT |
| MEDIUM | omlx/adapter/harmony.py | 507 | # Extract chain-of-thought text from analysis channel | COMMENT |
| MEDIUM | omlx/integrations/claude.py | 151 | # set the *detected* context window for custom model IDs that | COMMENT |
| MEDIUM | omlx/integrations/claude.py | 160 | # built-in context window for those regardless of this variable. | COMMENT |
| MEDIUM | omlx/api/openai_models.py | 675 | # effective context window from the listing without a separate call | COMMENT |
| MEDIUM | omlx/api/tool_calling.py | 1389 | # agentic load (large system prompt + many tool schemas + a big tool result) | COMMENT |
| MEDIUM | omlx/eval/mmlu.py | 76 | # Load dev examples for few-shot | COMMENT |
| MEDIUM | omlx/eval/mmlu.py | 110 | # Add few-shot examples | COMMENT |
| MEDIUM | omlx/engine/stt.py | 857 | # AlignAtt decoder, which bypasses the whole anti-hallucination | COMMENT |
| MEDIUM | apps/omlx-mac/Sources/AppView/AppView.swift | 556 | // MARK: - Detail scaffold | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_engine_pool.py | 2555 | # Set limit to allow each model individually but not both together | COMMENT |
| LOW⚡ | tests/test_settings.py | 2250 | # Set env to port 8888 | COMMENT |
| LOW | tests/integration/test_vlm_mrope_integration.py | 731 | # Check if model supports cached_image_features | COMMENT |
| LOW | omlx/cli.py | 522 | # Check if oMLX server is running | COMMENT |
| LOW | omlx/cli.py | 607 | # Check if tool is installed | COMMENT |
| LOW | omlx/scheduler.py | 9910 | # Check if it's a list of cache layers | COMMENT |
| LOW | omlx/scheduler.py | 9941 | # Check if layer has expected structure | COMMENT |
| LOW | omlx/scheduler.py | 13178 | # Check if prompt ends with <think> token for reasoning models. | COMMENT |
| LOW | omlx/scheduler.py | 13839 | # Check if this request uses a protocol-specific output parser | COMMENT |
| LOW | omlx/engine_pool.py | 4378 | # Check if memory enforcer requested abort during loading | COMMENT |
| LOW | omlx/engine_pool.py | 4846 | # Check if model has active requests | COMMENT |
| LOW | omlx/memory_monitor.py | 32 | # Check if MLX Metal is available | COMMENT |
| LOW | omlx/cluster/ssh_keys.py | 351 | # Check if key already exists | COMMENT |
| LOW | omlx/cluster/transport.py | 286 | # Check if there's a TB connection between host i and host j | COMMENT |
| LOW | omlx/cache/paged_ssd_cache.py | 3307 | # Check if block was evicted while write was pending. | COMMENT |
| LOW | omlx/cache/vision_feature_cache.py | 314 | # Check if already on SSD. Entries without grid metadata are not | COMMENT |
| LOW | omlx/cache/prefix_cache.py | 797 | # Check if this layer is RotatingKVCache | COMMENT |
| LOW | omlx/cache/prefix_cache.py | 1000 | # Check if cache_data contains extracted tensor states | COMMENT |
| LOW | omlx/cache/prefix_cache.py | 1288 | # Check if this block already exists (deduplication) | COMMENT |
| LOW | omlx/cache/prefix_cache.py | 2730 | # Check if all sub-caches are sliceable 4D KVCache tensors. | COMMENT |
| LOW | omlx/patches/specprefill.py | 1047 | # Check if model has RoPE (Nemotron-H doesn't) | COMMENT |
| LOW | omlx/patches/deepseek_v4/chat_template_v4.py | 427 | # Check if previous message has a task - if so, this is a task output (no thinking) | COMMENT |
| LOW | omlx/patches/deepseek_v4/cache_extras.py | 1157 | # Check if all caches are empty | COMMENT |
| LOW | omlx/patches/deepseek_v41/encoding.py | 680 | # Check if previous message has a task - if so, this is a task output (no thinking) | COMMENT |
| LOW | omlx/admin/ms_downloader.py | 35 | # Check if modelscope SDK is available | COMMENT |
| LOW | omlx/admin/ms_downloader.py | 913 | # Check if cancelled while waiting in queue | COMMENT |
| LOW | omlx/admin/ms_downloader.py | 980 | # Check if cancelled while downloading - clean up downloaded files | COMMENT |
| LOW | omlx/admin/hf_downloader.py | 2011 | # Check if cancelled while waiting in queue | COMMENT |
| LOW | omlx/admin/hf_downloader.py | 2204 | # Check if cancelled while downloading | COMMENT |
| LOW | omlx/admin/routes.py | 2835 | # Check if model exists | COMMENT |
| LOW | omlx/mcp/executor.py | 176 | # Check if tool exists | COMMENT |
| LOW | omlx/adapter/harmony.py | 293 | # Check if this is a special token (should not be streamed) | COMMENT |
| LOW | omlx/api/thinking.py | 346 | # Check if this could be a tag start | COMMENT |
| LOW | omlx/api/thinking.py | 374 | # Check if it could be a partial tag (not enough chars yet) | COMMENT |
| LOW | omlx/api/anthropic_utils.py | 610 | # Check if pre-truncation content was JSON-like | COMMENT |
| LOW | omlx/engine/vlm.py | 5462 | # Check if user provided meaningful text | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL⚡ | apps/omlx-web/omlx_web/static/js/marked.umd.js | 1473 | while ((match = this.tokenizer.rules.inline.reflinkSearch.exec(maskedSrc)) != null) { | CODE |
| CRITICAL⚡ | apps/omlx-web/omlx_web/static/js/marked.umd.js | 1481 | while ((match = this.tokenizer.rules.inline.blockSkip.exec(maskedSrc)) != null) { | CODE |
| CRITICAL⚡ | apps/omlx-web/omlx_web/static/js/marked.umd.js | 1485 | while ((match = this.tokenizer.rules.inline.anyPunctuation.exec(maskedSrc)) != null) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_system_sampler.py | 19 | CODE | |
| LOW | tests/test_mlx_vlm_glm5_next_compat.py | 3562 | CODE | |
| LOW | tests/test_mlx_vlm_pixtral_torch_free.py | 39 | CODE | |
| LOW | tests/test_specprefill_target.py | 123 | CODE | |
| LOW | tests/test_cluster_pairing.py | 100 | CODE | |
| LOW | tests/test_cluster_v2_discovery.py | 109 | CODE | |
| LOW | tests/test_cache_observability.py | 13 | CODE | |
| LOW | tests/test_oq_fused_qkv_virtual.py | 155 | CODE | |
| LOW | omlx/model_settings.py | 1490 | CODE | |
| LOW | omlx/server.py | 1882 | CODE | |
| LOW | omlx/process_memory_enforcer.py | 410 | CODE | |
| LOW | omlx/engine_core.py | 718 | CODE | |
| LOW | omlx/oq.py | 6883 | CODE | |
| LOW | omlx/oq.py | 10472 | CODE | |
| LOW | omlx/oq.py | 11045 | CODE | |
| LOW | omlx/memory_monitor.py | 485 | CODE | |
| LOW | omlx/cluster/progressive_loading.py | 74 | CODE | |
| LOW | omlx/cluster/telemetry.py | 1096 | CODE | |
| LOW | omlx/cluster/telemetry.py | 121 | CODE | |
| LOW | omlx/cluster/pairing.py | 852 | CODE | |
| LOW | omlx/cluster/autoconfigure.py | 142 | CODE | |
| LOW | omlx/cache/observability.py | 107 | CODE | |
| LOW | omlx/cache/paged_ssd_cache.py | 294 | CODE | |
| LOW | omlx/cache/paged_ssd_cache.py | 1768 | CODE | |
| LOW | omlx/cache/prefix_cache.py | 950 | CODE | |
| LOW | omlx/patches/qwen35_ane_prefill.py | 3075 | CODE | |
| LOW | omlx/patches/specprefill.py | 595 | CODE | |
| LOW | omlx/patches/deepseek_v41/loading.py | 85 | CODE | |
| LOW | omlx/patches/deepseek_v41/packed_attention.py | 373 | CODE | |
| LOW | omlx/patches/deepseek_v41/packed_attention.py | 407 | CODE | |
| LOW | omlx/patches/deepseek_v41/oq.py | 367 | CODE | |
| LOW | omlx/patches/mlx_lm_mtp/qwen35_model.py | 387 | CODE | |
| LOW | omlx/admin/hf_downloader.py | 1460 | CODE | |
| LOW | omlx/admin/ane_tuning.py | 371 | CODE | |
| LOW | omlx/admin/ane_tuning.py | 766 | CODE | |
| LOW | omlx/admin/oq_manager.py | 304 | CODE | |
| LOW | omlx/admin/routes.py | 8000 | CODE | |
| LOW | omlx/utils/sampling.py | 202 | CODE | |
| LOW | omlx/utils/sampling.py | 308 | CODE | |
| LOW | omlx/api/audio_routes.py | 512 | CODE | |
| LOW | omlx/engine/tts.py | 186 | CODE | |
| LOW | omlx/engine/tts.py | 330 | CODE | |
| LOW | omlx/engine/vlm.py | 4789 | CODE | |
| LOW | omlx/engine/vlm.py | 4907 | CODE | |
| LOW | omlx/engine/vlm.py | 5067 | CODE | |
| LOW | omlx/engine/vlm.py | 5319 | CODE | |
| LOW | omlx/engine/distributed.py | 215 | CODE | |
| LOW | omlx/engine/distributed.py | 1196 | CODE | |
| LOW | omlx/engine/distributed.py | 1311 | CODE | |
| LOW | omlx/engine/distributed.py | 1574 | CODE | |
| LOW | omlx/engine/distributed.py | 1661 | CODE | |
| LOW | omlx/engine/batched.py | 1153 | CODE | |
| LOW | omlx/engine/batched.py | 1243 | CODE | |
| LOW | omlx/engine/batched.py | 1383 | CODE | |
| LOW | omlx/engine/batched.py | 1550 | CODE | |
| LOW | omlx/engine/base.py | 411 | CODE | |
| LOW | omlx/engine/base.py | 443 | CODE | |
| LOW | omlx/engine/base.py | 475 | CODE | |
| LOW | omlx/engine/base.py | 507 | CODE | |
| LOW | omlx/engine/splash.py | 1610 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/test_tool_calling.py | 2732 | # Gemma 4 robust fallback parser tests | COMMENT |
| MEDIUM | tests/test_mlx_lm_mtp_patch.py | 233 | """Rank zero's broadcasts, replayed in order to a rank run after it.""" | STRING |
| MEDIUM⚡ | tests/test_integrations.py | 2402 | # the harness session default, so launch must not force a picker. | COMMENT |
| MEDIUM | tests/test_integrations.py | 2598 | # The harness refuses duplicate mapping keys, so each key lands once. | COMMENT |
| LOW | omlx/output_collector.py | 70 | # Replace: just use the new output | COMMENT |
| MEDIUM | omlx/scheduler.py | 11560 | # by omlx) would yield a list. Guard so the path stays robust | COMMENT |
| LOW | omlx/scheduler.py | 3293 | # If window_size itself is already >= max, just use window_size. | COMMENT |
| MEDIUM | omlx/cluster/strategy_benchmarks.py | 189 | """Return robust medians for each TP degree at the nearest context bucket.""" | STRING |
| LOW | omlx/utils/model_loading.py | 1754 | # The quant method may be already supported by mlx-lm; simply return None. | COMMENT |
| MEDIUM | omlx/integrations/dsh.py | 52 | # from these — a shell started *inside* a harness session exports them, which | COMMENT |
| MEDIUM⚡ | omlx/integrations/dsh.py | 365 | # The harness parser (js-yaml) rejects duplicate keys; PyYAML keeps the last. | COMMENT |
| MEDIUM⚡ | omlx/integrations/dsh.py | 620 | # The harness refuses to load a credential store with group/other bits. | COMMENT |
| MEDIUM⚡ | omlx/api/tool_calling.py | 1343 | # Gemma 4 robust fallback parser | COMMENT |
| MEDIUM | omlx/api/tool_calling.py | 2179 | # Gemma 4 only: try robust fallback that handles bare | COMMENT |
| LOW | omlx/api/tool_calling.py | 3995 | # Handle None or text format - just return original | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | packaging/build.py | 646 | # Step 0: Render the resolved venvstacks.toml from pyproject.toml deps | COMMENT |
| LOW⚡ | packaging/build.py | 653 | # Step 1: Build wheels from git-pinned packages | COMMENT |
| LOW⚡ | packaging/build.py | 656 | # Step 2: Swap git URLs in the resolved toml for local wheel paths | COMMENT |
| LOW⚡ | packaging/build.py | 666 | # Step 3: Lock environments (always re-lock to match current wheels) | COMMENT |
| LOW⚡ | packaging/build.py | 681 | # Step 4: Build environments | COMMENT |
| LOW⚡ | packaging/build.py | 689 | # Step 5: Export to local directory for app bundle | COMMENT |
| LOW⚡ | tests/test_pooling_cache_append_inplace.py | 338 | # Step 1: row 0 completes 10 windows (40 tokens), row 1 completes 1 | COMMENT |
| LOW | tests/test_pooling_cache_append_inplace.py | 353 | # Step 2: row 0 completes nothing (3 tokens), row 1 completes 2 windows. | COMMENT |
| LOW⚡ | tests/integration/test_vlm_mrope_integration.py | 543 | # Step 1: image request | COMMENT |
| LOW | tests/integration/test_vlm_mrope_integration.py | 561 | # Step 2: text-only request (must not be contaminated by prior rope_deltas) | COMMENT |
| LOW⚡ | omlx/cache/prefix_cache.py | 2095 | # Step 2: Fallback - find max seq_len among all 4D tensors | COMMENT |
| LOW | omlx/cache/prefix_cache.py | 2048 | # Step 1: Search for a sliceable KVCache layer (full attention) | COMMENT |
| LOW | omlx/cache/prefix_cache.py | 2141 | # Step 3: CacheList fallback — check sub-states for seq_len | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | packaging/build.py | 646 | # Step 0: Render the resolved venvstacks.toml from pyproject.toml deps | COMMENT |
| LOW⚡ | packaging/build.py | 653 | # Step 1: Build wheels from git-pinned packages | COMMENT |
| LOW⚡ | packaging/build.py | 656 | # Step 2: Swap git URLs in the resolved toml for local wheel paths | COMMENT |
| LOW⚡ | packaging/build.py | 666 | # Step 3: Lock environments (always re-lock to match current wheels) | COMMENT |
| LOW⚡ | packaging/build.py | 681 | # Step 4: Build environments | COMMENT |
| LOW⚡ | packaging/build.py | 689 | # Step 5: Export to local directory for app bundle | COMMENT |
| LOW⚡ | tests/test_pooling_cache_append_inplace.py | 338 | # Step 1: row 0 completes 10 windows (40 tokens), row 1 completes 1 | COMMENT |
| LOW | tests/test_pooling_cache_append_inplace.py | 353 | # Step 2: row 0 completes nothing (3 tokens), row 1 completes 2 windows. | COMMENT |
| LOW⚡ | tests/integration/test_vlm_mrope_integration.py | 543 | # Step 1: image request | COMMENT |
| LOW | tests/integration/test_vlm_mrope_integration.py | 561 | # Step 2: text-only request (must not be contaminated by prior rope_deltas) | COMMENT |
| LOW⚡ | omlx/cache/prefix_cache.py | 2095 | # Step 2: Fallback - find max seq_len among all 4D tensors | COMMENT |
| LOW | omlx/cache/prefix_cache.py | 2048 | # Step 1: Search for a sliceable KVCache layer (full attention) | COMMENT |
| LOW | omlx/cache/prefix_cache.py | 2141 | # Step 3: CacheList fallback — check sub-states for seq_len | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/test_audio_stt.py | 1189 | CODE | |
| MEDIUM | tests/test_mtp_prompt_priming.py | 1479 | CODE | |
| MEDIUM | tests/test_cluster_prompt_snapshot_integration.py | 45 | CODE | |
| MEDIUM | tests/test_audio_tts.py | 727 | CODE | |
| MEDIUM | tests/test_server_prefill_memory_handler.py | 179 | CODE | |
| MEDIUM | tests/test_sse_keepalive.py | 104 | CODE | |
| MEDIUM | omlx/engine/splash.py | 1692 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_systemone.py | 789 | with pytest.raises(DecisionRequestError, match="placeholder"): | CODE |
| LOW | tests/test_qwen35_mlx_vision_layout.py | 21 | {"placeholder": np.zeros((1,), dtype=np.float32)}, | CODE |
| LOW | omlx/cache/prefix_cache.py | 4979 | placeholder = state.get("placeholder") | CODE |
| LOW | omlx/cache/prefix_cache.py | 4982 | state["placeholder"] = placeholder | CODE |
| LOW | apps/omlx-web/omlx_web/static/js/purify.min.js | 2 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define | CODE |
| LOW | apps/omlx-web/omlx_web/static/js/highlight.min.js | 317 | }),re=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | apps/omlx-mac/Scripts/build.sh | 31 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | apps/omlx-web/omlx_web/static/js/gridstack-all.js | 2 | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.am | CODE |