Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Trillim

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.

Install

  • 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.

Platform guides:

If you install Trillim with uv, prefix CLI commands with uv run.

Quick Start

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.

Use an Adapter

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:

uv run trillim serve Trillim/BitNet-TRNQ --voice

Documentation

Learn

Extend and Serve

Advanced

License

For the short license summary, see What Is Trillim?. Full terms are in LICENSE.

Metadata

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)

Table of built distributions (wheels) for trillim 0.13.0
File Actions
trillim-0.13.0-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details for trillim-0.13.0-py3-none-win_arm64.whl
trillim-0.13.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for trillim-0.13.0-py3-none-win_amd64.whl
trillim-0.13.0-py3-none-manylinux_2_27_x86_64.manylinux2014_x86_64.whl Python 3 none Linux glibc 2.27+ x86-64, Linux glibc 2.17+ x86-64 Details for trillim-0.13.0-py3-none-manylinux_2_27_x86_64.manylinux2014_x86_64.whl
trillim-0.13.0-py3-none-manylinux_2_27_aarch64.manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64, Linux glibc 2.27+ ARM64 Details for trillim-0.13.0-py3-none-manylinux_2_27_aarch64.manylinux2014_aarch64.whl
trillim-0.13.0-py3-none-macosx_11_0_x86_64.whl Python 3 none macOS 11.0+ x86-64 Details for trillim-0.13.0-py3-none-macosx_11_0_x86_64.whl
trillim-0.13.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for trillim-0.13.0-py3-none-macosx_11_0_arm64.whl

Total release size: 21.3 MB

Release files / trillim-0.13.0-py3-none-win_arm64.whl

Download URL trillim-0.13.0-py3-none-win_arm64.whl
Size 2.0 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
5e7b8f95f2d0559b5220c1457bb0db25bf62a48c039fffc8af8b61863ec0917d
BLAKE2b-256 checksum
How to use checksums
84db99f1951436aafdeac5e0c43d0e82b7764701299084f9bcfcdea2eea2b0a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / trillim-0.13.0-py3-none-win_amd64.whl

Download URL trillim-0.13.0-py3-none-win_amd64.whl
Size 2.2 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
285b0a77a406abcca9d754842ba425dfca17c2f95c1a1e762d68bb88469018af
BLAKE2b-256 checksum
How to use checksums
452e2e9dab1e23903390ef7b71e974a98afd696b83e9daf468058149b3a3795a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / trillim-0.13.0-py3-none-manylinux_2_27_x86_64.manylinux2014_x86_64.whl

Download URL trillim-0.13.0-py3-none-manylinux_2_27_x86_64.manylinux2014_x86_64.whl
Size 7.0 MB
Tags Linux glibc 2.17+ x86-64 Linux glibc 2.27+ x86-64 Python 3
SHA-256 checksum
How to use checksums
8034899acf172dfa021310f66070cdad2cab9598fa9ae0fbdf757498e33aef2c
BLAKE2b-256 checksum
How to use checksums
2ed31e296c2725f8734f00fa42baedcb08d8dba48aaada50134bb532312890ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / trillim-0.13.0-py3-none-manylinux_2_27_aarch64.manylinux2014_aarch64.whl

Download URL trillim-0.13.0-py3-none-manylinux_2_27_aarch64.manylinux2014_aarch64.whl
Size 6.9 MB
Tags Linux glibc 2.17+ ARM64 Linux glibc 2.27+ ARM64 Python 3
SHA-256 checksum
How to use checksums
7457f95f165ab153b638a90630183963eac6a6e26d60ff1efc02335aaa68cc7b
BLAKE2b-256 checksum
How to use checksums
963c8c20bf97d91b3b289072d69d20b510dfea6a1e66756238d6594ad280c781
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / trillim-0.13.0-py3-none-macosx_11_0_x86_64.whl

Download URL trillim-0.13.0-py3-none-macosx_11_0_x86_64.whl
Size 1.6 MB
Tags Python 3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
0802af35492bea418b9d1e6db8fc56b2281add470ce1ebb1cd629c484640051d
BLAKE2b-256 checksum
How to use checksums
e26e35d96ef5e93307ed8d63450a8b1c1fc570cbf3d363a50709407639eb5af6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / trillim-0.13.0-py3-none-macosx_11_0_arm64.whl

Download URL trillim-0.13.0-py3-none-macosx_11_0_arm64.whl
Size 1.6 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
100c8ddd2c78ab642c469af8ecdf00f3a54d0a669f99e63d19e700f3d2db2bd1
BLAKE2b-256 checksum
How to use checksums
522384129600252f5b035c579323a640621a4ed23ffeb12269fcf1fe484cf6fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for trillim 0.13.0

Provenance

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.

No provenance found

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

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page