Instructions to use mlboydaisuke/Falcon3-3B-Instruct-LiteRT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT-LM
How to use mlboydaisuke/Falcon3-3B-Instruct-LiteRT 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 litert-lm run \ --from-huggingface-repo=mlboydaisuke/Falcon3-3B-Instruct-LiteRT \ --prompt="Write me a poem"
- LiteRT
How to use mlboydaisuke/Falcon3-3B-Instruct-LiteRT 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
Card: blockwise-128 + cache2048 specs (iPhone ~27 tok/s, GSM8K 77%)
Browse files
README.md
CHANGED
|
@@ -25,12 +25,12 @@ Text-only conversion (the Falcon3 decoder; no vision/audio towers).
|
|
| 25 |
|
| 26 |
| | |
|
| 27 |
|---|---|
|
| 28 |
-
| **File** | `model.litertlm` (~1.
|
| 29 |
-
| **Quantization** | int4 weights — **blockwise (block
|
| 30 |
| **Compute** | integer |
|
| 31 |
-
| **Context (KV cache)** |
|
| 32 |
| **Base model** | tiiuae/Falcon3-3B-Instruct |
|
| 33 |
-
| **Decode speed** | ~
|
| 34 |
|
| 35 |
## Usage
|
| 36 |
|
|
@@ -58,7 +58,7 @@ known-good 4-bit control:
|
|
| 58 |
|---|---|
|
| 59 |
| bf16 (reference) | 75% |
|
| 60 |
| MLX 4-bit (control) | 76% |
|
| 61 |
-
| **This model — LiteRT int4** | **
|
| 62 |
|
| 63 |
LiteRT int4 is fully at parity — it matches or slightly exceeds both the 4-bit
|
| 64 |
control and bf16 here (the small spread is sampling noise at n=100). This is a
|
|
@@ -68,8 +68,8 @@ direct-answering instruct model (no `<think>` block) and terminates cleanly at
|
|
| 68 |
## Conversion
|
| 69 |
|
| 70 |
Converted with [`litert-torch`](https://github.com/google-ai-edge/litert) using a
|
| 71 |
-
**blockwise int4** recipe (INT4 weights, block size
|
| 72 |
-
kept at INT8, KV cache
|
| 73 |
standard `LlamaForCausalLM` architecture, so it rides the existing converter and
|
| 74 |
runtime with no custom code. Blockwise (not channelwise) int4 is what preserves
|
| 75 |
reasoning accuracy.
|
|
|
|
| 25 |
|
| 26 |
| | |
|
| 27 |
|---|---|
|
| 28 |
+
| **File** | `model.litertlm` (~1.74 GB) |
|
| 29 |
+
| **Quantization** | int4 weights — **blockwise (block 128)**, symmetric; embeddings INT8 |
|
| 30 |
| **Compute** | integer |
|
| 31 |
+
| **Context (KV cache)** | 2048 |
|
| 32 |
| **Base model** | tiiuae/Falcon3-3B-Instruct |
|
| 33 |
+
| **Decode speed** | ~27 tok/s (iPhone 17 Pro, Metal GPU) · ~89 tok/s (Mac M4 Max, LiteRT-LM, greedy) |
|
| 34 |
|
| 35 |
## Usage
|
| 36 |
|
|
|
|
| 58 |
|---|---|
|
| 59 |
| bf16 (reference) | 75% |
|
| 60 |
| MLX 4-bit (control) | 76% |
|
| 61 |
+
| **This model — LiteRT int4** | **77%** |
|
| 62 |
|
| 63 |
LiteRT int4 is fully at parity — it matches or slightly exceeds both the 4-bit
|
| 64 |
control and bf16 here (the small spread is sampling noise at n=100). This is a
|
|
|
|
| 68 |
## Conversion
|
| 69 |
|
| 70 |
Converted with [`litert-torch`](https://github.com/google-ai-edge/litert) using a
|
| 71 |
+
**blockwise int4** recipe (INT4 weights, block size 128, symmetric) with embeddings
|
| 72 |
+
kept at INT8, KV cache 2048, and Falcon3's native chat template. Falcon3-3B is a
|
| 73 |
standard `LlamaForCausalLM` architecture, so it rides the existing converter and
|
| 74 |
runtime with no custom code. Blockwise (not channelwise) int4 is what preserves
|
| 75 |
reasoning accuracy.
|