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.dev20260325-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.dev20260325-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.dev20260325-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.dev20260325-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.dev20260325-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.dev20260325-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.dev20260325-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.dev20260325-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.dev20260325-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.dev20260325-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.dev20260325-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.dev20260325-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.dev20260325-cp313-cp313-manylinux_2_38_aarch64.whl.

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260325-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.dev20260325-cp313-cp313-manylinux_2_38_aarch64.whl
Algorithm Hash digest
SHA256 69ed76d7a40b93a9dab7f76bc62f9bf45c441445219f096b0184196b7a964a61
MD5 26defa26c8f5996d2d14319e880ab88d
BLAKE2b-256 954e277663bc434fe7f39ee1e1735279ebcf357a8ae5622edf52b2a94588448c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260325-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.dev20260325-cp313-cp313-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 1856a72646462e3c4578b514c3cdfd2d171020eca022df9cbc22a9147ad3b90a
MD5 2f09b875c08b486733d20c03054a78cc
BLAKE2b-256 61beef4d15f13d50c74f07e2d7b8ac903327284e2b82d77e2dab5303cc94ca55

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260325-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.dev20260325-cp313-cp313-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 942e7fae2a097fa9ec509644f85ad2c3716dea698a0acbed00b07b060b7bd52d
MD5 b01124cec07798592e2e2b03a164076d
BLAKE2b-256 669aa2949cfd0c6ea5802b361cba1857c1b8579e296813dcb912820b16077fb5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260325-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.dev20260325-cp312-cp312-manylinux_2_38_aarch64.whl
Algorithm Hash digest
SHA256 0220321424e9a9a6512805be03d5732ce15da4406967fde759856e89d12d5685
MD5 21446f5f327f4af2d2790360ddac92d9
BLAKE2b-256 6df93f82044e28f78881d2596436adacfc2d34cdde8b72f01ebf9c0801261c1b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260325-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.dev20260325-cp312-cp312-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 c7011da6b1d98e5e1ae8fe71be7f699c33c1839d1b1169421e456fd2b9e034e1
MD5 06074de2c471edf5eded22af7d37ed74
BLAKE2b-256 e2b46233b2050b7366d2b392a6cd8db1bcb4787de8906e49657a63a0b1bcb31c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260325-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.dev20260325-cp312-cp312-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 09f5f4049079357fefb6e78157684a138f8ea8fcfb49cfec67895a6388294e63
MD5 aee09cae5b99f60685fb1fcc1f96fa91
BLAKE2b-256 7b7ba84aeb434fb753f13d5f6f13e85ab583cfe011f4f38dbe3b6f5f5aa3e7ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260325-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.dev20260325-cp311-cp311-manylinux_2_38_aarch64.whl
Algorithm Hash digest
SHA256 da9dd6ff7597d37bc4a8d939c93488b9bb16f82f1a7bdb117d15aa4cb7d1e155
MD5 0c1faf462c4e287bf6052bcf4e146b13
BLAKE2b-256 deb00dc3586887ee4beed77b900b80639d25ba70cc4a48a305bde347c0a7d298

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260325-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.dev20260325-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 dee0d4037ce66d66a5750f06ee4076de0ce5bb07efe372fac5cff8e547606cf4
MD5 d6f1e8ce2c6b52d1cd204480b141527c
BLAKE2b-256 e953055048acdd6cbcae0b3a46f5e34ce753f6a7c03a5ef1d47707b6c7507ef6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260325-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.dev20260325-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 d2585baf641229d56b5feedf992f6a11de29e461b102e21582a2096e9209fb86
MD5 42533e66f74e6c3130cbbf3843183ab8
BLAKE2b-256 123894845b1f8334f6743adea17f02f0bbfd17fd5938fce2cdb79c262e5acb96

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260325-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.dev20260325-cp310-cp310-manylinux_2_38_aarch64.whl
Algorithm Hash digest
SHA256 35216a7cdcfc4213c3b1d31f8972f4251474b0ef79039f197892344a1bbc2bf0
MD5 b8f5c3e8be4c5779a8c417f3c47e28ae
BLAKE2b-256 60e3bb22f47e0129e6d4ec4c155ad5f52e0f6291bc0c8ee593e98d8485741c22

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260325-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.dev20260325-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 e0f86c77f34f453ef52d42b04d3074a5e1bb6305e7c777de3695ce638897aaea
MD5 071bb75fb703074a41a02d4e7b89cea2
BLAKE2b-256 7fcf5d84bb2625ea28c567077b640e6e6b633e1026dc88bcd4f7df8db1dc5ea5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260325-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.dev20260325-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 e90473063b91446b159119e1f440d5e3ae3f65f2d8af11fe18085d76fa0a6e17
MD5 7d01cdbc5512daab1245aed11ed72daa
BLAKE2b-256 6e24adf9b6c524635a33dd67adb6503d8cc45639036371f3ea5003029fe49e4c

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