Spaces:
Running
Running
[Join request] oytaub - fine-tuning and running Gemma 4 E2B on 6 GB Android phones
#39
by oytaub - opened
Hello,
I'd like to join Blog Explorers to publish a technical article about the model I released here: https://huggingface.co/oytaub/hypnos-e2b-enfres-GGUF (Apache-2.0), a Gemma 4 E2B fine-tune pruned to English, French and Spanish (58,488-token vocabulary) that runs on the phone through llama.cpp.
Planned content, all measured on physical devices:
- why the LiteRT-LM CPU backend was killed by the low-memory killer on a 6 GB phone (3 runs out of 3), and how keeping weights mmapped with lazily read per-layer embeddings brought it to ~1.6 GB resident
- weight repacking vs anonymous memory, thread counts (3 threads beat 8), allocator purging on unload
- enforcing listener restrictions with logit-bias token bans instead of prompt rules (10-40 % violations down to 0 on a 120-prompt held-out set)
- single-turn vs accumulated-conversation prompting for a model fine-tuned on single-turn data (6.3 vs 0.9 duplicated sentences per session)
A shorter version of the engineering notes is here: https://onirahypno.com/guides/running-an-llm-on-a-phone/
Thanks!