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 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
card: the formal-logic A/B against the base - 10/12 vs 9/12, no difference detected
Browse files
README.md
CHANGED
|
@@ -29,7 +29,17 @@ library_name: litert-lm
|
|
| 29 |
|
| 30 |
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.
|
| 31 |
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
## Performance
|
| 35 |
|
|
|
|
| 29 |
|
| 30 |
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.
|
| 31 |
|
| 32 |
+
### The formal-logic claim: measured against the base, and no difference detected
|
| 33 |
+
|
| 34 |
+
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).
|
| 35 |
+
|
| 36 |
+
| | TwIL-LM3 | SmolLM3-3B (base) |
|
| 37 |
+
|---|---|---|
|
| 38 |
+
| score | 10 / 12 | 9 / 12 |
|
| 39 |
+
|
| 40 |
+
**Read this as "no difference detected", not as a win.** The two models disagree on only **3 of the 12 items**, splitting 2–1 — TwIL-LM3 is right on the valid syllogism and the contrapositive where the base is wrong, the base is right on De Morgan where TwIL-LM3 is wrong, and both fail the vacuous-truth item. A 2–1 split among three discordant items is indistinguishable from chance, and a 12-item instrument can only detect large effects in any case. The honest summary is that **this test was not sensitive enough to confirm or refute the specialisation**, and the one-point total should not be quoted as evidence for it.
|
| 41 |
+
|
| 42 |
+
The harness is `scripts/eval_logic.py` in the [converter repo](https://github.com/john-rocky/hf-to-litertlm), so the comparison can be repeated or extended.
|
| 43 |
|
| 44 |
## Performance
|
| 45 |
|