Open source · Python · Open-weight models
Serve HuggingFace models over a typed HTTP API, on your own hardware.
Marigold runs text, image, and audio models locally behind an OpenAI-compatible API -- chat, embeddings, image generation, and more, served from Docker Compose. No request ever reaches OpenAI, Anthropic, or any other external provider; runs fully airgapped once models are cached.
pip install bayis-marigold
git clone https://github.com/bayinfosys/marigold-examples
marigold deployment start marigold-examples/chat
Runs on hardware you control. No request leaves the machine, no third-party model provider sits in the path, nothing is retained outside the directory you point it at. For regulated sectors, that resolves the data question before procurement starts. Architecture detail →
01
One shared weight cache, independent of which application is running. Downloaded once, reused by everything that needs it.
02
A models.yaml, a marigold.toml, and application code -- a package. Marigold runs it; it never runs the package's own code, by design.
03
We've written about this at length: models as a fat protocol, applications as thin clients on top -- the same shape that made early internet protocols durable. Read the essay →
Extract text, embed, classify, and gate restricted content before it reaches an index. Text and image embeddings in one pipeline enable cross-modal search.
Generate, score for safety, aesthetic quality, and prompt alignment. Regenerate automatically until thresholds are met or attempts run out.
Compare an observation image against a reference by structural embedding. On deviation, segment both, diff the masks, and describe the discrepancy in natural language.
Extract entities, classify, summarise, and convert to speech in multiple languages from one workflow submission. Output: a summary plus audio per language.
Classify large volumes of unlabelled rows against a small labelled set. Low-confidence predictions go to an instruct model for explanation. No retraining.
Embed and compare images from multiple locations in parallel. On change, describe it and assemble a report, delivered as text and audio on a schedule.
Workflow execution is built on runfox and json-logic-path, both open source on PyPI.
Open source. Clone it, run it on your own hardware.
Questions? ed@bayis.co.uk