YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

πŸ”₯ Axiom: Neuro-Symbolic Inference Engine

Zero Hallucinations. 100% Deterministic Mathematical Precision.

Python PyTorch SymPy Streamlit Docker GitLab CI


🌌 Overview

Standard Large Language Models (LLMs) rely strictly on probabilistic token prediction. When tasked with calculus, integration, or differential equations, this architecture inevitably suffers from arithmetic hallucinations.

Axiom solves this fundamental flaw by implementing a custom Neuro-Symbolic Dual-System Architecture. Constructed completely from scratch in PyTorch without relying on pre-trained API wrappers, Axiom pairs the intuitive pattern-recognition of a Neural Network with the absolute formal precision of a deterministic symbolic verification kernel.


🧠 System Architecture

Axiom operates using a two-system cognitive pipeline:

                  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                  β”‚   Human Input (LaTeX/Text)   β”‚
                  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                 β”‚
                                 β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ SYSTEM 1: Neural Intuition (PyTorch Seq2Seq Transformer)         β”‚
β”‚  - Parses structural syntax via Multi-Head Self-Attention        β”‚
β”‚  - Classifies target mathematical operation and equation type    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                 β”‚
                                 β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ SYSTEM 2: Symbolic Verification (SymPy Integration Kernel)       β”‚
β”‚  - Receives structured classification tokens                     β”‚
β”‚  - Computes step-by-step calculus deterministically              β”‚
β”‚  - Back-propagates step derivations and generates LaTeX output   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                 β”‚
                                 β–Ό
                  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                  β”‚   100% Verified Response     β”‚
                  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

✨ Key Features

  • Zero-Hallucination Calculus: Decouples pattern recognition from symbolic manipulation for exact solutions.
  • Step-by-Step Reasoning Stream: Visualizes the engine's internal thought process, from pattern detection to step-by-step algebraic manipulation.
  • Custom Glassmorphic Interface: A deep-amber theme built with Streamlit and styled via dynamic CSS injection.
  • OpenAI-Compatible Microservice: Includes a FastAPI deployment option (/v1/chat/completions) for local or cloud LLM workflows.
  • Containerized & CI/CD Ready: Fully dockerized with automated deployment via GitLab CI/CD pipelines.

πŸš€ Quick Start

Option 1: Run via Docker (Recommended)

No local Python or PyTorch setup required:

# 1. Clone the repository
git clone https://gitlab.com/YOUR_USERNAME/axiom-engine.git
cd axiom-engine

# 2. Build the Docker container
docker build -t axiom-engine .

# 3. Launch the container
docker run -p 8501:8501 axiom-engine

Open http://localhost:8501 in your browser to view the interface.


Option 2: Local Developer Setup

# 1. Clone and enter directory
git clone https://gitlab.com/YOUR_USERNAME/axiom-engine.git
cd axiom-engine

# 2. Install dependencies
pip install -r requirements.txt

# 3. Launch the Streamlit application
streamlit run app.py

Option 3: Launch Local OpenAI-Compatible API

Serve the custom neural model as an API service:

# Launch FastAPI server on port 8000
uvicorn api_server:app --host 127.0.0.1 --port 8000

Query via curl:

curl http://localhost:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "axiom",
    "messages": [{"role": "user", "content": "dy/dx = x * y"}]
  }'

πŸ“‚ Repository Structure

axiom-engine/
β”œβ”€β”€ .gitlab-ci.yml        # GitLab CI/CD Pipeline configuration
β”œβ”€β”€ .streamlit/
β”‚   └── config.toml       # Streamlit UI theme constraints
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ vocab.py          # Character & mathematical tokenizers
β”‚   β”œβ”€β”€ model.py          # PyTorch Transformer architecture
β”‚   β”œβ”€β”€ symbolic_engine.py# SymPy integration and LaTeX execution
β”‚   └── pipeline.py       # Neuro-Symbolic router logic
β”œβ”€β”€ weights/
β”‚   β”œβ”€β”€ model.pth         # PyTorch neural weights state dictionary
β”‚   └── vocab.json        # Character vocabulary mapping
β”œβ”€β”€ app.py                # Main Streamlit web application
β”œβ”€β”€ api_server.py         # FastAPI OpenAI-compatible endpoint
β”œβ”€β”€ index.html            # GitLab Pages landing embed wrapper
β”œβ”€β”€ Dockerfile            # Container deployment specification
└── requirements.txt      # Python dependencies

πŸ§ͺ Demonstration Queries

Test Axiom's dual-system pipeline using these queries:

Query Category Example Input Target Engine Response
System Info Tell me about yourself Neuro-symbolic architecture summary
First-Order Separable dy/dx = x * y $y(x) = C_1 e^{x^2/2}$
First-Order Linear dy/dx + y = exp(x) $y(x) = \frac{e^x}{2} + C_1 e^{-x}$
Second-Order ODE y'' + 4*y = x^2 $y(x) = C_1 \sin(2x) + C_2 \cos(2x) + \frac{x^2}{4} - \frac{1}{8}$

🌐 Live Deployments


Architected for precision. Engineered from scratch.
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support