Skip to main content

LiteRT-LM inference library

Project description

LiteRT-LM Python

Python bindings for LiteRT-LM, a production-ready, open-source inference framework designed to deliver high-performance, cross-platform LLM deployments on edge devices.

Usage

Here is a simple example showing how to load a model and interact with it using the Python API:

import litert_lm

# Load the model using the CPU backend
with litert_lm.Engine("path/to/model.litertlm") as engine:
    # Create a conversation and generate a response
    with engine.create_conversation() as conversation:
        user_message = "Hello world!"

        # Alternative: send the full message for prompt template
        # user_message = {"role": "user", "content": "Hello world!"}

        # Synchronous completion
        response = conversation.send_message(user_message)
        print("Response:", response["content"][0]["text"])

        # Asynchronous / Streaming completion
        # stream = conversation.send_message_async(user_message)
        # for text_piece in stream:
        #     print(text_piece, end="", flush=True)

For more information, please visit the main repository.

Project details


Release history Release notifications | RSS feed

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.

litert_lm_nightly-0.9.0.dev20260326-cp313-cp313-manylinux_2_38_aarch64.whl (20.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.38+ ARM64

litert_lm_nightly-0.9.0.dev20260326-cp313-cp313-manylinux_2_35_x86_64.whl (21.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.35+ x86-64

litert_lm_nightly-0.9.0.dev20260326-cp313-cp313-macosx_12_0_arm64.whl (12.9 MB view details)

Uploaded CPython 3.13macOS 12.0+ ARM64

litert_lm_nightly-0.9.0.dev20260326-cp312-cp312-manylinux_2_38_aarch64.whl (20.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.38+ ARM64

litert_lm_nightly-0.9.0.dev20260326-cp312-cp312-manylinux_2_35_x86_64.whl (21.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.35+ x86-64

litert_lm_nightly-0.9.0.dev20260326-cp312-cp312-macosx_12_0_arm64.whl (12.9 MB view details)

Uploaded CPython 3.12macOS 12.0+ ARM64

litert_lm_nightly-0.9.0.dev20260326-cp311-cp311-manylinux_2_38_aarch64.whl (20.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.38+ ARM64

litert_lm_nightly-0.9.0.dev20260326-cp311-cp311-manylinux_2_35_x86_64.whl (21.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.35+ x86-64

litert_lm_nightly-0.9.0.dev20260326-cp311-cp311-macosx_12_0_arm64.whl (12.9 MB view details)

Uploaded CPython 3.11macOS 12.0+ ARM64

litert_lm_nightly-0.9.0.dev20260326-cp310-cp310-manylinux_2_38_aarch64.whl (20.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.38+ ARM64

litert_lm_nightly-0.9.0.dev20260326-cp310-cp310-manylinux_2_35_x86_64.whl (21.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.35+ x86-64

litert_lm_nightly-0.9.0.dev20260326-cp310-cp310-macosx_12_0_arm64.whl (12.9 MB view details)

Uploaded CPython 3.10macOS 12.0+ ARM64

File details

Details for the file litert_lm_nightly-0.9.0.dev20260326-cp313-cp313-manylinux_2_38_aarch64.whl.

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260326-cp313-cp313-manylinux_2_38_aarch64.whl
  • Upload date:
  • Size: 20.4 MB
  • Tags: CPython 3.13, manylinux: glibc 2.38+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for litert_lm_nightly-0.9.0.dev20260326-cp313-cp313-manylinux_2_38_aarch64.whl
Algorithm Hash digest
SHA256 54b231dc2718cf5341a395e3210803b299397d238218277ea206f5b3676f25b6
MD5 31f2b32d4b9112ecb4b9ee1502418fa7
BLAKE2b-256 c88f41e29dc627d37c69bb684e3a7f56adeb4e82cf45c37b1d4ea5a1768994d1

See more details on using hashes here.

File details

Details for the file litert_lm_nightly-0.9.0.dev20260326-cp313-cp313-manylinux_2_35_x86_64.whl.

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260326-cp313-cp313-manylinux_2_35_x86_64.whl
  • Upload date:
  • Size: 21.4 MB
  • Tags: CPython 3.13, manylinux: glibc 2.35+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for litert_lm_nightly-0.9.0.dev20260326-cp313-cp313-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 0374ac4c1683b26b2a2d423615c5a19746ebdd0f76b2a40095c2f87e6abc61f4
MD5 1d17b83bc941bd7f9fc704072ced9fe7
BLAKE2b-256 f5eb56ab605bc7ab0f3ddddcecf756222187aa1d25ea34bfc2eef91191f3e015

See more details on using hashes here.

File details

Details for the file litert_lm_nightly-0.9.0.dev20260326-cp313-cp313-macosx_12_0_arm64.whl.

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260326-cp313-cp313-macosx_12_0_arm64.whl
  • Upload date:
  • Size: 12.9 MB
  • Tags: CPython 3.13, macOS 12.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","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":true}

File hashes

Hashes for litert_lm_nightly-0.9.0.dev20260326-cp313-cp313-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 c1c5a6e9cef0468c20f5aa2c18e7d565e3e73806d56b762e1333734fa3fa8dc7
MD5 9f5ad2d4599b2cd78ae8ffbdd7970afd
BLAKE2b-256 a2308c9f8db8c9592518f58c2bf232797758e2e27700e8f5e7f9aef6912543fc

See more details on using hashes here.

File details

Details for the file litert_lm_nightly-0.9.0.dev20260326-cp312-cp312-manylinux_2_38_aarch64.whl.

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260326-cp312-cp312-manylinux_2_38_aarch64.whl
  • Upload date:
  • Size: 20.4 MB
  • Tags: CPython 3.12, manylinux: glibc 2.38+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for litert_lm_nightly-0.9.0.dev20260326-cp312-cp312-manylinux_2_38_aarch64.whl
Algorithm Hash digest
SHA256 b928bed89ff5b70355a149bcff139e2e8e8c658153b391a6c2fade95c843f6e8
MD5 a8e0bc30c684332e4b650f9515d3329f
BLAKE2b-256 8365e658c6d4e5021bcb1852656fc9de395a34513533ec516f85a53f796abec6

See more details on using hashes here.

File details

Details for the file litert_lm_nightly-0.9.0.dev20260326-cp312-cp312-manylinux_2_35_x86_64.whl.

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260326-cp312-cp312-manylinux_2_35_x86_64.whl
  • Upload date:
  • Size: 21.4 MB
  • Tags: CPython 3.12, manylinux: glibc 2.35+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for litert_lm_nightly-0.9.0.dev20260326-cp312-cp312-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 9edcd314faea12f69198e965dde5005112b4ee1ec32ed4e7a277b463bd540592
MD5 d38ecf40b379f7399fcc37c03cfe1ec4
BLAKE2b-256 23c8a13589f8f65fc62e599344f7899663b8ae6107adb4184d118d6ac94d5dce

See more details on using hashes here.

File details

Details for the file litert_lm_nightly-0.9.0.dev20260326-cp312-cp312-macosx_12_0_arm64.whl.

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260326-cp312-cp312-macosx_12_0_arm64.whl
  • Upload date:
  • Size: 12.9 MB
  • Tags: CPython 3.12, macOS 12.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","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":true}

File hashes

Hashes for litert_lm_nightly-0.9.0.dev20260326-cp312-cp312-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 fe68981dca49b1b3b728cc7cce3eaff20dc05c9d52c4d8ecda3c9a2a2ebc7b63
MD5 b3792318920b0a6d7008c3dfd96915cf
BLAKE2b-256 b0dd9c00656a72b7aef43a5886ce73e4cd3ab79769384c29ca54cdef822a2d19

See more details on using hashes here.

File details

Details for the file litert_lm_nightly-0.9.0.dev20260326-cp311-cp311-manylinux_2_38_aarch64.whl.

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260326-cp311-cp311-manylinux_2_38_aarch64.whl
  • Upload date:
  • Size: 20.4 MB
  • Tags: CPython 3.11, manylinux: glibc 2.38+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for litert_lm_nightly-0.9.0.dev20260326-cp311-cp311-manylinux_2_38_aarch64.whl
Algorithm Hash digest
SHA256 0f82a57742c0042eadc8eefc973e2bfa45dac6d2799999a9da3b78b0874f16f7
MD5 6e13abc6f431bdb33202edac93c59511
BLAKE2b-256 6cd0eb1206aa393afd90590b81b77410d474fa4d52b912fbec6ba432d0fb4b95

See more details on using hashes here.

File details

Details for the file litert_lm_nightly-0.9.0.dev20260326-cp311-cp311-manylinux_2_35_x86_64.whl.

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260326-cp311-cp311-manylinux_2_35_x86_64.whl
  • Upload date:
  • Size: 21.4 MB
  • Tags: CPython 3.11, manylinux: glibc 2.35+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for litert_lm_nightly-0.9.0.dev20260326-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 d0ef642f44c4af7069361c3b4fbfec3a667cf70f8b4cb9268534d8a84dac0bf9
MD5 fca53452f5a07c471c3a9a5566318469
BLAKE2b-256 df2d9f23e2f4f86bfd4011ec260f17538d27d488db78f23a4b6161f8b3316dc9

See more details on using hashes here.

File details

Details for the file litert_lm_nightly-0.9.0.dev20260326-cp311-cp311-macosx_12_0_arm64.whl.

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260326-cp311-cp311-macosx_12_0_arm64.whl
  • Upload date:
  • Size: 12.9 MB
  • Tags: CPython 3.11, macOS 12.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","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":true}

File hashes

Hashes for litert_lm_nightly-0.9.0.dev20260326-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 b26bc55199267a5c4671e751b21514ea20f1fe76345d7d35bce28610703b46ed
MD5 38eb2f5b5916a962fce4a221f98ef837
BLAKE2b-256 ce15a30e7f5da7ea94c8fbc25c47d6b28b314be38e2a182eaac9d725f48972fa

See more details on using hashes here.

File details

Details for the file litert_lm_nightly-0.9.0.dev20260326-cp310-cp310-manylinux_2_38_aarch64.whl.

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260326-cp310-cp310-manylinux_2_38_aarch64.whl
  • Upload date:
  • Size: 20.4 MB
  • Tags: CPython 3.10, manylinux: glibc 2.38+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for litert_lm_nightly-0.9.0.dev20260326-cp310-cp310-manylinux_2_38_aarch64.whl
Algorithm Hash digest
SHA256 bbca94e83236707c7eaaa61e94cd1b8d17de5f95fea5ea88f058be4a7ef0eb71
MD5 ca04d8d87902c9411227fd33c8e2de82
BLAKE2b-256 32e1cf2aaab41758c1a9fb4c01f925a02e1f1066ad6782c8ae54f0610d251f88

See more details on using hashes here.

File details

Details for the file litert_lm_nightly-0.9.0.dev20260326-cp310-cp310-manylinux_2_35_x86_64.whl.

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260326-cp310-cp310-manylinux_2_35_x86_64.whl
  • Upload date:
  • Size: 21.4 MB
  • Tags: CPython 3.10, manylinux: glibc 2.35+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for litert_lm_nightly-0.9.0.dev20260326-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 d4c36871935abb062c0b49fc9a74b6f1bc05aa9c4f6e7fd5a0bdd703a53c02cf
MD5 6d3b5ee38e76ab08cd9916353f1356b1
BLAKE2b-256 e496b22a96a6b78ab26404c540f7822b056acc469401c4c749c0254b04eb60a6

See more details on using hashes here.

File details

Details for the file litert_lm_nightly-0.9.0.dev20260326-cp310-cp310-macosx_12_0_arm64.whl.

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260326-cp310-cp310-macosx_12_0_arm64.whl
  • Upload date:
  • Size: 12.9 MB
  • Tags: CPython 3.10, macOS 12.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","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":true}

File hashes

Hashes for litert_lm_nightly-0.9.0.dev20260326-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 d9f91688cbc4a42a1727224df722095b4b1500a059933cf2767a1362ad41e5be
MD5 15324b56bd07a4641e96df0c1388acaf
BLAKE2b-256 72ca98796411c0a59a70f82ed0f9f6b0431beda4aa51cde551f13d27aca76eec

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