Text Generation
PEFT
Safetensors
English
lora
conversational
fine-tuned
mamba
ssm
neuralai
base-model
Instructions to use Subject-Emu-5259/NeuralAI with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Subject-Emu-5259/NeuralAI with PEFT:
Base model is not found.
- Notebooks
- Google Colab
- Kaggle
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,76 +1,236 @@
|
|
| 1 |
---
|
| 2 |
-
|
|
|
|
| 3 |
library_name: peft
|
| 4 |
-
tags:
|
| 5 |
-
- lora
|
| 6 |
-
- dpo
|
| 7 |
-
- smollm2
|
| 8 |
-
- text-generation
|
| 9 |
-
- transformers
|
| 10 |
-
- trl
|
| 11 |
-
- neuralai
|
| 12 |
license: apache-2.0
|
| 13 |
-
|
| 14 |
-
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
---
|
| 19 |
|
| 20 |
-
#
|
| 21 |
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
-
|
|
|
|
|
|
|
| 27 |
|
| 28 |
-
## NeuralAI Model Family
|
| 29 |
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
| NeuralAI-Air-135M-SFT | Supervised fine-tune of the 135M base | `Subject-Emu-5259/NeuralAI-Air-135M-SFT` |
|
| 35 |
|
| 36 |
-
|
|
|
|
|
|
|
| 37 |
|
| 38 |
-
##
|
| 39 |
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
-
|
| 43 |
-
-
|
| 44 |
-
- **Epochs:** 3 — **Steps:** 129 — **Duration:** ~31 min (Colab GPU)
|
| 45 |
-
- **Final train loss:** ~0.39 (0.692 → 0.396)
|
| 46 |
-
- **Reward accuracy:** 0.975 (chosen preferred over rejected)
|
| 47 |
-
- **Reward margin:** ~0.9 (stable, no collapse)
|
| 48 |
-
- **Entropy:** ~2.15–2.33 (stable)
|
| 49 |
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
textbook successful DPO with no sign of reward hacking or mode collapse. No
|
| 57 |
-
held-out eval set was configured, so generalization is inferred from training
|
| 58 |
-
reward signals only.
|
| 59 |
|
| 60 |
-
##
|
| 61 |
|
| 62 |
```python
|
| 63 |
-
from
|
| 64 |
-
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 65 |
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
tokenizer = AutoTokenizer.from_pretrained("Subject-Emu-5259/NeuralAI")
|
| 69 |
```
|
| 70 |
|
| 71 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
|
| 73 |
-
|
| 74 |
-
- **Live demo:** https://neuralai-web-ui-deandrewharris.zocomputer.io
|
| 75 |
-
- **Model family collection:** https://huggingface.co/collections/Subject-Emu-5259/neuralai-model-family-6a66ee29c7c5f26e044dee3c
|
| 76 |
-
- **Founder:** De'Andrew Preston Harris (D. Harris / Dre)
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
library_name: peft
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
license: apache-2.0
|
| 6 |
+
tags:
|
| 7 |
+
- lora
|
| 8 |
+
- conversational
|
| 9 |
+
- text-generation
|
| 10 |
+
- peft
|
| 11 |
+
- fine-tuned
|
| 12 |
+
- mamba
|
| 13 |
+
- ssm
|
| 14 |
+
- neuralai
|
| 15 |
+
- base-model
|
| 16 |
+
model_id: Subject-Emu-5259/NeuralAI
|
| 17 |
+
|
| 18 |
+
inference: false
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
# 🧠 NeuralAI: The Generative AI Engine
|
| 22 |
+
|
| 23 |
+
<p align="center">
|
| 24 |
+
<img src="neuralai_banner.svg" alt="NeuralAI — Your AI. On your hardware. In your browser." />
|
| 25 |
+
</p>
|
| 26 |
+
|
| 27 |
+
<p align="center">
|
| 28 |
+
<a href="https://github.com/Subject-Emu-5259/NeuralAI"><img src="https://img.shields.io/badge/GitHub-NeuralAI-181717?logo=github" alt="GitHub"></a>
|
| 29 |
+
<a href="https://huggingface.co/Subject-Emu-5259/NeuralAI"><img src="https://img.shields.io/badge/🤗%20Hub-NeuralAI-FFD21E" alt="HF Hub"></a>
|
| 30 |
+
<a href="https://huggingface.co/Subject-Emu-5259/NeuralAI-Mamba-K1"><img src="https://img.shields.io/badge/🤗%20Hub-Mamba%20K1-blue" alt="Mamba K1"></a>
|
| 31 |
+
<a href="https://huggingface.co/Subject-Emu-5259/NeuralAI-Mamba-K2"><img src="https://img.shields.io/badge/🤗%20Hub-Mamba%20K2-green" alt="Mamba K2"></a>
|
| 32 |
+
<a href="https://neuralai-web-ui-deandrewharris.zocomputer.io"><img src="https://img.shields.io/badge/Live-NeuralAI%20Web%20UI-6366f1" alt="Live UI"></a>
|
| 33 |
+
</p>
|
| 34 |
+
|
| 35 |
+
---
|
| 36 |
+
|
| 37 |
+
## 📊 Repository Composition
|
| 38 |
+
|
| 39 |
+
| Language | Percentage |
|
| 40 |
+
| --- | --- |
|
| 41 |
+
| Python | 71.1% |
|
| 42 |
+
| HTML | 13.0% |
|
| 43 |
+
| JavaScript | 12.4% |
|
| 44 |
+
| CSS | 2.6% |
|
| 45 |
+
| Shell | 0.4% |
|
| 46 |
+
| Jupyter Notebook | 0.3% |
|
| 47 |
+
| Jinja | 0.2% |
|
| 48 |
+
|
| 49 |
+
**The High-Velocity AI Engine for Your Entire Vibe Stack**
|
| 50 |
+
|
| 51 |
+
NeuralAI is the central intelligence engine developed by **De'Andrew Preston Harris**. Conceived and engineered as an owned AI platform, it spans fine-tuned transformer models, custom SSM base models, DPO alignment, and a production web UI — all designed for local-first, private AI computing.
|
| 52 |
+
|
| 53 |
+
---
|
| 54 |
+
|
| 55 |
+
## 🏗️ Model Family
|
| 56 |
+
|
| 57 |
+
```mermaid
|
| 58 |
+
graph TB
|
| 59 |
+
subgraph "NeuralAI Model Family"
|
| 60 |
+
direction TB
|
| 61 |
+
|
| 62 |
+
K1["🧬 Mamba K1<br/>130M · SFT 50 steps<br/>First Owned Base"]
|
| 63 |
+
K2["🧬 Mamba K2<br/>793M · Q4_K_M GGUF<br/>460MB · Production"]
|
| 64 |
+
K3["🔬 Mamba K3<br/>SFT 500-1000 steps<br/>10K+ UltraChat<br/>In Training"]
|
| 65 |
+
|
| 66 |
+
K1 --> K2 --> K3
|
| 67 |
+
K2 --> PROD["🚀 Active Inference<br/>LM Studio · 460MB RAM<br/>neuralai-web-ui.zocomputer.io"]
|
| 68 |
+
end
|
| 69 |
+
|
| 70 |
+
style K1 fill:#4a90d9,color:#fff
|
| 71 |
+
style K2 fill:#22c55e,color:#fff
|
| 72 |
+
style K3 fill:#f59e0b,color:#000
|
| 73 |
+
style PROD fill:#10b981,color:#fff
|
| 74 |
+
```
|
| 75 |
+
|
| 76 |
+
### Complete Lineup
|
| 77 |
+
|
| 78 |
+
| Model | Architecture | Params | Training | Status | Location |
|
| 79 |
+
|-------|-------------|--------|----------|--------|----------|
|
| 80 |
+
| **Mamba K1** | Mamba SSM | 130M | SFT LoRA 500 steps on 1K UltraChat (intel format) | 🔄 Retraining for chat coherence | `Subject-Emu-5259/NeuralAI-Mamba-K1` |
|
| 81 |
+
| **Mamba K2** | Mamba SSM | 793M | Base pretrained — SFT queued (Q4_K_M GGUF) | ⚠️ Base model only | `Subject-Emu-5259/NeuralAI-Mamba-K2` |
|
| 82 |
+
| **Mamba K3** | Mamba SSM | 2.8B | Base pretrained — SFT queued | ⚠️ Base model only | local `models/mamba-k3-base/` |
|
| 83 |
+
|
| 84 |
+
### Why Mamba SSM
|
| 85 |
+
|
| 86 |
+
| Property | Benefit |
|
| 87 |
+
|----------|--------|
|
| 88 |
+
| Complexity | \(O(n)\) linear — scales to long context efficiently |
|
| 89 |
+
| Inference | Fast at any sequence length, not just short prompts |
|
| 90 |
+
| Memory | K2 runs at 460MB (Q4_K_M GGUF) — fits on any device |
|
| 91 |
+
| Ownership | NeuralAI trains and merges all release weights on top of public Mamba SSM bases — every released GGUF is a fully merged model, not a raw base |
|
| 92 |
+
| Ecosystem | LM Studio, llama.cpp, Hugging Face — mature deployment options |
|
| 93 |
+
|
| 94 |
+
---
|
| 95 |
+
|
| 96 |
+
## 🌟 Vision & Manifesto
|
| 97 |
+
|
| 98 |
+
NeuralAI doesn't just predict text; it *operates the work*. The core mission is to create a multimodal generative system that bridges the gap between raw idea and execution. By fusing autoregressive generation with adaptive agency, NeuralAI becomes more than a chatbot — it is a persistent, reasoning partner.
|
| 99 |
+
|
| 100 |
+
Born from resilience and ambition in Memphis, Tennessee and West Memphis, Arkansas, NeuralAI represents a forward-thinking approach to personal, private AI computing.
|
| 101 |
+
|
| 102 |
+
---
|
| 103 |
+
|
| 104 |
+
## 🛠️ Tech Stack & Architecture
|
| 105 |
+
|
| 106 |
+
NeuralAI is built on a high-performance architecture that decouples the inference engine from the web interface, enabling lightweight cloud hosting with powerful local inference.
|
| 107 |
+
|
| 108 |
+
### Core Stack
|
| 109 |
+
|
| 110 |
+
- **Production Model**: Mamba K2 793M Q4_K_M GGUF (460MB) via llama.cpp — active inference engine
|
| 111 |
+
- **Model Family**: Mamba K1 (130M, SFT LoRA retry) → Mamba K2 (793M base GGUF) → Mamba K3 (2.8B base)
|
| 112 |
+
- **Inference Engine**: llama.cpp server with a custom `neuralai-intel` chat format (vocabulary-friendly for GPT-NeoX / Mamba tokenizers)
|
| 113 |
+
- **Vocal Identity**: Andrew (Warm/Multilingual) — Optional voice synthesis integration
|
| 114 |
+
- **Web Interface**: Custom Flask UI served via Zo Computer at `neuralai-web-ui-deandrewharris.zocomputer.io`
|
| 115 |
+
- **Tool Chain**: 10 live slash commands (/web, /fetch, /browse, /research, /img, /speak, /summarize, /translate, /news, /yt) + NL→Tool Router
|
| 116 |
+
|
| 117 |
+
### Future Scale Path
|
| 118 |
+
|
| 119 |
+
| Stage | Params | Goal | Status |
|
| 120 |
+
|-------|--------|------|--------|
|
| 121 |
+
| **Mamba K1 SFT v2** | 130M | Finish 500-step SFT with intel format + GGUF | 🔄 Active |
|
| 122 |
+
| **Mamba K2 SFT** | 793M | SFT LoRA 500 steps → merge → Q4_K_M GGUF | 📋 Next |
|
| 123 |
+
| **Mamba K3 SFT** | 2.8B | SFT LoRA 1000 steps → merge → Q4_K_M GGUF | 📋 Next |
|
| 124 |
+
| **Mamba 2B/3B** | ~2-3B | Scaled SSM architecture, benchmarks | 📋 Planned |
|
| 125 |
+
|
| 126 |
+
---
|
| 127 |
+
|
| 128 |
+
## ✨ Key Features & Capabilities
|
| 129 |
+
|
| 130 |
+
### 💬 Multimodal Chat & Agentic Intelligence
|
| 131 |
+
|
| 132 |
+
- **High-Velocity Text Inference**: Fast, local inference with deep context awareness
|
| 133 |
+
- **Deep Reasoning Mode**: Integration of test-time compute and chain-of-thought reasoning
|
| 134 |
+
- **Autonomous Agentic Workflows**: Agent-mode interaction with browser, terminal, and third-party apps
|
| 135 |
+
- **Live S2S (Speech-to-Speech)**: Real-time voice interaction with integrated microphone interface
|
| 136 |
+
- **Identity Vault & Memory**: Persistent user memory and rule constraints
|
| 137 |
+
|
| 138 |
+
### 🔧 Developer & Engineering Tools
|
| 139 |
+
|
| 140 |
+
- **10 Web Tool Commands**: Search, fetch, browse, research, image gen, TTS, summarize, translate, news, YouTube
|
| 141 |
+
- **NL→Tool Router**: Natural language web requests auto-routed to the right tool
|
| 142 |
+
- **Model Manager**: CLI switching between all registered models
|
| 143 |
+
- **Benchmark Suite**: Perplexity, generation diversity, MMLU-style, reasoning tests
|
| 144 |
+
|
| 145 |
---
|
| 146 |
|
| 147 |
+
## 🚀 Model Lineage
|
| 148 |
|
| 149 |
+
```mermaid
|
| 150 |
+
timeline
|
| 151 |
+
title NeuralAI Model Evolution
|
| 152 |
+
: Custom 135M base SFT
|
| 153 |
+
2026 Q3 : Mamba K1 — First owned base
|
| 154 |
+
: 130M SSM · Proof of Concept
|
| 155 |
+
2026 Q3 : Mamba K2 — Scaled base
|
| 156 |
+
: 790M Q4_K_M · GGUF ready
|
| 157 |
+
2026 Q3 : Mamba K3 — Full SFT
|
| 158 |
+
: 500-1000 steps · 10K+ samples
|
| 159 |
+
2026 Q4 : Mamba 2B/3B — Next scale targets
|
| 160 |
+
: 2B SSM → 3B Core Intelligence
|
| 161 |
+
```
|
| 162 |
|
| 163 |
+
---
|
| 164 |
+
|
| 165 |
+
## 🚀 Deployment
|
| 166 |
|
|
|
|
| 167 |
|
| 168 |
+
```bash
|
| 169 |
+
# 1. Start the inference service
|
| 170 |
+
cd NeuralAI
|
| 171 |
+
supervisorctl -c /etc/zo/supervisord-user.conf restart neuralai-lmstudio
|
|
|
|
| 172 |
|
| 173 |
+
# 2. Start the web UI service
|
| 174 |
+
python3 services/webui_service.py
|
| 175 |
+
```
|
| 176 |
|
| 177 |
+
### Mamba K2 (LM Studio / llama.cpp)
|
| 178 |
|
| 179 |
+
```bash
|
| 180 |
+
# Download from HuggingFace
|
| 181 |
+
huggingface-cli download Subject-Emu-5259/NeuralAI-Mamba-K2 \
|
| 182 |
+
mamba-790m-hf.Q4_K_M.gguf --local-dir ./models/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 183 |
|
| 184 |
+
# Serve with the NeuralAI chat format
|
| 185 |
+
python3 services/lmstudio_server.py \
|
| 186 |
+
--model models/mamba-790m-hf.Q4_K_M.gguf \
|
| 187 |
+
--chat_format neuralai-intel \
|
| 188 |
+
--port 1234
|
| 189 |
+
```
|
|
|
|
|
|
|
|
|
|
| 190 |
|
| 191 |
+
### Mamba K1 (Python)
|
| 192 |
|
| 193 |
```python
|
| 194 |
+
from transformers import MambaForCausalLM, AutoTokenizer
|
|
|
|
| 195 |
|
| 196 |
+
model = MambaForCausalLM.from_pretrained("Subject-Emu-5259/NeuralAI-Mamba-K1")
|
| 197 |
+
tokenizer = AutoTokenizer.from_pretrained("Subject-Emu-5259/NeuralAI-Mamba-K1")
|
|
|
|
| 198 |
```
|
| 199 |
|
| 200 |
+
### Containerized Deployments
|
| 201 |
+
|
| 202 |
+
| Deployment | Dockerfile | Stack | Status |
|
| 203 |
+
| --- | --- | --- | --- |
|
| 204 |
+
| **Web Chat** | `services/start_lmstudio.sh` + Flask UI | llama.cpp + `neuralai-web-ui.zocomputer.io` | ✅ Live |
|
| 205 |
+
|
| 206 |
+
---
|
| 207 |
+
|
| 208 |
+
## 🌌 NeuralAI Ecosystem
|
| 209 |
+
|
| 210 |
+
The standalone software implementation of the NeuralAI core is **NeuralLabs**:
|
| 211 |
+
👉 [github.com/Subject-Emu-5259/NeuralLabs](https://github.com/Subject-Emu-5259/NeuralLabs)
|
| 212 |
+
|
| 213 |
+
**Software Downloads**: Latest beta builds available at:
|
| 214 |
+
👉 [zo.pub/deandrewharris/neurallabs-beta](https://zo.pub/deandrewharris/neurallabs-beta)
|
| 215 |
+
|
| 216 |
+
---
|
| 217 |
+
|
| 218 |
+
## 📈 Current State & Active Goals
|
| 219 |
+
|
| 220 |
+
- **Legacy DPO v17 / Air 135M / SmolLM2-360M**: Retired and removed from the repository
|
| 221 |
+
- **Mamba K1**: First owned SSM base model — retraining with intel-format SFT for coherent chat (Colab/GPU)
|
| 222 |
+
- **Mamba K2**: Base pretrained GGUF ready — awaiting SFT
|
| 223 |
+
- **Mamba K3**: 2.8B base downloaded — awaiting SFT
|
| 224 |
+
- **Last Maintenance**: August 1, 2026 (Mamba Era — fix chat format + retrain pipeline)
|
| 225 |
+
|
| 226 |
+
---
|
| 227 |
+
|
| 228 |
+
## 👤 Creator
|
| 229 |
+
|
| 230 |
+
Built by **De'Andrew Preston Harris** ([@deandrewharris94](https://linkedin.com/in/deandrewharris94/)) with Google Gemini AI Studio/Colab collaboration.
|
| 231 |
+
|
| 232 |
+
From Memphis, Tennessee. Raised in West Memphis, Arkansas. AI Software Engineering at Maestro College.
|
| 233 |
+
|
| 234 |
+
---
|
| 235 |
|
| 236 |
+
# NeuralAI → Hugging Face sync is live
|
|
|
|
|
|
|
|
|