Skip to main content

Mirai

Listen to our podcast View our deck Discord Contact us Read docs License

lalamo

A set of tools for adapting Large Language Models to on-device inference using the uzu inference engine.

Quick Start

To get the list of supported models, run:

uv run lalamo list-models

To convert a model, run:

uv run lalamo convert MODEL_REPO

Note: on some CPU platform you may be getting an error saying The precision 'F16_F16_F32' is not supported by dot_general on CPU. This is due to a bug in XLA, which causes matmuls inside jax.jit not work correctly on CPUs. The workaround is to set the environment variable JAX_DISABLE_JIT=1 when running the conversion.

After that, you can find the converted model in the models folder. For more options see uv run lalamo convert --help.

Model Support

To add support for a new model, write the corresponding ModelSpec, as shown in the example below:

ModelSpec(
    vendor="Google",
    family="Gemma-3",
    name="Gemma-3-1B-Instruct",
    size="1B",
    quantization=None,
    repo="google/gemma-3-1b-it",
    config_type=HFGemma3TextConfig,
    weights_type=WeightsType.SAFETENSORS,
)

Optional Features

PyAudio

PyAudio enables audio playback for TTS models and is used as an optional Lalamo feature because it requires PortAudio to be installed.

How to:

Then run :

uv run --with  pyaudio lalamo path/to/model --replay

Metadata

Release files for lalamo 0.19.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lalamo 0.19.0
File Size Uploaded Provenance Actions
lalamo-0.19.0.tar.gz 425.6 kB Without provenance Details for lalamo-0.19.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lalamo 0.19.0
File Interpreter ABI Platform Actions
lalamo-0.19.0-py3-none-any.whl Python 3 none any Details for lalamo-0.19.0-py3-none-any.whl

Total release size: 954.4 kB

Release files / lalamo-0.19.0.tar.gz

Download URL lalamo-0.19.0.tar.gz
Size 425.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1573bf50fd994b1895860562c8690149d47767a723d682f974c3d84afda5cebd
BLAKE2b-256 checksum
How to use checksums
ed02ed6cacc851cc5e6908a82f10f4616482c3e3e8bfb5a306ca02867d787503
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / lalamo-0.19.0-py3-none-any.whl

Download URL lalamo-0.19.0-py3-none-any.whl
Size 528.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
73d5297bc34db44d0fdeefd46203ee2cc94dc11ca40ce8d1b2d486825d485170
BLAKE2b-256 checksum
How to use checksums
df7668a3b063cdca3d73c9bda4a4e3ddc8ca3d67e3eb5db7c1313af5e08e41ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for lalamo 0.19.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

0.19.0 This release

2 release files No provenance

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