SmallAICreator commited on
Commit
dfdb35f
Β·
verified Β·
1 Parent(s): 2c3c7c1

L-AI 1.52: base models (no chat template) run in completion mode

Browse files
Files changed (3) hide show
  1. .gitattributes +1 -0
  2. L-AI-1.51.apk β†’ L-AI-1.52.apk +1 -1
  3. README.md +124 -123
.gitattributes CHANGED
@@ -72,3 +72,4 @@ L-AI-1.47.apk filter=lfs diff=lfs merge=lfs -text
72
  L-AI-1.48.apk filter=lfs diff=lfs merge=lfs -text
73
  L-AI-1.49.apk filter=lfs diff=lfs merge=lfs -text
74
  L-AI-1.51.apk filter=lfs diff=lfs merge=lfs -text
 
 
72
  L-AI-1.48.apk filter=lfs diff=lfs merge=lfs -text
73
  L-AI-1.49.apk filter=lfs diff=lfs merge=lfs -text
74
  L-AI-1.51.apk filter=lfs diff=lfs merge=lfs -text
75
+ L-AI-1.52.apk filter=lfs diff=lfs merge=lfs -text
L-AI-1.51.apk β†’ L-AI-1.52.apk RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5188c2df4f416a20dbd3f945438bbddd2e35813e4d541cf3745a3594c478b590
3
  size 69169103
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf1f6ba2253c3c1d2834325144377025794a33cfa7812a69a7704cd675238441
3
  size 69169103
README.md CHANGED
@@ -1,123 +1,124 @@
1
- ---
2
- license: other
3
- license_name: l-ai-freeware
4
- tags:
5
- - android
6
- - apk
7
- - gguf
8
- - llama.cpp
9
- - on-device
10
- - local-llm
11
- - offline
12
- ---
13
-
14
- # L-AI β€” private AI chat that runs on your phone
15
-
16
- **L-AI** is a free Android app by **UltraLabs** for chatting with AI models that run **fully on your device**.
17
- No account and no cloud. Your chats never leave your phone unless you turn on a feature that needs the internet, such as web search.
18
- It runs any **GGUF** model through a fresh build of llama.cpp. It also runs many older GGML `.bin` models that other apps no longer load.
19
-
20
- πŸ“₯ **Download:** [`L-AI-1.51.apk`](./L-AI-1.51.apk) (69 MB) Β· Android 11+ Β· 64-bit ARM (arm64-v8a)
21
-
22
- ---
23
-
24
- ## Highlights
25
-
26
- - 🧠 **Any GGUF model.** Qwen, Llama, Gemma, Phi, LFM, Mistral, MoE models and more. Each model is formatted with its **own chat template**, so it behaves the way its makers intended. Built on llama.cpp from November 2026, with fixes for long chats and hybrid models like LFM2 and Qwen3.5.
27
- - 🧩 **Custom chat templates.** In **Settings β†’ Model & sampling β†’ Chat template**, swap a model's chat template for your own Jinja template, or a preset: ChatML, Llama 3, Llama 2, Gemma, Phi-3, Zephyr, Alpaca, Vicuna or Plain. A live preview shows exactly what the model will see. It works for GGUF and legacy `.bin` models, is remembered per model like the sampling settings, and stops the reply at the template's end-of-turn markers. With a template on, `.bin` models also remember chats you reopen.
28
- - πŸ—‚οΈ **Older models too.** Legacy GGML `.bin` files are detected and loaded automatically: LLaMA (GGJT/GGMF/ggml), GPT-2, and GPT-NeoX (StableCode, StableLM-alpha, Pythia, Dolly, RedPajama).
29
- - πŸ‘οΈ **Vision.** Attach photos from the gallery or camera and let vision models (with an `mmproj` file) describe them. Downloading a model from Hugging Face grabs its projector automatically (Q8, else F16). Keep several projectors: each model is linked to the one that actually fits it (checked from the files), and nothing loads while Vision is off.
30
- - πŸ€— **Smarter Hugging Face downloads.** The best file for your phone is marked Recommended, and base (pretrained) models that can't chat are never recommended: L-AI reads each file's header and labels them "Base Β· won't chat".
31
- - πŸ’Ύ **Models on a USB drive.** Turn on **Settings β†’ Storage & backup β†’ Models on a USB drive**, plug in a USB stick (USB-C, or a USB-A drive with an adapter) and its `.gguf` models show up in the model library. Nothing is copied to your phone's storage: a model that fits in memory is read into RAM as it loads, so you can unplug the drive afterwards and keep chatting. Models too big for memory run straight from the drive (L-AI tells you when it can't be unplugged).
32
- - πŸ—ƒοΈ **Model library at a glance.** Every model gets its own colour and pattern, plus its type, size, quant and how much of your phone's RAM it needs.
33
- - β­• **Context ring.** A thin ring around the send button fills as the chat uses up the model's context window.
34
- - πŸ’‘ **Thinking models.** A πŸ’‘ button turns reasoning on or off. It only appears for models that support it. A thinking budget cuts long thoughts short. While the model reasons you see a live word count, and afterwards a small "Thought for 12s" chip you can tap to read the reasoning. Models that expect their thinking block already open (Qwen3.5, K2-Horizon and others) get it opened for them, in their own tags (<think>, <ifm|think>, <seed:think>, [THINK], ...), so their reasoning always lands in the thought box.
35
- - ⚑ **Speed tools.**
36
- - Speculative decoding with a draft model.
37
- - MoE expert offloading and prefetching.
38
- - KV cache quantization (f32 / f16 / q8_0 / q4_0) and flash attention. f32 is exact, for models that break at lower precision.
39
- - **Precise kernels** per model (Auto / On / Off): if a model only answers with an instant end of text, L-AI reloads it without the fast ARM kernels, checks again, and remembers the fix only when it helps.
40
- - Memory-mapped or in-RAM loading.
41
- - A built-in benchmark (prompt processing and generation).
42
- - πŸ”§ **Tools the model can call** (native tool calling):
43
- - Web search (DuckDuckGo / Wikipedia).
44
- - A calculator that gives exact results.
45
- - File creation.
46
- - Each tool shows its own icon while it runs and in the chat (πŸ” only for web search).
47
- - **Force allow tools on any model** (Settings > Tools): turns tools on for any model, including remote models (the tools run on the phone). It may break the model.
48
- - πŸ”— **Tappable links:** web addresses and markdown links in your messages and the model's replies open in your browser.
49
- - πŸ“š **Knowledge.** Add TXT / PDF / EPUB files. The most relevant passages are found and given to the model.
50
- - 🧷 **Memory.** The model can remember facts you tell it across chats. You can add, view or delete them anytime.
51
- - 🎭 **Personas and slash commands.** `/summarize`, `/translate`, `/eli5`, `/fix` and your own custom ones.
52
- - πŸ’¬ **A chat experience you'd expect:**
53
- - Markdown, code blocks with copy and **Run** (live HTML/JS preview), charts, Mermaid diagrams and LaTeX.
54
- - Regenerate with versions, edit and resend, fork a chat from any message.
55
- - Read aloud, voice input with optional auto-send, and haptic ticks while it writes.
56
- - ✨ **Instant follow-up suggestions** after each reply. They're worked out on the device without using the model, so they cost nothing.
57
- - 🏷️ **Automatic chat names** from a tiny bundled titling model (about 20 ms, no setup).
58
- - πŸ•ΆοΈ **Temporary chats**: never saved or remembered, and a clean slate (no system prompt, persona, memories or knowledge files). Tools still work.
59
- - πŸ—ƒοΈ **History:**
60
- - Search, folders, pins, share and export (.md / .txt).
61
- - Backup and restore.
62
- - πŸ”Œ **Integrations:**
63
- - An **OpenAI-compatible API server** on your local network, so you can use your phone's model from a PC.
64
- - A **Use remote model** option: chat with a bigger model on any OpenAI-compatible server (llama.cpp, LM Studio, Ollama, Jan or a hosted endpoint) using its address and API key. Replies stream in live. Only standard OpenAI settings are sent, so hosted APIs like Groq work too.
65
- - Share-to-L-AI, a Quick Settings tile and a home-screen widget you can resize from a tiny icon up to a big panel.
66
- - 🎨 **Make it yours:**
67
- - Material You or custom colors, 9 presets and AMOLED black.
68
- - Bubble / card / minimal chat styles, fonts, text size and chat wallpapers.
69
-
70
- ## Getting started
71
-
72
- 1. Download **`L-AI-1.51.apk`** above, open it, and allow installing from your browser or file manager if Android asks.
73
- 2. Open L-AI, tap the model library, then either:
74
- - **Download from Hugging Face** inside the app (search any GGUF repo), or
75
- - **Add a model file** you already have (`.gguf` or `.bin`).
76
- 3. Load it and start chatting. That's it.
77
-
78
- **Which model should I try?** On most phones, a 0.5B–4B model at Q4/Q8 is the sweet spot.
79
-
80
- | Phone RAM | Good model sizes |
81
- |---|---|
82
- | 4 GB | up to ~1.5B (Q4) |
83
- | 6–8 GB | up to ~4B (Q4) |
84
- | 12 GB+ | 7–8B (Q4), or small MoE models |
85
-
86
- Small models from the same creator work well:
87
- - [GRAFT-1B](https://huggingface.co/SmallAICreator/GRAFT-1B)
88
- - [GRAFT-1B-Vision-GGUF](https://huggingface.co/SmallAICreator/GRAFT-1B-Vision-GGUF) (with image support)
89
- - [MiDo-70M-v3](https://huggingface.co/SmallAICreator/MiDo-70M-v3) (70M, from scratch, fast on any phone)
90
- - [MiniGPT2-22M-GGUF](https://huggingface.co/SmallAICreator/MiniGPT2-22M-GGUF) (tiny, for fun)
91
-
92
- ## Permissions, explained
93
-
94
- | Permission | Why |
95
- |---|---|
96
- | Internet / network state | Only for features you turn on: Hugging Face downloads, web search, the local API server |
97
- | All files access (optional) | Load a huge model straight from storage without copying it, when your phone is low on space |
98
- | Foreground service + notifications | Keep the local API server running while the app is in the background |
99
- | Vibrate | Haptic ticks while the model writes (adjustable or off) |
100
-
101
- There are no ads, no analytics and no accounts.
102
-
103
- ## Details
104
-
105
- | | |
106
- |---|---|
107
- | Package | `com.ultralabs.lai` |
108
- | Version | 1.51 (build 52) |
109
- | Min Android | 11 (API 30) |
110
- | ABI | arm64-v8a |
111
- | Signing certificate | `CN=UltraLabs, O=UltraLabs` |
112
- | Cert SHA-256 | `517602ea12fa156ab2713e6ca298fc856e95454ff2132c6a5267d6dec16af8c9` |
113
- | APK SHA-256 | `368d0e73610c8ae5109be29015dd3648a53b5dd3bdd200ff460db6cd633dd58c` |
114
-
115
- ## Credits
116
-
117
- - [llama.cpp](https://github.com/ggml-org/llama.cpp) (MIT): the inference engine.
118
- - [Cyronius/titler](https://huggingface.co/Cyronius/titler) (Apache-2.0): the tiny bundled chat-naming model.
119
- - Made by **SmallAICreator** Β· **UltraLabs**.
120
-
121
- ## License
122
-
123
- L-AI is free to download, use and share in unmodified form. Models you load are covered by their own licenses.
 
 
1
+ ---
2
+ license: other
3
+ license_name: l-ai-freeware
4
+ tags:
5
+ - android
6
+ - apk
7
+ - gguf
8
+ - llama.cpp
9
+ - on-device
10
+ - local-llm
11
+ - offline
12
+ ---
13
+
14
+ # L-AI β€” private AI chat that runs on your phone
15
+
16
+ **L-AI** is a free Android app by **UltraLabs** for chatting with AI models that run **fully on your device**.
17
+ No account and no cloud. Your chats never leave your phone unless you turn on a feature that needs the internet, such as web search.
18
+ It runs any **GGUF** model through a fresh build of llama.cpp. It also runs many older GGML `.bin` models that other apps no longer load.
19
+
20
+ πŸ“₯ **Download:** [`L-AI-1.52.apk`](./L-AI-1.52.apk) (69 MB) Β· Android 11+ Β· 64-bit ARM (arm64-v8a)
21
+
22
+ ---
23
+
24
+ ## Highlights
25
+
26
+ - 🧠 **Any GGUF model.** Qwen, Llama, Gemma, Phi, LFM, Mistral, MoE models and more. Each model is formatted with its **own chat template**, so it behaves the way its makers intended. Built on llama.cpp from November 2026, with fixes for long chats and hybrid models like LFM2 and Qwen3.5.
27
+ - 🧩 **Custom chat templates.** In **Settings β†’ Model & sampling β†’ Chat template**, swap a model's chat template for your own Jinja template, or a preset: ChatML, Llama 3, Llama 2, Gemma, Phi-3, Zephyr, Alpaca, Vicuna or Plain. A live preview shows exactly what the model will see. It works for GGUF and legacy `.bin` models, is remembered per model like the sampling settings, and stops the reply at the template's end-of-turn markers. With a template on, `.bin` models also remember chats you reopen.
28
+ - πŸ—‚οΈ **Older models too.** Legacy GGML `.bin` files are detected and loaded automatically: LLaMA (GGJT/GGMF/ggml), GPT-2, and GPT-NeoX (StableCode, StableLM-alpha, Pythia, Dolly, RedPajama).
29
+ - πŸ‘οΈ **Vision.** Attach photos from the gallery or camera and let vision models (with an `mmproj` file) describe them. Downloading a model from Hugging Face grabs its projector automatically (Q8, else F16). Keep several projectors: each model is linked to the one that actually fits it (checked from the files), and nothing loads while Vision is off.
30
+ - πŸ€— **Smarter Hugging Face downloads.** The best file for your phone is marked Recommended, and base (pretrained) models that can't chat are never recommended: L-AI reads each file's header and labels them "Base Β· won't chat".
31
+ - ✍️ **Base models continue text.** A model with no chat template of its own (and none set manually) runs in completion mode: your message is the start of a text and the model writes what comes next, with no chat wrapper it was never trained on. Set a template in Settings to chat with it instead.
32
+ - πŸ’Ύ **Models on a USB drive.** Turn on **Settings β†’ Storage & backup β†’ Models on a USB drive**, plug in a USB stick (USB-C, or a USB-A drive with an adapter) and its `.gguf` models show up in the model library. Nothing is copied to your phone's storage: a model that fits in memory is read into RAM as it loads, so you can unplug the drive afterwards and keep chatting. Models too big for memory run straight from the drive (L-AI tells you when it can't be unplugged).
33
+ - πŸ—ƒοΈ **Model library at a glance.** Every model gets its own colour and pattern, plus its type, size, quant and how much of your phone's RAM it needs.
34
+ - β­• **Context ring.** A thin ring around the send button fills as the chat uses up the model's context window.
35
+ - πŸ’‘ **Thinking models.** A πŸ’‘ button turns reasoning on or off. It only appears for models that support it. A thinking budget cuts long thoughts short. While the model reasons you see a live word count, and afterwards a small "Thought for 12s" chip you can tap to read the reasoning. Models that expect their thinking block already open (Qwen3.5, K2-Horizon and others) get it opened for them, in their own tags (<think>, <ifm|think>, <seed:think>, [THINK], ...), so their reasoning always lands in the thought box.
36
+ - ⚑ **Speed tools.**
37
+ - Speculative decoding with a draft model.
38
+ - MoE expert offloading and prefetching.
39
+ - KV cache quantization (f32 / f16 / q8_0 / q4_0) and flash attention. f32 is exact, for models that break at lower precision.
40
+ - **Precise kernels** per model (Auto / On / Off): if a model only answers with an instant end of text, L-AI reloads it without the fast ARM kernels, checks again, and remembers the fix only when it helps.
41
+ - Memory-mapped or in-RAM loading.
42
+ - A built-in benchmark (prompt processing and generation).
43
+ - πŸ”§ **Tools the model can call** (native tool calling):
44
+ - Web search (DuckDuckGo / Wikipedia).
45
+ - A calculator that gives exact results.
46
+ - File creation.
47
+ - Each tool shows its own icon while it runs and in the chat (πŸ” only for web search).
48
+ - **Force allow tools on any model** (Settings > Tools): turns tools on for any model, including remote models (the tools run on the phone). It may break the model.
49
+ - πŸ”— **Tappable links:** web addresses and markdown links in your messages and the model's replies open in your browser.
50
+ - πŸ“š **Knowledge.** Add TXT / PDF / EPUB files. The most relevant passages are found and given to the model.
51
+ - 🧷 **Memory.** The model can remember facts you tell it across chats. You can add, view or delete them anytime.
52
+ - 🎭 **Personas and slash commands.** `/summarize`, `/translate`, `/eli5`, `/fix` and your own custom ones.
53
+ - πŸ’¬ **A chat experience you'd expect:**
54
+ - Markdown, code blocks with copy and **Run** (live HTML/JS preview), charts, Mermaid diagrams and LaTeX.
55
+ - Regenerate with versions, edit and resend, fork a chat from any message.
56
+ - Read aloud, voice input with optional auto-send, and haptic ticks while it writes.
57
+ - ✨ **Instant follow-up suggestions** after each reply. They're worked out on the device without using the model, so they cost nothing.
58
+ - 🏷️ **Automatic chat names** from a tiny bundled titling model (about 20 ms, no setup).
59
+ - πŸ•ΆοΈ **Temporary chats**: never saved or remembered, and a clean slate (no system prompt, persona, memories or knowledge files). Tools still work.
60
+ - πŸ—ƒοΈ **History:**
61
+ - Search, folders, pins, share and export (.md / .txt).
62
+ - Backup and restore.
63
+ - πŸ”Œ **Integrations:**
64
+ - An **OpenAI-compatible API server** on your local network, so you can use your phone's model from a PC.
65
+ - A **Use remote model** option: chat with a bigger model on any OpenAI-compatible server (llama.cpp, LM Studio, Ollama, Jan or a hosted endpoint) using its address and API key. Replies stream in live. Only standard OpenAI settings are sent, so hosted APIs like Groq work too.
66
+ - Share-to-L-AI, a Quick Settings tile and a home-screen widget you can resize from a tiny icon up to a big panel.
67
+ - 🎨 **Make it yours:**
68
+ - Material You or custom colors, 9 presets and AMOLED black.
69
+ - Bubble / card / minimal chat styles, fonts, text size and chat wallpapers.
70
+
71
+ ## Getting started
72
+
73
+ 1. Download **`L-AI-1.52.apk`** above, open it, and allow installing from your browser or file manager if Android asks.
74
+ 2. Open L-AI, tap the model library, then either:
75
+ - **Download from Hugging Face** inside the app (search any GGUF repo), or
76
+ - **Add a model file** you already have (`.gguf` or `.bin`).
77
+ 3. Load it and start chatting. That's it.
78
+
79
+ **Which model should I try?** On most phones, a 0.5B–4B model at Q4/Q8 is the sweet spot.
80
+
81
+ | Phone RAM | Good model sizes |
82
+ |---|---|
83
+ | 4 GB | up to ~1.5B (Q4) |
84
+ | 6–8 GB | up to ~4B (Q4) |
85
+ | 12 GB+ | 7–8B (Q4), or small MoE models |
86
+
87
+ Small models from the same creator work well:
88
+ - [GRAFT-1B](https://huggingface.co/SmallAICreator/GRAFT-1B)
89
+ - [GRAFT-1B-Vision-GGUF](https://huggingface.co/SmallAICreator/GRAFT-1B-Vision-GGUF) (with image support)
90
+ - [MiDo-70M-v3](https://huggingface.co/SmallAICreator/MiDo-70M-v3) (70M, from scratch, fast on any phone)
91
+ - [MiniGPT2-22M-GGUF](https://huggingface.co/SmallAICreator/MiniGPT2-22M-GGUF) (tiny, for fun)
92
+
93
+ ## Permissions, explained
94
+
95
+ | Permission | Why |
96
+ |---|---|
97
+ | Internet / network state | Only for features you turn on: Hugging Face downloads, web search, the local API server |
98
+ | All files access (optional) | Load a huge model straight from storage without copying it, when your phone is low on space |
99
+ | Foreground service + notifications | Keep the local API server running while the app is in the background |
100
+ | Vibrate | Haptic ticks while the model writes (adjustable or off) |
101
+
102
+ There are no ads, no analytics and no accounts.
103
+
104
+ ## Details
105
+
106
+ | | |
107
+ |---|---|
108
+ | Package | `com.ultralabs.lai` |
109
+ | Version | 1.52 (build 53) |
110
+ | Min Android | 11 (API 30) |
111
+ | ABI | arm64-v8a |
112
+ | Signing certificate | `CN=UltraLabs, O=UltraLabs` |
113
+ | Cert SHA-256 | `517602ea12fa156ab2713e6ca298fc856e95454ff2132c6a5267d6dec16af8c9` |
114
+ | APK SHA-256 | `cf1f6ba2253c3c1d2834325144377025794a33cfa7812a69a7704cd675238441` |
115
+
116
+ ## Credits
117
+
118
+ - [llama.cpp](https://github.com/ggml-org/llama.cpp) (MIT): the inference engine.
119
+ - [Cyronius/titler](https://huggingface.co/Cyronius/titler) (Apache-2.0): the tiny bundled chat-naming model.
120
+ - Made by **SmallAICreator** Β· **UltraLabs**.
121
+
122
+ ## License
123
+
124
+ L-AI is free to download, use and share in unmodified form. Models you load are covered by their own licenses.