Instructions to use e2ec-tech/XiFan-Hapife-lfm2.5-1.2b-base-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT-LM
How to use e2ec-tech/XiFan-Hapife-lfm2.5-1.2b-base-lora 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=e2ec-tech/XiFan-Hapife-lfm2.5-1.2b-base-lora \ --prompt="Write me a poem"
- Notebooks
- Google Colab
- Kaggle
XiFan-Hapife · LFM2.5-1.2B base with runtime LoRA inputs
Model files for the on-device features of the XiFan Family Assistant Android app (XiFan-Hapife). The app downloads them at a pinned revision and verifies size and SHA-256 before use.
This repository contains derivative works of LiquidAI/LFM2.5-1.2B-Instruct and is distributed under the LFM Open License v1.0 (see LICENSE). It is not an official Liquid AI release.
Files
| File | Size (bytes) | SHA-256 | What it is |
|---|---|---|---|
lfm-base.litertlm |
662,274,048 | 37e48cb72c4a434850dd400efc451a15a9b1361ace503839338d1522122d9396 |
LFM2.5-1.2B-Instruct exported to the LiteRT-LM format with extra inputs for runtime LoRA weights. Without a LoRA file it behaves as the base chat model. |
genapp-select-lfm.tflite |
5,177,344 | bbad29d9905bcd484615f2b5a66a3c2bbb56ab7f2d9ddefb3a6398b1f342aea5 |
LoRA weights (attention layers only, rank 16) for one narrow task: choosing a built-in read-only page template and its parameters from one sentence. Only works together with lfm-base.litertlm above. |
Changes made to the original model
As required by section 4 of the LFM Open License v1.0, the modifications are:
lfm-base.litertlm— the original weights were not retrained. The model was re-exported to.litertlm(dynamic-range quantization, 4-bit weights for the transformer blocks) with a patched exporter so that the attention layers accept LoRA weights at run time. The file is not byte-identical to any official export.genapp-select-lfm.tflite— new LoRA weights trained by us on top of the original model with PEFT (rank 8 during training, padded to rank 16 for the runtime; attention projections only; 300 steps). They are stored separately and are not merged into the base file.
Intended use
- Runtime: LiteRT-LM 0.19.x on Android (CPU).
lfm-base.litertlmalone: offline chat fallback inside the app.lfm-base.litertlm+genapp-select-lfm.tflite: the model outputs a small JSON object with four enumerated fields (template,period,category,cuisine). The app validates and repairs that output and never executes or displays free text from it.
It is not intended for anything else. The LoRA file is useless outside this schema.
Training data
The LoRA weights were trained only on synthetic sentences generated from phrase templates written for this project, in Chinese, Japanese and English. No user data, chat logs or personal information were used.
Evaluation
On 90 held-out synthetic requests that share no phrasing with the training set:
| Setup | Correct template and parameters |
|---|---|
| Desktop, LiteRT-LM 0.19.2 | 79 / 90 |
| Xiaomi 11T (8 GB), LiteRT-LM 0.19.1, CPU | 78 / 90, median 7.0 s per request |
All 90 outputs were valid JSON. The numbers describe this test set only.
Limitations
- The selection is wrong roughly one time in eight on the test set; the app lets the user switch to a similar template.
- Chat quality of the re-exported base has only been spot-checked, not fully evaluated.
- Behaviour with a damaged LoRA file, or with a LoRA file paired with a different base, has not been tested; the app refuses such combinations by checksum.
- Tested on one phone model only.
License
LFM Open License v1.0 — full text in LICENSE. In particular:
- Copyright and attribution notices of the original model are retained; the original model is © Liquid AI, Inc.
- The commercial-use threshold in section 5 of the license (entities with annual revenue of USD 10 million or more) applies to these derivative works as well.
This summary is not legal advice; the LICENSE file governs.
- Downloads last month
- 53
Model tree for e2ec-tech/XiFan-Hapife-lfm2.5-1.2b-base-lora
Base model
LiquidAI/LFM2.5-1.2B-Base