Image-Text-to-Text
LiteRT
Safetensors
GGUF
LiteRT-LM
vision
vlm
multimodal
litertlm
lfm2
on-device
mobile
bi-1s
better-intelligence
imatrix
conversational
Instructions to use sidhrth/BI-1s with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT
How to use sidhrth/BI-1s with LiteRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- LiteRT-LM
How to use sidhrth/BI-1s 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=sidhrth/BI-1s \ --prompt="Write me a poem"
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use sidhrth/BI-1s 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 sidhrth/BI-1s:Q4_K_M # Run inference directly in the terminal: llama cli -hf sidhrth/BI-1s:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf sidhrth/BI-1s:Q4_K_M # Run inference directly in the terminal: llama cli -hf sidhrth/BI-1s:Q4_K_M
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 sidhrth/BI-1s:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf sidhrth/BI-1s:Q4_K_M
Use Docker
docker model run hf.co/sidhrth/BI-1s:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use sidhrth/BI-1s with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sidhrth/BI-1s" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sidhrth/BI-1s", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/sidhrth/BI-1s:Q4_K_M
- Ollama
How to use sidhrth/BI-1s with Ollama:
ollama run hf.co/sidhrth/BI-1s:Q4_K_M
- Unsloth Desktop
- Pi
How to use sidhrth/BI-1s with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf sidhrth/BI-1s:Q4_K_M
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": "sidhrth/BI-1s:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use sidhrth/BI-1s with Docker Model Runner:
docker model run hf.co/sidhrth/BI-1s:Q4_K_M
- Lemonade
How to use sidhrth/BI-1s with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull sidhrth/BI-1s:Q4_K_M
Run and chat with the model
lemonade run user.BI-1s-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use sidhrth/BI-1s with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf sidhrth/BI-1s:Q4_K_M
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 sidhrth/BI-1s:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use sidhrth/BI-1s with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf sidhrth/BI-1s:Q4_K_M
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 "sidhrth/BI-1s:Q4_K_M" \ --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"
|
Download README.md from sidhrth/BI-1s: direct link, hf CLI and curl.
- Browser
- Download file 4.2 kB
-
https://huggingface.co/sidhrth/BI-1s/resolve/main/README.md
- Command line
-
hf download hf://sidhrth/BI-1s/README.md
-
curl -L -o README.md https://huggingface.co/sidhrth/BI-1s/resolve/main/README.md
4.2 kB
| license: other | |
| license_name: lfm-open-license-v1.0 | |
| license_link: LICENSE | |
| base_model: LiquidAI/LFM2.5-VL-1.6B | |
| base_model_relation: finetune | |
| pipeline_tag: image-text-to-text | |
| tags: | |
| - vision | |
| - vlm | |
| - multimodal | |
| - gguf | |
| - litert | |
| - litert-lm | |
| - litertlm | |
| - lfm2 | |
| - on-device | |
| - mobile | |
| - bi-1s | |
| - better-intelligence | |
| # BI-1s (Better Intelligence 1 Small) | |
| **BI-1s** is a compact, offline-first **vision + text** AI assistant developed by **Have an Idea** for the **Better Intelligence** platform. Built over [`LiquidAI/LFM2.5-VL-1.6B`](https://huggingface.co/LiquidAI/LFM2.5-VL-1.6B) (revision `919fde3d022e3f90a4716006f993938ee8c2eb97`), **BI-1s** is engineered and verified to run both **GGUF** (`llama.cpp` + multimodal `mmproj`) and **LiteRT-LM** (`.litertlm` with **Fix B** full-frame vision unshuffle) cleanly within **2 GB RAM (`<= 2,048 MiB` Peak RSS)**. | |
| ## Model Files | |
| | Artifact | Format | Role | Size | SHA-256 | | |
| |---|---|---|---:|---| | |
| | `BI-1s-Q4_K_M.gguf` | GGUF (`Q4_K_M`, imatrix) | Text + reasoning decoder | 730,895,808 B (697.0 MiB) | `879284490435ea6fc4e514bd1b9ab579d15485858c204d499200f42214482df9` | | |
| | `mmproj-BI-1s-Q8_0.gguf` | GGUF (`Q8_0`) | SigLIP2 multimodal vision projector | 583,109,376 B (556.1 MiB) | `5ede3d1c59ba3bf0fcec654206b9171b9dafe202d28cbce9ec0ca1b6d4dd4c44` | | |
| | `BI-1s-int4.litertlm` | LiteRT-LM (`INT4` + vision) | Single-file mobile/edge text+vision package (Fix B) | 1,103,462,400 B (1052.3 MiB) | `e27973f241b3e666a89256e152c492ccd5f877a7a654c193ad89907ed17c4477` | | |
| | `adapter/` | PEFT LoRA (`bf16`) | Fine-tuned language/multimodal adapter | — | — | | |
| Combined GGUF download (`BI-1s-Q4_K_M.gguf` + `mmproj-BI-1s-Q8_0.gguf`): **1,314,005,184 B (1253.1 MiB)**. | |
| ## Verified Capabilities & Memory (`<= 2,048 MiB` Peak RSS) | |
| All measurements recorded on `2048`-token context (`-c 2048` / `--max-num-tokens 2048`) with `/usr/bin/time -v` Peak RSS (`VmHWM`) in CPU execution (LiteRT-LM with standard `--cache disk` weight caching): | |
| | Runtime Format | Text Checks | Vision Checks | Measured Peak RSS (`VmHWM`) | Within 2 GB RAM | | |
| |---|---:|---:|---:|---| | |
| | **GGUF (`llama.cpp` + `mmproj`)** | 4/4 | 5/5 | **1213.43 MiB** | Yes (`<= 2,048 MiB`) | | |
| | **LiteRT-LM (`BI-1s-int4.litertlm`)** | 4/4 | 5/5 | **1623.45 MiB** | Yes (`<= 2,048 MiB`) | | |
| Vision verification includes dominant color, centered OCR, geometric shape identification, object counting, and **bottom-quarter OCR** (`"BOTTOM 42"`) confirming full-frame visual coverage (including **Fix B** moving `2x2` `pixel_unshuffle` inside the LiteRT vision encoder so no top-quarter crop occurs). | |
| ## Training Summary | |
| - **Foundation:** `LiquidAI/LFM2.5-VL-1.6B` @ `919fde3d022e3f90a4716006f993938ee8c2eb97` (1.2B LFM2.5 hybrid short-conv/GQA backbone + SigLIP2 vision tower) | |
| - **Stage 1 (Text SFT):** 8,100 curated BID v1.0 + identity rows (BF16 compute / 4-bit NF4 QLoRA, `<think>` stripped, `vision_tower` frozen, 507 steps, `eval_loss=0.5948`, `eval_mean_token_accuracy=0.8413`) | |
| - **Stage 2 (Multimodal Vision+Text SFT):** 1,500 vision-text records (`vision_tower` frozen cleanly in native `bfloat16`, `train_loss=0.5377`, `eval_loss=0.3454`) | |
| - **Stage 3 (Identity & Grounding Polish):** 320 mixed identity + anchor rows ensuring clean assistant identity with or without system prompts (`train_loss=0.6639`) | |
| ## Usage | |
| ### 1. GGUF (`llama.cpp` / `llama-mtmd-cli`) | |
| ```bash | |
| # Vision + text | |
| llama-mtmd-cli -m BI-1s-Q4_K_M.gguf --mmproj mmproj-BI-1s-Q8_0.gguf -c 2048 --temp 0 --image photo.png -p "Describe this image." | |
| # Text only | |
| llama-completion -m BI-1s-Q4_K_M.gguf -c 2048 -p "<|startoftext|><|im_start|>user | |
| Who are you?<|im_end|> | |
| <|im_start|>assistant | |
| " | |
| ``` | |
| ### 2. LiteRT-LM (`litert-lm` >= `0.20.0`) | |
| ```bash | |
| pip install litert-lm==0.20.0 | |
| # Vision + text | |
| litert-lm run BI-1s-int4.litertlm --max-num-tokens 2048 --attachment photo.png --prompt "What does this image show?" | |
| # Text only | |
| litert-lm run BI-1s-int4.litertlm --max-num-tokens 2048 --prompt "Who are you?" | |
| ``` | |
| ## License | |
| Distributed under **LFM Open License v1.0** (`LICENSE`), inherited from `LiquidAI/LFM2.5-VL-1.6B`. | |