Skip to main content

The fastest inference framework to run AI on CPUs

Project description

Trillim

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.

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:
    reply = runtime.llm.chat(
        [{"role": "user", "content": "Give me one sentence about local CPU inference."}]
    )
    print(reply)

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

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

trillim-0.7.0-py3-none-win_arm64.whl (3.0 MB view details)

Uploaded Python 3Windows ARM64

trillim-0.7.0-py3-none-win_amd64.whl (3.2 MB view details)

Uploaded Python 3Windows x86-64

trillim-0.7.0-py3-none-manylinux_2_27_x86_64.manylinux2014_x86_64.whl (17.7 MB view details)

Uploaded Python 3manylinux: glibc 2.27+ x86-64

trillim-0.7.0-py3-none-manylinux_2_27_aarch64.manylinux2014_aarch64.whl (18.0 MB view details)

Uploaded Python 3manylinux: glibc 2.27+ ARM64

trillim-0.7.0-py3-none-macosx_11_0_x86_64.whl (2.8 MB view details)

Uploaded Python 3macOS 11.0+ x86-64

trillim-0.7.0-py3-none-macosx_11_0_arm64.whl (2.9 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

File details

Details for the file trillim-0.7.0-py3-none-win_arm64.whl.

File metadata

  • Download URL: trillim-0.7.0-py3-none-win_arm64.whl
  • Upload date:
  • Size: 3.0 MB
  • Tags: Python 3, Windows ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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}

File hashes

Hashes for trillim-0.7.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 a81a9e6605744cd9f3727323ed7aee9a2dcc62d147da57a3758e031f5fb34b3f
MD5 f195fda1b56f4ece4924c563275e124c
BLAKE2b-256 91d8c6a10432d0d74c23fd772e6cca979bfd10b9219cde046885e3b15b487b96

See more details on using hashes here.

File details

Details for the file trillim-0.7.0-py3-none-win_amd64.whl.

File metadata

  • Download URL: trillim-0.7.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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}

File hashes

Hashes for trillim-0.7.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 4d58f9393207583c9cf1c8d6e3ba25cbe813b19fbec601c853799b5a45958465
MD5 d248d0411bcc127438d4e0026d35dfd0
BLAKE2b-256 e16861fa9ae7e9ec8941717976f379a5ae536208fabbd1b24b395b2ca336d3c0

See more details on using hashes here.

File details

Details for the file trillim-0.7.0-py3-none-manylinux_2_27_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: trillim-0.7.0-py3-none-manylinux_2_27_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 17.7 MB
  • Tags: Python 3, manylinux: glibc 2.27+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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}

File hashes

Hashes for trillim-0.7.0-py3-none-manylinux_2_27_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 67c55b1d56c17c81911d2180ad2f5ece60ada3423e9daee5d6395fdbe1f709f2
MD5 49f45cf1cd9f552e85cb258ac82698b8
BLAKE2b-256 140bef985c36bcf86eac0cac7c1a0afe665a68810db39521fae5a41711db7008

See more details on using hashes here.

File details

Details for the file trillim-0.7.0-py3-none-manylinux_2_27_aarch64.manylinux2014_aarch64.whl.

File metadata

  • Download URL: trillim-0.7.0-py3-none-manylinux_2_27_aarch64.manylinux2014_aarch64.whl
  • Upload date:
  • Size: 18.0 MB
  • Tags: Python 3, manylinux: glibc 2.27+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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}

File hashes

Hashes for trillim-0.7.0-py3-none-manylinux_2_27_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ded221e8644a45446c501468365553220b5b5d4a2706c3900b388811d60dc362
MD5 6bd24e8d552622c9c13ae7d2d514d5a5
BLAKE2b-256 b1a353fb9ae02d0d0afa46418e869242d192280b8585b503ee1b15c47fcf2267

See more details on using hashes here.

File details

Details for the file trillim-0.7.0-py3-none-macosx_11_0_x86_64.whl.

File metadata

  • Download URL: trillim-0.7.0-py3-none-macosx_11_0_x86_64.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: Python 3, macOS 11.0+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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}

File hashes

Hashes for trillim-0.7.0-py3-none-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 80659701db7c1e1767e11964a2568bbb7cfce3795df6aa082a8d9bbf7dfb60d6
MD5 7293e9ed61d3d903fbacd187ea420d79
BLAKE2b-256 3722f65ff4015a34381007b9bc32aa0254f5157478082b91f6212a5e9de83f59

See more details on using hashes here.

File details

Details for the file trillim-0.7.0-py3-none-macosx_11_0_arm64.whl.

File metadata

  • Download URL: trillim-0.7.0-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 2.9 MB
  • Tags: Python 3, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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}

File hashes

Hashes for trillim-0.7.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a7acea02cc220dfc37d691960488f7134db84098d549f3363be230a5d3c74109
MD5 f635f50c176596d5efae9d7f7e2cc49f
BLAKE2b-256 2126818913eb2da26988fe964e0d4ff87b3c6dd983bae76b939b78191dc51dbb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page