Run this model with HF Jobs
Run litert-community/Ornith-1.5-9B on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/litert-community/Ornith-1.5-9B. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/litert-community/Ornith-1.5-9B on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/litert-community/Ornith-1.5-9B. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Instructions to use litert-community/Ornith-1.5-9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT-LM
How to use litert-community/Ornith-1.5-9B 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=litert-community/Ornith-1.5-9B \ --prompt="Write me a poem"
- LiteRT
How to use litert-community/Ornith-1.5-9B 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
- Notebooks
- Google Colab
- Kaggle
Ornith-1.5-9B β LiteRT-LM
ornith-ai/Ornith-1.5-9B converted to the LiteRT-LM (.litertlm) format for Google's LiteRT-LM runtime: an int8 file and a Mixed INT4 file, and four files for the GPU added on 2026-11-16 and 2026-11-25 (file table and entries below). The model is Ornith's post-training of Qwen/Qwen3.5-9B (its text decoder's configuration and weight names equal Qwen3.5-9B's), so the first two files come off the same conversion path as the Ornith-1.0-9B, Qwen3.5-4B, 2B and 0.8B conversions. They were converted with litert-torch (commit 115a1360 with the Qwen3.5 hybrid patch) and tested on litert-lm 0.18.0 on a Mac Studio M4 Max, where the Mixed INT4 file decodes at 45.6 tok/s on the GPU (measured 2026-10-15); the phone status is under Performance. The two 2026-11-16 files Ornith-1.5-9B_mixed_int4_gpu_composite_v0190.litertlm and Ornith-1.5-9B_int8_gpu_composite_v0190.litertlm are made for the GPU on LiteRT-LM 0.19.x: on the same Mac's GPU (litert-lm 0.19.2) the new Mixed INT4 file prefills 27.6 % and decodes 24.5 % faster than Ornith-1.5-9B_mixed_int4.litertlm (2026-11-16 entry below).
Ornith describes Ornith-1.5 as "a major step toward building foundation models through end-to-end self-improvement", extending Ornith-1.0 (post-trained on Qwen3.5 and Gemma4) by having the model generate its own training tasks, discover strategies for solving them and improve the policy through reinforcement learning; the 9B is "the most lightweight member of the Ornith-1.5 family β a 9B dense model designed for efficient single-GPU deployment", about 19 GB in bf16. Ornith's table reports Terminal-Bench 2.1 (Terminus-2) 46.2 against Ornith-1.0-9B's 43.1 and Qwen3.5-9B's 21.3, and SWE-bench Verified 70.6 against 69.4 and 53.2, averaged over five runs (vendor-reported; not run here). Ornith recommends temperature 1.0, top-p 0.95, top-k 20 and a presence penalty of 1.5 for general tasks, and temperature 0.6 with no presence penalty for precise coding; the context is 262,144 tokens (4096 in these files). The README also names a quantized "Ornith-1.5-9B-Mobile" variant; no public repository of that name exists at the time of writing, and these files are not it.
The architecture is Qwen3.5's hybrid: 32 layers, 24 of them GatedDeltaNet linear attention and 8 full attention (one in every four), hidden size 4096, 16 attention heads with 4 KV heads of 256, linear attention with 16 key and 32 value heads of 128, a 248,320-token vocabulary with untied embeddings. The upstream checkpoint is multimodal and carries a multi-token-prediction head; these files hold the text decoder only (8,953,803,264 of the release's 9,653,104,368 parameters; the vision tower and the MTP head are not in them, the same text-only load as upstream's Qwen3_5ForCausalLM). Only the 8 attention layers keep a growing KV cache (a 4096-token budget here); the 24 linear-attention layers carry a constant-size conv and recurrent state.
Ornith-1.5-9B is a reasoning model whose assistant turn opens with a <think> block by default. These files run it with thinking off: the files' chat template writes the empty <think>\n\n</think> block that Ornith's own template writes when enable_thinking is false, in every assistant turn and in the generation prompt, and the replies are the answers alone. Why no thinking switch: Ornith's template writes every past assistant turn with its think block, and the switch template of the Qwen3.5-4B conversion drops it, so a multi-turn prompt would differ from the form Ornith trained on; the shipped template's renders equal Ornith's enable_thinking=False renders byte for byte in every kind of conversation without tools (Usage).
Which file to use, by runtime and backend (β = recommended):
| Runtime | Backend | File |
|---|---|---|
| LiteRT-LM 0.20.0 | GPU | β Ornith-1.5-9B_mixed_int4_gpu_composite_v0200.litertlm |
| LiteRT-LM 0.19.x | GPU | β Ornith-1.5-9B_mixed_int4_gpu_composite_v0190.litertlm |
| LiteRT-LM 0.19.x | CPU | β Ornith-1.5-9B_int8.litertlm |
The two _v0190 files declare min_runtime_version 0.19.0 (on the GPU of 0.18.1 both reply !!!β¦); the 2026-11-16 entry below says what was run on which runtime and device.
| File | Recipe | Size | sha256 |
|---|---|---|---|
β Ornith-1.5-9B_mixed_int4_gpu_composite_v0200.litertlm |
For the GPU on LiteRT-LM 0.20.0 (2026-11-25 entry below): Ornith-1.5-9B_mixed_int4_gpu_composite_v0190.litertlm with its odml.short_conv_step nodes made channels-last |
6.03 GB (6,025,003,008 bytes) | 229d569b1fe6d761967b11503afa11955e52f8abaa86ef005ccf242c8b8e2c63 |
Ornith-1.5-9B_int8_gpu_composite_v0200.litertlm |
For the GPU on LiteRT-LM 0.20.0 (2026-11-25 entry below): Ornith-1.5-9B_int8_gpu_composite_v0190.litertlm with its odml.short_conv_step nodes made channels-last |
9.17 GB (9,168,748,544 bytes) | 4ad578ede8f4d8c92889512c68a382bcbb1c2bfcea4e1cad4cc1b3d73f19e160 |
β Ornith-1.5-9B_mixed_int4_gpu_composite_v0190.litertlm (recommended for the GPU on LiteRT-LM 0.19.x) |
For the GPU on LiteRT-LM 0.19.x (2026-11-16 entry below; on the CPU use Ornith-1.5-9B_int8.litertlm): int4 blockwise-32 on the fully connected weights, int8 on the embedding and the lm_head, the 48 GatedDeltaNet decay/gate projections float; exported with GPU composites, fp32 GPU activations declared |
6.02 GB (6,024,806,400 bytes) | fd8c56d1062d0cc473f6e181f70e461ec0f0140265a1946088f64a7a212a612d |
Ornith-1.5-9B_int8_gpu_composite_v0190.litertlm |
For the GPU on LiteRT-LM 0.19.x (2026-11-16 entry below): int8 dynamic on the fully connected weights and the embedding, the same 48 projections float; exported with GPU composites, fp32 GPU activations declared | 9.17 GB (9,168,551,936 bytes) | a461e78574278f178d348b8fb83a9e4a8cb978728ce25a9dfcefe87e096061c6 |
β Ornith-1.5-9B_int8.litertlm (recommended for the CPU on LiteRT-LM 0.19.x) |
int8 dynamic on every linear layer, int8 embedding; the convs, the delta rule and the 48 GatedDeltaNet decay/gate projections (in_proj_a / in_proj_b) float; fp32 GPU activations declared |
9.20 GB (9,200,910,336 bytes) | 04d420cb65fb3a5c34ea7dc23543eadf724b74cd714871d26a8ede510a24665f |
Ornith-1.5-9B_mixed_int4.litertlm |
Mixed INT4: int4 blockwise-32 (min-max) on the linear layers, int8 on the lm_head and the embedding, the same 48 projections float; fp32 GPU activations declared | 6.06 GB (6,060,425,216 bytes) | e6e1117b59b41f911d85b476019d2275463f60c55192370b4015118d377ad7f9 |
2026-11-16: added Ornith-1.5-9B_mixed_int4_gpu_composite_v0190.litertlm (sha256 fd8c56d1β¦, 6,024,806,400 B) and Ornith-1.5-9B_int8_gpu_composite_v0190.litertlm (sha256 a461e785β¦, 9,168,551,936 B), exports of the same checkpoint with litert-torch's GPU composites, made for the GPU on LiteRT-LM 0.19.x. Ornith-1.5-9B_int8.litertlm and Ornith-1.5-9B_mixed_int4.litertlm are unchanged; elsewhere on this card "this file" and "both files" mean those two unless an entry names a new file. Mac (Apple M4 Max GPU, litert-lm 0.19.2, 1,024 prefill and 256 decode tokens): the new Mixed INT4 file prefilled at 764.44 tok/s and decoded at 56.57 tok/s, and Ornith-1.5-9B_mixed_int4.litertlm, run alternately with it, at 599.28 and 45.45 tok/s; the new int8 file at 794.00 and 49.86 tok/s, and Ornith-1.5-9B_int8.litertlm at 613.87 and 41.15 tok/s (Performance, the 2026-11-16 Mac table). Speed still being tuned (updates follow). Pixel 11 Pro (GPU, the LiteRT-LM v0.19.0 Android CLI): the new Mixed INT4 file builds its GPU engine and answers. It got the 8-question check 8/8. Its reply to the 25-item prompt has 25 different items and is the same text as on the Mac GPU. It gave the right product to the six multiplication questions in 6 of 6 runs, each ending by itself. The new int8 file gave no reply to its first prompt there (Performance). Galaxy S26: neither new file was run. On the Pixel 11 Pro the new Mixed INT4 file's run of the 25-item prompt took 8,766,140 KiB of the phone's free memory, and our Galaxy S26 had at most 7,984,744 KiB free at the start of its Qwen3.5-4B runs on 2026-11-14, so we started neither new file there. Runtime: on a Mac (Apple M4 Max) both new files answer the card's question on the GPU of LiteRT-LM 0.19.0, 0.19.1 and 0.19.2. On 0.18.1 both reply !!!β¦ on the GPU (some of their WebGPU shaders fail to compile), and the new Mixed INT4 file replies with nonsense on the CPU too (the new int8 file was not run on 0.18.1's CPU). Their odml.short_conv_step nodes are channels-first; LiteRT #11565 makes the GPU accept channels-last only, and the GPU of the litert-lm-nightly 0.20.0.dev20261112 refuses both new files at engine creation (ShortConvStep supports only a channels-last conv_state [1, 3, H], but got [1, 8192, 3]; the CLI prints An error occurred and exits 0), while that nightly's CPU answers with the new Mixed INT4 file (the new int8 file was not run on it). LiteRT-LM 0.20.0 from PyPI also refuses both new files at engine creation on a Mac GPU (2026-11-26), and its CLI prints An error occurred and exits 0. On the GPU of 0.20.0, use the _v0200 file of the same quantization (2026-11-25 entry). CPU: use Ornith-1.5-9B_int8.litertlm. Both new files also pass the 8-question check on the Mac CPU of 0.19.2, but their CPU speed was not measured. Their LLM metadata is that of Ornith-1.5-9B_int8.litertlm (chat template, stop token, model type) plus min_runtime_version: "0.19.0" and pad_token <|endoftext|>: their graph masks padded prefill slots by tokens != 248044, and without a pad_token the runtime fills those slots with id 0. Tool calls were not run on them. Not run: iPhone, Pixel 8a, Galaxy S26. litertlm_manifest.json describes the new files under the other two, not as variants: the manifest readers in hf-to-litertlm (TypeScript and Dart) choose a variant without reading the runtime version, so as variants these files could be chosen for a runtime other than 0.19.x.
2026-11-25: added Ornith-1.5-9B_mixed_int4_gpu_composite_v0200.litertlm (sha256 229d569bβ¦, 6,025,003,008 B) and Ornith-1.5-9B_int8_gpu_composite_v0200.litertlm (sha256 4ad578edβ¦, 9,168,748,544 B), made for the GPU on LiteRT-LM 0.20.0. Each is the 2026-11-16 file of the same quantization with its odml.short_conv_step nodes made channels-last; its quantized weights, LLM metadata, executor metadata and tokenizer section are byte-identical to that file's. Mac GPU, litert-lm 0.20.0: both files got the 8-question check 8/8. On GSM8K, with the questions, prompt and 512-token cap of the 2026-11-16 item under Correctness, each new file got right the same questions as the 2026-11-16 file of the same quantization did on litert-lm 0.19.2 (90 for Mixed INT4, 95 for int8). Asked one question on the GPU of litert-lm 0.19.2 (PyPI, Mac), both new files printed garbled text that is not an answer, with no error and exit status 0. On the GPU of 0.19.x, use the 2026-11-16 file of the same quantization. The _v0200 files were not run on a phone.
On GSM8K (thinking off, 2,048 output tokens, table in Accuracy) the int8 file scored 95 and the Mixed INT4 file 92 on the Mac GPU against 94 for the bf16 model in transformers. The Mixed INT4 file is 34 % smaller. Time for a 1024-token prefill plus 256 decoded tokens at context 2048, from the rates in Performance:
| Seconds | Mac M4 Max | Galaxy S26 | Pixel 8a |
|---|---|---|---|
| Mixed INT4 GPU | 7.28 | GPU engine did not build for the earlier file (Performance) | not run (Performance) |
| int8 GPU | 8.15 | not run (Performance) | not run (Performance) |
| int8 CPU | 21.46 | not run (Performance) | not run (Performance) |
| Mixed INT4 CPU | 32.37 | not run (Performance) | not run (Performance) |
On the Mac the Mixed INT4 file is the faster file on the GPU (10.7 % less time, decode 45.6 vs 39.6 tok/s at about the same prefill rate) and the int8 file on the CPU (the int4 file's blockwise prefill runs at 68 tok/s against 234). Not measured on iOS.
Correctness
8-question check on the Mac M4 Max (the questions with "Answer briefly." appended, --temperature 0, one litert-lm run process each): int8 8/8 on CPU and GPU, Mixed INT4 8/8 on CPU and GPU; the bf16 model in transformers 8/8, and the int8 file's eight GPU answers equal its eight word for word. The int8 weights with the runtime's default fp16 GPU activations answered 0 of 8 (every reply a run of !), which is why both files declare fp32 activations.
All 7 signatures of both files are fully delegated on the Mac GPU (34,373 / 25,157 / 22,469 / 22,589 / 22,589 / 2,866 / 2,920 nodes, one partition each, no validation error). No start token: LiteRT-LM adds nothing before the template's text, and at every swept prompt length its prefill count equals the transformers token count of the render. A three-turn conversation ("Give me one word that means 'very big'." / "Use it in a short sentence." / "Now make that sentence a question.") on both files and both backends chose "Huge" and kept it across the turns with no chat marker in the text, as the bf16 model did (its later sentences differ from the files' in wording). A prompt-length check (17 prompt lengths between 21 and 60 tokens, a fresh engine each): the expected word every time on the int8 file's GPU and on the Mixed INT4 file's CPU and GPU, 51 of 51; on the int8 file's CPU 15 of 17: at 23 and 24 tokens it declined politely ("I appreciate the playful request, but I can't comply β¦"), the same reply in three fresh processes each, where the bf16 model answered at all 17 lengths with that refusal a close second at those two (a logit margin of 1.6 and 1.1). This is consistent with the CPU backend's run-time int8 quantization of each int8 layer's input (the path the 2026-10-13 note on the Qwen3.5-4B card describes); the CPU logits themselves were not read, so the cause is not measured.
Multi-step arithmetic on the Mac CPU (six multiplication questions, three fresh processes each, thinking off, 400-token cap): the right product in 18 of 18 runs per file, every run ending by itself with no repeated line; on the Mac GPU 6 of 6 per file. With the thinking block opened by a raw <think> prefill (3 runs, CPU) both files closed the thought and answered right in 3 of 3, none at the cap. Long-output check (four prompts, greedy and the runtime's default sampling, up to 512 tokens, Mac CPU): no reply of either file looped; no int8 reply reached the cap, 3 of 8 Mixed INT4 replies did (answers longer than 512 tokens, cut mid-sentence, none repeating). Greedy CPU runs can still differ between processes (the same question gave a 192-character answer in two processes and a 291-character one in a third, all right).
The 2026-11-16 files (Ornith-1.5-9B_mixed_int4_gpu_composite_v0190.litertlm and Ornith-1.5-9B_int8_gpu_composite_v0190.litertlm; litert-lm 0.19.2 on an Apple M4 Max unless an entry says otherwise; one fresh process per run):
- The 8-question check: 8/8 on the GPU and on the CPU, both new files.
- Three turns ("My name is Kenji." / "What is 12 plus 30?" / "What is my name?"): the name comes back on the GPU and on the CPU, both new files.
- The 25-item prompt (1,359 tokens with the chat template: 18 filler paragraphs, then a request for 25 distinct things on-device AI lets a phone do that a cloud model cannot, each with two sentences): 25 items with 25 different titles from both new files on the GPU, each the same reply, byte for byte, as that of the earlier file of the same quantization on the same runtime. On the CPU both int8 files gave 25 items with 25 different titles (one run each). The two Mixed INT4 files were run four times each, and each of their eight replies differs from the other seven:
Ornith-1.5-9B_mixed_int4.litertlmgave 25 different titles three times and repeated one earlier title once; the new Mixed INT4 file gave 25 different titles twice, repeated five earlier titles once, and once went on past 25 items until it reached the 4,096-token limit. - GSM8K, the first 100 test questions (each question followed by "Solve this step by step. After your reasoning, write the final answer on its own line in the exact form: #### ", the files' template, greedy, at most 512 output tokens, the Python API of litert-lm 0.19.2 on the Mac GPU, one fresh process per question; the Accuracy section's run allowed 2,048 output tokens, so these numbers do not compare with its numbers): the new Mixed INT4 file 90/100 against 89/100 for
Ornith-1.5-9B_mixed_int4.litertlm(89 questions right in both, 1 right only in the new file, and 96 of the 100 replies the same text); the new int8 file 95/100, asOrnith-1.5-9B_int8.litertlm(the same 95 questions right, and all 100 replies the same text). 3 replies of each Mixed INT4 file and none of the int8 files have no final-answer line. - Pixel 11 Pro GPU (the LiteRT-LM v0.19.0 Android CLI
litert_lm_main, one process per prompt, a 420-s limit, 900 s for the 25-item prompt): the new Mixed INT4 file answered the 8-question check 8/8; the 25-item prompt with 25 items and 25 different titles, the same text as on the Mac GPU; and the six multiplication questions (17 Γ 23, 23 Γ 17, 12 Γ 34, 9 Γ 87, 45 Γ 12, 36 Γ 25; no output cap) with the right product in 6 of 6 runs, each ending by itself (each question asked once). The new int8 file did not get to answer on that phone (the 2026-11-16 entry). - The q / k norm weights of the 8 attention layers were checked for one known export mistake, the GPU composites' partial-rotary permutation applied twice: in each of the 7 signatures of both new files, all 16 hold it once, as the composites expect (read from the files' bytes and compared with the checkpoint).
Accuracy
GSM8K: test questions 0β99 with a step-by-step instruction and a final #### <number> line, the files' template (thinking off), greedy, at most 2,048 output tokens, a 4096-token KV budget, a fresh process per question (litert-lm 0.18.0 Python API, Mac GPU). The bf16 reference is transformers 5.14.1 on MPS with Ornith's template at enable_thinking=False (byte-identical to the files' render), the same prompts, greedy, 2,048 new tokens. Every reply of every run had its final line and ended by itself. IFEval was not run; Ornith's own coding and agentic benchmarks were not run here.
| Configuration | GSM8K | wrong questions |
|---|---|---|
| bf16 reference (transformers, MPS) | 94 / 100 | 12, 37, 41, 43, 87, 89 |
| int8, litert-lm Mac GPU | 95 / 100 | 3, 12, 26, 62, 89 |
| Mixed INT4, litert-lm Mac GPU | 92 / 100 | 3, 7, 12, 40, 62, 85, 87, 89 |
Question by question, the int8 file agrees with bf16 on 93 of 100 (right in both 91, right only in bf16 3, right only in the int8 file 4); the Mixed INT4 file agrees on 92 (right in both 89, right only in bf16 5, right only in the int4 file 3). The files declare fp32 activations for the GPU: with the runtime's fp16 default the int8 file answered none of the 8 check questions, for 4.5 % less time.
Usage
From an empty directory (uvx comes with uv; the first run downloads the file):
# GPU, LiteRT-LM 0.20.0
uvx --from litert-lm==0.20.0 litert-lm run --from-huggingface-repo=litert-community/Ornith-1.5-9B Ornith-1.5-9B_mixed_int4_gpu_composite_v0200.litertlm --backend gpu --cache no --prompt "Extract the dates from: The meeting moved from May 3 to May 17."
# CPU, LiteRT-LM 0.19.x
uvx --from litert-lm==0.19.2 litert-lm run --from-huggingface-repo=litert-community/Ornith-1.5-9B Ornith-1.5-9B_int8.litertlm --backend cpu --prompt "Extract the dates from: The meeting moved from May 3 to May 17."
Run this way on a Mac (Apple M4 Max; the GPU command on 2026-11-28, the CPU command on 2026-11-16), each command downloaded its file and listed the two dates ("The dates in the sentence are: β¦ May 3 β¦ May 17").
If run stops right after the download with no error message from the CLI (a bus error; exit status 138 on a Mac) or with an error log that contains too large for file size, the downloaded file may be incomplete. The litert-lm CLI (tested on 0.19.2 and litert-lm-nightly 0.20.0.dev20261112; 0.14.0 to 0.19.1 and 0.20.0 have the same download code) can keep an incomplete download in ~/.litert-lm/cache/huggingface/litert-community/Ornith-1.5-9B/ and uses it again on later runs without checking its size. Delete the file from that directory and run the command again.
With a downloaded file:
litert-lm run ./Ornith-1.5-9B_mixed_int4_gpu_composite_v0200.litertlm --backend gpu --cache no --prompt "Extract the dates from: The meeting moved from May 3 to May 17."
litert-lm run ./Ornith-1.5-9B_int8.litertlm --prompt "Extract the dates from: The meeting moved from May 3 to May 17."
litert-lm run ./Ornith-1.5-9B_int8.litertlm --prompt "Extract the dates from: The meeting moved from May 3 to May 17." --backend gpu --cache no
litert-lm run ./Ornith-1.5-9B_mixed_int4.litertlm --prompt "Extract the dates from: The meeting moved from May 3 to May 17."
litert-lm run ./Ornith-1.5-9B_mixed_int4.litertlm --prompt "Extract the dates from: The meeting moved from May 3 to May 17." --backend gpu --cache no
litert-lm benchmark ./Ornith-1.5-9B_int8.litertlm -p 1024 -d 256 --max-num-tokens 2048 --runs 3 --cache no --backend cpu
Without --backend, run uses the CPU; without --cache, it writes a compiled-weights cache next to the model on its first CPU run. The .litertlm file sets no sampler, so Ornith's recommended sampling is applied only when you pass it (run passes a sampler only when you give --top-k, --top-p, --temperature or --seed). For Android, see android-gpu.md.
The chat template (701 bytes) writes ChatML turns, reads message content as a string or as a list of text parts, and writes the empty think block into every assistant turn and the generation prompt; it has no tools branch, no thinking switch and no default system message. The runtime's template engine renders it byte for byte as transformers renders Ornith's chat_template.jinja (the file transformers loads; Ornith's tokenizer config embeds a second variant that differs in where it writes past think blocks) with enable_thinking=False in six kinds of conversation (a single question, with a system message, two and three turns, with history); the two kinds with tools differ: this template renders no tool list, and a tool message becomes a plain tool turn. One stop token, <|im_end|> (id 248046): Ornith's repo has no generation config, and its model config lists that one end token (the Qwen3.5-9B and Ornith-1.0-9B conversions also stop on <|endoftext|>, id 248044). The tokenizer section is the tokenizer.json of ornith-ai/Ornith-1.5-9B byte for byte (Conversion notes).
Tool calling: a tool passed through the API changes nothing in the prompt (this template renders no tool list), and the model answers in text without a call. With Ornith's own # Tools block (its template's text) as the system message, the model wrote the call in Qwen3.5's XML form as text, <tool_call><function=get_weather><parameter=city>Paris β¦, which the runtime does not parse into a tool call and does not run (the .litertlm file's generic model type has no parser for this form; LiteRT-LM issue 3927). A tool result sent back as a tool message was not used: the reply repeated the turn before word for word (Ornith's template wraps a tool result in a user turn as <tool_response>, which this template does not write). An app that needs Ornith's tool calls parses that text itself and feeds the result back in Ornith's form.
- 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 (the open report). On
Ornith-1.5-9B_int8.litertlmandOrnith-1.5-9B_mixed_int4.litertlmthe test (three questions in a pirate-persona conversation, then in a conversation told to answer in one word, on the same Engine and on a fresh Engine; CPU, greedy, 3 runs) gave the same answers on both Engines, where the Qwen3.5-4B conversion's Mixed INT4 file showed the carry-over; the state is there all the same, so give each conversation its own Engine. 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. - GPU program cache (not checked on these files). On the Qwen3.5 0.8B and 2B files and the Qwen3.5-4B Mixed INT4 file, every GPU engine creation that cannot read its large programs back from the program cache appends the rebuilt programs to the end of the cache file and never reclaims the old bytes, +319 to +952 MB per creation across a Mac, a Galaxy S26 and an iPhone 18 Pro (LiteRT-LM #4178); with one Engine per conversation that is once per conversation. Whether these files' cache file grows the same way was not checked.
- Replies that take over 10 minutes. On litert-lm 0.18.x and 0.19.0, a blocking
send_messagethat is still generating after 10 minutes fails withDEADLINE_EXCEEDED(a fixed timeout with no setting), and the generation it leaves running can crash the process. For long replies on a slow backend (long thinking in particular), lowermax_output_tokensor use the streamingsend_message_async, which has no such limit.
Performance
Mac Studio M4 Max, litert-lm 0.18.0: the benchmark command above with --backend cpu or gpu (1024-token prefill, 256-token decode, context 2048), one warmup, then the mean of 3 iterations, two processes per file and backend (each with no other measurement or export running on the Mac; the CPU ones one at a time, with no other heavy job running), the median of the two; GPU is WebGPU on Metal. Init is the CLI's printed init time of the first iteration; in litert-lm 0.18.0 it sums overlapping init phases (LiteRT-LM #4057) and reads about twice the engine build measured from the log's timestamps (on two other files: a 9B Mixed INT4 GPU run printed 89.2 s for a 44.5 s build, a granite-4.1-8b int4 GPU run 7.38 s for 3.66 s; the Python API built the 9B GPU engines in 43β45 s).
| Mac M4 Max | Prefill 1024 (tok/s) | Decode 256 (tok/s) | TTFT (s) | Init (s) |
|---|---|---|---|---|
| int8 GPU | 608.97 | 39.57 | 1.707 | 89.74 |
| Mixed INT4 GPU | 615.54 | 45.58 | 1.686 | 89.28 |
| int8 CPU | 234.14 | 14.98 | 4.443 | 91.70 |
| Mixed INT4 CPU | 68.06 | 14.78 | 15.122 | 50.87 |
Memory during the benchmark on the CPU (--cache no): int8 50.5 GB, Mixed INT4 30.1 GB; during a GPU run: 9.7 GB and 8.4 GB.
2026-11-16, Mac GPU (Apple M4 Max, litert-lm 0.19.2 from PyPI): each new file beside the earlier file of the same quantization, litert-lm benchmark FILE --backend gpu -p 1024 -d 256 --max-num-tokens 4096 --runs 3 --cache no, one process per launch, eight launches per pair in the order earlier, new, new, earlier, earlier, new, new, earlier, back to back, with the two files of the pair read into memory first; each row is the median of its file's launches. The row of Ornith-1.5-9B_int8.litertlm is the median of three of its four launches. Init is the CLI's printed init time; on litert-lm 0.18.0 that number adds overlapping init phases (the paragraph above), and whether 0.19.2 does the same was not checked, so compare the rows with each other only. Peak memory is the largest of the readings of the process's footprint in top, taken about every 5 s; top shows whole GiB from 10 GiB up.
| Mac M4 Max GPU, litert-lm 0.19.2 | Prefill 1024 (tok/s) | Decode 256 (tok/s) | TTFT (s) | Init (s) | Peak memory |
|---|---|---|---|---|---|
Ornith-1.5-9B_mixed_int4_gpu_composite_v0190.litertlm |
764.44 | 56.57 | 1.36 | 7.47 | 8.4 GiB |
Ornith-1.5-9B_mixed_int4.litertlm |
599.28 | 45.45 | 1.73 | 63.13 | 11 GiB |
Ornith-1.5-9B_int8_gpu_composite_v0190.litertlm |
794.00 | 49.86 | 1.31 | 5.50 | 10 GiB |
Ornith-1.5-9B_int8.litertlm (3 launches) |
613.87 | 41.15 | 1.69 | 60.03 | 13 GiB |
2026-11-16, Pixel 11 Pro GPU (MemTotal 16,030,796 KiB; the LiteRT-LM v0.19.0 Android CLI litert_lm_main, one process per prompt; these are single runs, not a benchmark): the new Mixed INT4 file built its GPU engine and answered every prompt of its Pixel 11 Pro entry under Correctness (the 8-question check, the 25-item prompt and the six multiplication questions). During the 25-item prompt the phone's free memory (MemAvailable) went from 10,213,004 KiB to 1,446,864 KiB at its lowest, and the process's peak (VmHWM) was 5,371,804 KiB. That prompt was read at 49.74 tok/s and its 25-item answer decoded at 4.12 tok/s, with a printed init of 68.4 s; the short prompts decoded at 2.44 to 4.67 tok/s, with printed inits of 49.7 to 105.4 s. The new int8 file gave no reply to its first prompt, the 25-item prompt: after 185 s no reply had come, and the phone had 563,468 KiB free (10,446,796 KiB once the file was on it). On 2026-11-14 the int8 GPU-composite file of the Qwen3.5-9B conversion, made by the same steps and recipes from the Qwen3.5-9B checkpoint, answered this prompt on the same phone, which had 11,594,004 KiB free once that file was on it; during the prompt the free memory went from 11,530,344 KiB to 1,476,856 KiB at its lowest. Neither Ornith-1.5-9B_mixed_int4.litertlm nor Ornith-1.5-9B_int8.litertlm was run on this phone.
Phones (Android 16, the prebuilt litert_lm_advanced_main of 2026-09-18 from LiteRT-LM's binary bucket):
- Galaxy S26 (SM-S942Q, Qualcomm SM8850, Adreno 840, MemTotal 11,389,756 KiB): on a Galaxy S26 (SM-S942U1, MemTotal 11,389,764 KiB; 2026-10-16) the GPU engine did not build in a benchmark run of the earlier
Ornith-1.5-9B_mixed_int4.litertlm: the delegate took prefill_1024, prefill_256 and prefill_64, the runtime log ended with an allocator failure (Can't populate more pages for size class 96), and the low-memory killer logged 348 kills. Our own phone was not tried with these files (a 7.9 GB LiteRT-LM process has already restarted its framework once). The int8 file was not started on the phone's GPU: after another 8B-class int8 file restarted this phone during its GPU engine warm-up on 2026-10-14, no 8B-class int8 engine is started on it. The CPU was not run on this phone. - Pixel 8a (Tensor G3, Mali-G715, MemTotal 7,754,700 KiB): not run, and GPU execution on a Mali phone is not verified for these files.
- Not run on an NPU: these dynamic-range int8 and blockwise int4 graphs have no HTP path (the NPU path takes static-range or float graphs; the GatedDeltaNet layers' ops come on top).
Conversion notes
- Source and tools: ornith-ai/Ornith-1.5-9B at revision 489cb979 (every file checked against the Hub's record); litert-torch at commit 115a1360 with the Qwen3.5 hybrid patch of hf-to-litertlm (the 2026-08-21 version: the GatedDeltaNet cache layers, the rank-4 chunk kernel and head interleave of the 4B's notes), transformers 5.14.1, torch 2.12.1, ai-edge-quantizer 0.8.0; packed and checked with litert-lm 0.18.0.
qwen35_work/convert_qwen35_9b.shin hf-to-litertlm is the one command (the same script as for the Qwen3.5-9B and Ornith-1.0-9B files, run with the id and revision of ornith-ai/Ornith-1.5-9B); with the tokenizer step below, its steps built the earlier versions ofOrnith-1.5-9B_int8.litertlmandOrnith-1.5-9B_mixed_int4.litertlm. - Tokenizer section: the export packs the tokenizer as transformers writes it for the Qwen2Tokenizer class, whose pre-tokenizer has no
\p{M}class, while thetokenizer.jsonof ornith-ai/Ornith-1.5-9B has one; the two give different ids on texts with combining marks (Hindi 49 vs 36 tokens, Thai 24 vs 12, Tamil 29 vs 16, Arabic with harakat 30 vs 29) and the same ids on English, code, CJK and every prompt of the checks here. After the script, the tokenizer sections ofOrnith-1.5-9B_int8.litertlmandOrnith-1.5-9B_mixed_int4.litertlmwere replaced with thattokenizer.json(a script in hf-to-litertlm), and the runtime's tokenization equals thetokenizerslibrary's on 174 of 174 test strings per file on litert-lm 0.18.0. - Export: the text decoder through litert-torch's lightweight conversion (constants of 1e8 bytes and more stay lazy), 6 prefill signatures (1024, 256, 64, 16, 4, 1) plus decode over a 4096-position KV budget, 64 state buffers (8 KV pairs and 48 linear-attention states); 17 minutes and a 49.4 GB peak on a 128 GiB Mac, each quantize step 35β37 GB. Run one export at a time.
- Quantization after the export: int8 = dynamic int8 on every FULLY_CONNECTED plus an int8 embedding, with the 48 decay/gate projections of the 24 linear-attention layers kept float (the CPU backend quantizes each int8 layer's input at run time, and those heads do not take that noise: the 2026-10-13 note on the Qwen3.5-4B card); Mixed INT4 = int4 blockwise-32 min-max on the linear layers, the lm_head and the embedding int8, the same 48 float. The int4 file's 216,006,656 block scales are all normal floats (none zero or subnormal), so no scale floor was needed.
- Metadata: the thinking-off template above (the only field the metadata step changed, every other section byte-identical); no start token; stop id 248046;
generic_model; fp32 GPU activations declared; max_num_tokens 4096. - The 2026-11-16 files do not use the hybrid patch above.
litert-torchat65aafa4(upstream's own Qwen3.5 graph; the last commit whosegated_delta_updatetakes the 6 inputs LiteRT-LM 0.19.x accepts) with the Qwen3.5 model-file change of upstream57c2e47(the prefill signatures compute the logits of the last position only),--apply_gpu_composites=True, the prefill signatures and the 4,096-token cache of the files above, from the same checkpoint revision (489cb979). One float export is quantized twice (int8, and Mixed INT4 with the int4 block scales floored at 2^-14; none of its 216,006,656 scales was below that), then each file gets the LLM metadata described in the 2026-11-16 entry, thetokenizer.jsonof ornith-ai/Ornith-1.5-9B byte for byte, and fp32 activations declared. These are the steps and recipes of the 2026-11-14 files of the Qwen3.5-9B conversion.
Known runtime issues
Measurements of Ornith-1.5-9B_int8.litertlm and Ornith-1.5-9B_mixed_int4.litertlm on this page made before 2026-11-09 used earlier versions of these files, not the current ones.
Android GPU with LiteRT-LM v0.18.0 and v0.18.1. Ornith-1.5-9B_int8.litertlm and Ornith-1.5-9B_mixed_int4.litertlm keep some of their 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).
Mac GPU, long outputs: not verified on these files. On a Qwen3.5-4B build (int8 and Mixed INT4) on an Apple M4 Max, the default GPU path, where the sampler also writes the next decode step's inputs (the log says Sampler will handle decode input tensors.), gave a different greedy reply on each run and emitted tokens the model itself scores at a log probability of β16 to β23 (litert_lm_advanced_main built from LiteRT-LM main at dab2e708); with litert-lm 0.19.0 from PyPI, which always takes this path, 16 of 22 long code replies failed node --check. With --sampler_handles_input=false, or --sampler_backend=cpu, on that C++ CLI the reply was the same on every run and 0 of 7 failed. The Python, Swift, Kotlin and C APIs of 0.19.0 have no setting for this. The GSM8K rows above are capped at 2,048 output tokens.
On LiteRT-LM 0.18.1 and 0.19.1, once a message fails because it does not fit in the context window, every later message in that conversation fails as well (the next one with Task failed with state: 7). Start a new conversation after such an error.
License and changes
Ornith-1.5-9B is released under the MIT License (the repo's metadata; the repo carries no LICENSE file, its metadata's license link points to a page that does not exist, and its README has no license sentence). The base model, Qwen/Qwen3.5-9B, is Apache-2.0. Changes from the original work: the text decoder of the multimodal checkpoint exported (the vision tower and the MTP head not loaded), weights converted from safetensors bf16 to LiteRT flatbuffers and quantized as described above with the 48 decay/gate projections float; the chat template replaced by the thinking-off template (byte-identical renders to Ornith's enable_thinking=False form in the kinds of conversation without tools); the tokenizer.json of ornith-ai/Ornith-1.5-9B as the tokenizer section; stop id 248046, fp32 GPU activations and a 4096-token KV budget declared; the 2026-11-16 files exported again from the same checkpoint with litert-torch's GPU composites (the prefill logits of the last position only) and quantized as in the file table above (the recipes of the 2026-11-14 Qwen3.5-9B files), with pad_token and min_runtime_version added to the metadata; the 2026-11-25 files made from the 2026-11-16 files with their odml.short_conv_step nodes made channels-last. This repository is a community conversion and is not affiliated with Ornith (the ornith-ai organization) or the Ornith team.
- Downloads last month
- 948
Model tree for litert-community/Ornith-1.5-9B
Base model
ornith-ai/Ornith-1.5-9B