Skip to content

feat: add llmman binding reusing the Ollama binding - #720

Open
ericcurtin wants to merge 1 commit into
ParisNeo:mainfrom
ericcurtin:llmman
Open

ericcurtin wants to merge 1 commit into
ParisNeo:mainfrom
ericcurtin:llmman

Conversation

@ericcurtin

@ericcurtin ericcurtin commented Sep 4, 2026

Copy link
Copy Markdown

Description

Adds llmman, a local model runner that serves the Ollama API on port 17434.

  • New zoos/bindings_zoo/llmman/ binding subclasses the existing ollama_ai binding instead of copying it; the wire protocol is the same, only the default port differs.
  • ollama_ai/__init__.py: the binding folder and default address become overridable class attributes (binding_path, default_address). Ollama behaviour is unchanged.
  • llmman defaults to http://127.0.0.1:17434, honouring LLMMAN_HOST ([host][:port]) if set.
  • get_available_models lists models from the running server (/api/tags) since llmman pulls OCI artifacts / hf.co/org/model, not the Ollama library list.
  • README: llmman service added to the bindings and install-command lists.

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have tested this code locally, and it is working as intended
  • I have updated the documentation accordingly

Testing: py_compile on both bindings passes; ruff check introduces no new findings; both bindings load via SourceFileLoader as BindingBuilder does, with defaults, LLMMAN_HOST parsing and get_available_models asserted with stubs. Not run against a live llmman server.

AI-assisted, reviewed before submitting.

llmman (https://github.com/llmmanorg/llmman) is a local model runner
that serves the Ollama API on port 17434, so the new binding subclasses
the Ollama binding instead of duplicating it. The Ollama binding's folder
and default address become overridable class attributes to allow this;
Ollama behaviour is unchanged. llmman defaults to 127.0.0.1:17434
(honouring LLMMAN_HOST) and lists models from the running server.
_ollama_ai = importlib.util.module_from_spec(_spec)
_spec.loader.exec_module(_ollama_ai)

__author__ = "parisneo"

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change this to your own pseudo

######
# Project : lollms
# File : binding.py
# Author : ParisNeo with the help of the community

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change this to your own name or pseudonyme

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants