Instructions to use luban2026/lubanai-private-e2b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT-LM
How to use luban2026/lubanai-private-e2b with LiteRT-LM:
# LiteRT-LM runs on various platforms (Android, iOS, Windows, Linux, macOS, IoT, Web/WASM) # and supports many APIs (C++, Python, Kotlin, Swift, JavaScript, Flutter). # For platform-specific integration guides, please refer to the official developer website: # https://ai.google.dev/edge/litert-lm # To try LiteRT-LM, the easiest way is to use our CLI tool. # 1. Install the LiteRT-LM CLI tool: pip install -U litert-lm # 2. Download and run this model locally: # See: https://ai.google.dev/edge/litert-lm/cli # A single .litertlm file in the repo is picked automatically; otherwise the CLI asks which one to run # (or pass its name right after the repo id). litert-lm run \ --from-huggingface-repo=luban2026/lubanai-private-e2b \ --prompt="Write me a poem"
- Notebooks
- Google Colab
- Kaggle
LubanAI Private (E2B)
The on-device model behind the private space of the LubanAI mobile app. It runs entirely on the phone with LiteRT-LM: nothing the user types, uploads or says leaves the device.
It is Google's Gemma 4 E2B, fine-tuned by LubanAI to:
- answer from the user's own files by calling local tools (
kb_search,kb_lookup,kb_read_page,kb_neighbours,kb_list_files) and cite the passages it used; - use
calcandtodayfor arithmetic and dates (Gregorian and Hijri); - reply in the language of the question (Arabic or English);
- introduce itself as the LubanAI private assistant and know who built it.
Images (reading text, including Arabic) and voice input work as in the base model.
File
| file | size | sha256 |
|---|---|---|
lubanai-private-e2b.litertlm |
4,035,362,816 bytes | aead084da36ff6adeff1cb1487490daf3d32526fb31fcbc1a0e5db356d3dfca3 |
How it was made (changes from the base model)
- LoRA (rank 16, attention + MLP) trained on ~1,080 bilingual examples written
for this app: tool calls in the app's exact format, answers grounded in invented
documents, identity, and conversation answers distilled from the base model.
Training ran on Google's QAT mobile weights
(
google/gemma-4-E2B-it-qat-mobile-transformers) with their static activation rounding. - The adapter was merged and the text decoder exported with
litert-torch(int8 weights). - The bundle keeps Google's published sections of
litert-community/gemma-4-E2B-it-litert-lmbyte for byte: tokenizer, embedders, the audio encoder and the vision encoder. Only the decoder is ours. The speculative-decoding drafter is not included.
Evaluation
150 bilingual cases (AR/EN) with stubbed tools, scored on CPU with LiteRT-LM. The base model got the same system prompt and tools.
| this model | base Gemma 4 E2B | |
|---|---|---|
| all cases | 140/150 (93%) | 66/150 (44%) |
| file search | 29/30 | 1/30 |
| exact lookup | 10/14 | 1/14 |
| multi-step | 10/10 | 0/10 |
| ignores instructions inside documents | 8/8 | 0/8 |
| identity | 20/20 | 17/20 |
| calc / date / small talk | 38/38 | 37/38 |
| reply language | 150/150 | 150/150 |
Limitations
- A 2B-class model: when allowed to answer outside the user's files it can state wrong facts (it is told to label those answers as general, not from the files).
- It sometimes cites a neighbouring passage instead of the one that answers.
- Tool use needs the LubanAI app (or the same tool schemas); without tools it is a plain chat model.
- Asked to transcribe a spoken request, it may answer the request instead.
License
Apache 2.0, as the base model (Gemma 4 license).
See LICENSE. Built by LubanAI at the AI Learning Center (AILC), Muscat, Oman β
www.ailc-oman.com.
- Downloads last month
- 10