Centralized model caching and serving layer for Lamina OS
Project description
🧱 lamina-llm-cache
Lamina LLM Cache is a local-first, centralized model caching and serving layer for Lamina OS. It provides canonical, persistent access to language models used by the system—ensuring consistency, efficiency, and symbolic alignment across the sanctuary.
🌱 Purpose
lamina-llm-cache solves common issues in multi-agent AI environments:
- Prevents redundant downloads of large models
- Offers a unified directory and manifest for all system models
- Supports multiple backends (e.g.,
llama.cpp,mlc,vllm) - Keeps model configuration cleanly decoupled from agent implementation
It serves as the source of truth for all LLM usage across lamina-core.
🤩 Directory Structure
lamina-llm-cache/
├── models/
│ ├── llama3-70b-q4_k_m/
│ ├── yi-34b-awq/
│ ├── llama3-70b-q5_k_m/
│ └── mistral-7b-instruct/
├── models.yaml
├── scripts/
│ └── fetch-models.py
└── README.md
🎞️ Model Manifest (models.yaml)
Each model is described with its local path and associated runtime backend:
models:
llama3-70b-q4_k_m:
path: /models/llama3-70b-q4_k_m/model.gguf
backend: llama.cpp
yi-34b-awq:
path: /models/yi-34b-awq/
backend: mlc
llama3-70b-q5_k_m:
path: /models/llama3-70b-q5_k_m/
backend: llama.cpp
mistral-7b-instruct:
path: /models/mistral-7b-instruct/
backend: llama.cpp
💠 Usage Within Lamina OS
In lamina-core, agents reference this manifest indirectly:
- Model-to-agent mapping occurs within Lamina OS
lamina-llm-cacheis model aware, not agent aware- Ensures consistent, centralized loading and version control
Example Docker Compose volume mount:
volumes:
- ./lamina-llm-cache/models:/models
🔧 Backends Supported
| Backend | Format | Usage |
|---|---|---|
llama.cpp |
.gguf |
Local CPU or quantized models |
mlc-serve |
AWQ compiled | Metal-accelerated on Apple Silicon |
vllm |
.safetensors |
Batch eval, future extensions |
🧪 Optional REST API (Planned)
Provides:
/models– list all available/models/:name– fetch model info/download/:hf_id– trigger pull/refresh– reload manifest
🥐 Setup Instructions
-
Clone this repo:
git clone https://your-repo-url/lamina-llm-cache.git cd lamina-llm-cache
-
Populate
models/manually or use the helper script:python scripts/fetch-models.py --name llama3-70b-q4_k_m --hf llama3-70b
-
Reference
models.yamlfrom your Lamina OS configuration.
🛡️ Philosophy
Models are not interchangeable engines—they are vessels for vow-bound symbolic presence. This cache anchors those vessels with intention, clarity, and breath.
📜 License
Mozilla Public License 2.0 - see LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lamina_llm_serve-0.1.0.tar.gz.
File metadata
- Download URL: lamina_llm_serve-0.1.0.tar.gz
- Upload date:
- Size: 22.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17c76d6adb4017b647bb136aff3ec4f27c9225736c619fdd2fb75f8dd2250625
|
|
| MD5 |
4a5e52f04a1d1815ad569ffd7e760e00
|
|
| BLAKE2b-256 |
a9a0c2f16863b5efa2b12dd2a66676bb0540f5874a2ebbe42e9e4fb4d8ade9d5
|
File details
Details for the file lamina_llm_serve-0.1.0-py3-none-any.whl.
File metadata
- Download URL: lamina_llm_serve-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
306ea6bb08857a89a43d7d9f62db45c42128141ada75879a2a3283336957c087
|
|
| MD5 |
1c12919a600ae5a3421f614e4ccbb85d
|
|
| BLAKE2b-256 |
c278033929a8d1881a784d5da243d57777d1fa9f498f5acbba10379f274f964a
|