Falcon-H1-1.5B-Instruct β€” LiteRT-LM

tiiuae/Falcon-H1-1.5B-Instruct converted to the LiteRT-LM (.litertlm) format for on-device inference with Google's LiteRT-LM runtime. Requires litert-lm β‰₯ 0.15. For the Android GPU path, see Known runtime issues below. Same conversion and patch as litert-community/Falcon-H1-0.5B-Instruct.

Falcon-H1 is TII's fully-hybrid design: every one of the 24 layers runs a grouped-query attention branch and a Mamba2 selective-scan branch in parallel on the same input and sums them. Each layer therefore carries both a KV cache and constant-size conv + SSM recurrent state.

File Recipe Size
Falcon-H1-1.5B-Instruct_int8.litertlm int8 dynamic on linears + embedding (convs and the scan stay float); fp32 activations declared for GPU 1.61 GB

2026-09-21: chat template updated to accept the 0.18 content-parts form (string form unchanged); weights, tokenizer and executor metadata byte-identical.

Correctness

  • Logit match against PyTorch: the float export matches the HF model teacher-forced across 8 decode positions β€” max|logit diff| 1.6e-04, correlation 1.000000, top-1 and top-5 identical at every position.
  • 8-question sanity check: CPU 7/8, GPU 6/8. The shared miss ("17+25") is answered "32" verbatim by the HF bf16 reference too β€” the model's own level, not conversion damage. The GPU-only miss (8Γ—7) is a borderline int8 greedy flip; nothing degenerates.
  • Prompt-length robustness: hermetic prefill-chunk sweep (fresh engine per length, 12–60 tokens) β€” all clean.
  • iPhone 17 Pro (Metal): the 8-item composite quality test answers 8/8 on GPU and 8/8 on CPU, identical answers on both backends.
  • One Engine per conversation. On litert-lm 0.18.0 the runtime starts a new Conversation on an Engine that already ran another conversation from the earlier conversation's recurrent state: it reuses the prompt tokens the two conversations share and does not reset the state (my open report). In a test that asks three questions (What is the capital of France? / What is 17 times 23? / What color is the sky on a clear day?) first in a pirate-persona conversation and then in a conversation told to answer in one word, on the same Engine against a fresh Engine in a new process (answers capped at 200 tokens; CPU backend; litert-lm 0.18.0 on a Mac), the _int8 file gave the same three words on both Engines, with a trailing period on the same Engine, in its one run. Those three short questions say nothing about longer conversations. Create a new Engine for each conversation. The first conversation on an Engine is unaffected. A fix landed on LiteRT-LM main on 2026-11-03 (e1f86b05). The LiteRT-LM v0.20.0 release contains it; this model was not tested with a shared Engine on v0.20.0.

Usage

litert-lm run ./Falcon-H1-1.5B-Instruct_int8.litertlm --prompt "What is the capital of France? Answer in one word."

# GPU
litert-lm run ./Falcon-H1-1.5B-Instruct_int8.litertlm --backend gpu --cache no --prompt "..."

Multi-length prefill signatures (1–1024) are exported so the runtime picks tight chunks. The file carries the tokenizer and the stock ChatML-style Falcon-H1 chat template.

Performance

litert-lm benchmark (litert-lm 0.16.0), Apple M4 Max, -p 256 -d 256 --runs 3 --cache no, quiet machine:

Backend Prefill (256) Decode TTFT
GPU 1447 tok/s 102.9 tok/s 0.19 s
CPU 238 tok/s 33.7 tok/s 1.11 s

On device (cold start, single runs, 146-token composite prompt, quality-check tool):

Device Backend Prefill Decode TTFT Peak memory
iPhone 17 Pro GPU (Metal) 186.8 tok/s 25.8 tok/s 0.88 s 2.54 GB
iPhone 17 Pro CPU 50.3 tok/s 15.5 tok/s 3.16 s 1.02 GB

Honest notes:

  • Where GPU execution was verified, before the 2026-11-09 re-pack. macOS (Metal), iPhone 17 Pro (Metal), Pixel 8a (Arm Mali, OpenCL) and Qualcomm Adreno β€” the Galaxy S26 section below is that measurement. The file published now (re-packed on 2026-11-09; Known runtime issues) has not been run on a phone.
  • On low-end Android the GPU buys prefill and time-to-first-token, not decode (decode is memory-bandwidth-bound there; the CPU path reads int8 weights while the fp32-activation GPU path reads expanded ones). Pick the backend for your workload: long prompts favour the GPU, long answers favour the CPU. On Apple hardware the GPU wins across the board.
  • GPU runs with fp32 activations (declared in the file) β€” expect a corresponding memory multiple over CPU.
  • Arithmetic at this scale is fragile in the base model itself (see the 8-question check note above); int8 adds borderline greedy flips on exactly those items.

Galaxy S26 β€” GPU backend

On 2026-08-24, the file published at the time (weights inside the graph) ran on the Android GPU backend: LiteRT took the whole graph and the model generated. Nothing in this section has been re-run since the 2026-11-09 re-pack.

file GPU backend delegation peak
Falcon-H1-1.5B-Instruct_int8.litertlm ran 41683 / 41683 ops across 12 subgraphs on LiteRT GPU 2398 MiB

Measured on a Samsung Galaxy S26 (SM-S942Q / SM8850, Android 16) with litert_lm_advanced_main from litert-lm 0.16.0, --backend=gpu --sampler_backend=cpu, prompt What is the capital of France?. Peak is the process high-water mark (VmHWM) sampled during that same run. Checked 2026-08-24.

No speed rows, on purpose. On this handset the GPU backend wins prefill and does not win decode, so a GPU throughput figure only means something beside a CPU row from the same handset, and this card lists no S26 CPU row.

GPU wiring, including the Gallery import toggle: GPU guide. Gallery 1.0.23 (released 2026-11-04) is built with LiteRT-LM 0.18.1 (its build file); on a Pixel 8a, the GPU backend of an Android build of that version crashes on a Qwen3-0.6B file with external weights (Known runtime issues below). This file was not run in Gallery.

Conversion notes

Converted with litert-torch plus a hybrid-cache patch (reproduction script + patch: hf-to-litertlm falcon_h1_work/):

  • Composite hybrid cache layer: every layer holds KV + conv + recurrent state at ONE layer index β€” a cache layer class that is full-attention and Mamba2 at the same time (the runtime binds states by tensor name, so co-residency is just packaging).
  • Folded selective scan: the Mamba2 scan is re-expressed as batched matmuls with chunk and head axes folded into the batch axis (all tensors rank ≀ 4, no BROADCAST_TO, no int64 index math) β€” this is what makes the graph fully delegable on GPU.
  • Falcon-specific wiring: the Β΅P multiplier vector (mup_vector, a non-persistent model-level buffer) and ssm_in_multiplier are preserved in the traced scan; the exporter's timestamp-index kwargs are re-injected at the attention layer (FalconH1's layer loop drops kwargs).
  • Prefill-pad guard: the runtime runs partially-filled prefill chunks; pad positions are made exact identity steps for the SSM and the stored conv window is gathered at the last valid column.
  • Quantization: post-hoc dynamic int8 over linears + embedding only; convs and the scan stay float.

Raspberry Pi 5 (CPU)

Measured on a Raspberry Pi 5 Model B Rev 1.1 (8 GB, Raspberry Pi OS 64-bit) with litert-lm benchmark 0.16.1: CPU backend, 4 threads, 256 prefill + 256 decode tokens, --cache memory (the compile cache lives and dies with the process, so every invocation compiles the model from scratch; nothing is reused between runs), one warm-up plus one timed iteration per invocation, 3 invocations per file with cooldown in between. Values are the median across invocations (min–max in parentheses). No thermal throttling occurred during these runs (vcgencmd get_throttled stayed 0x0). Every file listed produced coherent text in a real generation on this backend before its numbers were recorded.

File Prefill (tok/s) Decode (tok/s) TTFT Peak RSS
Falcon-H1-1.5B-Instruct_int8.litertlm 39.4 (39.2–39.5) 3.4 (3.3–3.4) 6.8 s 2.5 GB

Known runtime issues

Measurements of Falcon-H1-1.5B-Instruct_int8.litertlm on this page made before 2026-11-09 used earlier files, not the current one.

Android GPU with LiteRT-LM v0.18.0 and v0.18.1. Falcon-H1-1.5B-Instruct_int8.litertlm keeps some of its weights outside the model graph (LiteRT's external weights), and on a Pixel 8a the GPU backend of the v0.18.0 and v0.18.1 Android builds crashes (SIGSEGV) on a Qwen3-0.6B file with external weights (LiteRT-LM#3986).

From a conversation preface (the system message, initial messages, tools and extra context a conversation is created with) that has tools and no messages, LiteRT-LM renders this file's chat template with an empty message list, and the template reads messages[0] without checking that the list is non-empty, so the render fails with Failed to apply template: undefined value. This happens in two places: when the preface is prefilled at creation (prefillPrefaceOnInit = true in Kotlin, prefillPrefaceOnInit: true on the web, SetPrefillPrefaceOnInit(true) in C++; the default is false), where creating the conversation fails with that error, and in the preface render (renderPrefaceIntoString() in Kotlin and Swift, RenderPrefaceIntoString() in C++, litert_lm_conversation_render_preface_to_string in the C API). The same happens with extra context (such as enable_thinking) and no messages, and in the preface render with an empty preface (run in the runtime on one Qwen3 template; the other templates rendered with minijinja 2.14 and jinja2). Read in the source of LiteRT-LM 0.17.0, 0.18.1 and main; measured with LiteRT-LM 0.18.1 (the litert-lm package from PyPI) through its C API on this file's template text. The default path, where the first message is rendered together with the preface, is not affected: the Python API and the CLI of 0.18.1 expose neither the flag nor the preface render, and Google AI Edge Gallery sets neither (its source as read on 2026-10-25). A system message or any initial message in the conversation config avoids it.

License and changes

Distributed under the Falcon LLM License (inherited from the base model β€” see the license link). Changes from the original work: weights converted from safetensors bf16 to LiteRT flatbuffers and quantized as described above; tokenizer and chat template repackaged unmodified. This repository is a community conversion and is not affiliated with TII.

Downloads last month
261
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for litert-community/Falcon-H1-1.5B-Instruct

Quantized
(14)
this model