Repository Analysis

jundot/omlx

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

29.8 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of jundot/omlx, a Python project with 18,376 GitHub stars. SynthScan v2.0 examined 391,735 lines of code across 751 source files, recording 9928 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 29.8 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

29.8
Adjusted Score
29.8
Raw Score
100%
Time Factor
2026-08-02
Last Push
18.4K
Stars
Python
Language
391.7K
Lines of Code
751
Files
9.9K
Pattern Hits
2026-08-02
Scan Date
0.12
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 3HIGH 86MEDIUM 1217LOW 8622

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 9928 distinct pattern matches across 21 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers6406 hits · 5263 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.py1036def _compute_donor_fingerprint() -> str:CODE
LOWpackaging/build.py1057def _write_export_fingerprint():CODE
LOWtests/test_store_cache_gate.py21 def test_note_submitted_increments(self):CODE
LOWtests/test_store_cache_gate.py27 def test_note_done_decrements(self):CODE
LOWtests/test_store_cache_gate.py34 def test_note_done_does_not_underflow(self):CODE
LOWtests/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
LOWtests/test_model_discovery.py76 def test_dflash_draft_via_architecture(self):CODE
LOWtests/test_model_discovery.py81 def test_dflash_draft_via_config_block(self):CODE
LOWtests/test_model_discovery.py85 def test_assistant_via_model_type(self):CODE
LOWtests/test_model_discovery.py135 def test_detect_embedding_model_by_type(self, tmp_path):CODE
LOWtests/test_model_discovery.py144 def test_detect_embedding_model_by_architecture(self, tmp_path):CODE
LOWtests/test_model_discovery.py153 def test_detect_modernbert_embedding(self, tmp_path):CODE
LOWtests/test_model_discovery.py162 def test_detect_reranker_model(self, tmp_path):CODE
LOWtests/test_model_discovery.py171 def test_detect_xlm_roberta_reranker(self, tmp_path):CODE
LOWtests/test_model_discovery.py180 def test_detect_jina_reranker_without_name_heuristic(self, tmp_path):CODE
LOWtests/test_model_discovery.py314 def test_missing_config_defaults_to_llm(self, tmp_path):CODE
LOWtests/test_model_discovery.py318 def test_invalid_json_defaults_to_llm(self, tmp_path):CODE
LOWtests/test_model_discovery.py323 def test_empty_config_defaults_to_llm(self, tmp_path):CODE
LOWtests/test_model_discovery.py328 def test_detect_vlm_by_model_type(self, tmp_path):CODE
LOWtests/test_model_discovery.py338 def test_detect_diffusion_gemma_as_vlm(self, tmp_path):CODE
LOWtests/test_model_discovery.py651 def test_detect_vlm_fastvlm_via_mm_vision_tower(self, tmp_path):CODE
LOWtests/test_model_discovery.py661 def test_detect_text_only_quant_with_empty_mm_vision_tower_as_llm(self, tmp_path):CODE
LOWtests/test_model_discovery.py671 def test_detect_text_only_quant_no_vision_evidence_as_llm(self, tmp_path):CODE
LOWtests/test_model_discovery.py683 def test_detect_lfm_text_moe_family_as_llm_not_audio_sts(self, tmp_path):CODE
LOWtests/test_model_discovery.py692 def test_detect_lfm_future_moe_variant_as_llm_not_audio_sts(self, tmp_path):CODE
LOWtests/test_model_discovery.py701 def test_detect_lfm_audio_architecture_as_sts(self, tmp_path):CODE
LOWtests/test_model_discovery.py710 def test_detect_lfm_audio_model_type_as_sts(self, tmp_path):CODE
LOWtests/test_model_discovery.py719 def test_detect_unknown_lfm_prefix_without_causal_lm_as_sts(self, tmp_path):CODE
LOWtests/test_model_discovery.py732 def test_estimate_from_safetensors(self, tmp_path):CODE
LOWtests/test_model_discovery.py742 def test_estimate_from_single_safetensors(self, tmp_path):CODE
LOWtests/test_model_discovery.py749 def test_estimate_from_bin_files(self, tmp_path):CODE
LOWtests/test_model_discovery.py758 def test_skip_optimizer_files(self, tmp_path):CODE
LOWtests/test_model_discovery.py969 def test_nonexistent_directory_raises_error(self, tmp_path):CODE
LOWtests/test_model_discovery.py974 def test_file_instead_of_directory_raises_error(self, tmp_path):CODE
LOWtests/test_model_discovery.py981 def test_unreadable_directory_is_skipped(self, tmp_path, monkeypatch):CODE
LOWtests/test_model_discovery.py1081 def test_adapter_dir_detected(self, tmp_path):CODE
LOWtests/test_model_discovery.py1086 def test_normal_model_not_adapter(self, tmp_path):CODE
LOWtests/test_model_discovery.py1092 def test_discover_skips_lora_adapter(self, tmp_path):CODE
LOWtests/test_model_discovery.py1187 def test_top_level_takes_precedence_over_nested(self, tmp_path):CODE
LOWtests/test_model_discovery.py1194 def test_text_config_fallback(self, tmp_path):CODE
LOWtests/test_model_discovery.py1199 def test_language_config_fallback(self, tmp_path):CODE
LOWtests/test_model_discovery.py1204 def test_tokenizer_max_length_fallback(self, tmp_path):CODE
LOWtests/test_model_discovery.py1209 def test_tokenizer_sentinel_rejected(self, tmp_path):CODE
LOWtests/test_model_discovery.py1218 def test_no_config_returns_none(self, tmp_path):CODE
LOWtests/test_model_discovery.py1221 def test_invalid_types_rejected(self, tmp_path):CODE
LOWtests/test_model_discovery.py1230 def test_malformed_config_is_silent(self, tmp_path):CODE
LOWtests/test_model_discovery.py1267 def test_multiple_org_folders(self, tmp_path):CODE
LOWtests/test_model_discovery.py1276 def test_empty_org_folder_skipped(self, tmp_path):CODE
LOWtests/test_model_discovery.py1285 def test_org_folder_hidden_children_skipped(self, tmp_path):CODE
LOWtests/test_model_discovery.py1295 def test_org_folder_invalid_children_skipped(self, tmp_path):CODE
6346 more matches not shown…
Decorative Section Separators1124 hits · 3862 pts
SeverityFileLineSnippetContext
MEDIUMtools/repack_ternary_t5.py80# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/repack_ternary_t5.py82# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/repack_ternary_t5.py148# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/repack_ternary_t5.py150# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/repack_ternary_t5.py175# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/repack_ternary_t5.py177# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/repack_ternary_t5.py364# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/repack_ternary_t5.py366# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/repack_ternary_t5.py426# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/repack_ternary_t5.py428# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_openai_adapter.py32 # =========================================================================COMMENT
MEDIUMtests/test_openai_adapter.py34 # =========================================================================COMMENT
MEDIUMtests/test_openai_adapter.py67 # =========================================================================COMMENT
MEDIUMtests/test_openai_adapter.py69 # =========================================================================COMMENT
MEDIUMtests/test_openai_adapter.py128 # =========================================================================COMMENT
MEDIUMtests/test_openai_adapter.py130 # =========================================================================COMMENT
MEDIUMtests/test_openai_adapter.py166 # =========================================================================COMMENT
MEDIUMtests/test_openai_adapter.py168 # =========================================================================COMMENT
MEDIUMtests/test_openai_adapter.py222 # =========================================================================COMMENT
MEDIUMtests/test_openai_adapter.py224 # =========================================================================COMMENT
MEDIUMtests/test_openai_adapter.py234 # =========================================================================COMMENT
MEDIUMtests/test_openai_adapter.py236 # =========================================================================COMMENT
MEDIUMtests/test_openai_adapter.py502 # =========================================================================COMMENT
MEDIUMtests/test_openai_adapter.py504 # =========================================================================COMMENT
MEDIUMtests/test_openai_adapter.py605 # =========================================================================COMMENT
MEDIUMtests/test_openai_adapter.py607 # =========================================================================COMMENT
MEDIUMtests/test_openai_adapter.py699 # =========================================================================COMMENT
MEDIUMtests/test_openai_adapter.py701 # =========================================================================COMMENT
MEDIUMtests/test_openai_adapter.py684 # =========================================================================COMMENT
MEDIUMtests/test_openai_adapter.py686 # =========================================================================COMMENT
MEDIUMtests/test_paged_ssd_cache.py1902# =============================================================================COMMENT
MEDIUMtests/test_paged_ssd_cache.py1904# =============================================================================COMMENT
MEDIUMtests/e2e_vision_cache.py58 # ── Step 1: Load model ──────────────────────────────────────COMMENT
MEDIUMtests/e2e_vision_cache.py72 # ── Step 2: Prepare inputs ──────────────────────────────────COMMENT
MEDIUMtests/e2e_vision_cache.py120 # ── Step 3: Test _compute_vision_features ────────────────────COMMENT
MEDIUMtests/e2e_vision_cache.py152 # ── Step 4: Test cached_image_features support ───────────────COMMENT
MEDIUMtests/e2e_vision_cache.py185 # ── Step 5: Test VisionFeatureSSDCache roundtrip ─────────────COMMENT
MEDIUMtests/e2e_vision_cache.py220 # ── Step 6: Cache hit performance ────────────────────────────COMMENT
MEDIUMtests/test_ms_downloader.py116# =============================================================================COMMENT
MEDIUMtests/test_ms_downloader.py118# =============================================================================COMMENT
MEDIUMtests/test_ms_downloader.py424# =============================================================================COMMENT
MEDIUMtests/test_ms_downloader.py426# =============================================================================COMMENT
MEDIUMtests/test_ms_downloader.py653# =============================================================================COMMENT
MEDIUMtests/test_ms_downloader.py655# =============================================================================COMMENT
MEDIUMtests/test_ms_downloader.py27# =============================================================================COMMENT
MEDIUMtests/test_ms_downloader.py29# =============================================================================COMMENT
MEDIUMtests/test_mcp_config.py36# =============================================================================COMMENT
MEDIUMtests/test_mcp_config.py38# =============================================================================COMMENT
MEDIUMtests/test_mcp_config.py238# =============================================================================COMMENT
MEDIUMtests/test_mcp_config.py240# =============================================================================COMMENT
MEDIUMtests/test_mcp_config.py323# =============================================================================COMMENT
MEDIUMtests/test_mcp_config.py325# =============================================================================COMMENT
MEDIUMtests/test_mcp_config.py370# =============================================================================COMMENT
MEDIUMtests/test_mcp_config.py372# =============================================================================COMMENT
MEDIUMtests/test_prefix_cache.py2153 # ------------------------------------------------------------------COMMENT
MEDIUMtests/test_prefix_cache.py2155 # ------------------------------------------------------------------COMMENT
MEDIUMtests/test_prefix_cache.py2179 # ------------------------------------------------------------------COMMENT
MEDIUMtests/test_prefix_cache.py2181 # ------------------------------------------------------------------COMMENT
MEDIUMtests/test_prefix_cache.py2314 # ------------------------------------------------------------------COMMENT
MEDIUMtests/test_prefix_cache.py2316 # ------------------------------------------------------------------COMMENT
1064 more matches not shown…
Excessive Try-Catch Wrapping820 hits · 702 pts
SeverityFileLineSnippetContext
LOWpackaging/build.py824except Exception: # pragma: no cover — build runs may not have omlx on path yetCODE
LOWtools/repack_ternary_t5.py191 except Exception as e:CODE
LOWtools/repack_ternary_t5.py206 except Exception as e:CODE
MEDIUMtests/test_paged_ssd_cache.py2741def do_preload():CODE
MEDIUMtests/test_paged_ssd_cache.py2747def do_loads():CODE
LOWtests/test_paged_ssd_cache.py2744 except Exception as e:CODE
LOWtests/test_paged_ssd_cache.py2752 except Exception as e:CODE
LOWtests/e2e_vision_cache.py89 except Exception:CODE
LOWtests/e2e_vision_cache.py95 except Exception:CODE
MEDIUMtests/test_mlx_lm_mtp_patch.py74def _apply(self):CODE
LOWtests/test_mlx_lm_mtp_patch.py1840 except Exception:CODE
LOWtests/test_audio_stt.py1398 except Exception as e:CODE
LOWtests/test_glm_moe_dsa_patch.py342 except Exception as exc: # pragma: no cover - depends on local native buildCODE
LOWtests/test_glm_moe_dsa_patch.py646 except Exception as exc: # pragma: no cover - depends on local native buildCODE
LOWtests/test_glm_moe_dsa_patch.py755 except Exception as exc: # pragma: no cover - depends on local native buildCODE
LOWtests/test_glm_moe_dsa_patch.py814 except Exception as exc: # pragma: no cover - depends on local native buildCODE
LOWtests/test_mtp_prompt_priming.py207 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_prefill_progress.py110 except Exception as e:CODE
MEDIUMtests/test_prefill_progress.py103def updater(model_id, start):CODE
MEDIUMtests/test_torch_stub.py423def worker():CODE
LOWtests/test_torch_stub.py430 except Exception as e:CODE
LOWtests/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
LOWtests/test_embedding.py1307 except Exception as e:CODE
LOWtests/test_audio_tts.py1424 except Exception as e:CODE
LOWtests/test_cache_observability.py175 except Exception as e:CODE
LOWtests/test_cache_observability.py182 except Exception as e:CODE
MEDIUMtests/test_model_settings.py652def worker(model_id):CODE
LOWtests/test_model_settings.py657 except Exception as e:CODE
LOWtests/test_audio_sts.py467 except Exception as e:CODE
LOWtests/test_audio_sts.py493 except Exception as e:CODE
LOWtests/test_audio_sts.py521 except Exception as e:CODE
LOWtests/test_audio_sts.py549 except Exception as e:CODE
MEDIUMtests/test_hot_cache.py533def worker(thread_id):CODE
LOWtests/test_hot_cache.py556 except Exception as e:CODE
MEDIUMtests/test_boundary_snapshot_store.py772def all_cleaner():CODE
LOWtests/test_boundary_snapshot_store.py759 except Exception as e:CODE
LOWtests/test_boundary_snapshot_store.py769 except Exception as e:CODE
LOWtests/test_boundary_snapshot_store.py777 except Exception as e:CODE
LOWtests/test_boundary_snapshot_store.py711 except Exception as e:CODE
LOWtests/test_qwen35_moe_weighted_sum.py46 except Exception:CODE
LOWtests/test_harmony_parser.py29 except Exception:CODE
MEDIUMtests/integration/test_vlm_mrope_integration.py89def _apply_chat_template_as_ids(tokenizer, messages) -> List[int]:CODE
LOWtests/integration/test_vlm_mrope_integration.py100 except Exception:CODE
LOWtests/integration/test_vlm_mrope_integration.py172 except Exception:CODE
LOWtests/integration/test_vlm_mrope_integration.py177 except Exception:CODE
LOWtests/integration/test_vlm_mrope_integration.py742 except Exception:CODE
LOWtests/integration/test_vlm_mrope_integration.py850 except Exception as e:CODE
LOWtests/integration/test_full_integration.py106 except Exception:CODE
LOWtests/integration/test_full_integration.py481 except Exception:CODE
LOWtests/integration/test_full_integration.py486 except Exception:CODE
LOWtests/integration/test_real_model_inference.py525 except Exception as e:CODE
LOWtests/integration/test_boundary_cache_consistency.py91 except Exception:CODE
LOWtests/integration/test_boundary_cache_consistency.py105 except Exception:CODE
LOWomlx/model_settings.py429 except Exception as e:CODE
760 more matches not shown…
Unused Imports558 hits · 456 pts
SeverityFileLineSnippetContext
LOWtools/repack_ternary_t5.py51CODE
LOWtests/test_qwen35_q4_mlp.py1CODE
LOWtests/test_openai_adapter.py20CODE
LOWtests/test_paged_ssd_cache.py42CODE
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.py34CODE
LOWtests/test_hybrid_cache.py1070CODE
LOWtests/test_m5_gather_qmm.py4CODE
LOWtests/test_utils_hardware.py8CODE
LOWtests/test_cache_ntuple_state.py18CODE
LOWtests/test_cache_ntuple_state.py286CODE
LOWtests/e2e_vision_cache.py21CODE
LOWtests/test_stream_usage.py6CODE
LOWtests/test_v1_models_visibility.py4CODE
LOWtests/test_ms_downloader.py6CODE
LOWtests/test_mcp_config.py9CODE
LOWtests/test_prefix_cache_cachelist_mixed.py28CODE
LOWtests/test_shared_models.py5CODE
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_singleton_cache_passthrough.py10CODE
LOWtests/test_gemma4_rendering.py7CODE
LOWtests/test_nested_nstate_serialization.py24CODE
LOWtests/test_admin_hot_cache_clear.py16CODE
LOWtests/test_dflash_lifecycle.py4CODE
LOWtests/test_model_registry.py10CODE
LOWtests/test_admin_api_key.py15CODE
LOWtests/test_mlx_lm_mtp_patch.py10CODE
LOWtests/test_glm_moe_dsa_patch.py4CODE
LOWtests/test_optimizations.py8CODE
LOWtests/test_prefix_cache_v4_block_storage.py28CODE
LOWtests/test_request.py6CODE
LOWtests/test_scheduler_logits_processors.py39CODE
LOWtests/test_scheduler_logits_processors.py193CODE
LOWtests/test_scheduler_logits_processors.py210CODE
LOWtests/test_scheduler_logits_processors.py228CODE
LOWtests/test_scheduler_logits_processors.py255CODE
LOWtests/test_scheduler_logits_processors.py389CODE
LOWtests/test_anthropic_models.py9CODE
LOWtests/test_mlx_vlm_minimax_m3_compat.py4CODE
LOWtests/test_mlx_vlm_minimax_m3_compat.py19CODE
LOWtests/test_mlx_vlm_minimax_m3_compat.py20CODE
LOWtests/test_mcp_tools.py8CODE
LOWtests/test_bonsai_qmv.py15CODE
LOWtests/test_bonsai_qmv.py18CODE
LOWtests/test_bonsai_qmv.py18CODE
LOWtests/test_gemma4_verify_attention.py9CODE
LOWtests/test_proc_memory.py4CODE
498 more matches not shown…
Deep Nesting362 hits · 242 pts
SeverityFileLineSnippetContext
LOWtools/repack_ternary_t5.py307CODE
LOWtools/repack_ternary_t5.py368CODE
LOWtests/test_qwen35_q4_mlp.py282CODE
LOWtests/test_qwen35_q4_mlp.py372CODE
LOWtests/test_engine_core.py213CODE
LOWtests/test_engine_core.py253CODE
LOWtests/test_engine_core.py957CODE
LOWtests/test_engine_core.py1168CODE
LOWtests/test_dflash_multimodal_fallback.py339CODE
LOWtests/test_dflash_multimodal_fallback.py369CODE
LOWtests/test_scheduler_chunked_prefill.py749CODE
LOWtests/test_vlm_engine.py1374CODE
LOWtests/test_glm_mtp_patch.py67CODE
LOWtests/test_oq.py2201CODE
LOWtests/test_thinking_budget.py458CODE
LOWtests/test_boundary_snapshot_store.py493CODE
LOWtests/test_reranker_causal_lm.py578CODE
LOWtests/test_reranker_causal_lm.py589CODE
LOWtests/integration/test_vlm_mrope_integration.py153CODE
LOWtests/integration/test_vlm_mrope_integration.py297CODE
LOWtests/integration/test_e2e_streaming.py205CODE
LOWtests/integration/test_e2e_streaming.py1120CODE
LOWtests/integration/test_full_integration.py308CODE
LOWtests/integration/test_full_integration.py453CODE
LOWtests/integration/test_real_model_inference.py63CODE
LOWomlx/model_settings.py513CODE
LOWomlx/model_settings.py605CODE
LOWomlx/model_settings.py814CODE
LOWomlx/model_settings.py894CODE
LOWomlx/server.py357CODE
LOWomlx/server.py871CODE
LOWomlx/server.py1233CODE
LOWomlx/server.py1961CODE
LOWomlx/server.py2083CODE
LOWomlx/server.py2530CODE
LOWomlx/server.py3155CODE
LOWomlx/server.py3785CODE
LOWomlx/server.py3961CODE
LOWomlx/server.py4283CODE
LOWomlx/server.py4342CODE
LOWomlx/server.py4768CODE
LOWomlx/server.py5156CODE
LOWomlx/server.py5667CODE
LOWomlx/server.py6086CODE
LOWomlx/server.py3549CODE
LOWomlx/server.py5450CODE
LOWomlx/server.py5937CODE
LOWomlx/server_metrics.py255CODE
LOWomlx/process_memory_enforcer.py1287CODE
LOWomlx/process_memory_enforcer.py1400CODE
LOWomlx/engine_core.py371CODE
LOWomlx/engine_core.py689CODE
LOWomlx/engine_core.py859CODE
LOWomlx/cli.py71CODE
LOWomlx/cli.py351CODE
LOWomlx/cli.py632CODE
LOWomlx/cli.py789CODE
LOWomlx/prefill_progress.py32CODE
LOWomlx/prefill_progress.py86CODE
LOWomlx/model_discovery.py763CODE
302 more matches not shown…
Modern Structural Boilerplate236 hits · 238 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
LOWtests/mocks.py278 def set_cold_restore_callback(self, callback: Callable) -> None:CODE
LOWtests/mocks.py286 def set_paged_ssd_cache_manager(self, manager: Any) -> None:CODE
LOWomlx/model_settings.py26logger = logging.getLogger(__name__)CODE
LOWomlx/model_settings.py513 def set_settings(self, model_id: str, settings: ModelSettings) -> None:CODE
LOWomlx/server.py198logger = logging.getLogger(__name__)CODE
LOWomlx/logging_config.py83def set_request_id(request_id: Optional[str]) -> None:CODE
LOWomlx/prefill_transient_tracker.py17logger = logging.getLogger(__name__)CODE
LOWomlx/turboquant_kv.py45logger = logging.getLogger(__name__)CODE
LOWomlx/turboquant_kv.py47__all__ = [CODE
LOWomlx/request.py244 def set_finished(self, status: RequestStatus, reason: Optional[str] = None) -> None:CODE
LOWomlx/__init__.py50__all__ = [CODE
LOWomlx/server_metrics.py17logger = logging.getLogger(__name__)CODE
LOWomlx/process_memory_enforcer.py51logger = logging.getLogger(__name__)CODE
LOWomlx/optimizations.py34logger = logging.getLogger(__name__)CODE
LOWomlx/optimizations.py36__all__ = [CODE
LOWomlx/engine_core.py54logger = logging.getLogger(__name__)CODE
LOWomlx/model_discovery.py26logger = logging.getLogger(__name__)CODE
LOWomlx/settings.py37logger = logging.getLogger(__name__)CODE
LOWomlx/oq.py40logger = logging.getLogger(__name__)CODE
LOWomlx/scheduler.py10863 def _set_model_info_for_monitor(self) -> None:CODE
LOWomlx/scheduler.py282 def set_cap(self, cap: int) -> None:CODE
LOWomlx/scheduler.py351logger = logging.getLogger(__name__)CODE
LOWomlx/_torch_stub.py31logger = logging.getLogger(__name__)CODE
LOWomlx/engine_pool.py53logger = logging.getLogger(__name__)CODE
LOWomlx/model_registry.py22logger = logging.getLogger(__name__)CODE
LOWomlx/memory_monitor.py29logger = logging.getLogger(__name__)CODE
LOWomlx/memory_monitor.py259 def set_baseline_memory(self) -> None:CODE
LOWomlx/memory_monitor.py283 def set_request_stats(self, running: int, waiting: int) -> None:CODE
LOWomlx/memory_monitor.py475 def set_fixed_state_bytes(self, n: int) -> None:CODE
LOWomlx/memory_monitor.py972def set_model_info_from_model(monitor: "MemoryMonitor", model: Any) -> 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__.py6__all__ = ["fast", "gated_delta_blocked_seq", "gated_delta_chunked_metal"]CODE
LOWomlx/custom_kernels/qwen35_prefill/fast.py14logger = logging.getLogger(__name__)CODE
LOWomlx/cache/recovery.py19logger = logging.getLogger(__name__)CODE
LOWomlx/cache/type_handlers.py17logger = logging.getLogger(__name__)CODE
LOWomlx/cache/__init__.py83__all__ = [CODE
LOWomlx/cache/type_registry.py25logger = logging.getLogger(__name__)CODE
LOWomlx/cache/boundary_snapshot_store.py40logger = logging.getLogger(__name__)CODE
LOWomlx/cache/paged_ssd_cache.py42logger = logging.getLogger(__name__)CODE
LOWomlx/cache/paged_ssd_cache.py1089 def update_file_size(self, block_hash: bytes, actual_size: int) -> None:CODE
LOWomlx/cache/paged_cache.py38logger = logging.getLogger(__name__)CODE
LOWomlx/cache/paged_cache.py579 def set_paged_ssd_cache_manager(self, paged_ssd_cache_manager: Any) -> None:CODE
LOWomlx/cache/vision_feature_cache.py35logger = logging.getLogger(__name__)CODE
LOWomlx/cache/prefix_cache.py37logger = logging.getLogger(__name__)CODE
LOWomlx/cache/hybrid_cache.py16logger = logging.getLogger(__name__)CODE
LOWomlx/patches/mlx_audio_compat.py8logger = logging.getLogger(__name__)CODE
LOWomlx/patches/specprefill.py33logger = logging.getLogger(__name__)CODE
LOWomlx/patches/gemma4_verify_attention.py54logger = logging.getLogger(__name__)CODE
LOWomlx/patches/bonsai_t5_load.py49logger = logging.getLogger(__name__)CODE
LOWomlx/patches/mlx_audio_sampling.py37logger = logging.getLogger(__name__)CODE
LOWomlx/patches/qwen35_q4_mlp.py22logger = logging.getLogger(__name__)CODE
LOWomlx/patches/qwen35_verify_qmm.py51logger = logging.getLogger(__name__)CODE
176 more matches not shown…
Cross-Language Confusion31 hits · 169 pts
SeverityFileLineSnippetContext
HIGHtests/test_tool_calling.py1602 "\"Qwen3.6-35B-A3B-ConfigI-MLX\" --timeout 180 && echo "CODE
HIGHtests/test_tool_calling.py1605 "--timeout 300 && echo \"v2 dynamic completed\"', timeout=400)]"CODE
HIGHtests/test_tool_calling.py1433 "\t\tif len(ce.Args) > 1 && isSubcommand(ce.Args[1]) {"CODE
HIGHtests/test_tool_calling.py1986 result = _gemma4_args_to_json_robust("{data: null}")CODE
HIGHtests/test_tool_calling.py2474 'call:f(a=1, b=<|"|>two<|"|>, c=true, d=null, e=3.5)'CODE
HIGHtests/test_tool_calling.py364 response_format={"type": "json_schema", "json_schema": null}; theSTRING
HIGHtests/test_chat_ui_overhaul.py33 "async streamResponse(streamContext = null, depth = 0)",CODE
HIGHtests/test_chat_ui_overhaul.py39 assert "context._modelOverride || context.model" in streamCODE
HIGHtests/test_chat_ui_overhaul.py47 "async streamResponse(streamContext = null, depth = 0)",CODE
HIGHtests/test_chat_ui_overhaul.py58 assert "_modelOverride: opts.model || null" in regenerateCODE
HIGHtests/test_chat_ui_overhaul.py105 assert "options.touchUpdatedAt === false && existingChat?.updatedAt" in saveCODE
HIGHtests/test_chat_ui_overhaul.py143 "async streamResponse(streamContext = null, depth = 0)",CODE
HIGHtests/test_admin_profiles_api.py875 assert "p.display_name || p.name" in htmlCODE
HIGHtests/test_admin_profiles_api.py876 assert "p.expose_as_model ? (p.api_name || p.name)" not in htmlCODE
HIGHtests/test_admin_profiles_api.py896 assert "profile.api_name || profile.name" in settings_htmlCODE
HIGHtests/test_admin_profiles_api.py898 "profile.api_name || profile.name"CODE
HIGHomlx/server.py1878 '"finish_reason":null}]}\n\n'CODE
HIGHomlx/server.py1883 '"choices":[{"index":0,"text":"","logprobs":null,"finish_reason":null}]}\n\n'CODE
HIGHomlx/server.py1892 '"choices":[{"index":0,"text":"","logprobs":null,"finish_reason":null}]}\n\n'CODE
HIGHomlx/server.py1945 '"finish_reason":null}]}\n\n'CODE
HIGHomlx/custom_kernels/qwen35_prefill/gdn.py123 if (j < i && i < tt)CODE
HIGHomlx/custom_kernels/qwen35_prefill/gdn.py181 if (j <= i && i < tt)CODE
HIGHomlx/patches/qwen35_verify_qmm.py339 if (part == 0 && lane < {n_acc}) {{CODE
HIGHomlx/patches/dflash_draft_config.py33Hoisting is fill-only per key: a root-level key that is set (non-null)STRING
HIGHomlx/patches/dflash_draft_config.py64 that is set (non-null) is never overwritten; an explicit ``null``STRING
HIGHomlx/patches/glm_moe_dsa/sparse_mla.py30 if (CAUSAL_PREFIX_INDICES && q_pos < PREFIX_ROWS) {CODE
HIGHomlx/patches/glm_moe_dsa/sparse_mla.py40 if (q_block >= Q_BLOCKS || k_block >= K_BLOCKS) {CODE
HIGHomlx/patches/glm_moe_dsa/sparse_mla.py67 if (CAUSAL && k_pos > q_abs) {CODE
HIGHomlx/patches/glm_moe_dsa/sparse_mla.py73 if (q_block >= Q_BLOCKS || k_block >= K_BLOCKS) {CODE
HIGHomlx/patches/glm_moe_dsa/sparse_mla.py243 if (CAUSAL && k_pos > K - L + q_pos) {CODE
HIGHomlx/api/grammar.py14computation (parallel model forward || bitmask fill).STRING
Docstring Block Structure30 hits · 150 pts
SeverityFileLineSnippetContext
HIGHomlx/server.py877 Get engine for the specified model and type. This is the unified engine getter that handles LLM, embedding, anSTRING
HIGHomlx/server.py1123 Get LLM engine for the specified model (or default). This is a convenience wrapper around get_engine() for LLMSTRING
HIGHomlx/server.py1161 Get embedding engine for the specified model. This is a convenience wrapper around get_engine() for embedding STRING
HIGHomlx/server.py1179 Get reranker engine for the specified model. This is a convenience wrapper around get_engine() for reranker moSTRING
HIGHomlx/scheduler.py2994Run prefill externally (outside BatchGenerator) for a single request. Processes tokens[0:N-1] through the modelSTRING
HIGHomlx/engine_pool.py789 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.py264 Pop n blocks from the front. Args: n: Number of blocks to allocate Returns: STRING
HIGHomlx/cache/paged_cache.py670 Allocate multiple blocks at once (vLLM style). Args: num_blocks: Number of blocks to allocSTRING
HIGHomlx/admin/auth.py258FastAPI dependency to require admin authentication. This dependency can be used in route definitions to protect STRING
HIGHomlx/admin/ms_downloader.py696Start downloading a model from ModelScope. Args: model_id: ModelScope model ID (e.g., "qwen/Qwen2.5STRING
HIGHomlx/admin/ms_downloader.py805Retry a failed or cancelled download, resuming from existing files. Args: task_id: The task ID of tSTRING
HIGHomlx/admin/hf_downloader.py623Start downloading a model from HuggingFace. Args: repo_id: HuggingFace repository ID (e.g., "mlx-coSTRING
HIGHomlx/admin/hf_downloader.py730Retry 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.py268Start a quantization job. Args: model_path: Path to source model directory. oq_level: oSTRING
HIGHomlx/admin/routes.py1420 Authenticate with API key and create session. Requires an API key to be configured on the server. If no API keSTRING
HIGHomlx/admin/routes.py1469 Set up the initial API key when none is configured. This endpoint is only available when no API key is currentSTRING
HIGHomlx/admin/routes.py1593Create a new sub API key. Sub keys can only be used for API authentication, not admin login. Args: reqSTRING
HIGHomlx/admin/routes.py1649Delete a sub API key. Args: request: DeleteSubKeyRequest with the key to delete. Returns: JSONSTRING
HIGHomlx/admin/routes.py2075 Update settings for a specific model. Updates are persisted to the settings file and applied immediately tSTRING
HIGHomlx/admin/routes.py2937 Read model config files and return recommended defaults. Reads generation_config.json for sampling parameters STRING
HIGHomlx/admin/routes.py3298 Update global server settings. Updates are persisted to the global settings file. Some settings (log_levelSTRING
HIGHomlx/admin/routes.py4013 Get server logs. Returns the last N lines of the specified log file (or current log). Supports viewing hisSTRING
HIGHomlx/utils/image.py87 Load an image from a base64 data URI. Supports: - Data URIs: "data:image/jpeg;base64,..." format ArgsSTRING
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.py337 Process an audio file through the STS model. For speech enhancement models (DeepFilterNet, MossFormer2STRING
Over-Commented Block179 hits · 142 pts
SeverityFileLineSnippetContext
LOWpyproject.toml41dependencies = [COMMENT
LOWpyproject.toml61 # mistral-common models) first shipped in 5.12.1 — on older 5.x the kwargCOMMENT
LOWpyproject.toml101 "setproctitle>=1.3.3",COMMENT
LOWpyproject.toml141 "modelscope>=1.10.0",COMMENT
LOWpackaging/build.py701 # produced fresh each build from pyproject.toml + venvstacks.toml.COMMENT
LOWpackaging/venvstacks.toml1# oMLX venvstacks layer templateCOMMENT
LOWtests/test_paged_ssd_cache.py3041COMMENT
LOWtests/test_hf_downloader.py2801 assert "dry_run" not in call_kwargsCOMMENT
LOWomlx/model_settings.py241 # Maximum chained MTP draft tokens per verify cycle (speculative depth).COMMENT
LOWomlx/server.py221COMMENT
LOWomlx/server.py6881COMMENT
LOWomlx/server.py6921if __name__ == "__main__":COMMENT
LOWomlx/prefill_transient_tracker.py21 """EWMA estimator of MLX prefill chunk transient bytes per token.COMMENT
LOWomlx/turboquant_kv.py241 self._batch_size = len(left_padding)COMMENT
LOWomlx/turboquant_kv.py321 # compared each request's sequence length (offset) against the columnCOMMENT
LOWomlx/request.py281 finish_reason: Optional[str] = NoneCOMMENT
LOWomlx/process_memory_enforcer.py381 self._wake_event: asyncio.Event | None = NoneCOMMENT
LOWomlx/process_memory_enforcer.py1541 # signaled, eviction can't help further without aborts.COMMENT
LOWomlx/engine_core.py161 # event loop, ping-ponging the GIL with the asyncio loop + uvicorn on theCOMMENT
LOWomlx/engine_core.py601COMMENT
LOWomlx/model_discovery.py81# exposes the text backbone. Route them directly to BatchedEngine instead ofCOMMENT
LOWomlx/model_discovery.py241}COMMENT
LOWomlx/oq.py3581 # in the quantization pipeline.COMMENT
LOWomlx/oq.py5601 named_shapes = _collect_named_weight_shapes_from_weights(all_weights)COMMENT
LOWomlx/oq.py7501COMMENT
LOWomlx/scheduler.py461COMMENT
LOWomlx/scheduler.py641 if (COMMENT
LOWomlx/scheduler.py701# self.logits_processors = [self.logits_processors[idx] for idx in keep]COMMENT
LOWomlx/scheduler.py1621 # shrink has already dropped hot-cache refs and _sync_and_clear_cacheCOMMENT
LOWomlx/scheduler.py1641 # makes the enforcer abort active requests. Propagated so theCOMMENT
LOWomlx/scheduler.py1661 self._memory_hot_cache_reserved_bytes: int = 0COMMENT
LOWomlx/scheduler.py1761 self._vlm_mtp_draft_block_size: int | None = NoneCOMMENT
LOWomlx/scheduler.py1801 self._boundary_cache_snapshots: dict[str, dict[int, Any]] = {}COMMENT
LOWomlx/scheduler.py1961 self.total_completion_tokens = 0COMMENT
LOWomlx/scheduler.py3361COMMENT
LOWomlx/scheduler.py3821 # pre-chunk guard and the post-chunk memory check abortCOMMENT
LOWomlx/scheduler.py6561 layer_idx=layer_idx,COMMENT
LOWomlx/scheduler.py7241COMMENT
LOWomlx/scheduler.py8061 for request in list(self.waiting):COMMENT
LOWomlx/scheduler.py8081 # pops them from ``self.requests`` after the store future completes.COMMENT
LOWomlx/scheduler.py8681 self._ensure_batch_generator(request.sampling_params)COMMENT
LOWomlx/scheduler.py8821 # SpecPrefill: replace tokens with selected subset and pre-fillCOMMENT
LOWomlx/scheduler.py9201 # BatchGenerator only handles decode from here.COMMENT
LOWomlx/scheduler.py9561 tracker.remove(rid)COMMENT
LOWomlx/scheduler.py9721 with self._phase_timer("store_cache_main_dispatch"):COMMENT
LOWomlx/scheduler.py9861 del self.running[request_id]COMMENT
LOWomlx/scheduler.py9901COMMENT
LOWomlx/scheduler.py10461 )COMMENT
LOWomlx/scheduler.py10881 if isinstance(obj, dict):COMMENT
LOWomlx/scheduler.py11221 )COMMENT
LOWomlx/_torch_stub.py41# path), but the symbol is re-exported from ``xgrammar.__init__``.COMMENT
LOWomlx/_torch_stub.py341COMMENT
LOWomlx/engine_pool.py881 # both models resident through the load (swapping for minutes)COMMENT
LOWomlx/engine_pool.py961 if evicted_any:COMMENT
LOWomlx/engine_pool.py1441 # Reset it on teardown so has_active_requests() and the status API stay consistent.COMMENT
LOWomlx/engine_pool.py1461 # the generators are still alive with a local 'engine' variableCOMMENT
LOWomlx/engine_pool.py1681 # Wire the correct model_id / model_path into the shared schedulerCOMMENT
LOWomlx/memory_monitor.py41# generation/inference path. Full prefill and short vector kernels supportCOMMENT
LOWomlx/custom_kernels/minimax_m3/csrc/minimax_msa.cpp1#include "minimax_msa.h"COMMENT
LOWomlx/custom_kernels/bonsai/csrc/bonsai_kernels.h1// Copyright © 2026 oMLX contributorsCOMMENT
119 more matches not shown…
Cross-File Repetition25 hits · 125 pts
SeverityFileLineSnippetContext
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/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
HIGHomlx/eval/mbpp.py0override run: generation is batched, code execution is sequential.STRING
HIGHomlx/eval/livecodebench.py0override run: generation is batched, code execution is sequential.STRING
HIGHomlx/eval/humaneval.py0override run: generation is batched, code execution is sequential.STRING
Self-Referential Comments28 hits · 81 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_model_discovery.py1436 # Create a normal LLM modelCOMMENT
MEDIUMtests/test_model_discovery.py1444 # Create a whisper ASR modelCOMMENT
MEDIUMtests/test_model_discovery.py957 # Create a file at top levelCOMMENT
MEDIUMtests/test_model_discovery.py1328 # Create a small safetensors fileCOMMENT
MEDIUMtests/test_model_discovery.py1457 # Create a TTS modelCOMMENT
MEDIUMtests/test_paged_ssd_cache.py2824 # Create a BlockTableCOMMENT
MEDIUMtests/test_deepseek_v4_patch.py885 # Create a fake model dir with a non-deepseek config.COMMENT
MEDIUMtests/test_engine_core.py747 # Create a task that calls generate - it will block on event.wait()COMMENT
MEDIUMtests/test_mcp_client.py691 # Create a proper mock tool object with correct attributesCOMMENT
MEDIUMtests/test_hf_downloader.py179 # Create a fake model directory to simulate downloadCOMMENT
MEDIUMtests/test_hf_downloader.py959 # Create a mock global settingsCOMMENT
MEDIUMtests/test_hf_downloader.py2072 # Create a fake README file with YAML front matterCOMMENT
MEDIUMtests/test_hf_downloader.py2552 # Create a file so current_size > 0 (needed to trigger stall detection)COMMENT
MEDIUMtests/test_hf_downloader.py2723 # Create a file (size won't change, but mtime will)COMMENT
MEDIUMtests/test_scheduler.py2979 # Create a mock CacheList objectCOMMENT
MEDIUMtests/test_embedding.py194 # Create a unit vector [0.6, 0.8, 0.0] (norm = 1.0)COMMENT
MEDIUMtests/test_embedding.py213 # Create a vector [1, 1, 1] / sqrt(3) = [0.577, 0.577, 0.577]COMMENT
MEDIUMtests/test_batched_engine.py574 # Create a mock model where config is a dictCOMMENT
MEDIUMtests/test_audio_tts.py1185 # 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.py537 # Create a fake hot cache entry with raw bytesCOMMENT
MEDIUMtests/test_hf_uploader.py200 # Create a fake safetensors fileCOMMENT
MEDIUMtests/test_index_cache.py107 # Create a mock model with 4 layersCOMMENT
MEDIUMtests/test_admin_auth.py308 # Create a token with the new serializerCOMMENT
MEDIUMomlx/server.py5565 # 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.py4151 # This file is at omlx/admin/routes.py → package dir is omlx/COMMENT
MEDIUMbenchmarks/bonsai_decode_bench.py390 # Create a QuantizedLinear with our construct patch activeCOMMENT
Redundant / Tautological Comments35 hits · 47 pts
SeverityFileLineSnippetContext
LOWtests/test_engine_pool.py1418 # Set limit to allow each model individually but not both togetherCOMMENT
LOWtests/test_settings.py1615 # Set env to port 8888COMMENT
LOWtests/integration/test_vlm_mrope_integration.py731 # Check if model supports cached_image_featuresCOMMENT
LOWomlx/cli.py393 # Check if oMLX server is runningCOMMENT
LOWomlx/cli.py469 # Check if tool is installedCOMMENT
LOWomlx/scheduler.py6207 # Check if it's a list of cache layersCOMMENT
LOWomlx/scheduler.py6215 # Check if layer has expected structureCOMMENT
LOWomlx/scheduler.py8781 # Check if prompt ends with <think> token for reasoning models.COMMENT
LOWomlx/scheduler.py9303 # Check if this request uses a protocol-specific output parserCOMMENT
LOWomlx/engine_pool.py1698 # Check if DFlash is enabled -- takes priority over engine typeCOMMENT
LOWomlx/engine_pool.py1946 # Check if memory enforcer requested abort during loadingCOMMENT
LOWomlx/engine_pool.py2240 # Check if model has active requestsCOMMENT
LOWomlx/memory_monitor.py31# Check if MLX Metal is availableCOMMENT
LOWomlx/cache/paged_ssd_cache.py2033 # Check if block was evicted while write was pending.COMMENT
LOWomlx/cache/paged_ssd_cache.py2181 # Check if already exists in index (thread-safe)COMMENT
LOWomlx/cache/vision_feature_cache.py246 # Check if already on SSDCOMMENT
LOWomlx/cache/prefix_cache.py309 # Check if this layer is RotatingKVCacheCOMMENT
LOWomlx/cache/prefix_cache.py472 # Check if cache_data contains extracted tensor statesCOMMENT
LOWomlx/cache/prefix_cache.py580 # Check if this block already exists (deduplication)COMMENT
LOWomlx/cache/prefix_cache.py1257 # Check if all sub-caches are sliceable 4D KVCache tensors.COMMENT
LOWomlx/patches/specprefill.py871 # Check if model has RoPE (Nemotron-H doesn't)COMMENT
LOWomlx/patches/deepseek_v4/cache_extras.py943 # Check if all caches are emptyCOMMENT
LOWomlx/admin/ms_downloader.py28# Check if modelscope SDK is availableCOMMENT
LOWomlx/admin/ms_downloader.py875 # Check if cancelled while waiting in queueCOMMENT
LOWomlx/admin/ms_downloader.py925 # Check if cancelled while downloading - clean up downloaded filesCOMMENT
LOWomlx/admin/hf_downloader.py809 # Check if cancelled while waiting in queueCOMMENT
LOWomlx/admin/hf_downloader.py908 # Check if cancelled while downloadingCOMMENT
LOWomlx/admin/routes.py2098 # 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.py272 # Check if this could be a tag startCOMMENT
LOWomlx/api/thinking.py299 # Check if it could be a partial tag (not enough chars yet)COMMENT
LOWomlx/api/anthropic_utils.py596 # Check if pre-truncation content was JSON-likeCOMMENT
LOWomlx/engine/vlm.py3602 # Check if user provided meaningful textCOMMENT
LOWbenchmarks/bonsai_decode_bench.py335 # Check if this variant is available (not just falling back)COMMENT
Hallucination Indicators3 hits · 45 pts
SeverityFileLineSnippetContext
CRITICALomlx/admin/static/js/marked.umd.js1473 while ((match = this.tokenizer.rules.inline.reflinkSearch.exec(maskedSrc)) != null) {CODE
CRITICALomlx/admin/static/js/marked.umd.js1481 while ((match = this.tokenizer.rules.inline.blockSkip.exec(maskedSrc)) != null) {CODE
CRITICALomlx/admin/static/js/marked.umd.js1485 while ((match = this.tokenizer.rules.inline.anyPunctuation.exec(maskedSrc)) != null) {CODE
Modern AI Meta-Vocabulary17 hits · 42 pts
SeverityFileLineSnippetContext
MEDIUMomlx/model_settings.py231 # agentic workloads where acceptance drops on the default sliding window.COMMENT
MEDIUMomlx/server.py767 # on the failure mode. Without it, "context window too small"COMMENT
MEDIUMomlx/server.py2982 # Validate context window for each promptCOMMENT
MEDIUMomlx/server.py3357 # Validate context window before sending to modelCOMMENT
MEDIUMomlx/server.py5395 # Validate context window before sending to modelCOMMENT
MEDIUMomlx/server.py5809 # Validate context windowCOMMENT
MEDIUMomlx/model_discovery.py165# Known embedding model types from mlx-embeddingsCOMMENT
MEDIUMomlx/admin/routes.py1908 # 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.py93 # set the *detected* context window for custom model IDs thatCOMMENT
MEDIUMomlx/integrations/claude.py102 # built-in context window for those regardless of this variable.COMMENT
MEDIUMomlx/api/openai_models.py443 # effective context window from the listing without a separate callCOMMENT
MEDIUMomlx/api/tool_calling.py643# 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.py109 # Add few-shot examplesCOMMENT
MEDIUMomlx/engine/batched.py330 # below their context window. The route is memory-aware: it defers toCOMMENT
MEDIUMapps/omlx-mac/Sources/AppView/AppView.swift499// MARK: - Detail scaffoldCOMMENT
AI Slop Vocabulary9 hits · 26 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_tool_calling.py1958# Gemma 4 robust fallback parser testsCOMMENT
LOWomlx/output_collector.py70 # Replace: just use the new outputCOMMENT
MEDIUMomlx/scheduler.py7460 # by omlx) would yield a list. Guard so the path stays robustCOMMENT
LOWomlx/scheduler.py2352 # If window_size itself is already >= max, just use window_size.COMMENT
LOWomlx/utils/model_loading.py969 # The quant method may be already supported by mlx-lm; simply return None.COMMENT
MEDIUMomlx/api/tool_calling.py597# Gemma 4 robust fallback parserCOMMENT
MEDIUMomlx/api/tool_calling.py1324 # Gemma 4 only: try robust fallback that handles bareCOMMENT
LOWomlx/api/tool_calling.py2241 # Handle None or text format - just return originalCOMMENT
MEDIUMbenchmarks/bonsai_decode_bench.py147# Timing harnessCOMMENT
AI Structural Patterns36 hits · 25 pts
SeverityFileLineSnippetContext
LOWtests/test_system_sampler.py19CODE
LOWtests/test_mlx_vlm_pixtral_torch_free.py41CODE
LOWtests/test_cache_observability.py14CODE
LOWtests/test_oq_fused_qkv_virtual.py155CODE
LOWomlx/model_settings.py992CODE
LOWomlx/server.py1233CODE
LOWomlx/process_memory_enforcer.py318CODE
LOWomlx/engine_core.py531CODE
LOWomlx/oq.py5114CODE
LOWomlx/cache/paged_ssd_cache.py1294CODE
LOWomlx/patches/specprefill.py448CODE
LOWomlx/patches/mlx_lm_mtp/qwen35_model.py388CODE
LOWomlx/admin/hf_downloader.py389CODE
LOWomlx/admin/oq_manager.py250CODE
LOWomlx/admin/routes.py5339CODE
LOWomlx/utils/sampling.py132CODE
LOWomlx/api/audio_routes.py440CODE
LOWomlx/engine/tts.py163CODE
LOWomlx/engine/tts.py306CODE
LOWomlx/engine/vlm.py3038CODE
LOWomlx/engine/vlm.py3142CODE
LOWomlx/engine/vlm.py3268CODE
LOWomlx/engine/vlm.py3485CODE
LOWomlx/engine/dflash.py289CODE
LOWomlx/engine/dflash.py1325CODE
LOWomlx/engine/dflash.py1524CODE
LOWomlx/engine/dflash.py1679CODE
LOWomlx/engine/dflash.py1754CODE
LOWomlx/engine/batched.py685CODE
LOWomlx/engine/batched.py760CODE
LOWomlx/engine/batched.py865CODE
LOWomlx/engine/batched.py1021CODE
LOWomlx/engine/base.py129CODE
LOWomlx/engine/base.py161CODE
LOWomlx/engine/base.py193CODE
LOWomlx/engine/base.py225CODE
Verbosity Indicators11 hits · 22 pts
SeverityFileLineSnippetContext
LOWpackaging/build.py646 # Step 0: Render the resolved venvstacks.toml from pyproject.toml depsCOMMENT
LOWpackaging/build.py653 # Step 1: Build wheels from git-pinned packagesCOMMENT
LOWpackaging/build.py656 # Step 2: Swap git URLs in the resolved toml for local wheel pathsCOMMENT
LOWpackaging/build.py666 # Step 3: Lock environments (always re-lock to match current wheels)COMMENT
LOWpackaging/build.py681 # Step 4: Build environmentsCOMMENT
LOWpackaging/build.py689 # Step 5: Export to local directory for app bundleCOMMENT
LOWtests/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
LOWomlx/cache/prefix_cache.py899 # Step 2: Fallback - find max seq_len among all 4D tensorsCOMMENT
LOWomlx/cache/prefix_cache.py852 # Step 1: Search for a sliceable KVCache layer (full attention)COMMENT
LOWomlx/cache/prefix_cache.py945 # Step 3: CacheList fallback — check sub-states for seq_lenCOMMENT
Structural Annotation Overuse11 hits · 22 pts
SeverityFileLineSnippetContext
LOWpackaging/build.py646 # Step 0: Render the resolved venvstacks.toml from pyproject.toml depsCOMMENT
LOWpackaging/build.py653 # Step 1: Build wheels from git-pinned packagesCOMMENT
LOWpackaging/build.py656 # Step 2: Swap git URLs in the resolved toml for local wheel pathsCOMMENT
LOWpackaging/build.py666 # Step 3: Lock environments (always re-lock to match current wheels)COMMENT
LOWpackaging/build.py681 # Step 4: Build environmentsCOMMENT
LOWpackaging/build.py689 # Step 5: Export to local directory for app bundleCOMMENT
LOWtests/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
LOWomlx/cache/prefix_cache.py899 # Step 2: Fallback - find max seq_len among all 4D tensorsCOMMENT
LOWomlx/cache/prefix_cache.py852 # Step 1: Search for a sliceable KVCache layer (full attention)COMMENT
LOWomlx/cache/prefix_cache.py945 # Step 3: CacheList fallback — check sub-states for seq_lenCOMMENT
Dead Code4 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_audio_stt.py1080CODE
MEDIUMtests/test_audio_tts.py662CODE
MEDIUMtests/test_server_prefill_memory_handler.py179CODE
MEDIUMtests/test_sse_keepalive.py88CODE
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWomlx/admin/static/js/purify.min.js2!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&defineCODE
LOWomlx/admin/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