How rajsingh18110/lmms works
LMMs is a multi-interface agentic AI platform that runs open-source language models behind a backend for tools, retrieval, research, and session state. The principal workflow is user input through a CLI, GUI, or API into backend orchestration, then model inference through a selected runtime and a response. The README documents the dual runtimes and agent capabilities; sampled code shows API routing, runtime selection, orchestration setup, and research execution. Some connections to unsampled subsystems are documented rather than verified in source.
Main entry points: main.py Backend session · pipeline.py Request orchestration · manager.py Runtime selection · commands.py CLI
Components 20
User interfaces
- CLI
lmms/cli/commands.py - GUI workspace
lmms/gui/core/main_window.py
API and backend
- HTTP API
lmms/api/server.py - Backend session
lmms/backend/main.py - Backend services
lmms/backend/logic/manager.py
Agent capabilities
- Request orchestration
lmms/backend/orchestration/pipeline.py - Agent routing
lmms/backend/agents/manager.py - Tool execution
lmms/backend/tools/core/executor.py - Web research
lmms/backend/research/engine.py - Vector retrieval
lmms/backend/tools/rag.py - Session memory
lmms/backend/memory/core_memory.py - Workspace and Git
lmms/backend/git/manager.py - Extensions
lmms/extensions/manager.py
Model inference
- Runtime selection
lmms/engine/manager.py - llama.cpp runtime
lmms/engine/runtimes/llama_cpp.py - PyTorch runtime
lmms/engine/runtimes/universal_pytorch.py - AirEngine
lmms/engine/air/runtime.py - Model registry
lmms/engine/registry.py
Other components
- User
- Remote engine
Connections 24
- User → CLI: enters request
- User → GUI workspace: uses workspace
- User → HTTP API: sends request
lmms/api/server.py - CLI → HTTP API: sends API calls
lmms/cli/commands.py - CLI → Remote engine: targets remote
- GUI workspace → Backend session: uses backend
- HTTP API → Backend session: routes chat
lmms/api/server.py - Backend session → Request orchestration: prepares requests
lmms/backend/main.py - Backend session → Backend services: uses services
lmms/backend/logic/manager.py - Request orchestration → Agent routing: routes agent work
- Request orchestration → Tool execution: dispatches tools
- Request orchestration → Vector retrieval: retrieves context
- Request orchestration → Session memory: uses session memory
- Request orchestration → Web research: requests research
- Backend session → Workspace and Git: supports workspace
- User → Extensions: adds extensions
- Backend session → Runtime selection: selects runtime
- Runtime selection → llama.cpp runtime: selects runtime
lmms/engine/manager.py - Runtime selection → PyTorch runtime: selects runtime
lmms/engine/manager.py - Runtime selection → AirEngine: loads AirEngine
lmms/engine/manager.py - Runtime selection → Model registry: manages models
- llama.cpp runtime → Backend session: returns generation
- PyTorch runtime → Backend session: returns generation
- AirEngine → Backend session: returns generation