AI Slop Code Risk Monitor

jundot/omlx

SlopCodeMonitor badge for jundot/omlx Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

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

26.3 Elevated pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

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.

26.3
Adjusted Signal
26.3
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
23.2K
Stars
Python
Language
797.5K
Lines of Code
1.4K
Files
17.8K
Pattern Hits
2026-10-31
Scan Date
0.49
HC Hit Rate

Risk Review · Payload v1

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.

Cognitive Ownership Risk 49.5/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 15.7/100 · LOW

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

Agent Over-Engineering Ratio 65.9/100 · HIGH

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

PR Review Velocity Impact 78.1/100 · CRITICAL

Which changes need focused human review? 17814 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 675MEDIUM 1515LOW 15621

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 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.

Hyper-Verbose Identifiers12237 hits · 9782 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.py235def test_in_memory_boundary_compacts_and_rejects_corrupt_record():CODE
LOWtests/test_deepseek_v41_ssd.py253def 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.py89 def test_dflash_draft_via_architecture(self):CODE
LOW⚡tests/test_model_discovery.py94 def test_dflash_draft_via_config_block(self):CODE
LOW⚡tests/test_model_discovery.py98 def test_assistant_via_model_type(self):CODE
LOW⚡tests/test_model_discovery.py161 def test_detect_mimo_without_complete_sidecar_as_llm(self, tmp_path, model_type):CODE
LOW⚡tests/test_model_discovery.py168 def test_detect_embedding_model_by_type(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py177 def test_detect_embedding_model_by_architecture(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py186 def test_detect_modernbert_embedding(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py195 def test_detect_reranker_model(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py204 def test_detect_xlm_roberta_reranker(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py213 def test_detect_jina_reranker_without_name_heuristic(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py347 def test_missing_config_defaults_to_llm(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py351 def test_invalid_json_defaults_to_llm(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py356 def test_empty_config_defaults_to_llm(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py361 def test_detect_vlm_by_model_type(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py371 def test_detect_diffusion_gemma_as_vlm(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py836 def test_detect_vlm_fastvlm_via_mm_vision_tower(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py846 def test_detect_text_only_quant_with_empty_mm_vision_tower_as_llm(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py856 def test_detect_text_only_quant_no_vision_evidence_as_llm(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py924 def test_detect_lfm_audio_architecture_as_sts(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py933 def test_detect_lfm_audio_model_type_as_sts(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py942 def test_detect_unknown_lfm_prefix_without_causal_lm_as_sts(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py955 def test_estimate_from_safetensors(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py965 def test_estimate_from_single_safetensors(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py972 def test_estimate_from_bin_files(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py981 def test_skip_optimizer_files(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py1493 def test_nonexistent_directory_raises_error(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py1498 def test_file_instead_of_directory_raises_error(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py1505 def test_unreadable_directory_is_skipped(self, tmp_path, monkeypatch):CODE
LOW⚡tests/test_model_discovery.py1605 def test_adapter_dir_detected(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py1610 def test_normal_model_not_adapter(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py1616 def test_discover_skips_lora_adapter(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py1711 def test_top_level_takes_precedence_over_nested(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py1718 def test_text_config_fallback(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py1723 def test_language_config_fallback(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py1728 def test_tokenizer_max_length_fallback(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py1733 def test_tokenizer_sentinel_rejected(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py1742 def test_no_config_returns_none(self, tmp_path):CODE
LOW⚡tests/test_model_discovery.py1745 def test_invalid_types_rejected(self, tmp_path):CODE
12177 more matches not shown…
Decorative Section Separators1388 hits · 4514 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.py265# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_audio_realtime.py267# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_audio_realtime.py425# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_audio_realtime.py427# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_audio_realtime.py1260# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_audio_realtime.py1262# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_audio_realtime.py785# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_audio_realtime.py787# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_paged_ssd_cache.py2258# =============================================================================COMMENT
MEDIUMtests/test_paged_ssd_cache.py2260# =============================================================================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.py996# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_m5_gather_qmm_nax.py998# ---------------------------------------------------------------------------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
1328 more matches not shown…
Cross-Language Confusion363 hits · 1985 pts
SeverityFileLineSnippetContext
HIGHtests/test_audio_realtime.py1511 parts.append(stream.push([codes[:, i] for i in range(start, start + size)]))CODE
HIGH⚡tests/test_tool_calling.py2357 "\"Qwen3.6-35B-A3B-ConfigI-MLX\" --timeout 180 && echo "CODE
HIGH⚡tests/test_tool_calling.py2360 "--timeout 300 && echo \"v2 dynamic completed\"', timeout=400)]"CODE
HIGHtests/test_tool_calling.py2058 "\t\tif len(ce.Args) > 1 && isSubcommand(ce.Args[1]) {"CODE
HIGHtests/test_tool_calling.py2760 result = _gemma4_args_to_json_robust("{data: null}")CODE
HIGHtests/test_tool_calling.py3248 'call:f(a=1, b=<|"|>two<|"|>, c=true, d=null, e=3.5)'CODE
HIGHtests/test_tool_calling.py5827 "[true, null]",CODE
HIGHtests/test_tool_calling.py5879 '{"enabled":true,"missing":null}',CODE
HIGHtests/test_tool_calling.py5882 (["array", "null"], "[true,null]", [True, None]),CODE
HIGHtests/test_tool_calling.py5931 "[true, null]",CODE
HIGHtests/test_tool_calling.py378 response_format={"type": "json_schema", "json_schema": null}; theSTRING
HIGH⚡tests/test_mlx_vlm_glm5_next_compat.py1618 pipe.push(h)CODE
HIGH⚡tests/test_mlx_vlm_glm5_next_compat.py1633 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.py1144 _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.py1475 "omlx-recipe:1:" + _b64url(zlib.compress(b'{"a": null}'))[:-4] + "AAAA",CODE
HIGH⚡tests/test_model_loading.py72 '{"auto_map": {"AutoTokenizer": ["tokenization_x.X", null]}}'CODE
HIGHtests/test_distributed_engine.py1151 'data: {"choices": [{"delta": {"content": "ok"}, "finish_reason": null}]}',CODE
HIGHtests/test_deepseek_v41_fused_attention.py35 const bool ok = row >= 0 && row < (compressed ? NC : NW);CODE
HIGHtests/test_deepseek_v41_fused_attention.py54 if (tid < 8 && first_head + tid < H) {CODE
HIGHtests/test_deepseek_v41_fused_attention.py66 if (tid < 8 && first_head + tid < H)CODE
HIGHtests/test_deepseek_v41_fused_attention.py99 const bool ok = row >= 0 && row < (compressed ? NC : NW);CODE
HIGHtests/test_deepseek_v41_fused_attention.py109 const float p = head < H && valid[r] ? exp(scores[((size_t(query) * H + head) * NS * 16) + slot] - maximCODE
HIGHtests/test_deepseek_v41_fused_attention.py136 if (tid < 8 && first_head + tid < H) {CODE
HIGH⚡omlx/server.py2794 '"finish_reason":null}]}\n\n'CODE
HIGH⚡omlx/server.py2799 '"choices":[{"index":0,"text":"","logprobs":null,"finish_reason":null}]}\n\n'CODE
HIGH⚡omlx/server.py2812 '"choices":[{"index":0,"text":"","logprobs":null,"finish_reason":null}]}\n\n'CODE
HIGHomlx/server.py2905 '"finish_reason":null}]}\n\n'CODE
HIGHomlx/oq.py6618 if (denom > 0.0f && fabs(new_s) > tiny) {CODE
HIGH⚡omlx/affine4.py280 float positive = (sg == 0 && lane < SimdGroups) ? extrema[lane] : 0.0f;CODE
HIGH⚡omlx/affine4.py282 (sg == 0 && lane < SimdGroups) ? extrema[SimdGroups + lane] : 0.0f;CODE
HIGH⚡omlx/affine4.py285 if (sg == 0 && lane == 0)CODE
HIGHomlx/affine4.py475 (!HasMask || mask[(row / QueryLength) * mask_head_stride +CODE
HIGHomlx/custom_kernels/nax_tiles.py810 if constexpr (TN == 1 && TM % 2 == 0) {CODE
HIGHomlx/custom_kernels/attention/gated_delta.py124 if (j < i && i < tt)CODE
HIGHomlx/custom_kernels/attention/gated_delta.py182 if (j <= i && i < tt)CODE
HIGH⚡omlx/cluster/launch.py504 f"kill -TERM {pid} 2>/dev/null; sleep {max(0.0, grace):.1f}; "CODE
HIGH⚡omlx/cluster/launch.py505 f"kill -KILL {pid} 2>/dev/null; sleep 0.5; "CODE
HIGH⚡omlx/cluster/launch.py506 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.py257 bool ok = r < L && key >= base && key < t_end && key <= T - L + r;CODE
HIGHomlx/patches/qwen35_verify_sdpa_split.py482 bool ok = r < L && key >= t0 && key < t_end && key <= T - L + r;CODE
HIGHomlx/patches/qwen35_verify_sdpa_split.py499 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/fp4_expert_rows.py101 for (uint q = pid; q < NPAIRS && count < MAXDUP; ++q) {CODE
HIGHomlx/patches/qwen35_verify_qmm.py387 if (part == 0 && lane < {n_acc}) {{CODE
HIGHomlx/patches/qwen35_verify_qmm.py1405 if ((lid & 15) == 0 && base < D)CODE
HIGHomlx/patches/qwen35_gdn_prework.py101 bool is_k = logical_head >= k_head_base && logical_head < v_head_base;CODE
HIGHomlx/patches/qwen35_gdn_prework.py132 if (is_q || is_k) {CODE
HIGHomlx/patches/qwen35_gdn_prework.py179 if (S < NKEEP && row == 0) {CODE
303 more matches not shown…
Empty Error Handlers254 hits · 1252 pts
SeverityFileLineSnippetContext
HIGHpackaging/build.py621except (subprocess.CalledProcessError, FileNotFoundError):CODE
HIGHtests/test_mlx_lm_mtp_patch.py2496except 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.py567except Exception:CODE
HIGHtests/test_cluster_tensor_parallel.py295except PlanningError:CODE
HIGHtests/test_grammar_live.py375except Exception as e:CODE
HIGHtests/test_audio_tts.py1133except RuntimeError:CODE
HIGHtests/test_audio_tts.py1027except RuntimeError:CODE
HIGHtests/test_audio_tts.py1221except RuntimeError:CODE
HIGHtests/test_audio_tts.py1520except RuntimeError:CODE
HIGHtests/test_qwen35_moe_weighted_sum.py44except Exception:CODE
HIGHtests/integration/test_e2e_streaming.py227except json.JSONDecodeError:CODE
HIGHtests/integration/test_e2e_streaming.py1211except json.JSONDecodeError:CODE
HIGHomlx/reasoning_effort.py123except Exception:CODE
HIGHomlx/server.py839except ImportError:CODE
HIGHomlx/server.py781except asyncio.CancelledError:CODE
HIGHomlx/server.py4887except (TypeError, ValueError):CODE
HIGHomlx/server.py7874except (TypeError, ValueError):CODE
HIGHomlx/server.py3193except asyncio.CancelledError:CODE
HIGHomlx/server.py1557except Exception:CODE
HIGHomlx/server.py3164except (asyncio.CancelledError, StopAsyncIteration):CODE
HIGHomlx/server.py3252except Exception:CODE
HIGHomlx/server.py3288except (asyncio.CancelledError, StopAsyncIteration):CODE
HIGHomlx/server.py7132except (json.JSONDecodeError, AttributeError):CODE
HIGHomlx/server.py7683except (json.JSONDecodeError, AttributeError):CODE
HIGHomlx/server.py9605except (json.JSONDecodeError, AttributeError):CODE
HIGHomlx/server.py3123except (asyncio.CancelledError, StopAsyncIteration):CODE
HIGHomlx/server.py3249except (asyncio.CancelledError, StopAsyncIteration):CODE
HIGHomlx/server.py5438except (json.JSONDecodeError, AttributeError):CODE
HIGHomlx/server.py8228except (json.JSONDecodeError, AttributeError):CODE
HIGHomlx/server.py8987except (json.JSONDecodeError, AttributeError):CODE
HIGHomlx/config.py35except ValueError:CODE
HIGHomlx/process_memory_enforcer.py1170except Exception:CODE
HIGHomlx/engine_core.py1467except Exception:CODE
HIGHomlx/cli.py562except Exception:CODE
HIGHomlx/cli.py456except KeyboardInterrupt:CODE
HIGHomlx/model_discovery.py1768except Exception:CODE
HIGHomlx/settings.py90except (AttributeError, ValueError, OSError):CODE
HIGHomlx/settings.py152except FileNotFoundError:CODE
HIGHomlx/oq.py6060except Exception:CODE
HIGHomlx/oq.py6071except Exception:CODE
HIGHomlx/oq.py6083except Exception:CODE
HIGHomlx/oq.py8215except Exception:CODE
HIGHomlx/scheduler.py942except ImportError:CODE
HIGHomlx/scheduler.py1294except ImportError:CODE
HIGHomlx/scheduler.py8367except (AttributeError, KeyError, TypeError, ValueError):CODE
HIGHomlx/scheduler.py8433except Exception:CODE
HIGHomlx/scheduler.py8441except (AttributeError, KeyError, TypeError):CODE
HIGHomlx/scheduler.py9092except Exception:CODE
HIGHomlx/scheduler.py3935except Exception:CODE
HIGHomlx/scheduler.py3989except Exception:CODE
HIGHomlx/scheduler.py8395except (KeyError, TypeError, ValueError):CODE
HIGHomlx/scheduler.py8503except Exception:CODE
HIGHomlx/scheduler.py8510except Exception:CODE
HIGHomlx/scheduler.py8534except Exception:CODE
HIGHomlx/scheduler.py10057except Exception:CODE
HIGHomlx/scheduler.py12053except ValueError:CODE
HIGHomlx/scheduler.py3628except Exception:CODE
194 more matches not shown…
Excessive Try-Catch Wrapping1242 hits · 1042 pts
SeverityFileLineSnippetContext
LOWpackaging/build.py823except Exception: # pragma: no cover — build runs may not have omlx on path yetCODE
MEDIUMtests/test_paged_ssd_cache.py3327def do_preload():CODE
MEDIUMtests/test_paged_ssd_cache.py3333def do_loads():CODE
LOWtests/test_paged_ssd_cache.py3330 except Exception as e:CODE
LOWtests/test_paged_ssd_cache.py3338 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.py296 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.py284def 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
LOWtests/test_ms_downloader.py336 except Exception: # The SDK retries on any Exception.CODE
LOWtests/test_deepseek_v4_sparse_attention_nax.py27 except Exception: # noqa: BLE001CODE
MEDIUMtests/test_deepseek_v4_sparse_attention_nax.py22def _nax_hardware() -> bool:CODE
MEDIUMtests/test_mlx_lm_mtp_patch.py330def _apply(self):CODE
MEDIUMtests/test_mlx_lm_mtp_patch.py6124def _nax_available() -> bool:CODE
LOWtests/test_mlx_lm_mtp_patch.py2496 except Exception:CODE
LOWtests/test_mlx_lm_mtp_patch.py6129 except Exception:CODE
LOWtests/test_audio_stt.py1609 except Exception as e:CODE
LOWtests/test_glm_moe_dsa_patch.py345 except Exception as exc: # pragma: no cover - depends on local native buildCODE
LOWtests/test_glm_moe_dsa_patch.py649 except Exception as exc: # pragma: no cover - depends on local native buildCODE
LOWtests/test_glm_moe_dsa_patch.py792 except Exception as exc: # pragma: no cover - depends on local native buildCODE
LOWtests/test_glm_moe_dsa_patch.py856 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.py567 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.py29 except Exception:CODE
MEDIUMtests/test_m5_gather_qmm_a8.py24def _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.py521def approve():CODE
LOWtests/test_cluster_pairing.py524 except Exception as exc: # pragma: no cover - asserted belowCODE
MEDIUMtests/test_mlx_vlm_qwen4_exp_compat.py2229def close():CODE
LOWtests/test_mlx_vlm_qwen4_exp_compat.py2232 except Exception as exc:CODE
LOWtests/test_embedding.py1405 except Exception as e:CODE
MEDIUMtests/test_glm5_next_mtp.py1464def _native_indexer_available() -> bool:CODE
LOW⚡tests/test_glm5_next_mtp.py1472 except Exception: # noqa: BLE001CODE
LOWtests/test_audio_tts.py1603 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.py784def worker(model_id):CODE
LOWtests/test_model_settings.py789 except Exception as e:CODE
LOWtests/test_audio_sts.py473 except Exception as e:CODE
LOWtests/test_audio_sts.py499 except Exception as e:CODE
1182 more matches not shown…
Unused Imports803 hits · 693 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.py44CODE
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_flint_decode.py4CODE
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_deepseek_v4_patch.py287CODE
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_deepseek_v4_sparse_attention_nax.py8CODE
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_nested_nstate_serialization.py24CODE
LOWtests/test_admin_hot_cache_clear.py17CODE
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
743 more matches not shown…
Deep Nesting631 hits · 440 pts
SeverityFileLineSnippetContext
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.py836CODE
LOWtests/test_paged_ssd_cache.py1887CODE
LOWtests/test_paged_ssd_cache.py1987CODE
LOWtests/test_k2_tool_grammar.py50CODE
LOWtests/test_dflash_batched.py801CODE
LOWtests/test_moe_offload_compat.py14CODE
LOWtests/test_mlx_lm_mtp_patch.py3336CODE
LOWtests/test_mlx_lm_mtp_patch.py4897CODE
LOWtests/test_mlx_lm_mtp_patch.py5585CODE
LOWtests/test_mlx_lm_mtp_patch.py5709CODE
LOWtests/test_mlx_lm_mtp_patch.py5817CODE
LOWtests/test_mlx_lm_mtp_patch.py5960CODE
LOWtests/test_qwen4_ple_load_resources_cpu.py136CODE
LOWtests/test_mlx_vlm_glm5_next_compat.py1108CODE
LOWtests/test_mlx_vlm_glm5_next_compat.py2109CODE
LOWtests/test_mlx_vlm_glm5_next_compat.py1119CODE
LOWtests/test_engine_core.py224CODE
LOWtests/test_engine_core.py264CODE
LOWtests/test_engine_core.py851CODE
LOWtests/test_engine_core.py1008CODE
LOWtests/test_engine_core.py1219CODE
LOWtests/test_prefill_fairness_budget.py350CODE
LOWtests/test_qwen35_fp16_decode.py203CODE
LOWtests/test_m5_gather_qmm_a8.py38CODE
LOWtests/test_deepseek_v4_wsdpa.py18CODE
LOWtests/test_scheduler_boundary_completion.py50CODE
LOWtests/test_scheduler_boundary_completion.py335CODE
LOWtests/test_scheduler_chunked_prefill.py951CODE
LOWtests/test_vlm_engine.py2076CODE
LOWtests/test_mlx_vlm_qwen4_exp_compat.py1511CODE
LOWtests/test_glm_mtp_patch.py80CODE
LOWtests/test_affine4.py145CODE
LOWtests/test_oq.py3254CODE
LOWtests/test_glm5_next_mtp.py699CODE
LOWtests/test_glm5_next_mtp.py964CODE
LOWtests/test_glm5_next_mtp.py1310CODE
LOWtests/rdma_pipeline_worker.py45CODE
LOWtests/test_thinking_budget.py519CODE
LOWtests/test_minimax_m3_sparse_attention_patch.py28CODE
LOWtests/test_minimax_m3_sparse_attention_patch.py472CODE
LOWtests/test_ane_tuning.py1075CODE
LOWtests/test_glm_moe_dsa_offload.py57CODE
LOWtests/test_bailing_hybrid_patch.py853CODE
LOWtests/test_mlx_vlm_muse_glimmer_compat.py422CODE
LOWtests/test_mlx_vlm_muse_glimmer_compat.py631CODE
LOWtests/test_deepseek_v41_moe_offload.py467CODE
LOWtests/test_deepseek_v41_moe_offload.py575CODE
LOWtests/test_vlm_batch_kv_capacity.py94CODE
LOWtests/test_k2_acceleration.py225CODE
LOWtests/test_cli.py1791CODE
LOWtests/test_boundary_snapshot_store.py122CODE
LOWtests/test_boundary_snapshot_store.py766CODE
LOWtests/test_moe_expert_offload.py1136CODE
LOWtests/test_reranker_causal_lm.py489CODE
LOWtests/test_qwen35_moe_verify_window.py229CODE
LOWtests/integration/test_vlm_mrope_integration.py153CODE
571 more matches not shown…
Modern Structural Boilerplate384 hits · 381 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.py32logger = logging.getLogger(__name__)CODE
LOWomlx/model_settings.py986 def set_settings(self, model_id: str, settings: ModelSettings) -> None:CODE
LOWomlx/gguf.py38logger = logging.getLogger(__name__)CODE
LOW⚡omlx/server.py254logger = 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
LOWomlx/turboquant_kv.py65__all__ = [CODE
LOWomlx/request.py311 def set_finished(self, status: RequestStatus, reason: Optional[str] = None) -> None:CODE
LOWomlx/__init__.py58__all__ = [CODE
LOWomlx/server_metrics.py20logger = logging.getLogger(__name__)CODE
LOWomlx/process_memory_enforcer.py57logger = logging.getLogger(__name__)CODE
LOWomlx/optimizations.py34logger = logging.getLogger(__name__)CODE
LOWomlx/optimizations.py36__all__ = [CODE
LOWomlx/engine_core.py60logger = logging.getLogger(__name__)CODE
LOWomlx/websearch.py37logger = logging.getLogger(__name__)CODE
LOWomlx/model_discovery.py29logger = logging.getLogger(__name__)CODE
LOWomlx/settings.py38logger = logging.getLogger(__name__)CODE
LOWomlx/settings.py421 def set_gdn_snapshot_storage(self, mode: str) -> None:CODE
LOWomlx/oq.py66logger = logging.getLogger(__name__)CODE
LOWomlx/affine4.py24logger = logging.getLogger(__name__)CODE
LOWomlx/affine4.py29__all__ = [CODE
LOW⚡omlx/scheduler.py16073 def _set_model_info_for_monitor(self) -> None:CODE
LOWomlx/scheduler.py475 def set_cap(self, cap: int) -> None:CODE
LOWomlx/scheduler.py554logger = logging.getLogger(__name__)CODE
LOWomlx/_torch_stub.py31logger = logging.getLogger(__name__)CODE
LOWomlx/engine_pool.py97logger = logging.getLogger(__name__)CODE
LOWomlx/engine_pool.py322def _set_concurrency_limits(config: object, value: int) -> None:CODE
LOWomlx/engine_pool.py327def _set_decode_cap(scheduler: object, value: int) -> None:CODE
LOWomlx/model_registry.py22logger = logging.getLogger(__name__)CODE
LOW⚡omlx/memory_monitor.py481 def set_ane_prefill_transient_bytes(self, value: int) -> None:CODE
LOW⚡omlx/memory_monitor.py2125def set_model_info_from_model(monitor: "MemoryMonitor", model: Any) -> None:CODE
LOWomlx/memory_monitor.py30logger = logging.getLogger(__name__)CODE
LOWomlx/memory_monitor.py351 def set_baseline_memory(self) -> None:CODE
LOWomlx/memory_monitor.py375 def set_request_stats(self, running: int, waiting: int) -> None:CODE
LOWomlx/memory_monitor.py604 def set_fixed_state_bytes(self, n: int) -> None:CODE
LOWomlx/custom_kernels/_loader.py13logger = logging.getLogger(__name__)CODE
LOWomlx/custom_kernels/nax.py11__all__ = ["is_nax_available"]CODE
LOWomlx/custom_kernels/moe_staging/__init__.py13logger = logging.getLogger(__name__)CODE
LOWomlx/custom_kernels/attention/__init__.py6__all__ = ["fast"]CODE
LOWomlx/custom_kernels/sparse_index/__init__.py6__all__ = ["fast"]CODE
LOWomlx/custom_kernels/quant_matmul/__init__.py6__all__ = ["ane", "fast"]CODE
LOWomlx/custom_kernels/quant_matmul/fast.py16logger = logging.getLogger(__name__)CODE
LOWomlx/custom_kernels/lowbit/__init__.py9__all__ = ["fast"]CODE
LOWomlx/cluster/worker_shim.py30logger = logging.getLogger(__name__)CODE
LOWomlx/cluster/liveness.py41logger = logging.getLogger(__name__)CODE
LOW⚡omlx/cluster/discovery.py2078 def update_service(self, zc: Any, type_: str, name: str) -> None:CODE
LOW⚡omlx/cluster/discovery.py2085 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.py910__all__ = [CODE
LOWomlx/cluster/progressive_loading.py311__all__ = [CODE
LOWomlx/cluster/model_inventory.py213__all__ = [CODE
324 more matches not shown…
Over-Commented Block256 hits · 210 pts
SeverityFileLineSnippetContext
LOWpyproject.toml41 # Vanilla MLX v0.32.4; optional custom kernels live underCOMMENT
LOWpyproject.toml81 "protobuf",COMMENT
LOWpyproject.toml161 # ParoQuant runtime loader for paroquant-quantized models. InstalledCOMMENT
LOWpackaging/build.py701 # produced fresh each build from pyproject.toml + venvstacks.toml.COMMENT
LOWpackaging/venvstacks.toml1# oMLX venvstacks layer templateCOMMENT
LOWtests/test_tool_calling.py4941 assert cleaned == ""COMMENT
LOWtests/test_cluster_inference_worker.py681 assert written["phase"] == "ready"COMMENT
LOWtests/test_hf_downloader.py5061 assert call_kwargs["etag_timeout"] == 30COMMENT
LOWomlx/model_settings.py481 dflash_draft_quant_enabled: Optional[bool] = NoneCOMMENT
LOWomlx/model_settings.py521 is_default: bool = False # Only one model can be defaultCOMMENT
LOWomlx/server.py7461COMMENT
LOWomlx/prefill_transient_tracker.py41 _EWMA_ALPHA = 0.3 # weight on the most recent chunkCOMMENT
LOWomlx/request.py161 # Ordinary prefix reuse awaiting scheduling validation; None once recorded.COMMENT
LOWomlx/request.py361 prompt_tokens: int = 0COMMENT
LOWomlx/process_memory_enforcer.py481 # Most recently observed pressure level, consumed by scheduler /COMMENT
LOWomlx/engine_core.py321 stream_interval: int = 1 # Tokens to batch before streaming (1=every token)COMMENT
LOWomlx/engine_core.py821 # accumulates one collector + one stream_state + oneCOMMENT
LOWomlx/model_discovery.py301# handled as audio types (audio_stt / audio_tts) — see AUDIO_* sets below.COMMENT
LOWomlx/oq.py4861 )COMMENT
LOWomlx/oq.py4881 # that omlx could not load.COMMENT
LOWomlx/oq.py7521 if text_only:COMMENT
LOWomlx/oq.py9841 return _oq_imatrix_entries(collector.entries, config), metadataCOMMENT
LOWomlx/exceptions.py601COMMENT
LOWomlx/scheduler.py701# about to become the model input anyway — see _omlx_advance_grammar_rows.COMMENT
LOWomlx/scheduler.py1781# ~1/3 of wall time) is the measured sweet spot on M3 Ultra: contendedCOMMENT
LOWomlx/scheduler.py1921 # Per-forward embedding input chunk sizeCOMMENT
LOWomlx/scheduler.py2221 # Load additional EOS tokens from generation_config.json.COMMENT
LOWomlx/scheduler.py2321 self._generation_overflow_recovery_ids: set[str] = set()COMMENT
LOWomlx/scheduler.py2341 # Set by ProcessMemoryEnforcer.request_pressure_reclaim() when memoryCOMMENT
LOWomlx/scheduler.py2361 self._memory_limit_bytes: int = 0 # soft limit (dynamic, jittery)COMMENT
LOWomlx/scheduler.py2381 # binding and suggest the right remedy (close apps / raise tier /COMMENT
LOWomlx/scheduler.py2521 # Async store_cache executor (G2-async). Offloads the post-finishCOMMENT
LOWomlx/scheduler.py2561 self.paged_cache_manager: PagedCacheManager | None = NoneCOMMENT
LOWomlx/scheduler.py2721 self.moe_offload_release: Callable[[], int] | None = NoneCOMMENT
LOWomlx/scheduler.py3221 )COMMENT
LOWomlx/scheduler.py4461 # Prepare VLM embeddings for prefillCOMMENT
LOWomlx/scheduler.py4641 # slices, and the advance views for the next chunk) stay insideCOMMENT
LOWomlx/scheduler.py4921 _materialize_cache_storage(prompt_cache)COMMENT
LOWomlx/scheduler.py9001 # function. A recursive closure holds itself through its ownCOMMENT
LOWomlx/scheduler.py10281 layer_cache,COMMENT
LOWomlx/scheduler.py11221 if drafter is None or request.sampling_params.logprobs:COMMENT
LOWomlx/scheduler.py12381 # local in _schedule_waiting. If _do_external_prefill raises, theCOMMENT
LOWomlx/scheduler.py12401 if req is not None:COMMENT
LOWomlx/scheduler.py13241 estimated_bytes=preflight_rejection.estimated_bytes,COMMENT
LOWomlx/scheduler.py14241 # Store cache for future reuse (G2-async): submit to backgroundCOMMENT
LOWomlx/scheduler.py14421 # FULL eval (not async_eval) on the ownerCOMMENT
LOWomlx/scheduler.py15581 # omlx ships its own non-compiled samplerCOMMENT
LOWomlx/scheduler.py15601 # Refresh the executor-owned MLX active-memory sample.COMMENT
LOWomlx/scheduler.py16101 # encoder*, not the LM, and accepting it silently miscalibratesCOMMENT
LOWomlx/scheduler.py16521 # from the memory monitor.COMMENT
LOWomlx/_torch_stub.py41# path), but the symbol is re-exported from ``xgrammar.__init__``.COMMENT
LOWomlx/_torch_stub.py341COMMENT
LOWomlx/engine_pool.py2801 # Pre-load admission against the memory ceiling from theCOMMENT
LOWomlx/engine_pool.py3341 await self._reclaim_pooled_buffers_for_prefill(COMMENT
LOWomlx/engine_pool.py3821 returnCOMMENT
LOWomlx/engine_pool.py4601 raiseCOMMENT
LOWomlx/memory_monitor.py101# ``set_model_info(compute_dtype_size=...)``; this default covers the rareCOMMENT
LOWomlx/custom_kernels/attention/gated_delta.py601# fp32 summation order of the two 128-wide dots differs:COMMENT
LOWomlx/custom_kernels/attention/csrc/sparse_mla.cpp1#include "sparse_mla.h"COMMENT
LOWomlx/custom_kernels/attention/csrc/sparse_mla.cpp161 // ~= BK*(DC+pad)*2B). At BK=256 the 32-head variant uses ~24KB -> only ONECOMMENT
196 more matches not shown…
Docstring Block Structure31 hits · 155 pts
SeverityFileLineSnippetContext
HIGHomlx/server.py1462 Get engine for the specified model and type. This is the unified engine getter that handles LLM, embedding, reSTRING
HIGHomlx/server.py1757 Get LLM engine for the specified model (or default). This is a convenience wrapper around get_engine() for LLMSTRING
HIGHomlx/server.py1795 Get embedding engine for the specified model. This is a convenience wrapper around get_engine() for embedding STRING
HIGHomlx/server.py1813 Get reranker engine for the specified model. This is a convenience wrapper around get_engine() for reranker moSTRING
HIGHomlx/scheduler.py4361Run prefill externally (outside BatchGenerator) for a single request. Processes tokens[0:N-1] through the modelSTRING
HIGHomlx/engine_pool.py2680 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.py682 Allocate multiple blocks at once (vLLM style). Args: num_blocks: Number of blocks to allocSTRING
HIGHomlx/admin/auth.py387FastAPI dependency to require admin authentication. This dependency can be used in route definitions to protect STRING
HIGHomlx/admin/ms_downloader.py726Start downloading a model from ModelScope. Args: model_id: ModelScope model ID (e.g., "qwen/Qwen2.5STRING
HIGHomlx/admin/ms_downloader.py839Retry a failed or cancelled download, resuming from existing files. Args: task_id: The task ID of tSTRING
HIGHomlx/admin/hf_downloader.py1787Start downloading a model from HuggingFace. Args: repo_id: HuggingFace repository ID (e.g., "mlx-coSTRING
HIGHomlx/admin/hf_downloader.py1916Retry a failed or cancelled download, resuming from existing files. Finalized shards are preserved on disk so sSTRING
HIGHomlx/admin/hf_uploader.py414Validate a HuggingFace token and return user info. Args: token: HuggingFace write-access token. STRING
HIGHomlx/admin/hf_uploader.py550Queue a model upload to HuggingFace Hub. Args: model_path: Local path to the oQ model directory. STRING
HIGHomlx/admin/oq_manager.py323Start a quantization job. Args: model_path: Path to source model directory. oq_level: oSTRING
HIGHomlx/admin/routes.py1892 Authenticate with API key and create session. Requires an API key to be configured on the server. If no API keSTRING
HIGHomlx/admin/routes.py1949 Set up the initial API key when none is configured. This endpoint is only available when no API key is currentSTRING
HIGHomlx/admin/routes.py2101Create a new sub API key. Sub keys can only be used for API authentication, not admin login. Args: reqSTRING
HIGHomlx/admin/routes.py2157Delete a sub API key. Args: request: DeleteSubKeyRequest with the key to delete. Returns: JSONSTRING
HIGHomlx/admin/routes.py2812 Update settings for a specific model. Updates are persisted to the settings file and applied immediately tSTRING
HIGHomlx/admin/routes.py4359 Read model config files and return recommended defaults. Returns the sampling settings a new model starts withSTRING
HIGHomlx/admin/routes.py4803 Update global server settings. Updates are persisted to the global settings file. Some settings, includingSTRING
HIGHomlx/admin/routes.py6201 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/api/embedding_utils.py133 Normalize the request ``input`` field into engine-ready items. Supported shapes: - A single string -> one STRING
HIGHomlx/engine/sts.py342 Process an audio file through the STS model. For speech enhancement models (DeepFilterNet, MossFormer2STRING
Cross-File Repetition27 hits · 135 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/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/deepseek_v4/sparse_attention_nax.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/patches/mlx_vlm_glm5_next_compat/decode_kernels.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
Self-Referential Comments23 hits · 72 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/test_model_discovery.py1960 # Create a normal LLM modelCOMMENT
MEDIUM⚡tests/test_model_discovery.py1968 # Create a whisper ASR modelCOMMENT
MEDIUMtests/test_model_discovery.py1481 # Create a file at top levelCOMMENT
MEDIUMtests/test_model_discovery.py1852 # Create a small safetensors fileCOMMENT
MEDIUMtests/test_model_discovery.py1981 # Create a TTS modelCOMMENT
MEDIUMtests/test_paged_ssd_cache.py3410 # Create a BlockTableCOMMENT
MEDIUMtests/test_deepseek_v4_patch.py1713 # Create a fake model dir with a non-deepseek config.COMMENT
MEDIUMtests/test_engine_core.py757 # Create a task that calls generate - it will block on event.wait()COMMENT
MEDIUMtests/test_hf_downloader.py297 # Create a fake model directory to simulate downloadCOMMENT
MEDIUMtests/test_hf_downloader.py1344 # Create a mock global settingsCOMMENT
MEDIUMtests/test_hf_downloader.py3082 # Create a fake README file with YAML front matterCOMMENT
MEDIUMtests/test_scheduler.py5046 # Create a mock CacheList objectCOMMENT
MEDIUM⚡tests/test_embedding.py235 # Create a unit vector [0.6, 0.8, 0.0] (norm = 1.0)COMMENT
MEDIUMtests/test_embedding.py254 # Create a vector [1, 1, 1] / sqrt(3) = [0.577, 0.577, 0.577]COMMENT
MEDIUM⚡tests/test_batched_engine.py661 # Create a mock model where config is a dictCOMMENT
MEDIUMtests/test_audio_tts.py1364 # 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.py361 # Create a fake safetensors fileCOMMENT
MEDIUMtests/test_index_cache.py107 # Create a mock model with 4 layersCOMMENT
MEDIUM⚡tests/test_admin_auth.py237 # Create a token with the new serializerCOMMENT
MEDIUMomlx/_torch_stub.py34# This module is the *single source of truth* — packaging/build.py importsCOMMENT
MEDIUMomlx/admin/routes.py6340 # This file is at omlx/admin/routes.py → package dir is omlx/COMMENT
Modern AI Meta-Vocabulary20 hits · 50 pts
SeverityFileLineSnippetContext
MEDIUMomlx/model_settings.py538 # Longest audio item, in seconds, an embedding model reads before cuttingCOMMENT
MEDIUMomlx/server.py1228 # on the failure mode. Without it, "context window too small"COMMENT
MEDIUMomlx/server.py4133 # as null-filled arrays inside a 200, and a RAG pipeline stores theCOMMENT
MEDIUMomlx/server.py4608 # Validate context window for each promptCOMMENT
MEDIUMomlx/server.py5148 # Validate context window before sending to modelCOMMENT
MEDIUMomlx/server.py8089 # Validate context window before sending to modelCOMMENT
MEDIUMomlx/server.py8742 # Validate context windowCOMMENT
MEDIUMomlx/model_profiles.py120 # Memory residency of an embedding model's audio tower; explicit per model.COMMENT
MEDIUMomlx/model_discovery.py215# Known embedding model types from mlx-embeddingsCOMMENT
MEDIUMomlx/cache/paged_ssd_cache.py375# mlx-lm Qwen3.5-family modules whose ``YarnRoPE`` comes from a context windowCOMMENT
MEDIUMomlx/admin/routes.py2537 # 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.py675 # effective context window from the listing without a separate callCOMMENT
MEDIUMomlx/api/tool_calling.py1389# 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.py857 # AlignAtt decoder, which bypasses the whole anti-hallucinationCOMMENT
MEDIUMapps/omlx-mac/Sources/AppView/AppView.swift556// MARK: - Detail scaffoldCOMMENT
Redundant / Tautological Comments36 hits · 46 pts
SeverityFileLineSnippetContext
LOWtests/test_engine_pool.py2555 # Set limit to allow each model individually but not both togetherCOMMENT
LOW⚡tests/test_settings.py2250 # Set env to port 8888COMMENT
LOWtests/integration/test_vlm_mrope_integration.py731 # Check if model supports cached_image_featuresCOMMENT
LOWomlx/cli.py522 # Check if oMLX server is runningCOMMENT
LOWomlx/cli.py607 # Check if tool is installedCOMMENT
LOWomlx/scheduler.py9910 # Check if it's a list of cache layersCOMMENT
LOWomlx/scheduler.py9941 # Check if layer has expected structureCOMMENT
LOWomlx/scheduler.py13178 # Check if prompt ends with <think> token for reasoning models.COMMENT
LOWomlx/scheduler.py13839 # Check if this request uses a protocol-specific output parserCOMMENT
LOWomlx/engine_pool.py4378 # Check if memory enforcer requested abort during loadingCOMMENT
LOWomlx/engine_pool.py4846 # 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.py286 # Check if there's a TB connection between host i and host jCOMMENT
LOWomlx/cache/paged_ssd_cache.py3307 # Check if block was evicted while write was pending.COMMENT
LOWomlx/cache/vision_feature_cache.py314 # Check if already on SSD. Entries without grid metadata are notCOMMENT
LOWomlx/cache/prefix_cache.py797 # Check if this layer is RotatingKVCacheCOMMENT
LOWomlx/cache/prefix_cache.py1000 # Check if cache_data contains extracted tensor statesCOMMENT
LOWomlx/cache/prefix_cache.py1288 # Check if this block already exists (deduplication)COMMENT
LOWomlx/cache/prefix_cache.py2730 # Check if all sub-caches are sliceable 4D KVCache tensors.COMMENT
LOWomlx/patches/specprefill.py1047 # 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.py1157 # 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.py35# Check if modelscope SDK is availableCOMMENT
LOWomlx/admin/ms_downloader.py913 # Check if cancelled while waiting in queueCOMMENT
LOWomlx/admin/ms_downloader.py980 # Check if cancelled while downloading - clean up downloaded filesCOMMENT
LOWomlx/admin/hf_downloader.py2011 # Check if cancelled while waiting in queueCOMMENT
LOWomlx/admin/hf_downloader.py2204 # Check if cancelled while downloadingCOMMENT
LOWomlx/admin/routes.py2835 # 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.py346 # Check if this could be a tag startCOMMENT
LOWomlx/api/thinking.py374 # 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.py5462 # Check if user provided meaningful textCOMMENT
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 Patterns60 hits · 42 pts
SeverityFileLineSnippetContext
LOWtests/test_system_sampler.py19CODE
LOWtests/test_mlx_vlm_glm5_next_compat.py3562CODE
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.py1490CODE
LOWomlx/server.py1882CODE
LOWomlx/process_memory_enforcer.py410CODE
LOWomlx/engine_core.py718CODE
LOWomlx/oq.py6883CODE
LOWomlx/oq.py10472CODE
LOWomlx/oq.py11045CODE
LOWomlx/memory_monitor.py485CODE
LOWomlx/cluster/progressive_loading.py74CODE
LOWomlx/cluster/telemetry.py1096CODE
LOWomlx/cluster/telemetry.py121CODE
LOWomlx/cluster/pairing.py852CODE
LOWomlx/cluster/autoconfigure.py142CODE
LOWomlx/cache/observability.py107CODE
LOWomlx/cache/paged_ssd_cache.py294CODE
LOWomlx/cache/paged_ssd_cache.py1768CODE
LOWomlx/cache/prefix_cache.py950CODE
LOWomlx/patches/qwen35_ane_prefill.py3075CODE
LOWomlx/patches/specprefill.py595CODE
LOWomlx/patches/deepseek_v41/loading.py85CODE
LOWomlx/patches/deepseek_v41/packed_attention.py373CODE
LOWomlx/patches/deepseek_v41/packed_attention.py407CODE
LOWomlx/patches/deepseek_v41/oq.py367CODE
LOWomlx/patches/mlx_lm_mtp/qwen35_model.py387CODE
LOWomlx/admin/hf_downloader.py1460CODE
LOWomlx/admin/ane_tuning.py371CODE
LOWomlx/admin/ane_tuning.py766CODE
LOWomlx/admin/oq_manager.py304CODE
LOWomlx/admin/routes.py8000CODE
LOWomlx/utils/sampling.py202CODE
LOWomlx/utils/sampling.py308CODE
LOWomlx/api/audio_routes.py512CODE
LOWomlx/engine/tts.py186CODE
LOWomlx/engine/tts.py330CODE
LOWomlx/engine/vlm.py4789CODE
LOWomlx/engine/vlm.py4907CODE
LOWomlx/engine/vlm.py5067CODE
LOWomlx/engine/vlm.py5319CODE
LOWomlx/engine/distributed.py215CODE
LOWomlx/engine/distributed.py1196CODE
LOWomlx/engine/distributed.py1311CODE
LOWomlx/engine/distributed.py1574CODE
LOWomlx/engine/distributed.py1661CODE
LOWomlx/engine/batched.py1153CODE
LOWomlx/engine/batched.py1243CODE
LOWomlx/engine/batched.py1383CODE
LOWomlx/engine/batched.py1550CODE
LOWomlx/engine/base.py411CODE
LOWomlx/engine/base.py443CODE
LOWomlx/engine/base.py475CODE
LOWomlx/engine/base.py507CODE
LOWomlx/engine/splash.py1610CODE
AI Slop Vocabulary15 hits · 39 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/test_tool_calling.py2732# Gemma 4 robust fallback parser testsCOMMENT
MEDIUMtests/test_mlx_lm_mtp_patch.py233 """Rank zero's broadcasts, replayed in order to a rank run after it."""STRING
MEDIUM⚡tests/test_integrations.py2402 # the harness session default, so launch must not force a picker.COMMENT
MEDIUMtests/test_integrations.py2598 # The harness refuses duplicate mapping keys, so each key lands once.COMMENT
LOWomlx/output_collector.py70 # Replace: just use the new outputCOMMENT
MEDIUMomlx/scheduler.py11560 # by omlx) would yield a list. Guard so the path stays robustCOMMENT
LOWomlx/scheduler.py3293 # 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.py1754 # 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.py1343# Gemma 4 robust fallback parserCOMMENT
MEDIUMomlx/api/tool_calling.py2179 # Gemma 4 only: try robust fallback that handles bareCOMMENT
LOWomlx/api/tool_calling.py3995 # 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.py2095 # Step 2: Fallback - find max seq_len among all 4D tensorsCOMMENT
LOWomlx/cache/prefix_cache.py2048 # Step 1: Search for a sliceable KVCache layer (full attention)COMMENT
LOWomlx/cache/prefix_cache.py2141 # 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.py2095 # Step 2: Fallback - find max seq_len among all 4D tensorsCOMMENT
LOWomlx/cache/prefix_cache.py2048 # Step 1: Search for a sliceable KVCache layer (full attention)COMMENT
LOWomlx/cache/prefix_cache.py2141 # Step 3: CacheList fallback — check sub-states for seq_lenCOMMENT
Dead Code7 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_audio_stt.py1189CODE
MEDIUMtests/test_mtp_prompt_priming.py1479CODE
MEDIUMtests/test_cluster_prompt_snapshot_integration.py45CODE
MEDIUMtests/test_audio_tts.py727CODE
MEDIUMtests/test_server_prefill_memory_handler.py179CODE
MEDIUMtests/test_sse_keepalive.py104CODE
MEDIUMomlx/engine/splash.py1692CODE
Fake / Example Data6 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/test_systemone.py789 with pytest.raises(DecisionRequestError, match="placeholder"):CODE
LOWtests/test_qwen35_mlx_vision_layout.py21 {"placeholder": np.zeros((1,), dtype=np.float32)},CODE
LOWomlx/cache/prefix_cache.py4979 placeholder = state.get("placeholder")CODE
LOWomlx/cache/prefix_cache.py4982 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