Repository Analysis

AlexsJones/llmfit

Hundreds of models & providers. One command to find what runs on your hardware.

7.6 Low AI signal View on GitHub
7.6
Adjusted Score
7.6
Raw Score
100%
Time Factor
2026-05-29
Last Push
26,868
Stars
Rust
Language
70,736
Lines of Code
102
Files
233
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 164LOW 69

Pattern Findings

233 matches across 9 categories. Click a row to expand file-level details.

Decorative Section Separators163 hits · 474 pts
SeverityFileLineSnippet
MEDIUMllmfit-tui/src/tui_ui.rs4476// ── Live inference-bench view ─────────────────────────────────────────────
MEDIUMllmfit-tui/src/display.rs477// ────────────────────────────────────────────────────────────────────
MEDIUMllmfit-tui/src/display.rs479// ────────────────────────────────────────────────────────────────────
MEDIUMllmfit-tui/src/display.rs857// ────────────────────────────────────────────────────────────────────
MEDIUMllmfit-tui/src/display.rs859// ────────────────────────────────────────────────────────────────────
MEDIUMllmfit-tui/src/main.rs1690 // ── --status ──────────────────────────────────────────────────────────
MEDIUMllmfit-tui/src/main.rs1724 // ── --clear ───────────────────────────────────────────────────────────
MEDIUMllmfit-tui/src/main.rs1734 // ── fetch ─────────────────────────────────────────────────────────────
MEDIUMllmfit-tui/src/main.rs1951// ── bench helpers ──────────────────────────────────────────────────────────
MEDIUMllmfit-tui/src/main.rs2536// ── main ───────────────────────────────────────────────────────────────────
MEDIUMllmfit-tui/src/tui_app.rs917 // ── Restore persisted filters ────────────────────────────────
MEDIUMllmfit-tui/src/tui_app.rs1904 // ── Benchmarks view ──────────────────────────────────────────────
MEDIUMllmfit-tui/src/tui_app.rs2349 // ── Visual mode ──────────────────────────────────────────────
MEDIUMllmfit-tui/src/tui_app.rs2418 // ── Select mode ─────────────────────────────────────────────
MEDIUMllmfit-tui/src/tui_app.rs2484 // ── Quant popup ─────────────────────────────────────────────
MEDIUMllmfit-tui/src/tui_app.rs2518 // ── RunMode popup ───────────────────────────────────────────
MEDIUMllmfit-tui/src/tui_app.rs2553 // ── Params bucket popup ─────────────────────────────────────
MEDIUMllmfit-tui/src/tui_app.rs2588 // ── License popup ───────────────────────────────────────────
MEDIUMllmfit-tui/src/tui_app.rs2673 // ── Hardware simulation ──────────────────────────────────────────
MEDIUMllmfit-tui/src/tui_app.rs2827 // ── Advanced Config Popup ──────────────────────────────────────────
MEDIUMllmfit-tui/src/tui_app.rs2854 // ── Filter Popup ─────────────────────────────────────────────
MEDIUMllmfit-tui/src/tui_app.rs3803 // ── Live inference-bench view ─────────────────────────────────────────
MEDIUMscripts/scrape_hf_models.py932# ---------------------------------------------------------------------------
MEDIUMscripts/scrape_hf_models.py934# ---------------------------------------------------------------------------
MEDIUMscripts/scrape_hf_models.py1093# ---------------------------------------------------------------------------
MEDIUMscripts/scrape_hf_models.py1095# ---------------------------------------------------------------------------
MEDIUMscripts/verify_models.py42# ---------------------------------------------------------------------------
MEDIUMscripts/verify_models.py44# ---------------------------------------------------------------------------
MEDIUMscripts/verify_models.py69# ---------------------------------------------------------------------------
MEDIUMscripts/verify_models.py71# ---------------------------------------------------------------------------
MEDIUMscripts/verify_models.py116# ---------------------------------------------------------------------------
MEDIUMscripts/verify_models.py118# ---------------------------------------------------------------------------
MEDIUMllmfit-core/src/fit.rs928// ────────────────────────────────────────────────────────────────────
MEDIUMllmfit-core/src/fit.rs930// ────────────────────────────────────────────────────────────────────
MEDIUMllmfit-core/src/fit.rs1009 // ── Bandwidth-based estimation (preferred) ─────────────────────
MEDIUMllmfit-core/src/fit.rs1225 // ── Fallback: fixed-constant approach ──────────────────────────
MEDIUMllmfit-core/src/fit.rs1302// ────────────────────────────────────────────────────────────────────
MEDIUMllmfit-core/src/fit.rs1304// ────────────────────────────────────────────────────────────────────
MEDIUMllmfit-core/src/fit.rs1468 // ────────────────────────────────────────────────────────────────────
MEDIUMllmfit-core/src/fit.rs1470 // ────────────────────────────────────────────────────────────────────
MEDIUMllmfit-core/src/fit.rs1533 // ────────────────────────────────────────────────────────────────────
MEDIUMllmfit-core/src/fit.rs1535 // ────────────────────────────────────────────────────────────────────
MEDIUMllmfit-core/src/fit.rs1590 // ────────────────────────────────────────────────────────────────────
MEDIUMllmfit-core/src/fit.rs1592 // ────────────────────────────────────────────────────────────────────
MEDIUMllmfit-core/src/fit.rs1763 // ────────────────────────────────────────────────────────────────────
MEDIUMllmfit-core/src/fit.rs1765 // ────────────────────────────────────────────────────────────────────
MEDIUMllmfit-core/src/fit.rs1821 // ────────────────────────────────────────────────────────────────────
MEDIUMllmfit-core/src/fit.rs1823 // ────────────────────────────────────────────────────────────────────
MEDIUMllmfit-core/src/fit.rs2161 // ────────────────────────────────────────────────────────────────────
MEDIUMllmfit-core/src/fit.rs2163 // ────────────────────────────────────────────────────────────────────
MEDIUMllmfit-core/src/fit.rs2216 // ────────────────────────────────────────────────────────────────────
MEDIUMllmfit-core/src/fit.rs2218 // ────────────────────────────────────────────────────────────────────
MEDIUMllmfit-core/src/fit.rs2466 // ────────────────────────────────────────────────────────────────────
MEDIUMllmfit-core/src/fit.rs2468 // ────────────────────────────────────────────────────────────────────
MEDIUMllmfit-core/src/fit.rs2738 // ────────────────────────────────────────────────────────────────────
MEDIUMllmfit-core/src/fit.rs2746 // ────────────────────────────────────────────────────────────────────
MEDIUMllmfit-core/src/fit.rs3006 // ────────────────────────────────────────────────────────────────────
MEDIUMllmfit-core/src/fit.rs3016 // ────────────────────────────────────────────────────────────────────
MEDIUMllmfit-core/src/models.rs1416 // ────────────────────────────────────────────────────────────────────
MEDIUMllmfit-core/src/models.rs1418 // ────────────────────────────────────────────────────────────────────
103 more matches not shown…
Over-Commented Block29 hits · 20 pts
SeverityFileLineSnippet
LOWllmfit-tui/src/main.rs41enum SortArg {
LOWllmfit-tui/src/main.rs161 /// Override detected CPU core count.
LOWllmfit-tui/src/main.rs461 /// Limit number of recommendations
LOWllmfit-tui/src/main.rs581 /// Models are saved to ~/.llmfit/hf_models_cache.json and automatically
LOWllmfit-core/src/fit.rs1use crate::hardware::{GpuBackend, SystemSpecs};
LOWllmfit-core/src/fit.rs921 }
LOWllmfit-core/src/fit.rs941/// In practice, real throughput is ~50–70% of this ceiling due to kernel
LOWllmfit-core/src/fit.rs1001 // use active parameters when known; fit/memory paths still use full model size.
LOWllmfit-core/src/fit.rs1041 // MoE expert speed estimation: the per-token cost is dominated by
LOWllmfit-core/src/fit.rs1081 expert_read_time,
LOWllmfit-core/src/fit.rs1101 // Formula: tps = bw / (active_ffn_bytes + fixed_equivalent_bytes)
LOWllmfit-core/src/fit.rs1121 // - VRAM utilization above 60% (below 60%, model fits easily)
LOWllmfit-core/src/fit.rs2821 #[test]
LOWllmfit-core/src/fit.rs3001 tps_small > tps_large,
LOWllmfit-core/src/models.rs461 pub num_experts: Option<u32>,
LOWllmfit-core/src/models.rs481 #[serde(default)]
LOWllmfit-core/src/models.rs501 #[serde(default)]
LOWllmfit-core/src/models.rs721 /// Effective bytes-per-param for the compute-bound fixed component of MoE
LOWllmfit-core/src/models.rs801 /// Uses the precise per layer formula when `num_hidden_layers`,
LOWllmfit-core/src/models.rs1241 }
LOWllmfit-core/src/update.rs1//! Online model database updates via the HuggingFace Hub API.
LOWllmfit-core/src/update.rs321 hidden_size: Option<u32>,
LOWllmfit-core/src/update.rs421}
LOWllmfit-core/src/hardware.rs1741fn is_amd_unified_memory_apu(cpu_name: &str) -> bool {
LOWllmfit-core/src/hardware.rs1801 }
LOWllmfit-core/src/providers.rs681
LOWllmfit-core/src/providers.rs901 .filter(|(_, s)| *s > 0 && *s <= budget_bytes)
LOWllmfit-core/src/providers.rs2141 let (filename, _) = LlamaCppProvider::select_best_gguf(&files, budget_gb)?;
LOWllmfit-core/src/bench.rs1//! LLM inference benchmarking against Ollama, vLLM, and MLX endpoints.
Excessive Try-Catch Wrapping10 hits · 12 pts
SeverityFileLineSnippet
MEDIUMscripts/scrape_docker_models.py168 print(f"Error fetching {url}: {e}", file=sys.stderr)
LOWscripts/scrape_hf_models.py365 except Exception as e:
LOWscripts/scrape_hf_models.py663 except Exception:
LOWscripts/scrape_hf_models.py996 except Exception:
LOWscripts/scrape_hf_models.py1310 except Exception as e:
LOWscripts/test_api.py183 except Exception:
LOWscripts/test_api.py263 except Exception as exc:
LOWscripts/test_api.py271 except Exception:
LOWscripts/verify_models.py38 except Exception:
LOWscripts/scrape_benchmarks.py104 except Exception as e:
Hyper-Verbose Identifiers8 hits · 10 pts
SeverityFileLineSnippet
LOWllmfit-python/tests/test_llmfit.py15def test_find_llmfit_bin_raises_when_missing(monkeypatch: pytest.MonkeyPatch) -> None:
LOWscripts/scrape_docker_models.py194def ollama_tag_to_docker_repo(ollama_tag: str) -> str:
LOWscripts/scrape_hf_models.py534def estimate_params_from_arch(config: dict | None) -> int | None:
LOWscripts/scrape_hf_models.py972def _model_gguf_repo_candidates(repo_id: str) -> list[tuple[str, str]]:
LOWscripts/scrape_hf_models.py1152def _estimate_params_from_config(config: dict) -> int | None:
LOWscripts/test_api.py74def test_models_envelope_and_limit(base_url: str) -> None:
LOWscripts/test_api.py83def test_top_endpoint_excludes_too_tight(base_url: str) -> None:
LOWscripts/test_api.py91def test_filters_runtime_and_use_case(base_url: str) -> None:
Deep Nesting9 hits · 9 pts
SeverityFileLineSnippet
LOWscripts/validate_generation_scoring.py15
LOWscripts/validate_generation_scoring.py169
LOWscripts/validate_generation_scoring.py204
LOWscripts/validate_generation_scoring.py241
LOWscripts/scrape_hf_models.py735
LOWscripts/scrape_hf_models.py1016
LOWscripts/scrape_hf_models.py1255
LOWscripts/scrape_hf_models.py1446
LOWscripts/test_api.py235
Redundant / Tautological Comments4 hits · 6 pts
SeverityFileLineSnippet
LOWinstall.sh171 # Check if install dir is in PATH
LOWscripts/update_models.sh27# Check if Python 3 is available
LOWscripts/update_models.sh75# Check if cargo is available
LOWscripts/scrape_hf_models.py499 # Check if architecture is in known MoE configs
Unused Imports6 hits · 6 pts
SeverityFileLineSnippet
LOWllmfit-python/hatch_build.py27
LOWllmfit-python/tests/test_llmfit.py3
LOWllmfit-python/src/llmfit/__init__.py1
LOWllmfit-python/src/llmfit/__main__.py1
LOWscripts/validate_generation_scoring.py11
LOWscripts/test_api.py13
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippet
LOWllmfit-core/data/benchmarks.yaml974 - { pattern: '"company"\\s*:\\s*"Acme Corp"', weight: 1, case_insensitive: true }
LOWllmfit-core/data/benchmarks.yaml976 - { pattern: '"phone"\\s*:\\s*"555-0123"', weight: 1 }
Verbosity Indicators2 hits · 2 pts
SeverityFileLineSnippet
LOWllmfit-core/src/fit.rs313 // Step 1: pick the best available execution path
LOWllmfit-core/src/fit.rs314 // Step 2: score memory fit purely on headroom in that path's memory pool