AI Slop Code RIsk Monitor

jundot/omlx

LLM inference server with continuous batching & SSD caching for Apple Silicon — managed from the macOS menu bar

27.6 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for jundot/omlx, a Python project with 22,696 GitHub stars. SynthScan examined 730,587 lines of code across 1291 source files, recording 17021 pattern matches distributed across 23 syntactic categories. The legacy adjusted pattern signal is 27.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.

27.6
Adjusted Signal
27.6
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
22.7K
Stars
Python
Language
730.6K
Lines of Code
1.3K
Files
17.0K
Pattern Hits
2026-10-12
Scan Date
0.47
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 51.1/100 · HIGH

Can maintainers explain intent, assumptions, and trade-offs? 12658 finding(s).

Hallucinated Dependency & Supply Chain Risk 14.1/100 · LOW

Are imports declared and package/API names verified? 1065 finding(s).

Agent Over-Engineering Ratio 68.6/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 14957 finding(s).

PR Review Velocity Impact 79.5/100 · CRITICAL

Which changes need focused human review? 17021 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 3HIGH 603MEDIUM 1542LOW 14873

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 17021 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.

Hyper-Verbose Identifiers11597 hits · 9388 pts
SeverityFileLineSnippetContext
LOWsetup.py19def _custom_kernel_build_kwargs() -> dict:CODE
LOWpackaging/build.py450def _read_pyproject_requirements() -> dict[str, list[str]]:CODE
LOWpackaging/build.py468def _generate_venvstacks_toml() -> Path:CODE
LOWpackaging/build.py1050def _compute_donor_fingerprint() -> str:CODE
LOWpackaging/build.py1071def _write_export_fingerprint():CODE
LOWtests/test_deepseek_v41_ssd.py51def test_delta_growth_is_linear_and_terminal_partial_preserves_state():CODE
LOWtests/test_deepseek_v41_ssd.py68def test_missing_or_reordered_blocks_are_rejected(indices):CODE
LOWtests/test_deepseek_v41_ssd.py74def test_legacy_anchor_and_invalid_metadata():CODE
LOWtests/test_deepseek_v41_ssd.py90def test_real_ssd_reopen_full_and_partial_prefix(CODE
LOWtests/test_deepseek_v41_ssd.py226def test_in_memory_boundary_compacts_and_rejects_corrupt_record():CODE
LOWtests/test_deepseek_v41_ssd.py244def test_cache_size_single_row_and_unaligned_batch():CODE
LOW⚡tests/test_store_cache_gate.py21 def test_note_submitted_increments(self):CODE
LOW⚡tests/test_store_cache_gate.py27 def test_note_done_decrements(self):CODE
LOW⚡tests/test_store_cache_gate.py34 def test_note_done_does_not_underflow(self):CODE
LOW⚡tests/test_store_cache_gate.py40 def test_note_submitted_never_blocks_past_cap(self):CODE
LOWtests/test_store_cache_gate.py76 def test_recovers_after_note_done(self):CODE
LOWtests/test_store_cache_gate.py83 def test_shrinking_cap_below_in_flight_blocks_admission(self):CODE
LOWtests/test_store_cache_gate.py96 def test_clamps_to_minimum_one(self):CODE
LOWtests/test_store_cache_gate.py103 def test_set_cap_updates_value(self):CODE
LOWtests/test_store_cache_gate.py128 def test_ok_clamps_to_max_num_seqs(self):CODE
LOWtests/test_store_cache_gate.py148 def test_no_op_when_gate_missing(self):CODE
LOWtests/test_store_cache_gate.py161 def test_counter_consistent_under_contention(self):CODE
LOW⚡tests/test_model_discovery.py79 def test_dflash_draft_via_architecture(self):CODE
LOW⚡tests/test_model_discovery.py84 def test_dflash_draft_via_config_block(self):CODE
LOW⚡tests/test_model_discovery.py88 def test_assistant_via_model_type(self):CODE
LOW⚡tests/test_model_discovery.py151 def test_detect_mimo_without_complete_sidecar_as_llm(self, tmp_path, model_type):CODE
LOW⚡tests/test_model_discovery.py158 def test_detect_embedding_model_by_type(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py167 def test_detect_embedding_model_by_architecture(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py176 def test_detect_modernbert_embedding(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py185 def test_detect_reranker_model(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py194 def test_detect_xlm_roberta_reranker(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py203 def test_detect_jina_reranker_without_name_heuristic(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py337 def test_missing_config_defaults_to_llm(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py341 def test_invalid_json_defaults_to_llm(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py346 def test_empty_config_defaults_to_llm(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py351 def test_detect_vlm_by_model_type(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py361 def test_detect_diffusion_gemma_as_vlm(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py767 def test_detect_vlm_fastvlm_via_mm_vision_tower(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py777 def test_detect_text_only_quant_with_empty_mm_vision_tower_as_llm(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py787 def test_detect_text_only_quant_no_vision_evidence_as_llm(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py799 def test_detect_lfm_text_moe_family_as_llm_not_audio_sts(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py808 def test_detect_lfm_future_moe_variant_as_llm_not_audio_sts(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py817 def test_detect_lfm_audio_architecture_as_sts(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py826 def test_detect_lfm_audio_model_type_as_sts(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py835 def test_detect_unknown_lfm_prefix_without_causal_lm_as_sts(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py848 def test_estimate_from_safetensors(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py858 def test_estimate_from_single_safetensors(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py865 def test_estimate_from_bin_files(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py874 def test_skip_optimizer_files(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py1386 def test_nonexistent_directory_raises_error(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py1391 def test_file_instead_of_directory_raises_error(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py1398 def test_unreadable_directory_is_skipped(self, tmp_path, monkeypatch):CODE
LOW⚡tests/test_model_discovery.py1498 def test_adapter_dir_detected(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py1503 def test_normal_model_not_adapter(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py1509 def test_discover_skips_lora_adapter(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py1604 def test_top_level_takes_precedence_over_nested(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py1611 def test_text_config_fallback(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py1616 def test_language_config_fallback(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py1621 def test_tokenizer_max_length_fallback(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py1626 def test_tokenizer_sentinel_rejected(self, tmp_path):CODE
11537 more matches not shown…
Decorative Section Separators1420 hits · 4663 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/test_openai_adapter.py32 # =========================================================================COMMENT
MEDIUM⚡tests/test_openai_adapter.py34 # =========================================================================COMMENT
MEDIUM⚡tests/test_openai_adapter.py67 # =========================================================================COMMENT
MEDIUM⚡tests/test_openai_adapter.py69 # =========================================================================COMMENT
MEDIUM⚡tests/test_openai_adapter.py128 # =========================================================================COMMENT
MEDIUM⚡tests/test_openai_adapter.py130 # =========================================================================COMMENT
MEDIUM⚡tests/test_openai_adapter.py166 # =========================================================================COMMENT
MEDIUM⚡tests/test_openai_adapter.py168 # =========================================================================COMMENT
MEDIUM⚡tests/test_openai_adapter.py222 # =========================================================================COMMENT
MEDIUM⚡tests/test_openai_adapter.py224 # =========================================================================COMMENT
MEDIUM⚡tests/test_openai_adapter.py234 # =========================================================================COMMENT
MEDIUM⚡tests/test_openai_adapter.py236 # =========================================================================COMMENT
MEDIUM⚡tests/test_openai_adapter.py502 # =========================================================================COMMENT
MEDIUM⚡tests/test_openai_adapter.py504 # =========================================================================COMMENT
MEDIUM⚡tests/test_openai_adapter.py605 # =========================================================================COMMENT
MEDIUM⚡tests/test_openai_adapter.py607 # =========================================================================COMMENT
MEDIUM⚡tests/test_openai_adapter.py699 # =========================================================================COMMENT
MEDIUM⚡tests/test_openai_adapter.py701 # =========================================================================COMMENT
MEDIUMtests/test_openai_adapter.py684 # =========================================================================COMMENT
MEDIUMtests/test_openai_adapter.py686 # =========================================================================COMMENT
MEDIUMtests/test_vlm_cached_vision_inputs.py91# ── cache-layer grid plumbing ─────────────────────────────────────────COMMENT
MEDIUMtests/test_vlm_cached_vision_inputs.py114# ── fast path: token rebuild with all images cached ───────────────────COMMENT
MEDIUMtests/test_vlm_cached_vision_inputs.py156# ── fast path: partial miss ────────────────────────────────────────────COMMENT
MEDIUM⚡tests/test_vlm_cached_vision_inputs.py196# ── guards: every failure must fall back to the full path ─────────────COMMENT
MEDIUM⚡tests/test_audio_realtime.py184# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_audio_realtime.py186# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_audio_realtime.py343# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_audio_realtime.py345# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_paged_ssd_cache.py2093# =============================================================================COMMENT
MEDIUMtests/test_paged_ssd_cache.py2095# =============================================================================COMMENT
MEDIUMtests/test_m5_gather_qmm_nax.py113# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_m5_gather_qmm_nax.py115# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_m5_gather_qmm_nax.py160# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_m5_gather_qmm_nax.py162# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_m5_gather_qmm_nax.py407# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_m5_gather_qmm_nax.py409# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_m5_gather_qmm_nax.py504# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_m5_gather_qmm_nax.py506# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_m5_gather_qmm_nax.py830# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_m5_gather_qmm_nax.py832# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_m5_gather_qmm_nax.py995# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_m5_gather_qmm_nax.py997# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/e2e_vision_cache.py67 # ── Step 1: Load model ──────────────────────────────────────COMMENT
MEDIUMtests/e2e_vision_cache.py81 # ── Step 2: Prepare inputs ──────────────────────────────────COMMENT
MEDIUMtests/e2e_vision_cache.py129 # ── Step 3: Test _compute_vision_features ────────────────────COMMENT
MEDIUMtests/e2e_vision_cache.py161 # ── Step 4: Test cached_image_features support ───────────────COMMENT
MEDIUMtests/e2e_vision_cache.py194 # ── Step 5: Test VisionFeatureSSDCache roundtrip ─────────────COMMENT
MEDIUMtests/e2e_vision_cache.py230 # ── Step 6: Cache hit performance ────────────────────────────COMMENT
MEDIUM⚡tests/test_qwen35_oq_a8.py132# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_qwen35_oq_a8.py134# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_qwen35_oq_a8.py204# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_qwen35_oq_a8.py206# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_qwen35_oq_a8.py263# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_qwen35_oq_a8.py265# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_qwen35_oq_a8.py375# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_qwen35_oq_a8.py377# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_qwen35_oq_a8.py517# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_qwen35_oq_a8.py519# --------------------------------------------------------------------------COMMENT
MEDIUMtests/test_qwen35_oq_a8.py46# --------------------------------------------------------------------------COMMENT
MEDIUMtests/test_qwen35_oq_a8.py48# --------------------------------------------------------------------------COMMENT
1360 more matches not shown…
Cross-Language Confusion280 hits · 1506 pts
SeverityFileLineSnippetContext
HIGH⚡tests/test_tool_calling.py2322 "\"Qwen3.6-35B-A3B-ConfigI-MLX\" --timeout 180 && echo "CODE
HIGH⚡tests/test_tool_calling.py2325 "--timeout 300 && echo \"v2 dynamic completed\"', timeout=400)]"CODE
HIGHtests/test_tool_calling.py2023 "\t\tif len(ce.Args) > 1 && isSubcommand(ce.Args[1]) {"CODE
HIGHtests/test_tool_calling.py2706 result = _gemma4_args_to_json_robust("{data: null}")CODE
HIGHtests/test_tool_calling.py3194 'call:f(a=1, b=<|"|>two<|"|>, c=true, d=null, e=3.5)'CODE
HIGHtests/test_tool_calling.py5643 "[true, null]",CODE
HIGHtests/test_tool_calling.py5688 '{"enabled":true,"missing":null}',CODE
HIGHtests/test_tool_calling.py5691 (["array", "null"], "[true,null]", [True, None]),CODE
HIGHtests/test_tool_calling.py377 response_format={"type": "json_schema", "json_schema": null}; theSTRING
HIGH⚡tests/test_mlx_vlm_glm5_next_compat.py1617 pipe.push(h)CODE
HIGH⚡tests/test_mlx_vlm_glm5_next_compat.py1632 pipe.push(a)CODE
HIGH⚡tests/test_cluster_rdma_evidence.py128 '{"schema_version": 1, "links": [null]}',CODE
HIGHtests/test_cluster_enrollment_ssh.py55 "omlxworker@cuda-worker-1 && id",CODE
HIGHtests/test_qwen4_hc_fused.py1131 _NDN_INV + " if (t == 0 && g == 0) tots[(size_t)row * HC + s] = tot;\n",CODE
HIGH⚡tests/test_responses.py821 # Other optional fields keep serializing as null, as before.COMMENT
HIGH⚡tests/test_admin_profiles_api.py1366 "omlx-recipe:1:" + _b64url(zlib.compress(b'{"a": null}'))[:-4] + "AAAA",CODE
HIGH⚡tests/test_model_loading.py71 '{"auto_map": {"AutoTokenizer": ["tokenization_x.X", null]}}'CODE
HIGHtests/test_distributed_engine.py1124 'data: {"choices": [{"delta": {"content": "ok"}, "finish_reason": null}]}',CODE
HIGH⚡omlx/server.py2587 '"finish_reason":null}]}\n\n'CODE
HIGH⚡omlx/server.py2592 '"choices":[{"index":0,"text":"","logprobs":null,"finish_reason":null}]}\n\n'CODE
HIGH⚡omlx/server.py2601 '"choices":[{"index":0,"text":"","logprobs":null,"finish_reason":null}]}\n\n'CODE
HIGHomlx/server.py2685 '"finish_reason":null}]}\n\n'CODE
HIGHomlx/oq.py5824 if (denom > 0.0f && fabs(new_s) > tiny) {CODE
HIGHomlx/custom_kernels/nax_tiles.py810 if constexpr (TN == 1 && TM % 2 == 0) {CODE
HIGHomlx/custom_kernels/qwen35_prefill/gdn.py124 if (j < i && i < tt)CODE
HIGHomlx/custom_kernels/qwen35_prefill/gdn.py182 if (j <= i && i < tt)CODE
HIGH⚡omlx/cluster/launch.py503 f"kill -TERM {pid} 2>/dev/null; sleep {max(0.0, grace):.1f}; "CODE
HIGH⚡omlx/cluster/launch.py504 f"kill -KILL {pid} 2>/dev/null; sleep 0.5; "CODE
HIGH⚡omlx/cluster/launch.py505 f"if kill -0 {pid} 2>/dev/null; then echo alive; else echo gone; fi"CODE
HIGHomlx/patches/glm53_kda_prework.py65 if (is_q || is_k) {CODE
HIGHomlx/patches/glm53_kda_prework.py71 if (is_q || is_k) {CODE
HIGHomlx/patches/qwen35_verify_sdpa_split.py251 bool ok = r < L && key >= base && key < t_end && key <= T - L + r;CODE
HIGHomlx/patches/qwen35_verify_sdpa_split.py476 bool ok = r < L && key >= t0 && key < t_end && key <= T - L + r;CODE
HIGHomlx/patches/qwen35_verify_sdpa_split.py493 float a = (nmax == -INFINITY || nmax == pmax) ? 1.0f : exp(pmax - nmax);CODE
HIGHomlx/patches/glm53_kda_recurrence.py396 if (ln == 0 && active) y_row[(size_t)(t0 + {t}) * v_row] = static_cast<InT>(yv);CODE
HIGHomlx/patches/glm53_kda_recurrence.py410 if ((ln & 1) == 0 && active)CODE
HIGHomlx/patches/glm53_kda_recurrence.py545 if (s < nh && r < ttn) {{ \\CODE
HIGHomlx/patches/glm53_kda_recurrence.py558 if (tid < nh * TB && tid % TB < ttn) \\CODE
HIGHomlx/patches/glm53_kda_recurrence.py566 if (s < nh && r < (TTN)) {{ \\CODE
HIGHomlx/patches/glm53_kda_recurrence.py577 if (tid < nh * TB && tid % TB < (TTN)) b_s[tid / TB][tid % TB] = static_cast<float>(pb); \\CODE
HIGHomlx/patches/qwen35_moe_routed_decode.py325 if (simd_gid == 0 && int(simd_lid) < RPS) {CODE
HIGHomlx/patches/qwen35_moe_routed_decode.py423 if (b == 0 && simd_gid == 1) {CODE
HIGHomlx/patches/qwen35_verify_qmm.py381 if (part == 0 && lane < {n_acc}) {{CODE
HIGHomlx/patches/qwen35_verify_qmm.py1360 if ((lid & 15) == 0 && base < D)CODE
HIGHomlx/patches/qwen35_gdn_prework.py99 bool is_k = logical_head >= k_head_base && logical_head < v_head_base;CODE
HIGHomlx/patches/qwen35_gdn_prework.py130 if (is_q || is_k) {CODE
HIGHomlx/patches/qwen35_gdn_prework.py177 if (S < NKEEP && row == 0) {CODE
HIGHomlx/patches/qwen35_gdn_prework.py250 bool is_k = logical_head >= k_head_base && logical_head < v_head_base;CODE
HIGHomlx/patches/qwen35_gdn_prework.py283 if (is_q || is_k) {CODE
HIGHomlx/patches/qwen35_gdn_prework.py400 const uint head = (is_q || is_k) ? hk : hv;CODE
HIGHomlx/patches/qwen35_gdn_prework.py404 const bool write_conv = !(is_q || is_k) || (hv % uint(HV / HK)) == 0;CODE
HIGHomlx/patches/qwen35_gdn_prework.py429 if (is_q || is_k) {CODE
HIGHomlx/patches/qwen35_gdn_prework.py451 } else if (sg == 3 && lane == 0) {CODE
HIGHomlx/patches/qwen35_gdn_prework.py594 const uint head = (is_q || is_k) ? hk : hv;CODE
HIGHomlx/patches/qwen35_gdn_prework.py598 const bool write_conv = !(is_q || is_k) || (hv % uint(HV / HK)) == 0;CODE
HIGHomlx/patches/qwen35_gdn_prework.py633 if (is_q || is_k) {CODE
HIGHomlx/patches/qwen35_gdn_prework.py656 if (sg == simdgroups - 1 && lane < uint(S)) {CODE
HIGHomlx/patches/row_exact_qmv.py71 if (PARTIAL && out_row >= N_OUT) {CODE
HIGHomlx/patches/row_exact_qmv.py102 if (PARTIAL && r >= valid) {CODE
HIGHomlx/patches/row_exact_qmv.py129 if (PARTIAL && r >= valid) {CODE
220 more matches not shown…
Empty Error Handlers261 hits · 1288 pts
SeverityFileLineSnippetContext
HIGHpackaging/build.py621except (subprocess.CalledProcessError, FileNotFoundError):CODE
HIGHtests/test_mlx_lm_mtp_patch.py2380except Exception:CODE
HIGHtests/test_qwen4_ple_load_resources_cpu.py154except ValueError:CODE
HIGHtests/test_qwen4_ple_load_resources_cpu.py172except ValueError:CODE
HIGHtests/test_qwen4_ple_load_resources_cpu.py149except ValueError:CODE
HIGHtests/test_mtp_prompt_priming.py454except Exception:CODE
HIGHtests/test_cluster_tensor_parallel.py295except PlanningError:CODE
HIGHtests/test_grammar_live.py375except Exception as e:CODE
HIGHtests/test_audio_tts.py1045except RuntimeError:CODE
HIGHtests/test_audio_tts.py939except RuntimeError:CODE
HIGHtests/test_audio_tts.py1133except RuntimeError:CODE
HIGHtests/test_audio_tts.py1431except RuntimeError:CODE
HIGHtests/test_qwen35_moe_weighted_sum.py44except Exception:CODE
HIGHtests/integration/test_e2e_streaming.py226except json.JSONDecodeError:CODE
HIGHtests/integration/test_e2e_streaming.py1210except json.JSONDecodeError:CODE
HIGHomlx/reasoning_effort.py123except Exception:CODE
HIGHomlx/server.py774except ImportError:CODE
HIGHomlx/server.py716except asyncio.CancelledError:CODE
HIGHomlx/server.py4399except (TypeError, ValueError):CODE
HIGHomlx/server.py2944except (asyncio.CancelledError, StopAsyncIteration):CODE
HIGHomlx/server.py2973except asyncio.CancelledError:CODE
HIGHomlx/server.py3066except (asyncio.CancelledError, StopAsyncIteration):CODE
HIGHomlx/server.py7139except (TypeError, ValueError):CODE
HIGHomlx/server.py1488except Exception:CODE
HIGHomlx/server.py3032except Exception:CODE
HIGHomlx/server.py6387except (json.JSONDecodeError, AttributeError):CODE
HIGHomlx/server.py6919except (json.JSONDecodeError, AttributeError):CODE
HIGHomlx/server.py8782except (json.JSONDecodeError, AttributeError):CODE
HIGHomlx/server.py2906except (asyncio.CancelledError, StopAsyncIteration):CODE
HIGHomlx/server.py3029except (asyncio.CancelledError, StopAsyncIteration):CODE
HIGHomlx/server.py4906except (json.JSONDecodeError, AttributeError):CODE
HIGHomlx/server.py7416except (json.JSONDecodeError, AttributeError):CODE
HIGHomlx/server.py8177except (json.JSONDecodeError, AttributeError):CODE
HIGHomlx/config.py35except ValueError:CODE
HIGHomlx/process_memory_enforcer.py1073except Exception:CODE
HIGHomlx/engine_core.py1391except Exception:CODE
HIGHomlx/cli.py571except Exception:CODE
HIGHomlx/cli.py479except KeyboardInterrupt:CODE
HIGHomlx/model_discovery.py1675except Exception:CODE
HIGHomlx/model_discovery.py894except Exception:CODE
HIGHomlx/model_discovery.py1030except Exception:CODE
HIGHomlx/settings.py90except (AttributeError, ValueError, OSError):CODE
HIGHomlx/settings.py152except FileNotFoundError:CODE
HIGHomlx/oq.py5287except Exception:CODE
HIGHomlx/oq.py5298except Exception:CODE
HIGHomlx/oq.py5310except Exception:CODE
HIGHomlx/oq.py7814except (ImportError, AttributeError):CODE
HIGHomlx/oq.py7346except Exception:CODE
HIGHomlx/scheduler.py812except ImportError:CODE
HIGHomlx/scheduler.py1161except ImportError:CODE
HIGHomlx/scheduler.py7581except (AttributeError, KeyError, TypeError, ValueError):CODE
HIGHomlx/scheduler.py7647except Exception:CODE
HIGHomlx/scheduler.py7655except (AttributeError, KeyError, TypeError):CODE
HIGHomlx/scheduler.py8301except Exception:CODE
HIGHomlx/scheduler.py3557except Exception:CODE
HIGHomlx/scheduler.py3611except Exception:CODE
HIGHomlx/scheduler.py7609except (KeyError, TypeError, ValueError):CODE
HIGHomlx/scheduler.py7716except Exception:CODE
HIGHomlx/scheduler.py7723except Exception:CODE
HIGHomlx/scheduler.py7747except Exception:CODE
201 more matches not shown…
Excessive Try-Catch Wrapping1220 hits · 1026 pts
SeverityFileLineSnippetContext
LOWpackaging/build.py823except Exception: # pragma: no cover — build runs may not have omlx on path yetCODE
MEDIUMtests/test_paged_ssd_cache.py3162def do_preload():CODE
MEDIUMtests/test_paged_ssd_cache.py3168def do_loads():CODE
LOWtests/test_paged_ssd_cache.py3165 except Exception as e:CODE
LOWtests/test_paged_ssd_cache.py3173 except Exception as e:CODE
LOWtests/test_m5_gather_qmm_nax.py35 except Exception: # noqa: BLE001CODE
LOWtests/test_cluster_control_plane.py47 except Exception as exc: # pragma: no cover - relayed to main threadCODE
LOWtests/test_cluster_control_plane.py106 except Exception as exc: # pragma: no cover - relayed belowCODE
LOWtests/test_cluster_control_plane.py155 except Exception as exc: # pragma: no cover - relayed belowCODE
LOWtests/test_cluster_control_plane.py298 except Exception as exc:CODE
MEDIUMtests/test_cluster_control_plane.py34def coordinator():CODE
MEDIUMtests/test_cluster_control_plane.py80def participant(rank):CODE
MEDIUMtests/test_cluster_control_plane.py143def coordinator():CODE
MEDIUMtests/test_cluster_control_plane.py286def coordinator():CODE
LOWtests/e2e_vision_cache.py98 except Exception:CODE
LOWtests/e2e_vision_cache.py104 except Exception:CODE
LOWtests/test_qwen35_oq_a8.py33 except Exception:CODE
MEDIUMtests/test_mlx_lm_mtp_patch.py214def _apply(self):CODE
MEDIUMtests/test_mlx_lm_mtp_patch.py5466def _nax_available() -> bool:CODE
LOWtests/test_mlx_lm_mtp_patch.py2380 except Exception:CODE
LOWtests/test_mlx_lm_mtp_patch.py5471 except Exception:CODE
LOWtests/test_audio_stt.py1581 except Exception as e:CODE
LOWtests/test_glm_moe_dsa_patch.py343 except Exception as exc: # pragma: no cover - depends on local native buildCODE
LOWtests/test_glm_moe_dsa_patch.py647 except Exception as exc: # pragma: no cover - depends on local native buildCODE
LOWtests/test_glm_moe_dsa_patch.py790 except Exception as exc: # pragma: no cover - depends on local native buildCODE
LOWtests/test_glm_moe_dsa_patch.py854 except Exception as exc: # pragma: no cover - depends on local native buildCODE
MEDIUMtests/test_cluster_pairing_session.py502def forget():CODE
LOWtests/test_cluster_pairing_session.py505 except Exception as exc:CODE
LOW⚡tests/test_mtp_prompt_priming.py454 except Exception:CODE
LOWtests/test_turboquant_batch_memory.py33 except Exception:CODE
MEDIUMtests/test_turboquant_batch_memory.py28def _model_path():CODE
LOWtests/test_turboquant_ssd.py27 except Exception:CODE
MEDIUMtests/test_turboquant_ssd.py22def _model_path():CODE
LOWtests/test_m5_gather_qmm_a8.py28 except Exception:CODE
MEDIUMtests/test_m5_gather_qmm_a8.py23def _a8_ready() -> bool:CODE
LOWtests/test_prefill_progress.py146 except Exception as e:CODE
MEDIUMtests/test_prefill_progress.py139def updater(model_id, start):CODE
LOWtests/test_admin_unload.py31 except Exception as e:CODE
MEDIUMtests/test_torch_stub.py423def worker():CODE
LOWtests/test_torch_stub.py430 except Exception as e:CODE
LOW⚡tests/test_grammar_live.py151 except Exception:CODE
LOWtests/test_grammar_live.py375 except Exception as e:CODE
MEDIUMtests/test_grammar_live.py147def _server_available():CODE
MEDIUMtests/test_cluster_pairing.py499def approve():CODE
LOWtests/test_cluster_pairing.py502 except Exception as exc: # pragma: no cover - asserted belowCODE
MEDIUMtests/test_mlx_vlm_qwen4_exp_compat.py2046def close():CODE
LOWtests/test_mlx_vlm_qwen4_exp_compat.py2049 except Exception as exc:CODE
LOWtests/test_embedding.py1284 except Exception as e:CODE
MEDIUMtests/test_glm5_next_mtp.py1399def _native_indexer_available() -> bool:CODE
LOW⚡tests/test_glm5_next_mtp.py1407 except Exception: # noqa: BLE001CODE
LOWtests/test_audio_tts.py1514 except Exception as e:CODE
LOWtests/test_cache_observability.py219 except Exception as e:CODE
LOWtests/test_cache_observability.py227 except Exception as e:CODE
MEDIUMtests/test_model_settings.py694def worker(model_id):CODE
LOWtests/test_model_settings.py699 except Exception as e:CODE
LOWtests/test_audio_sts.py470 except Exception as e:CODE
LOWtests/test_audio_sts.py496 except Exception as e:CODE
LOWtests/test_audio_sts.py524 except Exception as e:CODE
LOWtests/test_audio_sts.py552 except Exception as e:CODE
MEDIUMtests/test_hot_cache.py544def worker(thread_id):CODE
1160 more matches not shown…
Unused Imports777 hits · 670 pts
SeverityFileLineSnippetContext
LOWtests/test_cluster_settings_toggle.py4CODE
LOWtests/test_nccl_fabric_worker.py4CODE
LOWtests/test_qwen35_q4_mlp.py1CODE
LOWtests/test_openai_adapter.py20CODE
LOWtests/test_minimax_m3_pipeline.py10CODE
LOWtests/test_paged_ssd_cache.py43CODE
LOWtests/test_hybrid_cache.py9CODE
LOWtests/test_hybrid_cache.py10CODE
LOWtests/test_hybrid_cache.py11CODE
LOWtests/test_hybrid_cache.py11CODE
LOWtests/test_hybrid_cache.py11CODE
LOWtests/test_hybrid_cache.py11CODE
LOWtests/test_hybrid_cache.py12CODE
LOWtests/test_hybrid_cache.py12CODE
LOWtests/test_hybrid_cache.py24CODE
LOWtests/test_hybrid_cache.py29CODE
LOWtests/test_hybrid_cache.py35CODE
LOWtests/test_hybrid_cache.py935CODE
LOWtests/test_cluster_ssh_policy.py4CODE
LOWtests/test_cluster_rdma_mailbox.py4CODE
LOWtests/test_web_search.py11CODE
LOWtests/test_m5_gather_qmm.py4CODE
LOWtests/test_cluster_rdma_pipeline.py4CODE
LOWtests/test_cluster_rdma_probe.py4CODE
LOWtests/test_utils_hardware.py8CODE
LOWtests/test_m5_gather_qmm_nax.py11CODE
LOWtests/test_cache_ntuple_state.py18CODE
LOWtests/test_cache_ntuple_state.py282CODE
LOWtests/test_jaccl_side_channel.py4CODE
LOWtests/test_dflash_batched.py3CODE
LOWtests/e2e_vision_cache.py21CODE
LOWtests/test_stream_usage.py6CODE
LOWtests/test_v1_models_visibility.py4CODE
LOWtests/test_qwen35_oq_a8.py17CODE
LOWtests/test_ms_downloader.py6CODE
LOWtests/test_cluster_link_bandwidth.py4CODE
LOWtests/test_mcp_config.py9CODE
LOWtests/test_prefix_cache_cachelist_mixed.py28CODE
LOWtests/test_cluster_runtime_version_source.py11CODE
LOWtests/test_shared_models.py5CODE
LOWtests/test_cluster_rdma_stage_transport.py4CODE
LOWtests/test_cluster_rdma_routes.py4CODE
LOWtests/test_prefix_cache_rotating_tip_strip.py34CODE
LOWtests/test_mbpp_extract_code.py9CODE
LOWtests/test_admin_restart.py10CODE
LOWtests/test_admin_reload.py8CODE
LOWtests/test_utils_formatting.py4CODE
LOWtests/test_cluster_prefill_guard.py4CODE
LOWtests/test_gemma4_rendering.py7CODE
LOWtests/test_qwen4_qsa_incremental_cache.py5CODE
LOWtests/test_clone_mlx_model_fp16.py2CODE
LOWtests/test_dflash_glm5.py4CODE
LOWtests/test_nested_nstate_serialization.py24CODE
LOWtests/test_admin_hot_cache_clear.py17CODE
LOWtests/test_dflash_lifecycle.py4CODE
LOWtests/test_qwen4_qsa_native_indexer.py5CODE
LOWtests/test_model_registry.py10CODE
LOWtests/test_admin_api_key.py15CODE
LOWtests/test_mlx_lm_mtp_patch.py4CODE
LOWtests/test_cluster_split_control.py11CODE
717 more matches not shown…
Deep Nesting602 hits · 416 pts
SeverityFileLineSnippetContext
LOWtests/test_deepseek_v41_ssd.py90CODE
LOWtests/test_qwen35_q4_mlp.py244CODE
LOWtests/test_qwen35_q4_mlp.py523CODE
LOWtests/test_qwen35_q4_mlp.py610CODE
LOWtests/test_mimo_v2_patch.py1155CODE
LOWtests/test_paged_ssd_cache.py766CODE
LOWtests/test_paged_ssd_cache.py1766CODE
LOWtests/test_paged_ssd_cache.py1822CODE
LOWtests/test_k2_tool_grammar.py50CODE
LOWtests/test_dflash_batched.py356CODE
LOWtests/test_moe_offload_compat.py14CODE
LOWtests/test_mlx_lm_mtp_patch.py3147CODE
LOWtests/test_mlx_lm_mtp_patch.py4249CODE
LOWtests/test_mlx_lm_mtp_patch.py4932CODE
LOWtests/test_mlx_lm_mtp_patch.py5056CODE
LOWtests/test_mlx_lm_mtp_patch.py5164CODE
LOWtests/test_mlx_lm_mtp_patch.py5307CODE
LOWtests/test_qwen4_ple_load_resources_cpu.py136CODE
LOWtests/test_mlx_vlm_glm5_next_compat.py1107CODE
LOWtests/test_mlx_vlm_glm5_next_compat.py2121CODE
LOWtests/test_mlx_vlm_glm5_next_compat.py1118CODE
LOWtests/test_engine_core.py221CODE
LOWtests/test_engine_core.py261CODE
LOWtests/test_engine_core.py846CODE
LOWtests/test_engine_core.py1003CODE
LOWtests/test_engine_core.py1214CODE
LOWtests/test_prefill_fairness_budget.py346CODE
LOWtests/test_qwen35_fp16_decode.py203CODE
LOWtests/test_dflash_engine.py2213CODE
LOWtests/test_m5_gather_qmm_a8.py37CODE
LOWtests/test_dflash_multimodal_fallback.py339CODE
LOWtests/test_dflash_multimodal_fallback.py369CODE
LOWtests/test_deepseek_v4_wsdpa.py18CODE
LOWtests/test_scheduler_boundary_completion.py48CODE
LOWtests/test_scheduler_chunked_prefill.py936CODE
LOWtests/test_vlm_engine.py1907CODE
LOWtests/test_mlx_vlm_qwen4_exp_compat.py1332CODE
LOWtests/test_glm_mtp_patch.py80CODE
LOWtests/test_oq.py2535CODE
LOWtests/test_glm5_next_mtp.py680CODE
LOWtests/test_glm5_next_mtp.py899CODE
LOWtests/test_glm5_next_mtp.py1245CODE
LOWtests/rdma_pipeline_worker.py45CODE
LOWtests/test_thinking_budget.py504CODE
LOWtests/test_ane_tuning.py1075CODE
LOWtests/test_glm_moe_dsa_offload.py57CODE
LOWtests/test_vlm_batch_kv_capacity.py80CODE
LOWtests/test_k2_acceleration.py225CODE
LOWtests/test_cli.py1678CODE
LOWtests/test_boundary_snapshot_store.py122CODE
LOWtests/test_boundary_snapshot_store.py766CODE
LOWtests/test_moe_expert_offload.py1102CODE
LOWtests/test_reranker_causal_lm.py799CODE
LOWtests/test_reranker_causal_lm.py862CODE
LOWtests/test_reranker_causal_lm.py1011CODE
LOWtests/test_reranker_causal_lm.py810CODE
LOWtests/test_reranker_causal_lm.py877CODE
LOWtests/test_reranker_causal_lm.py1035CODE
LOWtests/test_qwen35_moe_verify_window.py250CODE
LOWtests/integration/test_vlm_mrope_integration.py153CODE
542 more matches not shown…
Modern Structural Boilerplate359 hits · 353 pts
SeverityFileLineSnippetContext
LOWtests/mocks.py110 def set_responses(self, responses: List[List[MockResponse]]) -> None:CODE
LOWtests/mocks.py193 def set_paged_ssd_cache_manager(self, manager: Any) -> None:CODE
LOW⚡tests/mocks.py278 def set_cold_restore_callback(self, callback: Callable) -> None:CODE
LOW⚡tests/mocks.py286 def set_paged_ssd_cache_manager(self, manager: Any) -> None:CODE
LOWomlx/reasoning_effort.py10logger = logging.getLogger(__name__)CODE
LOWomlx/model_settings.py30logger = logging.getLogger(__name__)CODE
LOWomlx/model_settings.py890 def set_settings(self, model_id: str, settings: ModelSettings) -> None:CODE
LOW⚡omlx/server.py224logger = logging.getLogger(__name__)CODE
LOWomlx/logging_config.py83def set_request_id(request_id: Optional[str]) -> None:CODE
LOWomlx/usage_history.py13logger = logging.getLogger(__name__)CODE
LOWomlx/usage_history.py227 def set_enabled(self, enabled: bool) -> None:STRING
LOWomlx/prefill_transient_tracker.py18logger = logging.getLogger(__name__)CODE
LOWomlx/turboquant_kv.py45logger = logging.getLogger(__name__)CODE
LOW⚡omlx/turboquant_kv.py65__all__ = [CODE
LOWomlx/request.py276 def set_finished(self, status: RequestStatus, reason: Optional[str] = None) -> None:CODE
LOWomlx/__init__.py50__all__ = [CODE
LOWomlx/server_metrics.py20logger = logging.getLogger(__name__)CODE
LOWomlx/process_memory_enforcer.py56logger = logging.getLogger(__name__)CODE
LOWomlx/optimizations.py34logger = logging.getLogger(__name__)CODE
LOWomlx/optimizations.py36__all__ = [CODE
LOWomlx/engine_core.py57logger = logging.getLogger(__name__)CODE
LOWomlx/websearch.py37logger = logging.getLogger(__name__)CODE
LOWomlx/model_discovery.py27logger = logging.getLogger(__name__)CODE
LOWomlx/settings.py38logger = logging.getLogger(__name__)CODE
LOWomlx/settings.py418 def set_gdn_snapshot_storage(self, mode: str) -> None:CODE
LOWomlx/oq.py48logger = logging.getLogger(__name__)CODE
LOW⚡omlx/scheduler.py14618 def _set_model_info_for_monitor(self) -> None:CODE
LOWomlx/scheduler.py347 def set_cap(self, cap: int) -> None:CODE
LOWomlx/scheduler.py426logger = logging.getLogger(__name__)CODE
LOWomlx/_torch_stub.py31logger = logging.getLogger(__name__)CODE
LOWomlx/engine_pool.py71logger = logging.getLogger(__name__)CODE
LOWomlx/engine_pool.py237def _set_concurrency_limits(config: object, value: int) -> None:CODE
LOWomlx/engine_pool.py242def _set_decode_cap(scheduler: object, value: int) -> None:CODE
LOWomlx/model_registry.py22logger = logging.getLogger(__name__)CODE
LOW⚡omlx/memory_monitor.py480 def set_ane_prefill_transient_bytes(self, value: int) -> None:CODE
LOW⚡omlx/memory_monitor.py2109def set_model_info_from_model(monitor: "MemoryMonitor", model: Any) -> None:CODE
LOWomlx/memory_monitor.py30logger = logging.getLogger(__name__)CODE
LOWomlx/memory_monitor.py350 def set_baseline_memory(self) -> None:CODE
LOWomlx/memory_monitor.py374 def set_request_stats(self, running: int, waiting: int) -> None:CODE
LOWomlx/memory_monitor.py600 def set_fixed_state_bytes(self, n: int) -> None:CODE
LOWomlx/custom_kernels/nax.py12__all__ = ["is_nax_available"]CODE
LOWomlx/custom_kernels/minimax_m3/__init__.py5__all__ = ["fast"]CODE
LOWomlx/custom_kernels/minimax_m3/fast.py11logger = logging.getLogger(__name__)CODE
LOWomlx/custom_kernels/bonsai/__init__.py20__all__ = ["fast"]CODE
LOWomlx/custom_kernels/bonsai/fast.py39logger = logging.getLogger(__name__)CODE
LOWomlx/custom_kernels/glm_moe_dsa/__init__.py5__all__ = ["fast"]CODE
LOWomlx/custom_kernels/glm_moe_dsa/fast.py11logger = logging.getLogger(__name__)CODE
LOWomlx/custom_kernels/qwen35_prefill/__init__.py10__all__ = [CODE
LOWomlx/custom_kernels/qwen35_prefill/fast.py13logger = logging.getLogger(__name__)CODE
LOWomlx/custom_kernels/decode_fast/__init__.py6__all__ = ["NATIVE_AVAILABLE", "sdpa_decode"]CODE
LOWomlx/custom_kernels/decode_fast/fast.py12logger = logging.getLogger(__name__)CODE
LOWomlx/custom_kernels/decode_fast/fast.py96__all__ = ["NATIVE_AVAILABLE", "is_native_available", "import_error", "sdpa_decode"]CODE
LOWomlx/cluster/worker_shim.py30logger = logging.getLogger(__name__)CODE
LOWomlx/cluster/liveness.py41logger = logging.getLogger(__name__)CODE
LOW⚡omlx/cluster/discovery.py2055 def update_service(self, zc: Any, type_: str, name: str) -> None:CODE
LOW⚡omlx/cluster/discovery.py2062 def update_service_callback(self, *args: Any, **kwargs: Any) -> None:CODE
LOWomlx/cluster/discovery.py531logger = logging.getLogger(__name__) # noqa: E402CODE
LOWomlx/cluster/prefill_guard.py30logger = logging.getLogger(__name__)CODE
LOWomlx/cluster/tensor_strategies.py647__all__ = [CODE
LOWomlx/cluster/progressive_loading.py277__all__ = [CODE
299 more matches not shown…
Over-Commented Block245 hits · 198 pts
SeverityFileLineSnippetContext
LOWpyproject.toml41 # Vanilla MLX v0.32.3; optional custom kernels live underCOMMENT
LOWpyproject.toml81 "tiktoken",COMMENT
LOWpyproject.toml101 # ServerCOMMENT
LOWpyproject.toml121 # fired upstream), the single-host-sync decode cycle (one D2H transferCOMMENT
LOWpackaging/build.py701 # produced fresh each build from pyproject.toml + venvstacks.toml.COMMENT
LOWpackaging/venvstacks.toml1# oMLX venvstacks layer templateCOMMENT
LOWtests/test_hf_downloader.py4041# =============================================================================COMMENT
LOWtests/test_cluster_launch.py1441# --- The node role has to survive the argv the launcher actually runs -------COMMENT
LOWomlx/model_settings.py481COMMENT
LOWomlx/server.py241 RERANKER = "reranker"COMMENT
LOWomlx/server.py6701 yield create_thinking_delta_event(COMMENT
LOWomlx/prefill_transient_tracker.py41 # Metal/pool spike this large is not a repeatable chunk transient, andCOMMENT
LOWomlx/request.py141COMMENT
LOWomlx/process_memory_enforcer.py461 self._activity_hint_until = 0.0COMMENT
LOWomlx/process_memory_enforcer.py1401 if scheduler is None:COMMENT
LOWomlx/process_memory_enforcer.py1461 scheduler._prefill_abort_margin = self._get_prefill_abort_margin()COMMENT
LOWomlx/engine_core.py261COMMENT
LOWomlx/engine_core.py741 stream_interval=self.config.stream_intervalCOMMENT
LOWomlx/model_discovery.py101_MIMO_VISION_SIDECAR = Path("omnimodal/vision_encoder.safetensors")COMMENT
LOWomlx/model_discovery.py281COMMENT
LOWomlx/settings.py561 )COMMENT
LOWomlx/oq.py4181 # in the quantization pipeline.COMMENT
LOWomlx/exceptions.py601COMMENT
LOWomlx/scheduler.py561 prompt_len: intCOMMENT
LOWomlx/scheduler.py1561# decode holds ~3x the unthrottled rate while the mixed-batch completionCOMMENT
LOWomlx/scheduler.py1681 max_num_batched_tokens: int = 8192COMMENT
LOWomlx/scheduler.py2081 self._pending_reclaim_request: bool = FalseCOMMENT
LOWomlx/scheduler.py2101 # Memory limits for inline prefill checking.COMMENT
LOWomlx/scheduler.py2121 # Component ceilings — propagated alongside the hard limit so theCOMMENT
LOWomlx/scheduler.py2201 # armed by _set_model_info_for_monitor when ArraysCache layers existCOMMENT
LOWomlx/scheduler.py2241 # VLM MTP: gemma4_assistant drafter attached by VLMBatchedEngine.COMMENT
LOWomlx/scheduler.py2261 # response streaming isn't blocked by it.COMMENT
LOWomlx/scheduler.py2301 self.paged_ssd_cache_manager: PagedSSDCacheManager | None = NoneCOMMENT
LOWomlx/scheduler.py2461 # Step counter for periodic cleanupCOMMENT
LOWomlx/scheduler.py3961 # stream buffer mid-eval, so that fence can never be satisfiedCOMMENT
LOWomlx/scheduler.py4121 # the per-engine stream context itself. Native lazy primitivesCOMMENT
LOWomlx/scheduler.py4361COMMENT
LOWomlx/scheduler.py8201 extracted, _ = self._extract_snapshot_cache_states(snapshot_cache)COMMENT
LOWomlx/scheduler.py10361COMMENT
LOWomlx/scheduler.py11381 # for its id is still waiting). Without this pass, fail_all_requestsCOMMENT
LOWomlx/scheduler.py11401 # Clear stale uid mappings for every failed id. Running requests holdCOMMENT
LOWomlx/scheduler.py11961 rejected_outputs.append(stalled)COMMENT
LOWomlx/scheduler.py12061 self._ensure_batch_generator(request.sampling_params)COMMENT
LOWomlx/scheduler.py12201 )COMMENT
LOWomlx/scheduler.py12381 # Fall through to normal prefillCOMMENT
LOWomlx/scheduler.py12621 # Build per-request state machine for stop tokensCOMMENT
LOWomlx/scheduler.py13281 if pre_eval_arrays:COMMENT
LOWomlx/scheduler.py13461 # Remove from runningCOMMENT
LOWomlx/scheduler.py13501 if hasattr(self.model, "clear_pending_embeddings"):COMMENT
LOWomlx/scheduler.py13521 # cache_to_store argument, but request._extracted_cache pointingCOMMENT
LOWomlx/scheduler.py14121 logger.debug(COMMENT
LOWomlx/scheduler.py14141 # completed; the allocator only releases pool entriesCOMMENT
LOWomlx/scheduler.py14641 # language-model dimensions under a sub-config. PreferCOMMENT
LOWomlx/scheduler.py15041COMMENT
LOWomlx/_torch_stub.py41# path), but the symbol is re-exported from ``xgrammar.__init__``.COMMENT
LOWomlx/_torch_stub.py341COMMENT
LOWomlx/engine_pool.py2241 # process memory enforcer (min of static and dynamic). TryCOMMENT
LOWomlx/engine_pool.py2781 # footprint reading is process-wide, so concurrentCOMMENT
LOWomlx/engine_pool.py2801 if not ane_release_attempted:COMMENT
LOWomlx/engine_pool.py3281 # bytes are included in both admission and Metal unload settlement.COMMENT
185 more matches not shown…
Cross-File Repetition32 hits · 160 pts
SeverityFileLineSnippetContext
HIGHtests/test_admin_api_key.py0create a mock globalsettings with the given api key.STRING
HIGHtests/test_admin_auth.py0create a mock globalsettings with the given api key.STRING
HIGHapps/omlx-web/tests/test_admin_auth_ui.py0create a mock globalsettings with the given api key.STRING
HIGHtests/test_admin_api_key.py0replace the module-level _get_global_settings with a lambda returning mock.STRING
HIGHtests/test_admin_auth.py0replace the module-level _get_global_settings with a lambda returning mock.STRING
HIGHapps/omlx-web/tests/test_admin_auth_ui.py0replace the module-level _get_global_settings with a lambda returning mock.STRING
HIGHtests/test_audio_stt.py0register audio routes if not already present (e.g., mlx-audio not installed).STRING
HIGHtests/test_audio_tts.py0register audio routes if not already present (e.g., mlx-audio not installed).STRING
HIGHtests/test_audio_sts.py0register audio routes if not already present (e.g., mlx-audio not installed).STRING
HIGHtests/test_audio_stt.py0testclient using the full omlx server app with mocked sts pool.STRING
HIGHtests/test_audio_tts.py0testclient using the full omlx server app with mocked sts pool.STRING
HIGHtests/test_audio_sts.py0testclient using the full omlx server app with mocked sts pool.STRING
HIGHtests/test_audio_stt.py0enginepool.get_engine() is called with the model id.STRING
HIGHtests/test_audio_sts.py0enginepool.get_engine() is called with the model id.STRING
HIGHtests/test_audio_tts.py0enginepool.get_engine() is called with the model id.STRING
HIGHomlx/custom_kernels/minimax_m3/fast.py0keep the diagnostic message without retaining import caller frames.STRING
HIGHomlx/custom_kernels/glm_moe_dsa/fast.py0keep the diagnostic message without retaining import caller frames.STRING
HIGHomlx/custom_kernels/qwen35_prefill/fast.py0keep the diagnostic message without retaining import caller frames.STRING
HIGHomlx/patches/glm_moe_dsa/kernels.py0keep the diagnostic message without retaining import caller frames.STRING
HIGHomlx/custom_kernels/minimax_m3/fast.py0disable the native symbols when the extension rejects mlx arrays. an extension built with a nanobind whose abi tag diffeSTRING
HIGHomlx/custom_kernels/glm_moe_dsa/fast.py0disable the native symbols when the extension rejects mlx arrays. an extension built with a nanobind whose abi tag diffeSTRING
HIGHomlx/custom_kernels/qwen35_prefill/fast.py0disable the native symbols when the extension rejects mlx arrays. an extension built with a nanobind whose abi tag diffeSTRING
HIGHomlx/patches/qwen35_verify_sdpa_split.py0#include <metalperformanceprimitives/metalperformanceprimitives.h> using namespace mpp::tensor_ops;STRING
HIGHomlx/patches/qwen35_packed_linear.py0#include <metalperformanceprimitives/metalperformanceprimitives.h> using namespace mpp::tensor_ops;STRING
HIGHomlx/patches/glm_moe_dsa/sparse_mla_nax.py0#include <metalperformanceprimitives/metalperformanceprimitives.h> using namespace mpp::tensor_ops;STRING
HIGHomlx/patches/glm_moe_dsa/indexer_nax.py0#include <metalperformanceprimitives/metalperformanceprimitives.h> using namespace mpp::tensor_ops;STRING
HIGHomlx/admin/ms_downloader.py0remove a completed, failed, or cancelled task from the list. args: task_id: the task id to remove. returns: true if the STRING
HIGHomlx/admin/hf_downloader.py0remove a completed, failed, or cancelled task from the list. args: task_id: the task id to remove. returns: true if the STRING
HIGHomlx/admin/hf_uploader.py0remove a completed, failed, or cancelled task from the list. args: task_id: the task id to remove. returns: true if the STRING
HIGHomlx/admin/ms_downloader.py0return all tasks as serializable dicts, ordered by creation time.STRING
HIGHomlx/admin/hf_downloader.py0return all tasks as serializable dicts, ordered by creation time.STRING
HIGHomlx/admin/hf_uploader.py0return all tasks as serializable dicts, ordered by creation time.STRING
Docstring Block Structure30 hits · 150 pts
SeverityFileLineSnippetContext
HIGHomlx/server.py1395 Get engine for the specified model and type. This is the unified engine getter that handles LLM, embedding, reSTRING
HIGHomlx/server.py1675 Get LLM engine for the specified model (or default). This is a convenience wrapper around get_engine() for LLMSTRING
HIGHomlx/server.py1713 Get embedding engine for the specified model. This is a convenience wrapper around get_engine() for embedding STRING
HIGHomlx/server.py1731 Get reranker engine for the specified model. This is a convenience wrapper around get_engine() for reranker moSTRING
HIGHomlx/scheduler.py3860Run prefill externally (outside BatchGenerator) for a single request. Processes tokens[0:N-1] through the modelSTRING
HIGHomlx/engine_pool.py2120 Get or load engine for the specified model. This method implements pre-load memory checking: 1STRING
HIGHomlx/model_registry.py62 Attempt to acquire ownership of a model. Args: model: The MLX model engine: ThSTRING
HIGHomlx/cache/paged_cache.py270 Pop n blocks from the front. Args: n: Number of blocks to allocate Returns: STRING
HIGHomlx/cache/paged_cache.py680 Allocate multiple blocks at once (vLLM style). Args: num_blocks: Number of blocks to allocSTRING
HIGHomlx/admin/auth.py283FastAPI dependency to require admin authentication. This dependency can be used in route definitions to protect STRING
HIGHomlx/admin/ms_downloader.py702Start downloading a model from ModelScope. Args: model_id: ModelScope model ID (e.g., "qwen/Qwen2.5STRING
HIGHomlx/admin/ms_downloader.py815Retry a failed or cancelled download, resuming from existing files. Args: task_id: The task ID of tSTRING
HIGHomlx/admin/hf_downloader.py1193Start downloading a model from HuggingFace. Args: repo_id: HuggingFace repository ID (e.g., "mlx-coSTRING
HIGHomlx/admin/hf_downloader.py1310Retry a failed or cancelled download, resuming from existing files. Finalized shards are preserved on disk so sSTRING
HIGHomlx/admin/hf_uploader.py184Validate a HuggingFace token and return user info. Args: token: HuggingFace write-access token. STRING
HIGHomlx/admin/hf_uploader.py320Queue a model upload to HuggingFace Hub. Args: model_path: Local path to the oQ model directory. STRING
HIGHomlx/admin/oq_manager.py307Start a quantization job. Args: model_path: Path to source model directory. oq_level: oSTRING
HIGHomlx/admin/routes.py1836 Authenticate with API key and create session. Requires an API key to be configured on the server. If no API keSTRING
HIGHomlx/admin/routes.py1889 Set up the initial API key when none is configured. This endpoint is only available when no API key is currentSTRING
HIGHomlx/admin/routes.py2030Create a new sub API key. Sub keys can only be used for API authentication, not admin login. Args: reqSTRING
HIGHomlx/admin/routes.py2086Delete a sub API key. Args: request: DeleteSubKeyRequest with the key to delete. Returns: JSONSTRING
HIGHomlx/admin/routes.py2650 Update settings for a specific model. Updates are persisted to the settings file and applied immediately tSTRING
HIGHomlx/admin/routes.py4275 Read model config files and return recommended defaults. Reads generation_config.json for sampling parameters STRING
HIGHomlx/admin/routes.py4695 Update global server settings. Updates are persisted to the global settings file. Some settings, includingSTRING
HIGHomlx/admin/routes.py5879 Get server logs. Returns the last N lines of the specified log file (or current log). Supports viewing hisSTRING
HIGHomlx/utils/image.py217 Load an image from a base64 data URI. Supports: - Data URIs: "data:image/jpeg;base64,..." format DecoSTRING
HIGHomlx/mcp/config.py30 Load MCP configuration from file. Search order: 1. Explicit path argument 2. OMLX_MCP_CONFIG environmeSTRING
HIGHomlx/mcp/config.py101 Validate and parse configuration dictionary. Args: data: Raw configuration dictionary Returns: STRING
HIGHomlx/mcp/tools.py50 Parse OpenAI tool call back to MCP format. Args: tool_call: OpenAI tool call from model response STRING
HIGHomlx/engine/sts.py342 Process an audio file through the STS model. For speech enhancement models (DeepFilterNet, MossFormer2STRING
Self-Referential Comments24 hits · 74 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/test_model_discovery.py1853 # Create a normal LLM modelCOMMENT
MEDIUM⚡tests/test_model_discovery.py1861 # Create a whisper ASR modelCOMMENT
MEDIUMtests/test_model_discovery.py1374 # Create a file at top levelCOMMENT
MEDIUMtests/test_model_discovery.py1745 # Create a small safetensors fileCOMMENT
MEDIUMtests/test_model_discovery.py1874 # Create a TTS modelCOMMENT
MEDIUMtests/test_paged_ssd_cache.py3245 # Create a BlockTableCOMMENT
MEDIUMtests/test_deepseek_v4_patch.py1684 # Create a fake model dir with a non-deepseek config.COMMENT
MEDIUMtests/test_engine_core.py752 # Create a task that calls generate - it will block on event.wait()COMMENT
MEDIUMtests/test_hf_downloader.py260 # Create a fake model directory to simulate downloadCOMMENT
MEDIUMtests/test_hf_downloader.py1147 # Create a mock global settingsCOMMENT
MEDIUMtests/test_hf_downloader.py2617 # Create a fake README file with YAML front matterCOMMENT
MEDIUMtests/test_scheduler.py4696 # Create a mock CacheList objectCOMMENT
MEDIUM⚡tests/test_embedding.py222 # Create a unit vector [0.6, 0.8, 0.0] (norm = 1.0)COMMENT
MEDIUMtests/test_embedding.py241 # Create a vector [1, 1, 1] / sqrt(3) = [0.577, 0.577, 0.577]COMMENT
MEDIUM⚡tests/test_batched_engine.py660 # Create a mock model where config is a dictCOMMENT
MEDIUMtests/test_audio_tts.py1275 # Create a base64 string just over the limitCOMMENT
MEDIUMtests/test_mcp_manager.py294 # Create a user tool with same name as MCP toolCOMMENT
MEDIUMtests/test_hot_cache.py548 # Create a fake hot cache entry with raw bytesCOMMENT
MEDIUMtests/test_hf_uploader.py212 # Create a fake safetensors fileCOMMENT
MEDIUMtests/test_index_cache.py107 # Create a mock model with 4 layersCOMMENT
MEDIUM⚡tests/test_admin_auth.py221 # Create a token with the new serializerCOMMENT
MEDIUMomlx/server.py7468 # Create a temporary MessagesRequest to reuse existing conversion logicCOMMENT
MEDIUMomlx/_torch_stub.py34# This module is the *single source of truth* — packaging/build.py importsCOMMENT
MEDIUMomlx/admin/routes.py6018 # This file is at omlx/admin/routes.py → package dir is omlx/COMMENT
Redundant / Tautological Comments37 hits · 47 pts
SeverityFileLineSnippetContext
LOWtests/test_engine_pool.py2296 # Set limit to allow each model individually but not both togetherCOMMENT
LOW⚡tests/test_settings.py2233 # Set env to port 8888COMMENT
LOWtests/integration/test_vlm_mrope_integration.py731 # Check if model supports cached_image_featuresCOMMENT
LOWomlx/cli.py530 # Check if oMLX server is runningCOMMENT
LOWomlx/cli.py614 # Check if tool is installedCOMMENT
LOWomlx/scheduler.py9094 # Check if it's a list of cache layersCOMMENT
LOWomlx/scheduler.py9125 # Check if layer has expected structureCOMMENT
LOWomlx/scheduler.py12164 # Check if prompt ends with <think> token for reasoning models.COMMENT
LOWomlx/scheduler.py12780 # Check if this request uses a protocol-specific output parserCOMMENT
LOWomlx/engine_pool.py3562 # Check if DFlash is enabled -- takes priority over engine typeCOMMENT
LOWomlx/engine_pool.py3885 # Check if memory enforcer requested abort during loadingCOMMENT
LOWomlx/engine_pool.py4313 # Check if model has active requestsCOMMENT
LOWomlx/memory_monitor.py32# Check if MLX Metal is availableCOMMENT
LOWomlx/cluster/ssh_keys.py351 # Check if key already existsCOMMENT
LOWomlx/cluster/transport.py284 # Check if there's a TB connection between host i and host jCOMMENT
LOWomlx/cache/paged_ssd_cache.py3191 # Check if block was evicted while write was pending.COMMENT
LOWomlx/cache/vision_feature_cache.py302 # Check if already on SSD. Entries without grid metadata are notCOMMENT
LOWomlx/cache/prefix_cache.py749 # Check if this layer is RotatingKVCacheCOMMENT
LOWomlx/cache/prefix_cache.py936 # Check if cache_data contains extracted tensor statesCOMMENT
LOWomlx/cache/prefix_cache.py1212 # Check if this block already exists (deduplication)COMMENT
LOWomlx/cache/prefix_cache.py2615 # Check if all sub-caches are sliceable 4D KVCache tensors.COMMENT
LOWomlx/patches/specprefill.py1042 # Check if model has RoPE (Nemotron-H doesn't)COMMENT
LOWomlx/patches/deepseek_v4/chat_template_v4.py427 # Check if previous message has a task - if so, this is a task output (no thinking)COMMENT
LOWomlx/patches/deepseek_v4/cache_extras.py1151 # Check if all caches are emptyCOMMENT
LOWomlx/patches/deepseek_v41/encoding.py680 # Check if previous message has a task - if so, this is a task output (no thinking)COMMENT
LOWomlx/admin/ms_downloader.py30# Check if modelscope SDK is availableCOMMENT
LOWomlx/admin/ms_downloader.py890 # Check if cancelled while waiting in queueCOMMENT
LOWomlx/admin/ms_downloader.py940 # Check if cancelled while downloading - clean up downloaded filesCOMMENT
LOWomlx/admin/hf_downloader.py1404 # Check if cancelled while waiting in queueCOMMENT
LOWomlx/admin/hf_downloader.py1560 # Check if cancelled while downloadingCOMMENT
LOWomlx/admin/routes.py2673 # Check if model existsCOMMENT
LOWomlx/mcp/executor.py176 # Check if tool existsCOMMENT
LOWomlx/adapter/harmony.py293 # Check if this is a special token (should not be streamed)COMMENT
LOWomlx/api/thinking.py280 # Check if this could be a tag startCOMMENT
LOWomlx/api/thinking.py307 # Check if it could be a partial tag (not enough chars yet)COMMENT
LOWomlx/api/anthropic_utils.py610 # Check if pre-truncation content was JSON-likeCOMMENT
LOWomlx/engine/vlm.py5380 # Check if user provided meaningful textCOMMENT
Modern AI Meta-Vocabulary19 hits · 46 pts
SeverityFileLineSnippetContext
MEDIUMomlx/model_settings.py497 # Longest audio item, in seconds, an embedding model reads before cuttingCOMMENT
MEDIUMomlx/server.py1161 # on the failure mode. Without it, "context window too small"COMMENT
MEDIUMomlx/server.py3840 # as null-filled arrays inside a 200, and a RAG pipeline stores theCOMMENT
MEDIUMomlx/server.py4131 # Validate context window for each promptCOMMENT
MEDIUMomlx/server.py4635 # Validate context window before sending to modelCOMMENT
MEDIUMomlx/server.py7274 # Validate context window before sending to modelCOMMENT
MEDIUMomlx/server.py7949 # Validate context windowCOMMENT
MEDIUMomlx/model_profiles.py119 # Memory residency of an embedding model's audio tower; explicit per model.COMMENT
MEDIUMomlx/model_discovery.py191# Known embedding model types from mlx-embeddingsCOMMENT
MEDIUMomlx/admin/routes.py2424 # Native context window from the model's config.json — used byCOMMENT
MEDIUMomlx/adapter/harmony.py507 # Extract chain-of-thought text from analysis channelCOMMENT
MEDIUMomlx/integrations/claude.py151 # set the *detected* context window for custom model IDs thatCOMMENT
MEDIUMomlx/integrations/claude.py160 # built-in context window for those regardless of this variable.COMMENT
MEDIUMomlx/api/openai_models.py606 # effective context window from the listing without a separate callCOMMENT
MEDIUMomlx/api/tool_calling.py1291# agentic load (large system prompt + many tool schemas + a big tool result)COMMENT
MEDIUMomlx/eval/mmlu.py76 # Load dev examples for few-shotCOMMENT
MEDIUMomlx/eval/mmlu.py110 # Add few-shot examplesCOMMENT
MEDIUMomlx/engine/stt.py766 # AlignAtt decoder, which bypasses the whole anti-hallucinationCOMMENT
MEDIUMapps/omlx-mac/Sources/AppView/AppView.swift507// MARK: - Detail scaffoldCOMMENT
Hallucination Indicators3 hits · 45 pts
SeverityFileLineSnippetContext
CRITICAL⚡apps/omlx-web/omlx_web/static/js/marked.umd.js1473 while ((match = this.tokenizer.rules.inline.reflinkSearch.exec(maskedSrc)) != null) {CODE
CRITICAL⚡apps/omlx-web/omlx_web/static/js/marked.umd.js1481 while ((match = this.tokenizer.rules.inline.blockSkip.exec(maskedSrc)) != null) {CODE
CRITICAL⚡apps/omlx-web/omlx_web/static/js/marked.umd.js1485 while ((match = this.tokenizer.rules.inline.anyPunctuation.exec(maskedSrc)) != null) {CODE
AI Structural Patterns62 hits · 42 pts
SeverityFileLineSnippetContext
LOWtests/test_system_sampler.py19CODE
LOWtests/test_mlx_vlm_glm5_next_compat.py3363CODE
LOWtests/test_mlx_vlm_pixtral_torch_free.py39CODE
LOWtests/test_specprefill_target.py123CODE
LOWtests/test_cluster_pairing.py100CODE
LOWtests/test_cluster_v2_discovery.py109CODE
LOWtests/test_cache_observability.py13CODE
LOWtests/test_oq_fused_qkv_virtual.py155CODE
LOWomlx/model_settings.py1379CODE
LOWomlx/server.py1799CODE
LOWomlx/server.py8270CODE
LOWomlx/process_memory_enforcer.py391CODE
LOWomlx/engine_core.py654CODE
LOWomlx/oq.py6089CODE
LOWomlx/oq.py9150CODE
LOWomlx/oq.py9688CODE
LOWomlx/memory_monitor.py484CODE
LOWomlx/cluster/progressive_loading.py73CODE
LOWomlx/cluster/telemetry.py1096CODE
LOWomlx/cluster/telemetry.py121CODE
LOWomlx/cluster/pairing.py852CODE
LOWomlx/cache/observability.py107CODE
LOWomlx/cache/paged_ssd_cache.py257CODE
LOWomlx/cache/paged_ssd_cache.py1673CODE
LOWomlx/cache/prefix_cache.py889CODE
LOWomlx/patches/qwen35_ane_prefill.py3052CODE
LOWomlx/patches/specprefill.py595CODE
LOWomlx/patches/deepseek_v41/packed_attention.py418CODE
LOWomlx/patches/deepseek_v41/packed_attention.py452CODE
LOWomlx/patches/deepseek_v41/oq.py276CODE
LOWomlx/patches/mlx_lm_mtp/qwen35_model.py402CODE
LOWomlx/admin/hf_downloader.py947CODE
LOWomlx/admin/ane_tuning.py371CODE
LOWomlx/admin/ane_tuning.py766CODE
LOWomlx/admin/oq_manager.py289CODE
LOWomlx/admin/routes.py7574CODE
LOWomlx/utils/sampling.py171CODE
LOWomlx/api/audio_routes.py475CODE
LOWomlx/engine/tts.py186CODE
LOWomlx/engine/tts.py330CODE
LOWomlx/engine/vlm.py4748CODE
LOWomlx/engine/vlm.py4856CODE
LOWomlx/engine/vlm.py5008CODE
LOWomlx/engine/vlm.py5255CODE
LOWomlx/engine/distributed.py175CODE
LOWomlx/engine/distributed.py1132CODE
LOWomlx/engine/distributed.py1247CODE
LOWomlx/engine/distributed.py1510CODE
LOWomlx/engine/distributed.py1597CODE
LOWomlx/engine/dflash.py363CODE
LOWomlx/engine/dflash.py1776CODE
LOWomlx/engine/dflash.py2015CODE
LOWomlx/engine/dflash.py2202CODE
LOWomlx/engine/dflash.py2278CODE
LOWomlx/engine/batched.py1087CODE
LOWomlx/engine/batched.py1167CODE
LOWomlx/engine/batched.py1299CODE
LOWomlx/engine/batched.py1463CODE
LOWomlx/engine/base.py339CODE
LOWomlx/engine/base.py371CODE
2 more matches not shown…
AI Slop Vocabulary14 hits · 38 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/test_tool_calling.py2678# Gemma 4 robust fallback parser testsCOMMENT
MEDIUM⚡tests/test_integrations.py2176 # the harness session default, so launch must not force a picker.COMMENT
MEDIUMtests/test_integrations.py2372 # The harness refuses duplicate mapping keys, so each key lands once.COMMENT
LOWomlx/output_collector.py70 # Replace: just use the new outputCOMMENT
MEDIUMomlx/scheduler.py10695 # by omlx) would yield a list. Guard so the path stays robustCOMMENT
LOWomlx/scheduler.py2944 # If window_size itself is already >= max, just use window_size.COMMENT
MEDIUMomlx/cluster/strategy_benchmarks.py189 """Return robust medians for each TP degree at the nearest context bucket."""STRING
LOWomlx/utils/model_loading.py1550 # The quant method may be already supported by mlx-lm; simply return None.COMMENT
MEDIUMomlx/integrations/dsh.py52# from these — a shell started *inside* a harness session exports them, whichCOMMENT
MEDIUM⚡omlx/integrations/dsh.py365 # The harness parser (js-yaml) rejects duplicate keys; PyYAML keeps the last.COMMENT
MEDIUM⚡omlx/integrations/dsh.py620 # The harness refuses to load a credential store with group/other bits.COMMENT
MEDIUM⚡omlx/api/tool_calling.py1245# Gemma 4 robust fallback parserCOMMENT
MEDIUMomlx/api/tool_calling.py2071 # Gemma 4 only: try robust fallback that handles bareCOMMENT
LOWomlx/api/tool_calling.py3832 # Handle None or text format - just return originalCOMMENT
Verbosity Indicators13 hits · 25 pts
SeverityFileLineSnippetContext
LOW⚡packaging/build.py646 # Step 0: Render the resolved venvstacks.toml from pyproject.toml depsCOMMENT
LOW⚡packaging/build.py653 # Step 1: Build wheels from git-pinned packagesCOMMENT
LOW⚡packaging/build.py656 # Step 2: Swap git URLs in the resolved toml for local wheel pathsCOMMENT
LOW⚡packaging/build.py666 # Step 3: Lock environments (always re-lock to match current wheels)COMMENT
LOW⚡packaging/build.py681 # Step 4: Build environmentsCOMMENT
LOW⚡packaging/build.py689 # Step 5: Export to local directory for app bundleCOMMENT
LOW⚡tests/test_pooling_cache_append_inplace.py338 # Step 1: row 0 completes 10 windows (40 tokens), row 1 completes 1COMMENT
LOWtests/test_pooling_cache_append_inplace.py353 # Step 2: row 0 completes nothing (3 tokens), row 1 completes 2 windows.COMMENT
LOW⚡tests/integration/test_vlm_mrope_integration.py543 # Step 1: image requestCOMMENT
LOWtests/integration/test_vlm_mrope_integration.py561 # Step 2: text-only request (must not be contaminated by prior rope_deltas)COMMENT
LOW⚡omlx/cache/prefix_cache.py1993 # Step 2: Fallback - find max seq_len among all 4D tensorsCOMMENT
LOWomlx/cache/prefix_cache.py1946 # Step 1: Search for a sliceable KVCache layer (full attention)COMMENT
LOWomlx/cache/prefix_cache.py2039 # Step 3: CacheList fallback — check sub-states for seq_lenCOMMENT
Structural Annotation Overuse13 hits · 25 pts
SeverityFileLineSnippetContext
LOW⚡packaging/build.py646 # Step 0: Render the resolved venvstacks.toml from pyproject.toml depsCOMMENT
LOW⚡packaging/build.py653 # Step 1: Build wheels from git-pinned packagesCOMMENT
LOW⚡packaging/build.py656 # Step 2: Swap git URLs in the resolved toml for local wheel pathsCOMMENT
LOW⚡packaging/build.py666 # Step 3: Lock environments (always re-lock to match current wheels)COMMENT
LOW⚡packaging/build.py681 # Step 4: Build environmentsCOMMENT
LOW⚡packaging/build.py689 # Step 5: Export to local directory for app bundleCOMMENT
LOW⚡tests/test_pooling_cache_append_inplace.py338 # Step 1: row 0 completes 10 windows (40 tokens), row 1 completes 1COMMENT
LOWtests/test_pooling_cache_append_inplace.py353 # Step 2: row 0 completes nothing (3 tokens), row 1 completes 2 windows.COMMENT
LOW⚡tests/integration/test_vlm_mrope_integration.py543 # Step 1: image requestCOMMENT
LOWtests/integration/test_vlm_mrope_integration.py561 # Step 2: text-only request (must not be contaminated by prior rope_deltas)COMMENT
LOW⚡omlx/cache/prefix_cache.py1993 # Step 2: Fallback - find max seq_len among all 4D tensorsCOMMENT
LOWomlx/cache/prefix_cache.py1946 # Step 1: Search for a sliceable KVCache layer (full attention)COMMENT
LOWomlx/cache/prefix_cache.py2039 # Step 3: CacheList fallback — check sub-states for seq_lenCOMMENT
Dead Code6 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_audio_stt.py1188CODE
MEDIUMtests/test_mtp_prompt_priming.py1366CODE
MEDIUMtests/test_cluster_prompt_snapshot_integration.py45CODE
MEDIUMtests/test_audio_tts.py722CODE
MEDIUMtests/test_server_prefill_memory_handler.py179CODE
MEDIUMtests/test_sse_keepalive.py102CODE
Fake / Example Data5 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/test_qwen35_mlx_vision_layout.py21 {"placeholder": np.zeros((1,), dtype=np.float32)},CODE
LOWomlx/cache/prefix_cache.py4781 placeholder = state.get("placeholder")CODE
LOWomlx/cache/prefix_cache.py4784 state["placeholder"] = placeholderCODE
LOWapps/omlx-web/omlx_web/static/js/purify.min.js2!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&defineCODE
LOWapps/omlx-web/omlx_web/static/js/highlight.min.js317}),re=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code",CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWapps/omlx-mac/Scripts/build.sh31# Usage:COMMENT
Slop Phrases1 hit · 1 pts
SeverityFileLineSnippetContext
LOWapps/omlx-web/omlx_web/static/js/gridstack-all.js2!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amCODE