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


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.dev20260327-py3-none-any.whl (26.8 kB view details)

Uploaded Python 3

litert_lm_nightly-0.9.0.dev20260327-cp313-cp313-manylinux_2_38_aarch64.whl (30.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.38+ ARM64

litert_lm_nightly-0.9.0.dev20260327-cp313-cp313-manylinux_2_35_x86_64.whl (33.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.35+ x86-64

litert_lm_nightly-0.9.0.dev20260327-cp313-cp313-macosx_12_0_arm64.whl (31.0 MB view details)

Uploaded CPython 3.13macOS 12.0+ ARM64

litert_lm_nightly-0.9.0.dev20260327-cp312-cp312-manylinux_2_38_aarch64.whl (30.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.38+ ARM64

litert_lm_nightly-0.9.0.dev20260327-cp312-cp312-manylinux_2_35_x86_64.whl (33.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.35+ x86-64

litert_lm_nightly-0.9.0.dev20260327-cp312-cp312-macosx_12_0_arm64.whl (31.0 MB view details)

Uploaded CPython 3.12macOS 12.0+ ARM64

litert_lm_nightly-0.9.0.dev20260327-cp311-cp311-manylinux_2_38_aarch64.whl (30.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.38+ ARM64

litert_lm_nightly-0.9.0.dev20260327-cp311-cp311-manylinux_2_35_x86_64.whl (33.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.35+ x86-64

litert_lm_nightly-0.9.0.dev20260327-cp311-cp311-macosx_12_0_arm64.whl (31.0 MB view details)

Uploaded CPython 3.11macOS 12.0+ ARM64

litert_lm_nightly-0.9.0.dev20260327-cp310-cp310-manylinux_2_38_aarch64.whl (30.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.38+ ARM64

litert_lm_nightly-0.9.0.dev20260327-cp310-cp310-manylinux_2_35_x86_64.whl (33.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.35+ x86-64

litert_lm_nightly-0.9.0.dev20260327-cp310-cp310-macosx_12_0_arm64.whl (31.0 MB view details)

Uploaded CPython 3.10macOS 12.0+ ARM64

File details

Details for the file litert_lm_nightly-0.9.0.dev20260327-py3-none-any.whl.

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260327-py3-none-any.whl
  • Upload date:
  • Size: 26.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","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.dev20260327-py3-none-any.whl
Algorithm Hash digest
SHA256 008795083ea69c3e5ce630d494cdaede6ebcbb88ce7b6efb1cea954809f4dda0
MD5 b81b68237aeea68e30e0588e03e35ae0
BLAKE2b-256 35ad654117ed3a8d6a2dab4f468957e7addde59bd8bb05d1659d856ad1a83c74

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260327-cp313-cp313-manylinux_2_38_aarch64.whl
  • Upload date:
  • Size: 30.9 MB
  • Tags: CPython 3.13, manylinux: glibc 2.38+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","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.dev20260327-cp313-cp313-manylinux_2_38_aarch64.whl
Algorithm Hash digest
SHA256 36309012b9f736b82d73bb09e63d9e379bb4143cbfcc28bc905e233783014d26
MD5 aa2605fc640bed6e799c31bc17554b26
BLAKE2b-256 ae22583472c963e1aeeb9f4f3e939f8ec0d8e7af77a410d7bbe39708dbd7ae2b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260327-cp313-cp313-manylinux_2_35_x86_64.whl
  • Upload date:
  • Size: 33.9 MB
  • Tags: CPython 3.13, manylinux: glibc 2.35+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","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.dev20260327-cp313-cp313-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 3c119ec935852e39b1cd42adc5c8b9f57de0849d6ee75fc8789d5bcef64f3a6b
MD5 351e08ce28f59eea72f53ede82a536db
BLAKE2b-256 a96223daf3a1b6f414a22233ec11bc880d4864d886db6dfbd7d198475ce14098

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260327-cp313-cp313-macosx_12_0_arm64.whl
  • Upload date:
  • Size: 31.0 MB
  • Tags: CPython 3.13, macOS 12.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","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.dev20260327-cp313-cp313-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 cd0004c3b82d49d9a699de4db3671b14ea9ccfb35e6138cbbf6f2b324de87024
MD5 d3abed0c3b8fe9abf7b6dfe493043c89
BLAKE2b-256 49b5c64995e1e117b86c82b39d9718c48339c00545b171414f979df043f3e5ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260327-cp312-cp312-manylinux_2_38_aarch64.whl
  • Upload date:
  • Size: 30.9 MB
  • Tags: CPython 3.12, manylinux: glibc 2.38+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","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.dev20260327-cp312-cp312-manylinux_2_38_aarch64.whl
Algorithm Hash digest
SHA256 ca9f4d825a797c699985b9b493d21ea606fd4868472e9f2f081fb3d00a81e591
MD5 8e9a57e8a3f768365d478e85464041e5
BLAKE2b-256 a5872a72f1bc3c8baa8b5cf03eed1532356fba841c48384979e01d1d5105c6ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260327-cp312-cp312-manylinux_2_35_x86_64.whl
  • Upload date:
  • Size: 33.9 MB
  • Tags: CPython 3.12, manylinux: glibc 2.35+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","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.dev20260327-cp312-cp312-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 a8c876ee2630982ae1041061612bb4f59048d0f415e066c82ee9732478379d7d
MD5 17961bb442adb0199650df1117ebbb00
BLAKE2b-256 064143e2c39d12b4b61f2932d3ad360bd527ff088d006aecf78058d41f1794e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260327-cp312-cp312-macosx_12_0_arm64.whl
  • Upload date:
  • Size: 31.0 MB
  • Tags: CPython 3.12, macOS 12.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","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.dev20260327-cp312-cp312-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 e45f5b6c4f5cc0b122e4b7f9c193006e530109beedac763109a3e56938684225
MD5 bf10482c42a741a6bdacf8b58962b6b6
BLAKE2b-256 83ab1cee6c65730187a5c24ea89dfa24d1f02f163af89c207e62c6a651765b58

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260327-cp311-cp311-manylinux_2_38_aarch64.whl
  • Upload date:
  • Size: 30.9 MB
  • Tags: CPython 3.11, manylinux: glibc 2.38+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","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.dev20260327-cp311-cp311-manylinux_2_38_aarch64.whl
Algorithm Hash digest
SHA256 728f1188c5bd9cbc121279c20ec3b49d96741ea023d9f90172aa4911b2562b16
MD5 de8fe2a3392916e5c655a0727fd31e63
BLAKE2b-256 d534f06bb3e2921453dc16b8d65ffe841579ebde1bdd2b47ead7e1fbc7a1b56c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260327-cp311-cp311-manylinux_2_35_x86_64.whl
  • Upload date:
  • Size: 33.9 MB
  • Tags: CPython 3.11, manylinux: glibc 2.35+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","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.dev20260327-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 3390d14d236a5e438a49b73c198976de6d6e72fd937ca623df62227c956b2074
MD5 5598cb9b29503b2b5bb73090e10a7066
BLAKE2b-256 2a7067573a1ef651db2b01cd75fa973237f37d7a3e62fa780e1669e342eb9b30

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260327-cp311-cp311-macosx_12_0_arm64.whl
  • Upload date:
  • Size: 31.0 MB
  • Tags: CPython 3.11, macOS 12.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","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.dev20260327-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 dd0773e61cb9617b504508b42b3eba60787270db31d28ead131c37b7c4968f07
MD5 2ceaa61e516f1693e9b81620c0e99bd8
BLAKE2b-256 269cb436b49ec7f0ac4bc75570d80830dbbe42ab237edad0dfdb0597242c082f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260327-cp310-cp310-manylinux_2_38_aarch64.whl
  • Upload date:
  • Size: 30.9 MB
  • Tags: CPython 3.10, manylinux: glibc 2.38+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","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.dev20260327-cp310-cp310-manylinux_2_38_aarch64.whl
Algorithm Hash digest
SHA256 09fb4e6e344cf3f7a596eb907f20f6acdb01c60d2c9e8da71eb919447e1298bb
MD5 58a69beb96403fc6d98deb1053e907a1
BLAKE2b-256 fe822688edaef226cf6bfe7682c2526d18ad0f0acf4169867283e021a1dcdc6d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260327-cp310-cp310-manylinux_2_35_x86_64.whl
  • Upload date:
  • Size: 33.9 MB
  • Tags: CPython 3.10, manylinux: glibc 2.35+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","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.dev20260327-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 af1c6e9b0107e8e5866147f14af0ef20ca6eb131e11e83ada484cf9270d4fa47
MD5 51d69e9a2215760afb44f38ae1d8c8b8
BLAKE2b-256 7c5b2f054d20e479b5d1b03ebed8c2bd8f441f19d2c29d431239aedeb7dbe30a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: litert_lm_nightly-0.9.0.dev20260327-cp310-cp310-macosx_12_0_arm64.whl
  • Upload date:
  • Size: 31.0 MB
  • Tags: CPython 3.10, macOS 12.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","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.dev20260327-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 5a017ff2b583e56ac8274001f8931883e371d1e62ddd922a23a4d19a3274577d
MD5 e996806c3cebeacc4c85239006b9a0dd
BLAKE2b-256 13b0b106de78acf27276ae013f3e584029b096c487164b33bcbc8f339483c291

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