Skip to main content

🌟 LMM 🦀

LMM

Work In Progress ASI (Best Run) Crates.io Docs.rs Crates.io Downloads PyPI version NPM version made-with-rust Rust License Maintenance

Share On Reddit Share On X Share On Linkedin

LMM (Large Mathematical Model) empowers you to build ethical AI systems, without GPUs, training data, or API keys. Grounded in pure mathematics and transparent symbolic reasoning, LMM gives every developer, regardless of compute budget, the ability to create AI that is auditable, explainable, and bias-free by design. No data exploitation. No environmental cost. Just mathematics.

🐧 Linux (Recommended) 🪟 Windows 🐳 Docker
lmm-linux lmm-windows lmm-linux
Download lmm binary Download lmm.exe binary docker pull wiseaidev/lmm
cargo install lmm --all-features cargo install lmm --all-features docker run -it wiseaidev/lmm
lmm ← launches TUI lmm ← launches TUI Read DOCKER.md

🎬 Demo

The following demonstrates the full TRAM (Text Reasoning and Applied Mathematics) pipeline generating coherent, non-repetitive English prose powered entirely by deterministic mathematics and transparent symbolic reasoning. The pipeline runs through six stages: web knowledge retrieval, adaptive thought engine reasoning, symbolic inference, global deduplication, structural shaping, and stochastic enhancement.

TRAM is LMM's default reasoning engine. All TRAM options are available directly at the top-level CLI command or via the explicit tram subcommand:

# Launch the TUI:
lmm

# Top-level direct execution (default TRAM mode):
lmm -p "rust programming" --verbose
lmm -p "machine learning" --probability=0.1 --knowledge-base ./papers --iterations 20 --verbose
lmm -p "stochastic determinism" -k ./papers -i 15 --probability=0.1 --verbose
lmm -p "rust programming" --cf-threshold 0.35 --inference-depth 4 --verbose

# Intent-aware enrichment + response framing (always on):
lmm -p "what are the advantages of rust?" --verbose
lmm -p "rust vs python" --verbose
lmm -p "write a hello world in python" --verbose

# With Adaptive Thought Engine enabled:
lmm -p "why does Rust not have a garbage collector?" --think --verbose
lmm -p "rust vs python" --think --think-steps 4 --think-threshold 0.7 --verbose
lmm -p "machine learning" --think --think-steps 6 --think-patience 2 --verbose

# Control decomposition and framing:
lmm -p "advantages of rust" --max-tasks 6 --verbose
lmm -p "rust programming" --no-frame --verbose

# Or via explicit subcommand (identical behavior):
lmm tram -p "rust programming" --verbose
lmm tram -p "machine learning" --probability=0.1 --knowledge-base ./papers --iterations 20 --verbose
lmm tram -p "stochastic determinism" -k ./papers -i 15 --verbose
lmm tram -p "rust programming" --cf 0.35 --inf-depth 4 --verbose
lmm tram -p "what is WebAssembly?" --think --verbose
lmm tram -p "write hello world in rust" --max-tasks 4 --verbose

🎛️ Modes of Operations

LMM supports 4 modes of operations: ask (regular web search), think (think & ate engine), deep search. The following demostrates the output of two of these modes:

Search Think + Deep Search
search deep search

For more information, see the Architecture document.

📦 Installation

🦀 Rust

The lmm library is available on crates.io. For the complete API reference, installation guide, and worked examples, see the Rust usage guide.

💻 Command-Line Interface

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 --all-features.

🐍 Python

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.

🟩 Node.js

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.

🌐 WebAssembly (WASM)

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.

🤖 Agent Framework

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

📰 Publications & Research

The architecture, formal mathematics, and paradigm are fully documented in the official whitepaper: Read the Whitepaper (PDF).

📂 Examples

Example Description
chat Interactive chat UI powered by all LMM generation modes: Ask (DuckDuckGo), Sentence, Paragraph, Essay, Summarize, Predict.
yap Two LMM agents conversing non-stop using the full TRAM pipeline in WASM: web fetch → SentenceFilter → KnowledgeIndex → RuleBase → InferenceEngine → ProseBuilder → GlobalDeduplicator → ParagraphShaper. Agent Alpha queries a topic; Agent Beta derives the next sub-topic and queries back: producing varied, non-repetitive debate indefinitely.
arc-lmm-agent Autonomous ARC-AGI-3 solver using LMM's episodic reasoning. WIP: Achieves 100% success across games with $0 cost and no external AI APIs.

Blog Posts

📝 Citation

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}
}

🤝 Contributing

Contributions are welcome! Feel free to open issues or pull requests on GitHub.

📄 License

Licensed under the MIT License.

⭐ Star Us

If you use or enjoy LMM, please leave us a star on GitHub! It helps others discover the project and keeps the momentum going ☕.

Star History Chart

Metadata

Release files for lmm-rs 0.4.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for lmm-rs 0.4.3
File Interpreter ABI Platform Actions
lmm_rs-0.4.3-cp314-cp314-manylinux_2_38_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.38+ x86-64 Details for lmm_rs-0.4.3-cp314-cp314-manylinux_2_38_x86_64.whl

Release files / lmm_rs-0.4.3-cp314-cp314-manylinux_2_38_x86_64.whl

Download URL lmm_rs-0.4.3-cp314-cp314-manylinux_2_38_x86_64.whl
Size 7.6 MB
Tags CPython 3.14 Linux glibc 2.38+ x86-64
SHA-256 checksum
How to use checksums
02053f415c0984b98cccfa8537b821f2fd35cba0d2d6a2ff5de28697d3e7520c
BLAKE2b-256 checksum
How to use checksums
e947962520ab844a64e4f0739ff346f9753bf377e0658144500162e824bcd12a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for lmm-rs 0.4.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.4.3 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page