Robotics
Transformers
Russian
English
neuroscience
consciousness
AGI
open-science
simulation
spiking-neural-networks
Realtime
NumPy
SNN
IIT
hormones
Instructions to use vslab/DRMH12 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use vslab/DRMH12 with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("vslab/DRMH12", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
2c1862f
verified ·
0
Parent(s):
initial commit
Browse files- .gitattributes +55 -0
- README.md +124 -0
.gitattributes
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
# Audio files - uncompressed
|
| 38 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
# Audio files - compressed
|
| 42 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
# Image files - uncompressed
|
| 48 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
# Image files - compressed
|
| 53 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- text-to-image
|
| 4 |
+
- lora
|
| 5 |
+
- diffusers
|
| 6 |
+
- template:diffusion-lora
|
| 7 |
+
widget:
|
| 8 |
+
- output:
|
| 9 |
+
url: images/DRM-H12 ОБЛОЖКА.jpg
|
| 10 |
+
text: '-'
|
| 11 |
+
- output:
|
| 12 |
+
url: images/DRM-H12 ОБЛОЖКА.jpg
|
| 13 |
+
text: '-'
|
| 14 |
+
base_model: baidu/ERNIE-Image
|
| 15 |
+
instance_prompt: null
|
| 16 |
+
license: cc0-1.0
|
| 17 |
+
---
|
| 18 |
+
# DRM-H12
|
| 19 |
+
|
| 20 |
+
<Gallery />
|
| 21 |
+
|
| 22 |
+
## Model description
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
**DRM-H12-v2 (fix15) — Hierarchical Self‑Model of Consciousness**
|
| 26 |
+
|
| 27 |
+
> Real‑time simulation of 1,156,000 neurons, 27.7M synapses, hormonal dynamics, and integrated information theory (IIT).
|
| 28 |
+
|
| 29 |
+
This project implements a biologically inspired computational model of consciousness, integrating multiple neurocognitive theories into a single running system.
|
| 30 |
+
It is **not a classical ML model** but a **dynamical neural simulation** with synaptic plasticity (STDP, Oja, BCM), structural plasticity, a hormonal system with circadian rhythms, and a hierarchical self‑model (HSM) with predictive processing.
|
| 31 |
+
|
| 32 |
+
The simulation is written in Python (FastAPI + NumPy + Numba) and visualized via a Next.js / React front‑end** with real‑time charts and control panels.
|
| 33 |
+
|
| 34 |
+
---
|
| 35 |
+
|
| 36 |
+
## 🧠 Theoretical Foundations
|
| 37 |
+
|
| 38 |
+
The model combines five major theories:
|
| 39 |
+
|
| 40 |
+
| Theory | Implementation in DRM-H12-v2 |
|
| 41 |
+
|--------|------------------------------|
|
| 42 |
+
| **Integrated Information Theory (IIT)** – Tononi | Φ(t) computed from network partitions, influences consciousness index Θ. |
|
| 43 |
+
| **Global Workspace Theory** – Baars & Dehaene | G(t) = tanh(α · mean(x)) – a broadcasted neural activity pool. |
|
| 44 |
+
| **Hope Theory** – Snyder | H(t) = A(t) · P(t) (agency × pathways) – a meta‑motivational signal. |
|
| 45 |
+
| **BCM & Oja & STDP** | Tri‑factor synaptic plasticity: Hebbian, homeostatic, and spike‑timing dependent. |
|
| 46 |
+
| **Predictive processing + Hierarchical Self‑Model (HSM)** | Two‑level self (bodily S1, abstract S2) with prediction errors and reflection depth D(t). |
|
| 47 |
+
|
| 48 |
+
---
|
| 49 |
+
|
| 50 |
+
## 📊 Key Model Features
|
| 51 |
+
|
| 52 |
+
### Neural layer
|
| 53 |
+
- **1,156,000 neurons** placed on a ring topology (RING_HALF = 5000)
|
| 54 |
+
- **24 synapses per neuron** (sparse, float32) → ~27.7 million connections
|
| 55 |
+
- **Spiking activity** with adaptive thresholds
|
| 56 |
+
|
| 57 |
+
### Plasticity
|
| 58 |
+
- **STDP** (spike‑timing dependent plasticity)
|
| 59 |
+
- **Oja’s rule** (weight normalisation)
|
| 60 |
+
- **BCM** (Bienenstock‑Cooper‑Munro) with sliding threshold
|
| 61 |
+
- **Structural plasticity** – synapse growth and pruning (up to 13%/day)
|
| 62 |
+
|
| 63 |
+
### Hormonal system (10 hormones)
|
| 64 |
+
- DA (dopamine), 5‑HT (serotonin), NE (norepinephrine), MLT (melatonin), CORT (cortisol), OXT (oxytocin), EPI (epinephrine), LEP (leptin), T (testosterone), GHR (growth hormone)
|
| 65 |
+
- **5 antagonistic pairs** with product balance (PAIR_MIDPOINT=0.40)
|
| 66 |
+
- **Circadian rhythms** and anti‑extremal mechanisms
|
| 67 |
+
|
| 68 |
+
### Consciousness metrics
|
| 69 |
+
- **Φ** – Integrated information (Tononi IIT)
|
| 70 |
+
- **Θ** – Full consciousness index = Ω · ξ · Ψ · E_info
|
| 71 |
+
(hormonal duality × motivational conflict × spectral integrity × information energy)
|
| 72 |
+
- **E_info** – Information energy ("fuel of consciousness")
|
| 73 |
+
- **Self‑referent neuron**: S(t) = σ(γ·x + δ·S(t-1))
|
| 74 |
+
|
| 75 |
+
### Sleep/wake cycle
|
| 76 |
+
- 1000 steps / day, 15% sleep (150 steps)
|
| 77 |
+
- Memory consolidation (weak synapses reset, strong protected)
|
| 78 |
+
- Neurogenesis boost during sleep (×1.8)
|
| 79 |
+
|
| 80 |
+
---
|
| 81 |
+
|
| 82 |
+
## 📁 Dataset Acknowledgment – Human Data Used
|
| 83 |
+
|
| 84 |
+
*This simulation was calibrated using real human neurobehavioral data.*
|
| 85 |
+
|
| 86 |
+
We used the **Probability Decision‑making Task with ambiguity** dataset from OpenNeuro:
|
| 87 |
+
|
| 88 |
+
> **ds004917** – Valdebenito‑Oyarzo et al. (2024)
|
| 89 |
+
> *PLOS Biology*, doi:[10.1371/journal.pbio.3002452](https://doi.org/10.1371/journal.pbio.3002452)
|
| 90 |
+
|
| 91 |
+
The empirical EEG and behavioural responses under ambiguity informed:
|
| 92 |
+
- the tuning of uncertainty‑related neuromodulators (norepinephrine, dopamine),
|
| 93 |
+
- the structural plasticity rates,
|
| 94 |
+
- and the parameters of the predictive self‑model (fix15).
|
| 95 |
+
|
| 96 |
+
Please cite both the model and the original dataset when reusing or extending this work.
|
| 97 |
+
|
| 98 |
+
---
|
| 99 |
+
|
| 100 |
+
## 🚀 How to Run This Space
|
| 101 |
+
|
| 102 |
+
This Space uses **Docker** to run the full stack (Python backend + static frontend build).
|
| 103 |
+
When you open the Space, the simulation will automatically start at the exposed port `7860`.
|
| 104 |
+
|
| 105 |
+
**Manual run (local):**
|
| 106 |
+
If you clone the repository, you can also run it locally:
|
| 107 |
+
|
| 108 |
+
```bash
|
| 109 |
+
# Backend
|
| 110 |
+
cd backend
|
| 111 |
+
python -m venv venv
|
| 112 |
+
source venv/bin/activate # or venv\Scripts\activate on Windows
|
| 113 |
+
pip install -r requirements.txt
|
| 114 |
+
python main.py
|
| 115 |
+
|
| 116 |
+
# Frontend (in another terminal)
|
| 117 |
+
npm install
|
| 118 |
+
npm run dev
|
| 119 |
+
|
| 120 |
+
|
| 121 |
+
## Download model
|
| 122 |
+
|
| 123 |
+
|
| 124 |
+
[Download](/vslab/DRMH12/tree/main) them in the Files & versions tab.
|