amuzetnoM commited on
Commit
abce340
·
verified ·
1 Parent(s): 00bf0a6

Security: removing sensitive content

Browse files
Files changed (1) hide show
  1. README.md +0 -289
README.md DELETED
@@ -1,289 +0,0 @@
1
- ---
2
- license: apache-2.0
3
- tags:
4
- - novel-architecture
5
- - from-scratch
6
- - memory-augmented
7
- - cpu-training
8
- - intelligence-kernel
9
- - attention-mechanism
10
- - spectral-memory
11
- language:
12
- - en
13
- library_name: pytorch
14
- pipeline_tag: text-generation
15
- ---
16
-
17
- # GLADIUS v2 — Intelligence Kernel
18
-
19
- > **A novel AI architecture built from first principles. Not a fine-tune. Not a wrapper. A new kind of machine.**
20
-
21
- <p align="center">
22
- <strong>Artifact Virtual</strong> <br>
23
- <em>Independent AI Research</em>
24
- </p>
25
-
26
- ---
27
-
28
- ## What Is This?
29
-
30
- GLADIUS v2 is an **intelligence kernel** — a unified architecture that integrates persistent memory, self-initiated cognition, temporal awareness, and language modulation into a single differentiable system. It is designed from scratch, not derived from any existing model family.
31
-
32
- This repository contains the **architecture specification, training results, research philosophy, and publications**. No model weights are distributed at this time.
33
-
34
- ### Key Innovation: Memory as a Core Organ
35
-
36
- Current language models have amnesia. Every session starts from the same weights. "Memory" is faked by injecting text into context windows — a brittle, expensive, lossy hack.
37
-
38
- GLADIUS treats memory as a **first-class architectural component** with three temperature levels:
39
-
40
- | Temperature | Mechanism | Lifetime | Analogy |
41
- |-------------|-----------|----------|---------|
42
- | **Hot** | Learned key-value cache | Current session | Sensory buffer |
43
- | **Warm** | Spectral low-rank projections in weights | Persists across restarts | Working memory |
44
- | **Cold** | External vector database | Permanent | Long-term archive |
45
-
46
- Knowledge consolidates from hot → warm → cold through learned gating, analogous to biological memory consolidation during sleep.
47
-
48
- ---
49
-
50
- ## Architecture at a Glance
51
-
52
- ```
53
- ╔════════════════════════ GLADIUS KERNEL ═══════════════════╗
54
- ║ ║
55
- ║ ┌──────────────────────────────────────────────────────┐ ║
56
- ║ │ MEMORY LAYER (Substrate) │ ║
57
- ║ │ Hot (KV) ↔ Warm (Spectral) ↔ Cold (VDB) │ ║
58
- ║ └──────────────────────┬───────────────────────────────┘ ║
59
- ║ │ ║
60
- ║ ┌──────────┬───────────┼───────────┬──────────┐ ║
61
- ║ │COGNITION │ TEMPORAL │ MoE │MODULATOR │ ║
62
- ║ │ LOOP │ ENGINE │ ROUTER │ (Voice) │ ║
63
- ║ │(Heartbeat│ (Clock) │ │ │ ║
64
- ║ └──────────┴───────────┴───────────┴──────────┘ ║
65
- ║ ║
66
- ║ ┌─────────────────────────────────────────────────────┐ ║
67
- ║ │ SLA² — Scaled Linear Attention w/ Adaptive Alloc. │ ║
68
- ║ │ α ⊙ softmax(sparse) + (1-α) ⊙ linear(dense) │ ║
69
- ║ └─────────────────────────────────────────────────────┘ ║
70
- ╚═══════════════════════════════════════════════════════════╝
71
- ```
72
-
73
- ### Core Components
74
-
75
- | Component | Function | Key Idea |
76
- |-----------|----------|----------|
77
- | **SLA²** | Custom attention mechanism | Hybrid sparse-softmax + dense-linear attention with learned routing. O(n) for most tokens, O(n·k) precision where it matters. |
78
- | **Three-Temperature Memory** | Persistent knowledge | Hot (session KV), Warm (spectral projections surviving restart), Cold (vector retrieval) |
79
- | **Spectral Warm Memory** | Knowledge in weights | Learned low-rank projections that encode experience directly into model parameters. 57,501 autonomous consolidation events during training. |
80
- | **Cognitive Heartbeat** | Self-initiated thinking | Variable-rate inference loop: active (100ms) → monitoring (1s) → reflective (5s) → dormant (30s). The kernel thinks without being asked. |
81
- | **Language Modulator** | Output control | Register (formal↔casual), intent (inform/persuade/comfort/challenge), and a **silence gate** — the architectural ability to choose not to speak. |
82
- | **Temporal Awareness Engine** | Time perception | Dual-clock encoding (absolute wall-time + relative event-anchored), injected additively at every layer. The kernel knows *when*, not just *where*. |
83
- | **MoE Routing** | Specialist dispatch | Kernel-level mixture-of-experts routing to hot-swappable specialist modules. |
84
-
85
- **Full kernel: 1,854 lines of Python across 12 files.**
86
-
87
- ---
88
-
89
- ## Training Results — Phoenix Ultimate (100K Steps)
90
-
91
- ### Configuration
92
-
93
- | Parameter | Value |
94
- |-----------|-------|
95
- | Total parameters | **6,939,550 (6.94M)** |
96
- | Hidden dimension | 192 |
97
- | Layers | 6 |
98
- | Attention heads | 6 |
99
- | FFN dimension | 768 |
100
- | Sequence length | 256 |
101
- | Vocabulary | 16,000 BPE tokens |
102
- | Warm memory rank | 12 |
103
- | Corpus | ~50M tokens (literary, technical, philosophical) |
104
- | Hardware | **Intel i3-1005G1, 4 cores, 16GB RAM, no GPU** |
105
- | Training time | **17.7 hours** |
106
- | Speed | 1.57 steps/sec |
107
-
108
- ### Loss Trajectory
109
-
110
- | Stage | Steps | Loss Start | Loss End | Notes |
111
- |-------|-------|-----------|---------|-------|
112
- | Dragon | 5,000 | 5.75 | 4.21 | Initial convergence, architecture validation |
113
- | Phoenix | 10,000 | 4.21 | 3.15 | Warm memory activation, first consolidation events |
114
- | Phoenix Ultimate | 100,000 | 3.15 | **2.10** | Extended training, 57,501 warm memory consolidations |
115
- | Best checkpoint | — | — | **1.299** | Periodic evaluation minimum |
116
-
117
- **Overall: 5.75 → 2.10 (63.4% reduction)**
118
-
119
- ### Warm Memory Behavior
120
-
121
- The spectral warm memory system performed **57,501 autonomous consolidation events** during training — moments where the kernel decided, without external prompting, to transfer knowledge from hot (session) memory into persistent warm (spectral) projections.
122
-
123
- This is the core thesis validated: the architecture learns *what* to remember and *when* to consolidate, through the same gradient signal that teaches it language.
124
-
125
- ### Generation Samples
126
-
127
- At 6.94M parameters, the model demonstrates grammatical structure emergence and topical clustering:
128
-
129
- ```
130
- Prompt: "Once upon a time in a land"
131
- Output: "Once upon a time in a land stepped sett render urg impressennen
132
- Rock star free travelion drum steel flies running hills live
133
- quarters timber operated..."
134
-
135
- Prompt: "The fundamental theorem states that"
136
- Output: "The fundamental theorem states that wips modails denurver cons
137
- Resun defollow explil constl..."
138
- ```
139
-
140
- **Honest assessment:** At 6.94M parameters, the model produces grammatical scaffolding and domain-appropriate token clustering but not coherent natural language. This is expected and by design — GLADIUS v2 is a **proof-of-architecture**, not a production language model. The purpose is to validate that the kernel components (memory consolidation, attention routing, temporal encoding, modulation) function correctly at small scale before committing to larger parameter counts.
141
-
142
- Coherent text generation is a function of scale. Architectural correctness is not. We validated the latter.
143
-
144
- ---
145
-
146
- ## 📊 Evaluation Results
147
-
148
- Industry-standard benchmarks on the Phoenix Ultimate checkpoint:
149
-
150
- | Metric | Value |
151
- |--------|-------|
152
- | Held-out Perplexity | **24.18** |
153
- | WikiText-103 PPL | **25.79** |
154
- | Top-1 Accuracy | **45.77%** |
155
- | Top-5 Accuracy | **65.47%** |
156
- | Distinct-2 | **0.996** |
157
- | Self-BLEU | **0.000** |
158
-
159
- Competitive with models 5-17× larger. Full evaluation methodology in [EVAL.md](EVAL.md).
160
-
161
- ---
162
-
163
- ## What Makes This Different
164
-
165
- | | Standard LLMs | GLADIUS v2 |
166
- |---|---|---|
167
- | **Memory** | Context window (session amnesia) | Three-temperature persistent memory |
168
- | **Cognition** | Stimulus → response | Continuous self-initiating heartbeat |
169
- | **Time** | None (sequence position only) | Dual-clock temporal encoding |
170
- | **Voice** | Statistical / prompt-hacked | Learned register + intent + silence modulation |
171
- | **Attention** | O(n²) softmax everywhere | SLA² hybrid (sparse softmax + dense linear) |
172
- | **Decision** | Next-token prediction | Argmax over structured candidate sets |
173
- | **Learning** | Frozen after training | Warm memory updates during inference |
174
- | **Hardware** | GPU-dependent | **CPU-native by design** |
175
-
176
- ### Designed for CPU
177
-
178
- GLADIUS was deliberately designed and trained on consumer CPU hardware. This is not a limitation — it is a thesis: **architectural innovation matters more than compute scaling.** A system with memory, cognition, time awareness, and language control can exhibit intelligent behavior at parameter counts that fit in CPU cache.
179
-
180
- The entire training run (100K steps, 50M tokens) completed in 17.7 hours on an Intel i3-1005G1. No cloud. No GPU cluster. One laptop in Islamabad.
181
-
182
- ---
183
-
184
- ## Theoretical Foundation
185
-
186
- GLADIUS is grounded in original theoretical work:
187
-
188
- ### The Two-Point Theorem
189
-
190
- > *Two points define a direction. Direction is all you need.*
191
-
192
- Intelligence is not pattern matching over static data. Intelligence is the ability to observe two sequential states and extract the direction of change. A gradient — the foundation of all learning — is literally the direction between two points in loss space.
193
-
194
- GLADIUS trains on **state pairs**: (before, after) observations that teach the direction of transformation rather than the memorization of patterns.
195
-
196
- ### The Argmax Principle
197
-
198
- Every decision in the kernel — what to remember, when to think, which specialist to route to, how to speak, whether to stay silent — is an instance of:
199
-
200
- ```
201
- x̂ = argmax_{x ∈ C} S(x | context)
202
- ```
203
-
204
- This is not a metaphor. It is the literal computational primitive underlying every kernel component. Softmax makes it differentiable. Temperature controls exploration vs. exploitation.
205
-
206
- ### Memory Persistence as the Unsolved Problem
207
-
208
- The central challenge in AI is not scale, not reasoning, not multimodality. It is **persistent memory without catastrophic forgetting**. A system that can learn continuously — updating its knowledge through experience without destroying what it already knows — would represent a fundamental advance.
209
-
210
- GLADIUS's three-temperature memory with spectral warm projections is our approach to this problem. The 57,501 consolidation events during training demonstrate that the mechanism functions. Whether it scales remains an open and honest question.
211
-
212
- ---
213
-
214
- ## Repository Contents
215
-
216
- | File | Description |
217
- |------|-------------|
218
- | [`README.md`](README.md) | This model card |
219
- | [`ARCHITECTURE.md`](ARCHITECTURE.md) | Detailed component descriptions |
220
- | [`TRAINING.md`](TRAINING.md) | Training methodology and results |
221
- | [`PHILOSOPHY.md`](PHILOSOPHY.md) | Theoretical foundations |
222
- | [`DISCOVERY.md`](DISCOVERY.md) | Warm memory dormancy discovery and fix |
223
- | [`EVAL.md`](EVAL.md) | Evaluation benchmarks and methodology |
224
- | [`config.json`](config.json) | Architecture configuration |
225
- | [`eval_results.json`](eval_results.json) | Raw evaluation metrics |
226
-
227
- ---
228
-
229
- ## Publications
230
-
231
- Research papers and essays grounding the GLADIUS project and Artifact Virtual's broader thesis.
232
-
233
- ### Architecture & Identity
234
-
235
- | Paper | Description |
236
- |-------|-------------|
237
- | [**The Silent Brain**](publications/THE_SILENT_BRAIN.md) | How we found a dormant memory system inside our AI kernel — and woke it up. The warm memory discovery story. |
238
- | [**GENETIX**](publications/GENETIX.md) | The story of how an AI chose its own voice. Spectral natural selection across four generations and twenty-six specimens. |
239
-
240
- ### Compute & Infrastructure
241
-
242
- | Paper | Description |
243
- |-------|-------------|
244
- | [**GPU as Code**](publications/GPU_AS_CODE.md) | Transcending hardware parallelism through algorithmic abstraction. The GPU is a computational strategy, not a physical necessity — and code has no ceiling. |
245
- | [**Not So Supercomputing**](publications/NOT_SO_SUPERCOMPUTING.md) | Enabling supercomputing through algorithms, data compression, encryption, and alternative architectures. The foundation paper. |
246
- | [**ARM Topology**](publications/ARM_TOPOLOGY.md) | The Topography of Artificial Resource Management — a unified control plane for a post-scarcity civilization. Six-layer topology from matter to anticipatory cognition. |
247
- | [**STATIC Analysis**](publications/STATIC_ANALYSIS.md) | From Trees to Tensors — critical analysis of sparse matrix constrained decoding and its implications for sovereign AI systems. |
248
- | [**CUDA Agent**](publications/CUDA_AGENT.md) | Notes on large-scale agentic RL for high-performance CUDA kernel generation. State-of-the-art context for the GPU-as-Code thesis. |
249
-
250
- ---
251
-
252
- ## What's Not Here (And Why)
253
-
254
- - **No model weights.** This is a proof-of-architecture at 6.94M parameters. Weights at this scale have limited standalone utility. Scaled checkpoints will be released when they produce coherent generation.
255
- - **No source code.** The kernel implementation is proprietary to Artifact Virtual. We share the architecture openly — the *what* and *why* — while retaining the *how*.
256
- - **No training recipes.** Specific hyperparameter schedules, data preprocessing pipelines, and optimization tricks are not disclosed.
257
-
258
- We believe in **open research, selective disclosure.** The architecture is novel and we want the community to engage with the ideas. The implementation is our competitive edge and we protect it accordingly.
259
-
260
- ---
261
-
262
- ## Citation
263
-
264
- ```bibtex
265
- @misc{gladius-v2-2026,
266
- title={GLADIUS v2: An Intelligence Kernel Architecture with Persistent Spectral Memory, Self-Initiated Cognition, and Temporal Awareness},
267
- author={Artifact Virtual},
268
- year={2026},
269
- url={https://huggingface.co/amuzetnoM/gladius-v2-kernel}
270
- }
271
- ```
272
-
273
- ---
274
-
275
- ## Contact
276
-
277
- **Artifact Virtual (SMC-Private) Limited**
278
- Islamabad, Pakistan
279
-
280
- - GitHub: [github.com/Artifact-Virtual](https://github.com/Artifact-Virtual)
281
- - HuggingFace: [huggingface.co/amuzetnoM](https://huggingface.co/amuzetnoM)
282
-
283
- ---
284
-
285
- <p align="center"><em>"There is no such thing as artificial intelligence. It's only artificial till it's on paper."</em></p>
286
-
287
- ## 🧠 Warm Memory Discovery
288
-
289
- We found that the warm memory system was learning but couldn't express — `down_proj` weights were zero across all layers. **All benchmarks above were achieved with warm memory effectively disabled.** Patch applied, Layer 0 now active. Full story in [DISCOVERY.md](DISCOVERY.md).