Skip to main content Switch to mobile version Archived This project has been archived by its maintainers, and is no longer receiving any updates.
The fastest inference framework to run AI on CPUs
pip install trillim==0.13.0 Copy PIP instructions
This library is archived as of 11/27/26. Please use Redwood, our latest inference engine for future local inference workloads!
Trillim is a local AI stack for CPUs. It gives you a CLI, a Python SDK, and a FastAPI server for running Trillim-formatted LLM bundles, plus optional speech-to-text and text-to-speech support.
Trillim supports both BitNet-style ternary bundles and PrismML's Bonsai (1-bit and ternary) bundles through the same managed model store and runtime surfaces.
DarkNet and the quantization tooling bundled with the package do the heavy inference work. The Python package is the orchestration layer around those binaries.
Python 3.12 or newer is required.
Linux wheels target glibc >= 2.27.
uv is the recommended installer.
Voice features require the optional voice extra.
If you install Trillim with uv, prefix CLI commands with uv run.
Install the package:
uv add trillim Pull a model and chat with it:
uv run trillim pull Trillim/BitNet-TRNQ uv run trillim chat Trillim/BitNet-TRNQ Start the local API server:
uv run trillim serve Trillim/BitNet-TRNQ Use the Python SDK synchronously through Runtime:
from trillim import LLM, Runtime with Runtime(LLM("Trillim/BitNet-TRNQ")) as runtime: with runtime.llm.open_session() as session: reply = session.collect("Give me one sentence about local CPU inference.") print(reply) Generate an image from a Bonsai Image bundle:
uv run trillim image Local/Bonsai-Image-4BT-TRNQ "a tiny bonsai on a desk" -o bonsai.png Common Workflows
Pull and Inspect Bundles
trillim models lists bundles published by the Trillim Hugging Face organization. trillim list lists what you already have locally.
uv run trillim models uv run trillim list Quantize a Local Model or Adapter
trillim quantize takes raw local filesystem paths and publishes the output under ~/.trillim/models/Local/.
# Quantize a model bundle uv run trillim quantize /path/to/model # Quantize a LoRA adapter against its base model uv run trillim quantize /path/to/base-model /path/to/adapter Qwen3-based Bonsai checkpoints quantize into binary or grouped-ternary bundles, but Trillim still manages them under the same Local/...-TRNQ store naming and load flow.
chat accepts an optional second positional argument for the adapter store ID:
uv run trillim chat Trillim/BitNet-TRNQ Trillim/BitNet-GenZ-LoRA-TRNQ Enable Voice Support
Install the extra first:
uv add "trillim[voice]" Then start the voice-enabled server:
Install: macOS, Linux, Windows
Advanced SDK and Server Notes
For the short license summary, see What Is Trillim?. Full terms are in LICENSE.
Released: Nov 28, 2026
Archived: Nov 28, 2026
ai bitnet cpu inference llm ternary
License OSI Approved :: MIT License
Operating System MacOS
Microsoft :: Windows
Programming Language Python :: 3
Topic Scientific/Engineering :: Artificial Intelligence
Release files for trillim 0.13.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 21.3 MB
Release files / trillim-0.13.0-py3-none-win_arm64.whl
Release files / trillim-0.13.0-py3-none-manylinux_2_27_x86_64.manylinux2014_x86_64.whl
Security for trillim 0.13.0
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Nov 28, 2026 6 release files No provenance
Jun 12, 2026 6 release files No provenance
Jun 10, 2026 6 release files No provenance
Jun 9, 2026 6 release files No provenance
May 28, 2026 6 release files No provenance
May 1, 2026 6 release files No provenance
Apr 28, 2026 6 release files No provenance
Apr 27, 2026 6 release files No provenance
Apr 17, 2026 6 release files No provenance
Apr 16, 2026 6 release files No provenance
Apr 10, 2026 6 release files No provenance
Mar 29, 2026 6 release files No provenance
Mar 28, 2026 6 release files No provenance
Mar 16, 2026 6 release files No provenance
Mar 3, 2026 6 release files No provenance
Feb 27, 2026 6 release files No provenance
Feb 24, 2026 6 release files No provenance
Feb 18, 2026 6 release files No provenance
Feb 17, 2026 6 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from fc0d8e6











