Skip to content

refactor(install): drop llmfit, pick model from native RAM heuristic - #25

Merged
mukeshkumarcharak merged 1 commit into
mainfrom
claude/serene-turing-yrxky2
Jun 29, 2026
Merged

refactor(install): drop llmfit, pick model from native RAM heuristic#25
mukeshkumarcharak merged 1 commit into
mainfrom
claude/serene-turing-yrxky2

Conversation

@mukeshkumarcharak

Copy link
Copy Markdown
Contributor

The llmfit Rust binary failed to execute on Termux ("cannot execute: required file not found") because the GitHub release uses the standard Linux dynamic loader path, which doesn't exist under Termux's prefix. The binary also added a ~16MB checked-in artifact and a hard dependency on a third-party GitHub release for what is essentially a small lookup table.

  • Remove _install_llmfit entirely and the cached ./llmfit binary.
  • Add _detect_total_ram_mb (reads /proc/meminfo on Linux/WSL/Termux, falls back to sysctl hw.memsize on macOS) and _recommend_model_for_hardware (RAM tiers → gemma3:1b / gemma3:4b / llama3.1:8b / qwen2.5:14b / qwen2.5:32b).
  • Rename install_llmfit_and_select_modelselect_and_pull_llm_model and honour GATHM_OLLAMA_MODEL env var and $HOME/.gathm/model as overrides before falling back to the heuristic.

Works on every platform the rest of the installer already supports, with no external download and no ABI brittleness.

The llmfit Rust binary failed to execute on Termux ("cannot execute:
required file not found") because the GitHub release uses the standard
Linux dynamic loader path, which doesn't exist under Termux's prefix.
The binary also added a ~16MB checked-in artifact and a hard dependency
on a third-party GitHub release for what is essentially a small lookup
table.

- Remove `_install_llmfit` entirely and the cached `./llmfit` binary.
- Add `_detect_total_ram_mb` (reads /proc/meminfo on Linux/WSL/Termux,
  falls back to `sysctl hw.memsize` on macOS) and
  `_recommend_model_for_hardware` (RAM tiers → gemma3:1b / gemma3:4b /
  llama3.1:8b / qwen2.5:14b / qwen2.5:32b).
- Rename `install_llmfit_and_select_model` → `select_and_pull_llm_model`
  and honour GATHM_OLLAMA_MODEL env var and $HOME/.gathm/model as
  overrides before falling back to the heuristic.

Works on every platform the rest of the installer already supports,
with no external download and no ABI brittleness.
@mukeshkumarcharak
mukeshkumarcharak merged commit 7829fa1 into main Jun 29, 2026
0 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants