๐ฆ A pure rust framework for building real autonomous super agents.
902
LMM (Large Mathematical Model) is a pureโRust framework that models higherโdimensional reality through symbolic mathematics and physics simulation; Inspired by the Pharaonic model of intelligence: compress the world into durable, universal equations. No training. No GPU. No API key.
๐ง Linux (Recommended) | ๐ช Windows | ๐ณ Docker |
|---|---|---|
![]() | ![]() | ![]() |
Download lmm binaryโ | Download lmm.exe binaryโ | docker pull wiseaidev/lmm |
cargo install lmm --features rust-binary | cargo install lmm --features rust-binary | docker run -it wiseaidev/lmm |
lmm โ launches CLI | lmm โ launches CLI | Read DOCKER.mdโ |
The following demonstrates the symbolic prediction engine generating coherent English sentences powered entirely by deterministic mathematical equations and structural Subject-Verb-Object grammar; No neural networks, no statistical models. The engine supports a full suite of CLI subcommands including predict, summarize, sentence, paragraph, essay, and ask, enabling multi-paragraph construction driven entirely by mathematics.
LMM bridges multimodal perception and actionable scientific discovery through five tightly integrated layers:
| Layer | Modules | Purpose |
|---|---|---|
| Perception | perception.rs, tensor.rs | Raw bytes โ normalised tensors |
| Symbolic | equation.rs, symbolic.rs, discovery.rs | GP symbolic regression, differentiation, simplification |
| Physics | physics.rs, simulation.rs | ODE models + Euler / RK4 / RK45 / leapfrog integrators |
| Causal | causal.rs | SCM graphs, do-calculus interventions, counterfactuals |
| Cognition | consciousness.rs, world.rs, operator.rs | Full perceive โ encode โ predict โ act loop |
flowchart TD
A["Raw Input\n(bytes / sensors)"]
B["MultiModalPerception\n โ Tensor"]
C["Consciousness Loop\nperceive โ encode โ predict\nevaluate โ plan (lookahead)"]
D["WorldModel\n(RK4 physics)"]
E["SymbolicRegression\n(GP equation search)"]
F["CausalGraph\nintervention / counterfactual"]
G["Expression AST\ndifferentiate / simplify"]
A --> B --> C
C --> D
C --> E
E --> G
G --> F
D --> F
Simulatable.do(X=v) interventions, and counterfactual queries.--stochastic) delivers unique output each run while preserving mathematical sentence structure.The lmm crate ships the following Cargo features:
| Feature | Description |
|---|---|
rust-binary | Enables the standalone lmm terminal CLI executable |
cli | Core CLI scaffolding (subsets of rust-binary) |
net | Internet-aware ask command via DuckDuckGo search |
python | Python extension module via pyo3 / maturin |
node | Node.js native add-on via napi-derive |
The lmm library is available on crates.ioโ . For the complete API reference, installation guide, and worked examples, see the Rust usage guideโ .
The lmm binary supports 15 subcommands spanning simulation, discovery, encoding, prediction, summarisation, and rich text generation: all powered by pure equations.
For the full option reference and usage examples, see the CLI documentationโ or run lmm --help after installing with cargo install lmm --features rust-binary.
The Python bindings are published to PyPI as lmm-rs and are installed with pip install lmm-rs. Built with maturinโ , the package ships pre-compiled wheels for major CPython versions and runs a fully embedded Tokio runtime; no asyncio required.
For installation instructions, configuration options, and full method signatures, see the Python usage guideโ .
The Node.js bindings are published to npm as @wiseaidev/lmm and are installed with npm install @wiseaidev/lmm. Built with napi-rsโ , the package ships a pre-compiled .node add-on with TypeScript type definitions.
For installation instructions, type definitions, and examples, see the Node.js usage guideโ .
LMM natively targets wasm32-unknown-unknown. Because reqwest switches to the browser fetch API automatically, you can deploy LMM inside Rust frontend frameworks such as Yew, Dioxus, and Leptos without any additional glue code.
For CORS considerations, build steps, and usage details, see the WASM usage guideโ .
The lmm-agent crate extends LMM with a fully autonomous, equation-based agent layer; no LLM, no API key, no training data.
| Document | Description |
|---|---|
| AGENT.mdโ | Architecture, quick-start, types, and async API reference |
| DERIVE.mdโ | #[derive(Auto)] macro: generated traits and field contract |
| lmm-agent READMEโ | Crate-level API reference, builder, and example |
| lmm-derive READMEโ | Macro crate details and field rules |
The architecture, formal mathematics, and paradigm are fully documented in the official whitepaper: Read the Whitepaper (PDF)โ .
If you use LMM in your research, please cite our whitepaper:
@article{harmouch2026lmm,
author = {Mahmoud Harmouch},
title = {Mathematics Is All You Need: Training-Free Language Generation via
Symbolic Regression and Stochastic Determinism},
year = {2026},
url = {https://github.com/wiseaidotdev/lmm}
}
Contributions are welcome! Feel free to open issues or pull requests on GitHubโ .
Licensed under the MIT Licenseโ .
If you use or enjoy LMM, please leave us a star on GitHubโ ! It helps others discover the project and keeps the momentum going โ.
Content type
Image
Digest
sha256:bf174e09cโฆ
Size
8.3 MB
Last updated
5 months ago
docker pull wiseaidev/lmm