jinfer
Local AI for Python, in three lines. Chat, vision, audio, embeddings, reranking, speech and transcription from one wheel, in your own process.
pip install jinfer
import jinfer
model = jinfer.load("LiquidAI/LFM2.5-350M-GGUF:Q8_0") # downloaded once, then cached
print(model.chat("Why is the sky blue?").text)
for text in model.chat("Tell me a joke."): # streamed
print(text, end="", flush=True)
from dataclasses import dataclass
@dataclass
class Person:
name: str
born: int
model.chat("Ada Lovelace, born 1815.", schema=Person).parsed
# Person(name='Ada Lovelace', born=1815)
- Simple.
load,chat,.text: replies are typed objects, a schema comes back as your dataclass, and tools are plain Python functions. - Fast. Reads prompts faster than llama.cpp on the same CPU, see the benchmarks, and starts at once: the engine is compiled ahead of time.
- Light. One 9 MB wheel and one dependency: no server, no
torch, no GPU, no JVM.
What it runs
GGUF models, Q8_0 recommended, of these families:
| Capability | Families |
|---|---|
| chat | Gemma 4, Qwen 3.5+, LFM 2.5, LFM3, gpt-oss, Llama 3+, Granite 4.1+, Ministral 3, SmolLM3, MiniCPM5, Laguna, Mellum 2, Ling 3, Nemotron-H, Ternary Bonsai 2 |
| vision | Gemma 4, Qwen 3.5+, LFM 2.5, LFM3, Ternary Bonsai 2 |
| audio input | Gemma 4, LFM3-Omni |
| embeddings | EmbeddingGemma 2 (text, images, audio, video), Qwen 3, LFM 2.5 |
| reranking | Qwen 3, LFM 2.5 |
| speech | Kokoro, Inflect |
| transcription | Parakeet, with timed words |
Requirements
- Python 3.10 or later.
- Linux x86-64 or aarch64 with glibc 2.28 or later, macOS 14 or later on Apple silicon, or Windows 10 or later on x86-64.
- On x86-64, a CPU with AVX2.
- On the PATH:
curlto download models,ffmpegfor images and audio in a chat,espeak-ng(orespeak) for Kokoro voices.
The API at a glance
jinfer.load(ref) takes a Hub reference (owner/repo:QUANT) or a local path, and returns the class the model calls for:
| Class | Call |
|---|---|
LanguageModel |
chat(prompt, schema=..., tools=[...]), conversation(system=...) |
Embedder |
embed(texts): a float32 vector per text |
Reranker |
rerank(query, documents): a score per document |
Speaker |
speak(text): PCM, or .save("out.wav") |
Transcriber |
transcribe("speech.wav"): .text and timed .words |
The full API reference covers every option, conversations, errors, threads and the C library. The comparison sets jinfer beside ollama, transformers and llama-cpp-python, use case by use case.
License
Apache 2.0, by Quixotic AI. The library in the wheel is built with Oracle GraalVM and carries its runtime under the GraalVM Free Terms and Conditions: free to use, commercially too, but a product sold for a fee that bundles it is not covered.
Metadata
Release files for jinfer 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| jinfer-0.4.0-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for jinfer-0.4.0-py3-none-win_amd64.whl |
| jinfer-0.4.0-py3-none-manylinux_2_28_x86_64.whl | Python 3 | none | Linux glibc 2.28+ x86-64 | Details for jinfer-0.4.0-py3-none-manylinux_2_28_x86_64.whl |
| jinfer-0.4.0-py3-none-manylinux_2_28_aarch64.whl | Python 3 | none | Linux glibc 2.28+ ARM64 | Details for jinfer-0.4.0-py3-none-manylinux_2_28_aarch64.whl |
| jinfer-0.4.0-py3-none-macosx_14_0_arm64.whl | Python 3 | none | macOS 14.0+ ARM64 | Details for jinfer-0.4.0-py3-none-macosx_14_0_arm64.whl |
Total release size: 34.9 MB
Release files / jinfer-0.4.0-py3-none-win_amd64.whl
| Download URL | jinfer-0.4.0-py3-none-win_amd64.whl |
|---|---|
| Size | 9.2 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
1523befa78b92e06992d985337c103d002ebacbc9a8ac143c1c29372cf607a6b
|
|
BLAKE2b-256 checksum How to use checksums |
1b829088deed0aba025f92aeffbbb6dfbb2b112f0d44301e65558dd7f90ccbdf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / jinfer-0.4.0-py3-none-manylinux_2_28_x86_64.whl
| Download URL | jinfer-0.4.0-py3-none-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 8.7 MB |
| Tags | Linux glibc 2.28+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
3972a2683b3dcd2b6135026657cb84b034e6b6d8b366cd4566057589d8ab0b32
|
|
BLAKE2b-256 checksum How to use checksums |
9f6e8a36ef3111a054e5e04fb673856f3ecc75fea76a143098b8493e0e5eca20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / jinfer-0.4.0-py3-none-manylinux_2_28_aarch64.whl
| Download URL | jinfer-0.4.0-py3-none-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 8.4 MB |
| Tags | Linux glibc 2.28+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
5e7abab4b69048c5cd9cb705d63a64c693c8f9322ca7f374b66e8426d13354c1
|
|
BLAKE2b-256 checksum How to use checksums |
1a09a15513227473d1cb3b9913d1d3bf2723d511231e49df8909060ec606fb38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / jinfer-0.4.0-py3-none-macosx_14_0_arm64.whl
| Download URL | jinfer-0.4.0-py3-none-macosx_14_0_arm64.whl |
|---|---|
| Size | 8.6 MB |
| Tags | Python 3 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
6c6c931dbad53182812c7be7b68870d2e9bd591e4768973c25b2d6334b8ec7fd
|
|
BLAKE2b-256 checksum How to use checksums |
73dd95ea1dd28b597b2b21845b9fb6c931d8d796d73cbf7429fcb496f41b1714
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Security for jinfer 0.4.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.