lit-ollama
Replace ollama with LitServe
Features
- LitGPT model support: Load and serve any LitGPT-compatible model using the standard Ollama interface
- Ollama-compatible API: Full compatibility with the Ollama API specification, allowing you to use any Ollama client without modifications
- LitServe powered: Built on LitServe for high-performance model serving with auto-batching and GPU acceleration
Installation
With pip:
python -m pip install lit-ollama
With uv:
uv add lit-ollama
How to use it
Run like any other litserve server:
import litserve as ls
from lit_ollama.server.api import LitOllamaAPI
api = LitOllamaAPI("mock")
server = ls.LitServer(
api,
accelerator="auto",
devices="auto",
callbacks=None,
middlewares=None,
)
server.run()
Start the server with a specific model:
python server.py --model "meta-llama/Llama-3.2-1B-Instruct"
You can test the server by using the client to interact with it:
python client.py
Docs
uv run mkdocs build -f ./mkdocs.yml -d ./_build/
Update template
copier update --trust -A --vcs-ref=HEAD
Credits
Metadata
Release files for lit-ollama 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lit_ollama-0.1.0.tar.gz | 26.4 kB | Without provenance | Details for lit_ollama-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lit_ollama-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for lit_ollama-0.1.0-py3-none-any.whl |
Total release size: 60.4 kB
Release files / lit_ollama-0.1.0.tar.gz
| Download URL | lit_ollama-0.1.0.tar.gz |
|---|---|
| Size | 26.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a748037fa788d106136b7d4ee7f864663f5793d9405436d3f0c2749a51990f63
|
|
BLAKE2b-256 checksum How to use checksums |
7fde7b12cba9c214e2887dba7c03bcaedfee8c231ce0ba22f4350596b6e8c659
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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}
|
Release files / lit_ollama-0.1.0-py3-none-any.whl
| Download URL | lit_ollama-0.1.0-py3-none-any.whl |
|---|---|
| Size | 34.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
073d8945bddbb8c626f06e7601a45e0cb0059080fc4f1ca233b6304a4c5e9289
|
|
BLAKE2b-256 checksum How to use checksums |
060b5af3161454276638ab6b615847e92fc5ad6aed9af7284e07629377ebbfd7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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}
|
Security for lit-ollama 0.1.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.