refactor(install): drop llmfit, pick model from native RAM heuristic - #25
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
_install_llmfitentirely and the cached./llmfitbinary._detect_total_ram_mb(reads /proc/meminfo on Linux/WSL/Termux, falls back tosysctl hw.memsizeon macOS) and_recommend_model_for_hardware(RAM tiers → gemma3:1b / gemma3:4b / llama3.1:8b / qwen2.5:14b / qwen2.5:32b).install_llmfit_and_select_model→select_and_pull_llm_modeland 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.