Instructions to use mlboydaisuke/TwIL-LM3-LiteRT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT-LM
How to use mlboydaisuke/TwIL-LM3-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 # 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=mlboydaisuke/TwIL-LM3-LiteRT \ --prompt="Write me a poem"
- LiteRT
How to use mlboydaisuke/TwIL-LM3-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
Thinking cannot be switched off, and the think tags come back inside the text: litert-lm 0.18.0 (measured 2026-10-13)
Browse files
README.md
CHANGED
|
@@ -32,6 +32,8 @@ base_model_relation: quantized
|
|
| 32 |
|
| 33 |
Graded with `--max-tokens 2048`: this is a reasoning model and emits a `<think>` block before answering, so a smaller budget scores it as wrong when it has simply not finished thinking.
|
| 34 |
|
|
|
|
|
|
|
| 35 |
### The formal-logic claim: measured against the base, and no difference detected
|
| 36 |
|
| 37 |
Upstream describes TwIL-LM3 as specialised for formal logic. The eight-question gate is general knowledge and cannot see that claim in either direction, so it was tested separately: **12 items with one defensible answer each** (syllogisms, modus tollens, affirming the consequent, contrapositive, De Morgan, quantifier negation, disjunctive syllogism, transitivity, necessary vs sufficient, biconditional, vacuous truth), run against **this model and its base [SmolLM3-3B](https://huggingface.co/HuggingFaceTB/SmolLM3-3B) on identical items, identical flags, identical runtime, and identically-converted bundles** (same rail, same recipe, both 2.00 GB, both duplication-free).
|
|
|
|
| 32 |
|
| 33 |
Graded with `--max-tokens 2048`: this is a reasoning model and emits a `<think>` block before answering, so a smaller budget scores it as wrong when it has simply not finished thinking.
|
| 34 |
|
| 35 |
+
**Thinking cannot be switched off, and the think tags come back inside the text.** On litert-lm 0.18.0 `ThinkingConfig(enable_thinking=False)` has no effect on `TwIL-LM3_int4.litertlm`: with a 400-token cap the model's `<think>…</think>` reasoning fills the cap and the answer is cut (measured 2026-10-13). The bundle declares no thought channel, so the tags appear in the message text. Set `thinking_token_budget` (300 answered 17 × 23 under a 700-token cap) and a cap above it.
|
| 36 |
+
|
| 37 |
### The formal-logic claim: measured against the base, and no difference detected
|
| 38 |
|
| 39 |
Upstream describes TwIL-LM3 as specialised for formal logic. The eight-question gate is general knowledge and cannot see that claim in either direction, so it was tested separately: **12 items with one defensible answer each** (syllogisms, modus tollens, affirming the consequent, contrapositive, De Morgan, quantifier negation, disjunctive syllogism, transitivity, necessary vs sufficient, biconditional, vacuous truth), run against **this model and its base [SmolLM3-3B](https://huggingface.co/HuggingFaceTB/SmolLM3-3B) on identical items, identical flags, identical runtime, and identically-converted bundles** (same rail, same recipe, both 2.00 GB, both duplication-free).
|