{"id":47981915,"url":"https://github.com/twsl/lit-ollama","last_synced_at":"2026-04-04T11:06:29.071Z","repository":{"id":340720076,"uuid":"902138453","full_name":"twsl/lit-ollama","owner":"twsl","description":"Replace ollama with LitServe","archived":false,"fork":false,"pushed_at":"2026-03-24T03:05:08.000Z","size":1974,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-24T04:54:40.269Z","etag":null,"topics":["lightning","lit-ollama","litgpt","litserve","ollama","pytorch","pytorch-lightning"],"latest_commit_sha":null,"homepage":"https://twsl.github.io/lit-ollama/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/twsl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-12-12T01:32:31.000Z","updated_at":"2026-03-23T07:38:25.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/twsl/lit-ollama","commit_stats":null,"previous_names":["twsl/lit-ollama"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/twsl/lit-ollama","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twsl%2Flit-ollama","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twsl%2Flit-ollama/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twsl%2Flit-ollama/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twsl%2Flit-ollama/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twsl","download_url":"https://codeload.github.com/twsl/lit-ollama/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twsl%2Flit-ollama/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31397056,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lightning","lit-ollama","litgpt","litserve","ollama","pytorch","pytorch-lightning"],"created_at":"2026-04-04T11:06:25.744Z","updated_at":"2026-04-04T11:06:29.054Z","avatar_url":"https://github.com/twsl.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lit-ollama\n\n[![Build](https://github.com/twsl/lit-ollama/actions/workflows/build.yaml/badge.svg)](https://github.com/twsl/lit-ollama/actions/workflows/build.yaml)\n[![Documentation](https://github.com/twsl/lit-ollama/actions/workflows/docs.yaml/badge.svg)](https://github.com/twsl/lit-ollama/actions/workflows/docs.yaml)\n[![PyPI - Package Version](https://img.shields.io/pypi/v/lit-ollama?logo=pypi\u0026style=flat\u0026color=orange)](https://pypi.org/project/lit-ollama/)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/lit-ollama?logo=pypi\u0026style=flat\u0026color=blue)](https://pypi.org/project/lit-ollama/)\n[![Docs with MkDocs](https://img.shields.io/badge/MkDocs-docs?style=flat\u0026logo=materialformkdocs\u0026logoColor=white\u0026color=%23526CFE)](https://squidfunk.github.io/mkdocs-material/)\n[![uv](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json)](https://github.com/astral-sh/uv)\n[![linting: ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n[![ty](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ty/main/assets/badge/v0.json)](https://github.com/astral-sh/ty)\n[![prek](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/j178/prek/master/docs/assets/badge-v0.json)](https://github.com/j178/prek)\n[![security: bandit](https://img.shields.io/badge/security-bandit-yellow.svg)](https://github.com/PyCQA/bandit)\n[![Semantic Versions](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--versions-e10079.svg)](https://github.com/twsl/lit-ollama/releases)\n[![Copier](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/copier-org/copier/master/img/badge/badge-grayscale-border.json)](https://github.com/copier-org/copier)\n[![License](https://img.shields.io/badge/license-MIT-blue)](LICENSE)\n\nReplace ollama with LitServe\n\n## Features\n\n- **LitGPT model support**: Load and serve any LitGPT-compatible model using the standard Ollama interface\n- **Ollama-compatible API**: Full compatibility with the Ollama API specification, allowing you to use any Ollama client without modifications\n- **LitServe powered**: Built on LitServe for high-performance model serving with auto-batching and GPU acceleration\n\n## Installation\n\nWith `pip`:\n\n```bash\npython -m pip install lit-ollama\n```\n\nWith [`uv`](https://docs.astral.sh/uv/):\n\n```bash\nuv add lit-ollama\n```\n\n## How to use it\n\nRun like any other `litserve` server:\n```python\nimport litserve as ls\n\nfrom lit_ollama.server.api import LitOllamaAPI\n\napi = LitOllamaAPI(\"mock\")\nserver = ls.LitServer(\n    api,\n    accelerator=\"auto\",\n    devices=\"auto\",\n    callbacks=None,\n    middlewares=None,\n)\nserver.run()\n```\n\nStart the server with a specific model:\n\n```bash\npython server.py --model \"meta-llama/Llama-3.2-1B-Instruct\"\n```\n\nYou can test the server by using the client to interact with it:\n\n```bash\npython client.py\n```\n\n## Docs\n\n```bash\nuv run mkdocs build -f ./mkdocs.yml -d ./_build/\n```\n\n## Update template\n\n```bash\ncopier update --trust -A --vcs-ref=HEAD\n```\n\n## Credits\n\nThis project was generated with [![🚀 python project template.](https://img.shields.io/badge/python--project--template-%F0%9F%9A%80-brightgreen)](https://github.com/twsl/python-project-template)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwsl%2Flit-ollama","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwsl%2Flit-ollama","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwsl%2Flit-ollama/lists"}