Instructions to use livadies/Bonsai-27B-Android-Local with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use livadies/Bonsai-27B-Android-Local with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf livadies/Bonsai-27B-Android-Local:Q1_0 # Run inference directly in the terminal: llama cli -hf livadies/Bonsai-27B-Android-Local:Q1_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf livadies/Bonsai-27B-Android-Local:Q1_0 # Run inference directly in the terminal: llama cli -hf livadies/Bonsai-27B-Android-Local:Q1_0
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf livadies/Bonsai-27B-Android-Local:Q1_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf livadies/Bonsai-27B-Android-Local:Q1_0
Use Docker
docker model run hf.co/livadies/Bonsai-27B-Android-Local:Q1_0
- Llama new
- LM Studio
- Jan
- vLLM
How to use livadies/Bonsai-27B-Android-Local with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "livadies/Bonsai-27B-Android-Local" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "livadies/Bonsai-27B-Android-Local", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/livadies/Bonsai-27B-Android-Local:Q1_0
- Ollama
How to use livadies/Bonsai-27B-Android-Local with Ollama:
ollama run hf.co/livadies/Bonsai-27B-Android-Local:Q1_0
- Unsloth Desktop
- Pi
How to use livadies/Bonsai-27B-Android-Local with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf livadies/Bonsai-27B-Android-Local:Q1_0
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "livadies/Bonsai-27B-Android-Local:Q1_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use livadies/Bonsai-27B-Android-Local with Docker Model Runner:
docker model run hf.co/livadies/Bonsai-27B-Android-Local:Q1_0
- Lemonade
How to use livadies/Bonsai-27B-Android-Local with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull livadies/Bonsai-27B-Android-Local:Q1_0
Run and chat with the model
lemonade run user.Bonsai-27B-Android-Local-Q1_0
List all available models
lemonade list
- Hermes Agent
How to use livadies/Bonsai-27B-Android-Local with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf livadies/Bonsai-27B-Android-Local:Q1_0
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default livadies/Bonsai-27B-Android-Local:Q1_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use livadies/Bonsai-27B-Android-Local with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf livadies/Bonsai-27B-Android-Local:Q1_0
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "livadies/Bonsai-27B-Android-Local:Q1_0" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Update bilingual docs, mixed licensing notes, and model checksum / Обновить документацию, лицензии и checksum модели
Browse filesFiles changed (3)
- README.md+6-4
- README_EN.md+6-5
- THIRD_PARTY.md+6-6
12345176 unmodified lines182183184185186187188189188 unmodified lines378379380381382383384---license: mitpipeline_tag: text-generationlanguage:- ru176 unmodified lines- для импорта через picker временно может потребоваться место для копии;- первый старт модели может занимать десятки секунд.Вес модели не включён в APK, потому что обычный APK с asset размером 3.8 ГБнепрактичен и превышает типичный delivery budget. SHA-256 проверенной модели:```text17EF842E47450CAEB8EAA3EBFBBAB5D2F2278B62B79BE107985FB69A2F819AA0188 unmodified lines- только text-to-text; vision projection не загружается;- только CPU backend в протестированном AVD;- нет встроенного resumable downloader и проверки SHA-256 в UI;- модель не включена в APK;- история чата живёт в памяти Activity и не сохраняется после полного restart;- контекст приложения ограничен 8192 токенами, хотя модель обучена на гораздоболее длинный контекст;12345176 unmodified lines182183184185186187188189190191188 unmodified lines380381382383384385386---license: otherpipeline_tag: text-generationlanguage:- ru176 unmodified lines- для импорта через picker временно может потребоваться место для копии;- первый старт модели может занимать десятки секунд.Вес модели не включён внутрь APK, потому что APK с asset размером 3,8 ГБнепрактичен. Проверенная копия опубликована рядом с проектом как`models/Bonsai-27B-Q1_0.gguf`, поэтому её можно скачать из этого репозиториябез отдельного поиска. SHA-256 модели:```text17EF842E47450CAEB8EAA3EBFBBAB5D2F2278B62B79BE107985FB69A2F819AA0188 unmodified lines- только text-to-text; vision projection не загружается;- только CPU backend в протестированном AVD;- нет встроенного resumable downloader и проверки SHA-256 в UI;- модель опубликована отдельно от APK в папке `models/`;- история чата живёт в памяти Activity и не сохраняется после полного restart;- контекст приложения ограничен 8192 токенами, хотя модель обучена на гораздоболее длинный контекст;
1234530 unmodified lines36373839404142434467 unmodified lines112113114115116117118---license: mitpipeline_tag: text-generationlanguage:- en30 unmodified lines- Includes an adaptive Android launcher icon and raster mipmaps.- Provides a debug-only Base64 UTF-8 prompt intent for reproducible tests.The model file is deliberately not embedded in the APK. It remains availablefrom the upstream model repository and would make application deliveryimpractical.## Verified setup67 unmodified lines- `lib/` — Kotlin API, GGUF metadata reader, JNI, and native build.- `third_party/llama.cpp/` — PrismML fork, kept next to this project whenbuilding locally and not duplicated in this repository.- `models/` — optional local research copy, excluded from publication.- `screenshots/` — evidence captured from the Android emulator.- `release/` — verified debug APK and checksum.1234530 unmodified lines3637383940414243444567 unmodified lines113114115116117118119---license: otherpipeline_tag: text-generationlanguage:- en30 unmodified lines- Includes an adaptive Android launcher icon and raster mipmaps.- Provides a debug-only Base64 UTF-8 prompt intent for reproducible tests.The model is deliberately not embedded inside the APK because a 3.8 GB APK isimpractical. A verified copy is published in this repository at`models/Bonsai-27B-Q1_0.gguf`, with upstream attribution preserved, so the appand its exact tested model can be retrieved from one place.## Verified setup67 unmodified lines- `lib/` — Kotlin API, GGUF metadata reader, JNI, and native build.- `third_party/llama.cpp/` — PrismML fork, kept next to this project whenbuilding locally and not duplicated in this repository.- `models/` — the exact GGUF used by the Android tests and its checksum.- `screenshots/` — evidence captured from the Android emulator.- `release/` — verified debug APK and checksum.
5 unmodified lines678910111213143 unmodified lines18192021222324255 unmodified linesPrismML fork of `llama.cpp`, pinned to commit`62061f91088281e65071cc38c5f69ee95c39f14e`. Preserve the upstream MIT licensewhen redistributing the native runtime.- Bonsai-27B GGUF is not included in this repository. Obtain it from<https://huggingface.co/prism-ml/Bonsai-27B-gguf> and follow its Apache-2.0license/model-card conditions.- AndroidX, Material Components, Kotlin, Gradle, NDK, and CMake retain theirrespective upstream licenses.3 unmodified linesPrismML `llama.cpp`, закреплённом на commit`62061f91088281e65071cc38c5f69ee95c39f14e`. При распространении nativeruntime необходимо сохранить MIT-лицензию upstream.- GGUF Bonsai-27B в этот репозиторий не включён. Он загружается из<https://huggingface.co/prism-ml/Bonsai-27B-gguf> и распространяется поусловиям Apache-2.0 и model card.- AndroidX, Material Components, Kotlin, Gradle, NDK и CMake сохраняют своиupstream-лицензии.5 unmodified lines678910111213143 unmodified lines18192021222324255 unmodified linesPrismML fork of `llama.cpp`, pinned to commit`62061f91088281e65071cc38c5f69ee95c39f14e`. Preserve the upstream MIT licensewhen redistributing the native runtime.- `models/Bonsai-27B-Q1_0.gguf` is an unmodified verified copy obtained from<https://huggingface.co/prism-ml/Bonsai-27B-gguf>. It remains subject to theupstream Apache-2.0 license and model-card conditions.- AndroidX, Material Components, Kotlin, Gradle, NDK, and CMake retain theirrespective upstream licenses.3 unmodified linesPrismML `llama.cpp`, закреплённом на commit`62061f91088281e65071cc38c5f69ee95c39f14e`. При распространении nativeruntime необходимо сохранить MIT-лицензию upstream.- `models/Bonsai-27B-Q1_0.gguf` — неизменённая проверенная копия из<https://huggingface.co/prism-ml/Bonsai-27B-gguf>. Она сохраняет условияApache-2.0 и model card исходного репозитория.- AndroidX, Material Components, Kotlin, Gradle, NDK и CMake сохраняют своиupstream-лицензии.
README.md+6-4
README_EN.md+6-5
THIRD_PARTY.md+6-6